Area calculation configuration admin API Resource

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

GET /api/admin/areacalc/json

Get list of relations between layers and class fields

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

Example

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

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

                
...
                
              

POST /api/admin/areacalc/recalculate

Calculate area for all object's

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

Example

Request
POST /api/admin/areacalc/recalculate
Content-Type: */*
Accept: application/json

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

                
{ }
                
              

POST /api/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 HdcFieldLayerRelationTO (JSON)
Response Body
media type data type description
application/json HdcSuccessTO (JSON) JSON Response indicating where operation was successfully or not

Example

Request
POST /api/admin/areacalc/add/json
Content-Type: application/json
Accept: application/json

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

                
{ }
                
              

POST /api/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 HdcFieldLayerRelationTO (JSON)
Response Body
media type data type description
application/json HdcSuccessTO (JSON) JSON Response indicating where operation was successfully or not

Example

Request
POST /api/admin/areacalc/remove/json
Content-Type: application/json
Accept: application/json

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

                
{ }