GET /api/templates/:template_id/foreign_input_sets
列出外部输入集

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

template_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.

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/templates/:template_id/foreign_input_sets/:id
显示外部输入集详情

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

template_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.

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/templates/:template_id/foreign_input_sets
创建外部输入集

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

template_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.

foreign_input_set
必填

Validations:

  • Must be a Hash

foreign_input_set[target_template_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.

foreign_input_set[include_all]
选填 , 允许空值

Include all inputs from the foreign template

Validations:

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

foreign_input_set[include]
选填 , 允许空值

包含外部模板中用逗号分开的输入名称列表。

Validations:

  • Must be a String

foreign_input_set[exclude]
选填 , 允许空值

包含外部模板中用逗号分开的输入名称列表。

Validations:

  • Must be a String

foreign_input_set[description]
选填 , 允许空值

输入集描述

Validations:

  • Must be a String


DELETE /api/templates/:template_id/foreign_input_sets/:id
删除外部输入集

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

template_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.

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.


PUT /api/templates/:template_id/foreign_input_sets/:id
更新外部输入集

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

template_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.

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.

foreign_input_set
必填

Validations:

  • Must be a Hash

foreign_input_set[target_template_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.

foreign_input_set[include_all]
选填 , 允许空值

Include all inputs from the foreign template

Validations:

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

foreign_input_set[include]
选填 , 允许空值

包含外部模板中用逗号分开的输入名称列表。

Validations:

  • Must be a String

foreign_input_set[exclude]
选填 , 允许空值

包含外部模板中用逗号分开的输入名称列表。

Validations:

  • Must be a String

foreign_input_set[description]
选填 , 允许空值

输入集描述

Validations:

  • Must be a String