WS for toolsets mapping
Get list of class toolset mappings
| media type | data type | description |
|---|---|---|
| application/json | array of ClassToolsetMappingItem (JSON) | JSON with list of users
Example of response:
{"list":[{"clasId":"10","toolset":{"id":"952","objectName":"Red Intense","style":{"stroke-opacity":"1","id":"952","stroke-width":"0.1","fill":"#FF0000","stroke":"#FF0000","fill-opacity":"0.6"}}}]}
|
GET /api/admin/toolsetmapping/class
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"toolset" : { },
"classLabel" : "...",
"classId" : 12345
} ]
Unassign toolset from class
| name | type | description | constraints |
|---|---|---|---|
| classId | path | long |
| media type | data type | description |
|---|---|---|
| application/json | HdcSuccessTO (JSON) | JSON response with information if unassignment was successful or not |
DELETE /api/admin/toolsetmapping/class/{classId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
Get list of toolsets for dictionary
| name | type | description | constraints |
|---|---|---|---|
| dictionaryId | path | ID of dictionary | long |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) | JSON with list of toolsets mappings
Example of response:
{"list":[{"itemId":"KOMMUNIKATION","itemValue":"KOMMUNIKATION","toolset":{"id":"952","objectName":"Red Intense","style":{"stroke-opacity":"1","id":"952","stroke-width":"0.1","fill":"#FF0000","stroke":"#FF0000","fill-opacity":"0.6"}}}]}
|
GET /api/admin/toolsetmapping/dictionary/{dictionaryId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
Assign toolset to class
| name | type | description | constraints |
|---|---|---|---|
| classId | path | long | |
| toolsetId | path | long |
| media type | data type | description |
|---|---|---|
| application/json | HdcSuccessTO (JSON) | JSON response with information if assignment was successful or not |
POST /api/admin/toolsetmapping/class/{classId}/{toolsetId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Unassign toolset from dictionary field
| name | type | description | constraints |
|---|---|---|---|
| dictId | path | long | |
| dictItemId | path |
| media type | data type | description |
|---|---|---|
| application/json | HdcSuccessTO (JSON) | JSON response with information if unassignment was successful or not |
DELETE /api/admin/toolsetmapping/dictionary/{dictId}/{dictItemId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
Assign toolset to dictionary field
| name | type | description | constraints |
|---|---|---|---|
| dictId | path | long | |
| dictItemId | path | ||
| toolsetId | path | long |
| media type | data type | description |
|---|---|---|
| application/json | HdcSuccessTO (JSON) | JSON response with information if assignment was successful or not |
POST /api/admin/toolsetmapping/dictionary/{dictId}/{dictItemId}/{toolsetId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{ }