Workbook templates API Resource

Abstract class for REST webservices

POST /admin/reporttemplate

Add workbook template to repository

Request Parameters
name type description default constraints
classId query - id of classId for template   long
headerIndex query - index of row with header columns   long
outputType query - type of destination output format (xls/pdf)   required int
Request Body
media type data type
multipart/form-data (custom)
Response Body
media type data type description
application/json object JSON Response with the information, whether operation has been succeeded.

GET /admin/reporttemplate/json

Get Workbook Templates from templates repository.

Response Body
media type data type description
application/json object JSON Response with Workbook templates information

Example of response:

{"list":[{"type":"Pdf","classId":"130","className":"hdv_h3_struct","classLabel":"Anlaggning","id":0,"headerIndex":0,"name":"Blue expense report1.xlsx"},{"type":"Xls","classId":"461","className":"equipment","classLabel":"Equipment","id":0,"headerIndex":0,"name":"simple1111test.xlsx"},{"type":"Pdf","classId":"102","className":"org3grp","classLabel":"Affärsomrade","id":0,"headerIndex":0,"name":"simple1111test.xlsx"}]}

POST /admin/reporttemplate/{id}

Request Parameters
name type description default constraints
id path   long
Response Body
media type data type description
application/json object

DELETE /admin/reporttemplate/{templateId}

delete Workbook Template from Workbook Template repository

Request Parameters
name type description default constraints
templateId path - id of template   long
Response Body
media type data type description
application/json object JSON Response with the information, whether operation has been succeeded.

GET /admin/reporttemplate/{templateId}

Get binary representation of given Workbook Template

Request Parameters
name type description default constraints
templateId path - id of template   long
Response Body
media type data type description
*/* object Binary representation of workbook template