Toolset admin API Resource

WS for toolsets

POST /admin/toolset

Add toolset.

Example of request:

{"name":"layer_F11312.0","style":{"stroke":"#0000FF","stroke-linecap":"round","fill":"none","stroke-linejoin":"round","stroke-width":"0.01"}}

Request Body
media type data type description
application/json object The specification of toolset that has to be added.
Response Body
media type data type description
application/json object JSON Response with information, whether the adding has or has not been succeeded.

GET /admin/toolset/json

Get list of toolsets.

Response Body
media type data type description
application/json object JSON Response with list of classes

Example of response:

{"list":[{"id":"1"},{"id":"2","name":"layer_F11312.0","style":{"stroke":"#0000FF","stroke-linecap":"round","fill":"none","stroke-linejoin":"round","stroke-width":"0.01"}},{"id":"3","name":"layer_space","style":{"stroke":"#FF0000","stroke-linecap":"round","fill":"none","stroke-linejoin":"round","stroke-width":"100.0"}}}

DELETE /admin/toolset/{toolsetId}

Delete toolset

Request Parameters
name type description default constraints
toolsetId path ID of toolset   long
Response Body
media type data type description
application/json object JSON Response with information, whether the deleting has or has not been succeeded.

PUT /admin/toolset/{toolsetId}

Update toolset.

Example of request:

{"name":"layer_F11312.0","style":{"stroke":"#0000FF","stroke-linecap":"round","fill":"none","stroke-linejoin":"round","stroke-width":"0.01"}}

Request Parameters
name type description default constraints
toolsetId path   long
Request Body
media type data type description
application/json object The specification of toolset that has to be updated.
Response Body
media type data type description
application/json object JSON Response with information, whether the updating has or has not been succeeded.