Routing and HTTP methods
Create a Python API and define routes and HTTP methods with FastAPI.
Routes, Pydantic validation, dependencies, database sessions, authentication, testing, and deployment with FastAPI.
8 chapters · 28 topics
Create a Python API and define routes and HTTP methods with FastAPI.
Validate requests, return responses, share dependencies, organize routers, and choose async or sync handlers.
Model database records, load relationships, and manage synchronous and asynchronous transactions.
Add password authentication, bearer tokens, ownership checks, and authorization scopes.
Test endpoints and lifecycle behavior, configure middleware, and handle forms and files.
Manage application resources, background work, streaming connections, OpenAPI, and advanced routes.
Deploy an API with appropriate processes, proxies, database access, and operational safeguards.
Review API patterns, common mistakes, terminology, and official reference material.