Rather than having multiple endpoints for aoi and export operations such as add, edit, and delete, use HTTP methods of POST, UPDATE (or PATCH), and DELETE to describe the operations.
[x] GET /aoi/add becomes POST /aoi
[x] GET /aoi/edit/:pk becomes UPDATE /aoi/:pk (perhaps PATCH)
[x] GET /aoi/delete/:pk becomes DELETE /aoi/:pk
[x] GET /aoi/:pk/generate/pointcloud becomes POST /export (or POST /aoi/:pk/export)
[x] GET /aoi/:pk/generate/raster becomes POST /export (or POST /aoi/:pk/export)
[x] GET /export/edit/:pk becomes UPDATE /export/:pk (perhaps PATCH)
[x] GET /export/delete/:pk becomes DELETE /export/:pk
Rather than having multiple endpoints for aoi and export operations such as
add
,edit
, anddelete
, use HTTP methods ofPOST
,UPDATE
(orPATCH
), andDELETE
to describe the operations.GET /aoi/add
becomesPOST /aoi
GET /aoi/edit/:pk
becomesUPDATE /aoi/:pk
(perhapsPATCH
)GET /aoi/delete/:pk
becomesDELETE /aoi/:pk
GET /aoi/:pk/generate/pointcloud
becomesPOST /export
(orPOST /aoi/:pk/export
)GET /aoi/:pk/generate/raster
becomesPOST /export
(orPOST /aoi/:pk/export
)GET /export/edit/:pk
becomesUPDATE /export/:pk
(perhapsPATCH
)GET /export/delete/:pk
becomesDELETE /export/:pk