Icon mapping admin API Resource

WS for class icon mapping

GET /admin/iconmapping/class

Get list of icon class mappings

Response Body
media type data type description
*/* object JSON with list of mappings

Example of response:

{"list":[{"classId":111,"classLabel":"Document","icon":{"id":2940,"name":"hammer.PNG","width":78,"height":97}},{"classId":461,"classLabel":"Equipment","icon":{"id":1927,"name":"1508494112714_1352472640.png","width":94,"height":95}},{"classId":127,"classLabel":"Contract","icon":{"id":2941,"name":"allert.PNG","width":85,"height":83}},{"classId":105,"classLabel":"Building","icon":{"id":1764,"name":"bad-icon.jpg","width":90,"height":90}}]}

DELETE /admin/iconmapping/class/{classId}

Unassign icon from class

Request Parameters
name type description default constraints
classId path - id of class   long
Response Body
media type data type description
*/* object JSON response with information if unassignment was successful or not

POST /admin/iconmapping/class/{classId}/{iconId}

Assign icon to class

Request Parameters
name type description default constraints
classId path - id of class   long
iconId path - id of icon   long
Response Body
media type data type description
*/* object JSON response with information if assignment was successful or not