Layer Owner API Resource

HDC Global layer Web Service

GET /layerowner/layers/json/{vectorDrawingId}

Get layers for vector drawing

Request Parameters
name type description default constraints
vectorDrawingId path Vector Drawing ID   long
Response Body
media type data type description
*/* object JSON with list of layers on given vector drawing

Example of response:

{"list":[{"layerId":"3443","layerName":"Layer1","layerStyle":"fill-opacity:1;stroke-opacity:1;stroke-width:1","isPublic":false,"isEditable":true,"ownerId":"71","ownerName":"User1","style":{"fill-opacity":"1","stroke-opacity":"1","stroke-width":"1"},"toolset":{"id":"3248","objectName":"Layer1","style":{"fill-opacity":"1","stroke-opacity":"1","stroke-width":"1"}}},{"layerId":"1","layerName":"BRA","layerStyle":"fill:none;stroke-width:0.05","isPublic":true,"isEditable":true,"ownerId":"5","ownerName":"Admin","style":{"fill":"none","stroke-width":"0.05"},"toolset":{"id":"91","objectName":"layer_BRA","style":{"fill":"none","stroke-width":"0.05"}}}]}

POST /layerowner/{drawingType}/{vectorId}/{layerId}/{userId}

Request Parameters
name type description default constraints
drawingType path   required int
layerId path   long
userId path   long
vectorId path   long
Response Body
media type data type description
*/* object