Template API
List templates
List all templates
GET/rest/template/list
Query parameters | None |
Header | auth-token: token from authentication |
Header/Parameter | tenant |
Body | None |
Returns | |
Required role | KBA_MANAGER |
Managed errors | 401: insufficient privileges |
Example request
curl 'http://localhost:8080/mwp/rest/template/list' -H "auth-token:3d46e36b-b17b-428e-bd9e-c90157f85fe3.local" -H "tenant:default"
Example response
[ { "name":"aa", "lastModified":1463149293997, "lastModifiedH":"2016-05-13 16:21:33", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/aa" }, { "name":"Brochure_Dienstverlening_Lijfrente", "lastModified":1466767899216, "lastModifiedH":"2016-06-24 13:31:39", "modifiedBy":"admin", "templateType":"PLAIN_DOC_OR_PDF", "template":"/mwp/rest/download/resource/template/Brochure_Dienstverlening_Lijfrente" }, { "name":"case 1", "lastModified":1462785147281, "lastModifiedH":"2016-05-09 11:12:27", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/case%201" }, { "name":"case 2", "lastModified":1462785188112, "lastModifiedH":"2016-05-09 11:13:08", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/case%202" }, { "name":"cat", "lastModified":1456991697318, "lastModifiedH":"2016-03-03 08:54:57", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/cat" }, { "name":"document-test PDF", "lastModified":1460016390907, "lastModifiedH":"2016-04-07 10:06:30", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/document-test%20PDF" }, { "name":"document_template_word", "lastModified":1471609361795, "lastModifiedH":"2016-08-19 14:22:41", "modifiedBy":"manager", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/document_template_word" }, { "name":"FV Adviessamenvatting Word", "lastModified":1466767822748, "lastModifiedH":"2016-06-24 13:30:22", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_DOC", "template":"/mwp/rest/download/resource/template/FV%20Adviessamenvatting%20Word" }, { "name":"FV Inventarisatierapport PDF", "lastModified":1466768434868, "lastModifiedH":"2016-06-24 13:40:34", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/FV%20Inventarisatierapport%20PDF" }, { "name":"FV InventarisatierapportPDF", "lastModified":1466767952123, "lastModifiedH":"2016-06-24 13:32:32", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/FV%20InventarisatierapportPDF" }, { "name":"FV KIF PDF", "lastModified":1466769398686, "lastModifiedH":"2016-06-24 13:56:38", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/FV%20KIF%20PDF" }, { "name":"image", "lastModified":1471609372012, "lastModifiedH":"2016-08-19 14:22:52", "modifiedBy":"manager", "templateType":"STATIC", "template":"/mwp/rest/download/resource/template/image" }, { "name":"Image_1", "lastModified":1460367551133, "lastModifiedH":"2016-04-11 11:39:11", "modifiedBy":"admin", "templateType":"STATIC", "template":"/mwp/rest/download/resource/template/Image_1" }, { "name":"InterpolisLogo.JPG", "lastModified":1456477497983, "lastModifiedH":"2016-02-26 10:04:57", "modifiedBy":"admin", "templateType":"PLAIN_TEXT_REPLACE", "template":"/mwp/rest/download/resource/template/InterpolisLogo.JPG" }, { "name":"Inventarisatieformulier CBA", "lastModified":1466768069476, "lastModifiedH":"2016-06-24 13:34:29", "modifiedBy":"admin", "templateType":"PLAIN_DOC_OR_PDF", "template":"/mwp/rest/download/resource/template/Inventarisatieformulier%20CBA" }, { "name":"Order Handling Template", "lastModified":1457003096871, "lastModifiedH":"2016-03-03 12:04:56", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/Order%20Handling%20Template" }, { "name":"Test for cached images", "lastModified":1460368012075, "lastModifiedH":"2016-04-11 11:46:52", "modifiedBy":"admin", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/Test%20for%20cached%20images" }, { "name":"test", "lastModified":1473415969485, "lastModifiedH":"2016-09-09 12:12:49", "modifiedBy":"anonymous_a7841209-5417-4def-8914-d4ad414ade2b", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/test" }, { "name":"test2", "lastModified":1473417222958, "lastModifiedH":"2016-09-09 12:33:42", "modifiedBy":"anonymous_7c0ca695-d00a-4b71-ac98-042009de20d5", "templateType":"HTML_REPLACE_TO_PDF", "template":"/mwp/rest/download/resource/template/test2" }, { "name":"Testing images", "lastModified":1460100606632, "lastModifiedH":"2016-04-08 09:30:06", "modifiedBy":"admin", "templateType":"STATIC", "template":"/mwp/rest/download/resource/template/Testing%20images" }, { "name":"Vermogen OPBOUWEN", "lastModified":1466768141343, "lastModifiedH":"2016-06-24 13:35:41", "modifiedBy":"admin", "templateType":"PLAIN_DOC_OR_PDF", "template":"/mwp/rest/download/resource/template/Vermogen%20OPBOUWEN" } ]