Skip to content
FastAPI
Resources
en - English
de
😉
es - español
fa
fr - français
he
id
ja - 日本語
ko - 한국어
pl
pt - português
ru - русский язык
tr - Türkçe
uk
ur
vi - Tiếng Việt
yo - Yorùbá
zh - 汉语
Initializing search
tiangolo/fastapi
FastAPI
Features
Learn
Reference - Code API
FastAPI People
Resources
About
Help
Release Notes
FastAPI
tiangolo/fastapi
FastAPI
Features
Learn
Learn
Python Types Intro
Concurrency and async / await
Tutorial - User Guide
Tutorial - User Guide
First Steps
Path Parameters
Query Parameters
Request Body
Query Parameters and String Validations
Path Parameters and Numeric Validations
Body - Multiple Parameters
Body - Fields
Body - Nested Models
Declare Request Example Data
Extra Data Types
Cookie Parameters
Header Parameters
Response Model - Return Type
Extra Models
Response Status Code
Form Data
Request Files
Request Forms and Files
Handling Errors
Path Operation Configuration
JSON Compatible Encoder
Body - Updates
Dependencies
Dependencies
Classes as Dependencies
Sub-dependencies
Dependencies in path operation decorators
Global Dependencies
Dependencies with yield
Security
Security
Security - First Steps
Get Current User
Simple OAuth2 with Password and Bearer
OAuth2 with Password (and hashing), Bearer with JWT tokens
Middleware
CORS (Cross-Origin Resource Sharing)
SQL (Relational) Databases
Bigger Applications - Multiple Files
Background Tasks
Metadata and Docs URLs
Static Files
Testing
Debugging
Advanced User Guide
Advanced User Guide
Path Operation Advanced Configuration
Additional Status Codes
Return a Response Directly
Custom Response - HTML, Stream, File, others
Additional Responses in OpenAPI
Response Cookies
Response Headers
Response - Change Status Code
Advanced Dependencies
Advanced Security
Advanced Security
OAuth2 scopes
HTTP Basic Auth
Using the Request Directly
Using Dataclasses
Advanced Middleware
Sub Applications - Mounts
Behind a Proxy
Templates
WebSockets
Lifespan Events
Testing WebSockets
Testing Events: startup - shutdown
Testing Dependencies with Overrides
Testing a Database
Async Tests
Settings and Environment Variables
OpenAPI Callbacks
OpenAPI Webhooks
Including WSGI - Flask, Django, others
Generate Clients
Deployment
Deployment
About FastAPI versions
About HTTPS
Run a Server Manually - Uvicorn
Deployments Concepts
Deploy FastAPI on Cloud Providers
Server Workers - Gunicorn with Uvicorn
FastAPI in Containers - Docker
How To - Recipes
How To - Recipes
General - How To - Recipes
SQL (Relational) Databases with Peewee
Async SQL (Relational) Databases with Encode/Databases
NoSQL (Distributed / Big Data) Databases with Couchbase
GraphQL
Custom Request and APIRoute class
Conditional OpenAPI
Extending OpenAPI
Separate OpenAPI Schemas for Input and Output or Not
Custom Docs UI Static Assets (Self-Hosting)
Configure Swagger UI
Reference - Code API
Reference - Code API
`FastAPI` class
Request Parameters
Status Codes
`UploadFile` class
Exceptions - `HTTPException` and `WebSocketException`
Dependencies - `Depends()` and `Security()`
`APIRouter` class
Background Tasks - `BackgroundTasks`
`Request` class
WebSockets
`HTTPConnection` class
`Response` class
Custom Response Classes - File, HTML, Redirect, Streaming, etc.
Middleware
OpenAPI
OpenAPI
OpenAPI `docs`
OpenAPI `models`
Security Tools
Encoders - `jsonable_encoder`
Static Files - `StaticFiles`
Templating - `Jinja2Templates`
Test Client - `TestClient`
FastAPI People
Resources
Resources
Project Generation - Template
External Links and Articles
FastAPI and friends newsletter
About
About
Alternatives, Inspiration and Comparisons
History, Design and Future
Benchmarks
Help
Help
Help FastAPI - Get Help
Development - Contributing
Release Notes
Resources
¶
Additional resources, external links, articles and more. ✈️
You can ask questions about FastAPI. Try:
How do you deploy FastAPI?
What are type hints?
What is OpenAPI?