Toolset admin API Resource

WS for toolsets

POST /api/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 HdcToolsetModelTO (JSON) The specification of toolset that has to be added.
Response Body
media type data type description
application/json object (JSON) JSON Response with information, whether the adding has or has not been succeeded.

Example

Request
POST /api/admin/toolset
Content-Type: application/json
Accept: application/json

                
{ }
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /api/admin/toolset/json

Get list of toolsets.

Response Body
media type data type description
application/json object (JSON) 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"}}}

Example

Request
GET /api/admin/toolset/json
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

DELETE /api/admin/toolset/{toolsetId}

Delete toolset

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

Example

Request
DELETE /api/admin/toolset/{toolsetId}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{ }
                
              

PUT /api/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 constraints
toolsetId path long
Request Body
media type data type description
application/json HdcToolsetModelTO (JSON) The specification of toolset that has to be updated.
Response Body
media type data type description
application/json HdcSuccessTO (JSON) JSON Response with information, whether the updating has or has not been succeeded.

Example

Request
PUT /api/admin/toolset/{toolsetId}
Content-Type: application/json
Accept: application/json

                
{ }
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{ }