Area calculation configuration admin API Resource

WS for setting configuration (relations between class fields and layers) required to calculation of area *

GET /admin/areacalc/json

Get list of relations between layers and class fields

Response Body
media type data type description
application/json object JSON Response with list of relations

Example of response:

{"list":[{"classId":10, "classLabel":"class label", "className":"class name", "fieldName":"field name", "layerName":"layer name", "layerId":1}]}

POST /admin/areacalc/recalculate

Calculate area for all object's

Response Body
media type data type description
application/json object JSON Response with report about object (was it updated or not)

POST /admin/areacalc/add/json

Add relation between layer and class field

Example of request:

{"classId":10, "fieldName":"field name", "layerId":1}

Request Body
media type data type
application/json object
Response Body
media type data type description
application/json object JSON Response indicating where operation was successfully or not

POST /admin/areacalc/remove/json

Remove relation between layer and class field

Example of request:

{"classId":10, "fieldName":"field name", "layerName":"layer name"}

Request Body
media type data type
application/json object
Response Body
media type data type description
application/json object JSON Response indicating where operation was successfully or not