GET /api/templates/:template_id/foreign_input_sets
List foreign input sets

參數

參數名字 描述
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 String

order
選填

排序結果

Validations:

  • Must be String

page
選填

編頁結果

Validations:

  • Must be String

per_page
選填

每個請求的項目數量

Validations:

  • Must be String


GET /api/templates/:template_id/foreign_input_sets/:id
Show foreign input set details

參數

參數名字 描述
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
Create a foreign input set

參數

參數名字 描述
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]
必填

Target 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[include_all]
選填 , 允許空值

Include all inputs form the foreign template

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

foreign_input_set[include]
選填 , 允許空值

A comma separated list of input names to be included from the foreign template.

Validations:

  • Must be String

foreign_input_set[exclude]
選填 , 允許空值

A comma separated list of input names to be included from the foreign template.

Validations:

  • Must be String

foreign_input_set[description]
選填 , 允許空值

Input set description

Validations:

  • Must be String


DELETE /api/templates/:template_id/foreign_input_sets/:id
Delete a foreign input set

參數

參數名字 描述
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
Update a foreign input set

參數

參數名字 描述
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]
選填

Target 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[include_all]
選填 , 允許空值

Include all inputs form the foreign template

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

foreign_input_set[include]
選填 , 允許空值

A comma separated list of input names to be included from the foreign template.

Validations:

  • Must be String

foreign_input_set[exclude]
選填 , 允許空值

A comma separated list of input names to be included from the foreign template.

Validations:

  • Must be String

foreign_input_set[description]
選填 , 允許空值

Input set description

Validations:

  • Must be String