GET /api/common_parameters
列出所有全局参数。

参数

参数名字 描述
show_hidden
选填

Display hidden values

Validations:

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

search
选填

过滤结果

Validations:

  • Must be a String

order
选填

结果排序

Validations:

  • Must be a String

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


GET /api/common_parameters/:id
显示全局参数

参数

参数名字 描述
show_hidden
选填

Display hidden values

Validations:

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

id
必填

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
创建全局参数

参数

参数名字 描述
common_parameter
必填

Validations:

  • Must be a Hash

common_parameter[name]
必填

Validations:

  • Must be a String

common_parameter[value]
必填

Validations:

  • Must be a String

common_parameter[hidden_value]
选填 , 允许空值

Validations:

  • Must be one of: true, false.


PUT /api/common_parameters/:id
更新全局参数

参数

参数名字 描述
id
必填

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
必填

Validations:

  • Must be a Hash

common_parameter[name]
选填

Validations:

  • Must be a String

common_parameter[value]
选填

Validations:

  • Must be a String

common_parameter[hidden_value]
选填 , 允许空值

Validations:

  • Must be one of: true, false.


DELETE /api/common_parameters/:id
删除全局参数

参数

参数名字 描述
id
必填

Validations:

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