API Endpoints¶
Denzel exposes three different endpoints for end users.
All endpoints are relative to the host. For example if deployed locally on the default port the endpoint
/info
means localhost:8000/info
Endpoints
/info¶
-
GET
/info
¶ Endpoint for deployment information. Basically returns the content of
app/assets/info.txt
.
/predict¶
-
POST
/predict
¶ Endpoint for performing predictions
Request Headers: - Accept – application/json
Form Parameters: - body – Data necessary for prediction, should match the interface defined
Status Codes: - 200 OK – Request accepted and entered the task queue
- 400 Bad Request – Failed to in the reading / verification process.
/status/{task_id}¶
-
GET
/status/
(str: task_id)¶ Endpoint for checking a task status
Parameters: - task_id – Task ID