Web, data & APIs · Course 4 of 8
FastAPI and HTTPX in practice
Fourteen offline API lessons: requests, response models, dependencies, routers, middleware, background tasks, HTTP clients and a small CRUD service.
- 14 lessons
0 of 14 lessons passed
Lessons
Progress and your code are kept in this browser only.
- Run an API without opening a socket
- Validate query bounds at the route
- Validate a JSON request body
- Filter output through a response model
- Turn a missing resource into HTTP 404
- Inject a request dependency
- Replace a dependency in a test
- Compose routes under a prefix
- Add a response header in middleware
- Observe an awaited background task
- Inspect a client request with MockTransport
- Separate HTTP status from transport failure
- Share one async client across a batch
- Build a small isolated CRUD application