OpenAPI Specs

The OpenAPI specifications for the SamGIS app.

POST /infer_samgis

Infer Samgis

Example request:

POST /infer_samgis HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "id": "string",
    "bbox": {
        "ne": {
            "lat": 1.0,
            "lng": 1.0
        },
        "sw": {
            "lat": 1.0,
            "lng": 1.0
        }
    },
    "prompt": [
        {
            "type": "point",
            "data": {
                "lat": 1.0,
                "lng": 1.0
            },
            "label": 0
        },
        {
            "type": "rectangle",
            "data": {
                "ne": {
                    "lat": 1.0,
                    "lng": 1.0
                },
                "sw": {
                    "lat": 1.0,
                    "lng": 1.0
                }
            }
        }
    ],
    "zoom": 1,
    "source_type": "string",
    "debug": true
}
Status Codes:
  • 200 OK

    Successful Response

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {}
    

  • 422 Unprocessable Entity

    Validation Error

    Example response:

    HTTP/1.1 422 Unprocessable Content
    Content-Type: application/json
    
    {
        "detail": [
            {
                "loc": [
                    "string",
                    1
                ],
                "msg": "string",
                "type": "string",
                "input": {},
                "ctx": {}
            }
        ]
    }