- API: Available at http://localhost:8000
- Dashboard: Available at http://localhost:3000
For a complete list of available routes, refer to the Swagger UI or ReDoc documentation.
- HEAD, GET /openapi.json: Access the OpenAPI specification.
- HEAD, GET /docs: Access the Swagger UI documentation.
- HEAD, GET /docs/oauth2-redirect: OAuth2 redirect URI.
- HEAD, GET /redoc: Access the ReDoc documentation.
- GET /api/v1/tasks/: Retrieve all tasks.
- DELETE /api/v1/tasks/{task_id}: Delete a specific task by ID.
- DELETE /api/v1/tasks/: Delete all tasks.
- GET /api/v1/tasks/{task_id}/status: Get the status of a specific task by ID.
- POST /api/v1/recommendations/: Retrive a new recommendation.
- POST /api/v1/recommendations/aggregated: Retrive aggregated recommendations.
- POST /api/v1/upload/: Upload data.
- GET /: Root endpoint.
-
Prepare Input Data:
- Ensure your input data is in the correct JSON format as specified in the
ApiSchema.py
.
- Ensure your input data is in the correct JSON format as specified in the
-
Submit Data for Processing:
curl -X POST http://localhost:8000/api/v1/upload/ -d INPUT_DATA -H "Content-Type: application/json"
INPUT_DATA must be of type
{
"force_update":true,
"preferences":{
"long_description":false,
"search_terms":false,
"aggregated_solutions":false
},
"data": FLAMMA_OUTPUT
}
-
Verify Upload:
- Check the response to ensure the data was uploaded successfully.
-
View Report:
- Access the generated report via the Dashboard or API endpoints.
-
Check Task Status:
curl http://localhost:8000/api/v1/tasks/1/status
-
Interpret Response:
{ "status": "completed" }
-
Retrive Aggregated Recommendations:
curl -X POST http://localhost:8000/api/v1/recommendations/aggregated -d '{}' -H "Content-Type: application/json"
-
View Aggregated Recommendations:
- Access the aggregated recommendations via the API or Dashboard.