WS for setting configuration (relations between class fields and layers) required to calculation of area *
Get list of relations between layers and class fields
media type | data type | description |
---|---|---|
application/json | object (JSON) | 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}]}
|
GET /api/admin/areacalc/json
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
Calculate area for all object's
media type | data type | description |
---|---|---|
application/json | ModifySubtreeProcessStateTO (JSON) | JSON Response with report about object (was it updated or not) |
POST /api/admin/areacalc/recalculate
Content-Type: */*
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Add relation between layer and class field
Example of request:
{"classId":10, "fieldName":"field name", "layerId":1}
media type | data type |
---|---|
application/json | HdcFieldLayerRelationTO (JSON) |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | JSON Response indicating where operation was successfully or not |
POST /api/admin/areacalc/add/json
Content-Type: application/json
Accept: application/json
{ }
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Remove relation between layer and class field
Example of request:
{"classId":10, "fieldName":"field name", "layerName":"layer name"}
media type | data type |
---|---|
application/json | HdcFieldLayerRelationTO (JSON) |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | JSON Response indicating where operation was successfully or not |
POST /api/admin/areacalc/remove/json
Content-Type: application/json
Accept: application/json
{ }
HTTP/1.1 201 Created
Content-Type: application/json
{ }