Skip to content

Query AOI Page API ​

API Information ​

  • Request Path: /aoi/query/page
  • Request Method: POST
  • Content-Type: application/json

Request Headers ​

ParameterTypeRequiredDescription
AuthorizationStringYesUser authentication token
Content-TypeStringYesMust be set to application/json

Request Body Structure ​

AoiListReq Object ​

FieldTypeRequiredDescriptionConstraints
pageIntegerYesPage numberMust be positive integer
sizeIntegerYesPage sizeMust be positive integer
userIdStringNoUser ID filterOptional user filter
nameStringNoAOI name filterOptional name filter

Request Body Example ​

json
{
  "page": 1,
  "size": 10,
  "userId": "user123",
  "name": "Beijing"
}

Response Body Structure ​

CommonResponse Object ​

FieldTypeDescription
codeIntegerResponse status code
messageStringResponse message
dataAoiRespAOI list response

AoiResp Object ​

FieldTypeDescription
totalLongTotal number of records
pagesIntegerTotal number of pages
aoiListList<AoiVo>List of AOI records

AoiVo Object (Nested in AoiResp) ​

FieldTypeDescription
idLongAOI ID
nameStringAOI name
geoAoiStringGeometry in WKT format
areaStringArea value
lngLatStringLongitude and latitude coordinates

Response Examples ​

Success Response ​

json
{
  "code": 200,
  "message": "success",
  "data": {
    "total": 25,
    "pages": 3,
    "aoiList": [
      {
        "id": 1,
        "name": "Beijing Urban Area",
        "geoAoi": "POLYGON((116.0 39.0, 117.0 39.0, 117.0 40.0, 116.0 40.0, 116.0 39.0))",
        "area": "16410.54",
        "lngLat": "116.5,39.5"
      }
    ]
  }
}

Failure Response ​

json
{
  "code": 400,
  "message": "Invalid request parameters",
  "data": null
}

Error Code Description ​

Error CodeDescription
200Success
400Request parameter error
401Unauthorized
500Server internal error

Usage Instructions ​

  1. This API is used to query Area of Interest (AOI) list with pagination
  2. User authentication is required
  3. Supports filtering by AOI name and sorting
  4. Returns paginated results with total count

Notes ​

  • User authentication token must be included in request headers
  • Request body must be valid JSON format
  • Pagination parameters are required
  • Users can only see their own AOIs