Add V1 selected area map overlay
This commit is contained in:
+18
-1
@@ -122,7 +122,24 @@ Soft-delete in V1 preferred. Hard-delete only if storage cleanup is also impleme
|
||||
|
||||
### GET `/api/v1/projects/{project_id}/areas`
|
||||
|
||||
Returns areas for a project.
|
||||
Returns areas for a project. Area responses include persisted AOI geometry as
|
||||
GeoJSON so the frontend can display the selected area in the map workbench.
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "uuid",
|
||||
"project_id": "uuid",
|
||||
"name": "Geel Centrum AOI",
|
||||
"original_crs": "EPSG:4326",
|
||||
"area_m2": 1234.5,
|
||||
"created_at": "timestamp",
|
||||
"geometry_type": null,
|
||||
"geometry": {
|
||||
"type": "MultiPolygon",
|
||||
"coordinates": []
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### POST `/api/v1/projects/{project_id}/areas`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user