Learn FastAPI by writing real code
Build real Python APIs, explained like you are five: routes, Pydantic models, databases, auth, tests and deployment, with the project folders shown and a todo API capstone.
Each chapter explains one idea, shows a worked example and then asks you to write and run your own FastAPI code in the browser, with tests that check your answer.
Anyone can read the chapter list. The chapters themselves are part of licode Club.
FastAPI chapters
- What Is an API?
- Python Warm-up for APIs
- Your First FastAPI App
- Path Parameters
- Query Parameters
- Request Bodies with Pydantic
- Responses and Status Codes
- Errors and Validation
- Routers and Project Structure
- Dependencies
- Connecting a Database
- CRUD End to End
- Async and Await
- Users, Passwords and Tokens
- Middleware, CORS and Headers
- Background Tasks and File Uploads
- Testing Your API
- Settings, Secrets and Logging
- Deploying FastAPI
- Capstone: A Todo API