FastAPI builds an OpenAPI schema from your routes, type hints and Pydantic models and serves it at /openapi.json, with an interactive Swagger UI at /docs and ReDoc at /redoc.
You can try endpoints from the browser, and the docs always match the code; improve them with summary, description, tags, response examples and field-level descriptions or examples.
Disable or move the docs in production through docs_url, redoc_url and openapi_url if needed.
Loading…