OpenAPI Specs¶
This API is under oauth authentication for the self-hosted version (now it works as a lambda AWS). Contact the maintainer/administrator for more info about this.
- POST /lambda-ml-fastsam-api¶
Make GIS ML predictions
Example request:
POST /lambda-ml-fastsam-api HTTP/1.1 Host: example.com Content-Type: application/json { "bbox": { "ne": { "lat": 1.0, "lng": 1.0 }, "sw": { "lat": 1.0, "lng": 1.0 } }, "prompt": [ { "id": 1, "type": "string", "data": { "lat": 1.0, "lng": 1.0 }, "label": 1 } ], "zoom": 1, "source_type": "string" }
- Status Codes:
200 OK –
successful operation
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "n_predictions": 1, "geojson": "string", "n_shapes_geojson": 1, "duration_run": 1.0, "message": "string", "request_id": "string" }
Bad request
Example response:
HTTP/1.1 400 Bad Request Content-Type: application/json { "duration_run": 1.0, "message": "string", "request_id": "string" }
Unprocessable Entity
Example response:
HTTP/1.1 422 Unprocessable Entity Content-Type: application/json { "duration_run": 1.0, "message": "string", "request_id": "string" }
Internal Server Error
Example response:
HTTP/1.1 500 Internal Server Error Content-Type: application/json { "duration_run": 1.0, "message": "string", "request_id": "string" }