Toolset mapping admin API Resource

WS for toolsets mapping

GET /api/admin/toolsetmapping/class

Get list of class toolset mappings

Response Body
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"}}}]}

Example

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

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

                
[ {
  "toolset" : { },
  "classId" : 12345,
  "classLabel" : "..."
} ]
                
              

DELETE /api/admin/toolsetmapping/class/{classId}

Unassign toolset from class

Request Parameters
name type description constraints
classId path long
Response Body
media type data type description
application/json HdcSuccessTO (JSON) JSON response with information if unassignment was successful or not

Example

Request
DELETE /api/admin/toolsetmapping/class/{classId}
Content-Type: */*
Accept: application/json

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

                
{ }
                
              

GET /api/admin/toolsetmapping/dictionary/{dictionaryId}

Get list of toolsets for dictionary

Request Parameters
name type description constraints
dictionaryId path ID of dictionary long
Response Body
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"}}}]}

Example

Request
GET /api/admin/toolsetmapping/dictionary/{dictionaryId}
Content-Type: */*
Accept: application/json

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

                
...
                
              

POST /api/admin/toolsetmapping/class/{classId}/{toolsetId}

Assign toolset to class

Request Parameters
name type description constraints
classId path long
toolsetId path long
Response Body
media type data type description
application/json HdcSuccessTO (JSON) JSON response with information if assignment was successful or not

Example

Request
POST /api/admin/toolsetmapping/class/{classId}/{toolsetId}
Content-Type: */*
Accept: application/json

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

                
{ }
                
              

DELETE /api/admin/toolsetmapping/dictionary/{dictId}/{dictItemId}

Unassign toolset from dictionary field

Request Parameters
name type description constraints
dictId path long
dictItemId path  
Response Body
media type data type description
application/json HdcSuccessTO (JSON) JSON response with information if unassignment was successful or not

Example

Request
DELETE /api/admin/toolsetmapping/dictionary/{dictId}/{dictItemId}
Content-Type: */*
Accept: application/json

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

                
{ }
                
              

POST /api/admin/toolsetmapping/dictionary/{dictId}/{dictItemId}/{toolsetId}

Assign toolset to dictionary field

Request Parameters
name type description constraints
dictId path long
dictItemId path  
toolsetId path long
Response Body
media type data type description
application/json HdcSuccessTO (JSON) JSON response with information if assignment was successful or not

Example

Request
POST /api/admin/toolsetmapping/dictionary/{dictId}/{dictItemId}/{toolsetId}
Content-Type: */*
Accept: application/json

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

                
{ }