- Home
- Resources
- Print admin API
printing related WS
POST /api/admin/print/format/json
add new print format
Example of request:
{"name":"A4","width":"210","height":"297","isavailable":true,"units":"5"}
Request Body
media type |
data type |
description |
application/json |
HdcPrintFormatTO
(JSON) |
HdcPrintFormatTO |
Response Body
media type |
data type |
description |
application/json |
HdcSuccessWithId
(JSON) |
JSON Response with the information, whether operation has been
succeeded together with added format id. |
Example
Request
POST /api/admin/print/format/json
Content-Type: application/json
Accept: application/json
{ }
Response
HTTP/1.1 201 Created
Content-Type: application/json
{ }
GET /api/admin/print/set/json
Return all print template sets with it's assigned identities (users,
groups)
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
GET /api/admin/print/set/json
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
POST /api/admin/print/set/json
add new print template set
Request Body
media type |
data type |
description |
application/json |
HdcNameDescModelTO
(JSON) |
HdcNameDescModelTO |
Response Body
media type |
data type |
description |
application/json |
HdcSuccessWithId
(JSON) |
|
Example
Request
POST /api/admin/print/set/json
Content-Type: application/json
Accept: application/json
{ }
Response
HTTP/1.1 201 Created
Content-Type: application/json
{ }
DELETE /api/admin/print/set/{printTemplSetId}
Remove print template set
Request Parameters
name |
type |
description |
constraints |
printTemplSetId |
path |
ID of set |
long |
Response Body
media type |
data type |
description |
application/json |
HdcSuccessTO
(JSON) |
JSON Response with information, whether the removing has or has not
been succeeded. |
Example
Request
DELETE /api/admin/print/set/{printTemplSetId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
POST /api/admin/print/template/json
add new print template
Example of request:
{"name":"test_template_A4P", format:{"id":1}, "orientation":Portrait, "marginleft":10, marginright:10, marginbottom:20, margintop:10, units:5}
8
Request Body
media type |
data type |
description |
application/json |
HdcPrintTemplateTO
(JSON) |
HdcPrintTemplateTO |
Response Body
media type |
data type |
description |
application/json |
HdcPrintTemplateTO
(JSON) |
JSON Response with the information whether operation has been
succeeded together with added template id. |
Example
Request
POST /api/admin/print/template/json
Content-Type: application/json
Accept: application/json
{ }
Response
HTTP/1.1 201 Created
Content-Type: application/json
{ }
DELETE /api/admin/print/template/{printTemplId}
Remove print template
Request Parameters
name |
type |
description |
constraints |
printTemplId |
path |
ID of print template |
long |
Response Body
media type |
data type |
description |
application/json |
HdcSuccessTO
(JSON) |
JSON Response with information, whether the removing has or has not
been succeeded. |
Example
Request
DELETE /api/admin/print/template/{printTemplId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
PUT /api/admin/print/template/{printTemplId}
Update the specified print template (name and margins only)
Request Parameters
name |
type |
description |
constraints |
printTemplId |
path |
|
long |
Request Body
media type |
data type |
description |
application/json |
HdcPrintTemplateTO
(JSON) |
HdcPrintTemplateTO |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
JSON Response with the information whether operation has been
succeeded together with added template id.
Example of request:
{"name":"new name", "marginleft":6, marginright:10}
|
Example
Request
PUT /api/admin/print/template/{printTemplId}
Content-Type: application/json
Accept: application/json
{ }
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
GET /api/admin/print/templates/json
Get predefined print templates.
Response Body
media type |
data type |
description |
application/json |
HdcPrnTemplatesListTO
(JSON) |
|
Example
Request
GET /api/admin/print/templates/json
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ }
GET /api/admin/print/legend/templates/json
Get predefined legend print templates.
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
JSON Response with the list of legend print templates.
Example of response:
{"templates":[{"formatId":1,"formatName":"A4","orientation":"P","templateId":6268,"templateName":"Legend_A4_P","templateOrientation":"P","templateFormat":"A4"},{"formatId":1,"formatName":"A4","orientation":"L","templateId":5138,"templateName":"Legend_A4_L","templateOrientation":"L","templateFormat":"A4"}]}
|
Example
Request
GET /api/admin/print/legend/templates/json
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
POST /api/admin/print/set/add/{setFormatId}
Assign templates to given Print Template Set
Request Parameters
name |
type |
description |
constraints |
setFormatId |
path |
ID of FLS |
long |
Request Body
media type |
data type |
application/json |
string
(JSON) |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
JSON Response with information, whether the assignment has or has
not been succeeded. |
Example
Request
POST /api/admin/print/set/add/{setFormatId}
Content-Type: application/json
Accept: application/json
...
Response
HTTP/1.1 201 Created
Content-Type: application/json
...
POST /api/admin/print/set/assign/{setFormatId}
Assign user or group to given Print Template Set
Request Parameters
name |
type |
description |
constraints |
setFormatId |
path |
ID of set |
long |
Request Body
media type |
data type |
application/json |
string
(JSON) |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
JSON Response with information, whether the assignment has or has
not been succeeded. |
Example
Request
POST /api/admin/print/set/assign/{setFormatId}
Content-Type: application/json
Accept: application/json
...
Response
HTTP/1.1 201 Created
Content-Type: application/json
...
POST /api/admin/print/set/remove/{setFormatId}
remove Print templates from given Print Template Set
Request Parameters
name |
type |
description |
constraints |
setFormatId |
path |
ID of FLS |
long |
Request Body
media type |
data type |
application/json |
string
(JSON) |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
POST /api/admin/print/set/remove/{setFormatId}
Content-Type: application/json
Accept: application/json
...
Response
HTTP/1.1 201 Created
Content-Type: application/json
...
POST /api/admin/print/set/unassign/{setFormatId}
Unassign user or group to given Print Template Set
Request Parameters
name |
type |
description |
constraints |
setFormatId |
path |
ID of set |
long |
Request Body
media type |
data type |
application/json |
string
(JSON) |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
POST /api/admin/print/set/unassign/{setFormatId}
Content-Type: application/json
Accept: application/json
...
Response
HTTP/1.1 201 Created
Content-Type: application/json
...
DELETE /api/admin/print/template/drawing/{templateId}
delete svg drawing for print template
Request Parameters
name |
type |
description |
constraints |
templateId |
path |
|
long |
Response Body
media type |
data type |
description |
application/json |
HdcSuccessTO
(JSON) |
|
Example
Request
DELETE /api/admin/print/template/drawing/{templateId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
GET /api/admin/print/template/drawing/{templateId}
get empty (frame + empty print viewports) print template svg drawing
Request Parameters
name |
type |
description |
constraints |
templateId |
path |
|
long |
Response Body
media type |
data type |
description |
application/json |
HdcPrintTemplateDrawingModelTO
(JSON) |
|
Example
Request
GET /api/admin/print/template/drawing/{templateId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ }
PUT /api/admin/print/template/drawing/{templateId}
add svg drawing for print template
Request Parameters
name |
type |
description |
constraints |
templateId |
path |
of template that svg drawing has to be added to |
long |
Response Body
media type |
data type |
description |
application/json |
HdcSuccessTO
(JSON) |
|
Example
Request
PUT /api/admin/print/template/drawing/{templateId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
PUT /api/admin/print/template/element/{templateId}
Update elems inserted in template drawing
Request Parameters
name |
type |
description |
constraints |
templateId |
path |
- id of template drawing with macros that have to be
updated
Example of request:
{"list":[{"snippet":"$Date,"entityId":"1", "vectorId":"1121"}]}
|
required |
Request Body
media type |
data type |
application/json |
HdcModifiedTemplateEntitiesListTO
(JSON) |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
json object with report about success of insertions |
Example
Request
PUT /api/admin/print/template/element/{templateId}
Content-Type: application/json
Accept: application/json
{ }
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
POST /api/admin/print/template/legend/{templateId}
insert legend in the specified print template
Request Parameters
name |
type |
description |
constraints |
templateId |
path |
|
required |
height |
query |
|
required |
legendId |
query |
|
long |
width |
query |
|
required |
xIns |
query |
|
required |
yIns |
query |
|
required |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
POST /api/admin/print/template/legend/{templateId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 201 Created
Content-Type: application/json
...
PUT /api/admin/print/set/setdefault/{printTemplSetId}/{printTemplId}
Set default security scheme
Request Parameters
name |
type |
description |
constraints |
printTemplId |
path |
|
long |
printTemplSetId |
path |
|
long |
Response Body
media type |
data type |
description |
application/json |
HdcSuccessTO
(JSON) |
JSON Response with information, whether the setting has or has not
been succeeded. |
Example
Request
PUT /api/admin/print/set/setdefault/{printTemplSetId}/{printTemplId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
GET /api/admin/print/set/templates/json/{setFormatId}
Return print templates for following print template set by it's id
Request Parameters
name |
type |
description |
constraints |
setFormatId |
path |
|
long |
Response Body
media type |
data type |
description |
application/json |
HdcPrnTemplatesListTO
(JSON) |
|
Example
Request
GET /api/admin/print/set/templates/json/{setFormatId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ }
POST /api/admin/print/template/element/add/{templateId}
Create new elems to be added to template drawing
Request Parameters
name |
type |
description |
constraints |
templateId |
path |
- id of template drawing to which macros are added
Example of request:
{"list":[{"snippet":"$Date,"entityId":0", "vectorId":"1121"}]}
|
required |
Request Body
media type |
data type |
application/json |
HdcModifiedTemplateEntitiesListTO
(JSON) |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
json object with report about success of insertions |
Example
Request
POST /api/admin/print/template/element/add/{templateId}
Content-Type: application/json
Accept: application/json
{ }
Response
HTTP/1.1 201 Created
Content-Type: application/json
...
POST /api/admin/print/template/element/delete/{templateId}
Request Parameters
name |
type |
description |
constraints |
templateId |
path |
|
required |
Request Body
media type |
data type |
application/json |
HdcModifiedTemplateEntitiesListTO
(JSON) |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
POST /api/admin/print/template/element/delete/{templateId}
Content-Type: application/json
Accept: application/json
{ }
Response
HTTP/1.1 201 Created
Content-Type: application/json
...
PUT /api/admin/print/template/element/order/{templateId}
Update elems order in template drawing
Request Parameters
name |
type |
description |
constraints |
templateId |
path |
- id of template drawing with elems that have to be
ordered
Example of request:
{"list":[{"snippet":"$Date,"entityId":"1", "vectorId":"1121"}]}
|
required |
Request Body
media type |
data type |
application/json |
HdcModifiedTemplateEntitiesListTO
(JSON) |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
json object with report about success of insertions |
Example
Request
PUT /api/admin/print/template/element/order/{templateId}
Content-Type: application/json
Accept: application/json
{ }
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
DELETE /api/admin/print/template/element/{templateId}/{entityId}
This method has been deprecated.
Request Parameters
name |
type |
description |
constraints |
entityId |
path |
|
required |
templateId |
path |
|
required |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
DELETE /api/admin/print/template/element/{templateId}/{entityId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
DELETE /api/admin/print/template/legend/{templateId}/{legendId}
delete legend with given legendId form the specified print template
Request Parameters
name |
type |
description |
constraints |
legendId |
path |
|
long |
templateId |
path |
|
long |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
DELETE /api/admin/print/template/legend/{templateId}/{legendId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
PUT /api/admin/print/template/legend/{templateId}/{legendId}
update legend with given legendId in the specified print template
Request Parameters
name |
type |
description |
constraints |
legendId |
path |
|
required |
templateId |
path |
|
required |
height |
query |
|
required |
width |
query |
|
required |
xIns |
query |
|
required |
yIns |
query |
|
required |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
PUT /api/admin/print/template/legend/{templateId}/{legendId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
POST /api/admin/print/legend/template/json/{printFormatId}/{orientation}/{legendTemplateId}
add new legend print template
Request Parameters
name |
type |
description |
constraints |
legendTemplateId |
path |
|
long |
orientation |
path |
|
|
printFormatId |
path |
|
long |
Response Body
media type |
data type |
description |
application/json |
HdcSuccessTO
(JSON) |
JSON Response with the information whether operation has been succeeded. |
Example
Request
POST /api/admin/print/legend/template/json/{printFormatId}/{orientation}/{legendTemplateId}
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 201 Created
Content-Type: application/json
{ }