GET /api/common_parameters
Llista tots els paràmetres globals.

Params

Param name Description
show_hidden
optional

Display hidden values

Validations:

  • Must be one of: true, false, 1, 0

search
optional

filtra els resultats

Validations:

  • Must be a String

order
optional

ordena els resultats

Validations:

  • Must be a String

page
optional

pagina els resultats

Validations:

  • Must be a String

per_page
optional

Nombre d'entrades per petició

Validations:

  • Must be a String


GET /api/common_parameters/:id
Mostra un paràmetre global

Params

Param name Description
show_hidden
optional

Display hidden values

Validations:

  • Must be one of: true, false, 1, 0

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/common_parameters
Crea un paràmetre global

Params

Param name Description
common_parameter
required

Validations:

  • Must be a Hash

common_parameter[name]
required

Validations:

  • Must be a String

common_parameter[value]
required

Validations:

  • Must be a String

common_parameter[hidden_value]
optional , nil allowed

Validations:

  • Must be one of: true, false.


PUT /api/common_parameters/:id
Actualitza un paràmetre global

Params

Param name Description
id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

common_parameter
required

Validations:

  • Must be a Hash

common_parameter[name]
optional

Validations:

  • Must be a String

common_parameter[value]
optional

Validations:

  • Must be a String

common_parameter[hidden_value]
optional , nil allowed

Validations:

  • Must be one of: true, false.


DELETE /api/common_parameters/:id
Suprimeix un paràmetre global

Params

Param name Description
id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.