TemplateResource
Resource used for loading, saving and manipulating GCN templates.
The following resources are part of this group:
- /template/localizationinfo
- /template/push2master
- /template/unlocalize
- /template/getTags/{id}
- /template/load/{id}
- /template/localizationinfo/{id}
- /template/push2master/{id}
- /template/unlocalize/{id}
/template/localizationinfo
Mount Point: /CNPortletapp/rest/template/localizationinfo
GET
Get localization info for a list of templates for a given channel and all master channels
Parameters
name | description | type | default |
---|---|---|---|
id | list of template ids | query | |
nodeId | id of the node to start with | query |
Response Body
element: | localizationInfo |
media types: | */* application/xml application/json |
localization info
/template/push2master
Mount Point: /CNPortletapp/rest/template/push2master
POST
Push a list of templates from a channel into a master
Request Body
element: | multiPushToMasterRequest |
media types: | */* application/xml application/json |
request
Response Body
element: | genericResponse |
media types: | */* application/xml application/json |
generic response
/template/unlocalize
Mount Point: /CNPortletapp/rest/template/unlocalize
POST
Unlocalize templates in a channel
Request Body
element: | multiUnlocalizeRequest |
media types: | */* application/xml application/json |
request
Response Body
element: | genericResponse |
media types: | */* application/xml application/json |
generic response
/template/getTags/{id}
Mount Point: /CNPortletapp/rest/template/getTags/{id}
GET
Get the list of templatetags for this template
Parameters
name | description | type | default |
---|---|---|---|
id | id of the template. The local or global id | path | |
skipCount | (no documentation provided) | query | 0 |
maxItems | (no documentation provided) | query | -1 |
sortby | (no documentation provided) | query | name |
sortorder | (no documentation provided) | query | asc |
search | (no documentation provided) | query |
Response Body
element: | tagListResponse |
media types: | */* application/xml application/json |
response object
/template/load/{id}
Mount Point: /CNPortletapp/rest/template/load/{id}
GET
Load the template with the given id and return it.
Parameters
name | description | type | default |
---|---|---|---|
id | The template id | path | |
nodeId | channel id | query |
Response Body
element: | (custom) |
media types: | */* application/xml application/json |
(no documentation provided)
/template/localizationinfo/{id}
Mount Point: /CNPortletapp/rest/template/localizationinfo/{id}
GET
Get localization info for a template for a given channel and all master channels
Parameters
name | description | type | default |
---|---|---|---|
id | id of the template. This can either be the local or global id of the template. | path | |
nodeId | id of the node to start with | query |
Response Body
element: | localizationInfo |
media types: | */* application/xml application/json |
localization info
/template/push2master/{id}
Mount Point: /CNPortletapp/rest/template/push2master/{id}
POST
Push a template from a channel into a master
Parameters
name | description | type | default |
---|---|---|---|
id | id of the template | path |
Request Body
element: | pushToMasterRequest |
media types: | */* application/xml application/json |
request
Response Body
element: | genericResponse |
media types: | */* application/xml application/json |
generic response
/template/unlocalize/{id}
Mount Point: /CNPortletapp/rest/template/unlocalize/{id}
POST
Unlocalize the given template
Parameters
name | description | type | default |
---|---|---|---|
id | id of the template to unlocalize | path |
Request Body
element: | unlocalizeRequest |
media types: | */* application/xml application/json |
request
Response Body
element: | genericResponse |
media types: | */* application/xml application/json |
generic response