WS for toolsets
Add toolset.
Example of request:
{"name":"layer_F11312.0","style":{"stroke":"#0000FF","stroke-linecap":"round","fill":"none","stroke-linejoin":"round","stroke-width":"0.01"}}
| media type | data type | description |
|---|---|---|
| application/json | HdcToolsetModelTO (JSON) | The specification of toolset that has to be added. |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) | JSON Response with information, whether the adding has or has not been succeeded. |
POST /api/admin/toolset
Content-Type: application/json
Accept: application/json
{ }
HTTP/1.1 201 Created
Content-Type: application/json
...
Get list of toolsets.
| 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"}}}
|
GET /api/admin/toolset/json
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
Delete toolset
| name | type | description | constraints |
|---|---|---|---|
| toolsetId | path | ID of toolset | long |
| media type | data type | description |
|---|---|---|
| application/json | HdcSuccessTO (JSON) | JSON Response with information, whether the deleting has or has not been succeeded. |
DELETE /api/admin/toolset/{toolsetId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
Update toolset.
Example of request:
{"name":"layer_F11312.0","style":{"stroke":"#0000FF","stroke-linecap":"round","fill":"none","stroke-linejoin":"round","stroke-width":"0.01"}}
| name | type | description | constraints |
|---|---|---|---|
| toolsetId | path | long |
| media type | data type | description |
|---|---|---|
| application/json | HdcToolsetModelTO (JSON) | The specification of toolset that has to be updated. |
| media type | data type | description |
|---|---|---|
| application/json | HdcSuccessTO (JSON) | JSON Response with information, whether the updating has or has not been succeeded. |
PUT /api/admin/toolset/{toolsetId}
Content-Type: application/json
Accept: application/json
{ }
HTTP/1.1 204 No Content
Content-Type: application/json
{ }