Back to prompt library
FastAPI Endpoint Definition
Linked challenge: Micro-Insurance Parametric Rainfall Trigger API with FastAPI and Open-Meteo
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Create a FastAPI route `@app.post('/api/v1/check-trigger')` accepting a Pydantic request body and returning a `TriggerStatus` response.