API Reference¶
FastAPI exposes OpenAPI automatically.
Typical local endpoints:
- Swagger UI:
http://localhost:8000/docs - OpenAPI JSON:
http://localhost:8000/openapi.json
Use route-level schemas and examples in code as the canonical API contract.
FastAPI exposes OpenAPI automatically.
Typical local endpoints:
http://localhost:8000/docshttp://localhost:8000/openapi.jsonUse route-level schemas and examples in code as the canonical API contract.