Course
Python Web APIs with FastAPI
Production FastAPI beyond the tutorial — validation boundaries, dependency lifetimes, authentication, background work, OpenAPI contracts, testing, and deployment patterns that scale.
Reviews
Enrolled members can rate this course.
No reviews yet.
API Foundations
Validation, dependency injection, and error design at the request boundary.
- 01Validation at the Boundary: Pydantic as a ContractWhere validation belongs, how Pydantic models differ from database models, and the migration mistakes that turn every client typo into a production incident.22mOpen
- 02Dependency Injection: Lifetimes, Not MagicWhat FastAPI dependencies really are, how request-scoped resources should behave, and how to use DI for testability without building a framework inside the framework.24mOpen
- 03Errors Clients Can Use: HTTP Semantics and Problem DetailsHow to design useful API errors, map exceptions once instead of everywhere, and avoid the two failure modes: leaking internals and returning meaningless 500s.20mOpen
Security and Correctness
Authentication, authorization, background work, and testing behavior instead of framework trivia.
- 01Authentication and Authorization Without the ConfusionSeparate identity from permission, validate JWTs correctly, model scopes and tenant access explicitly, and avoid the common FastAPI auth footguns.25mOpen
- 02Background Tasks and Jobs: Where Work Really HappensWhen FastAPI BackgroundTasks is enough, when it is dangerous, and how to design reliable asynchronous work with retries, idempotency, and visibility.23mOpen
- 03Testing FastAPI Services Like Production CodeA practical test pyramid for FastAPI: contract tests at the HTTP boundary, focused service tests, dependency overrides, and the mistakes that make suites lie.24mOpen
Contracts and Operations
OpenAPI as a contract, deployment architecture, observability, and scaling the service safely.
- 01OpenAPI as a Contract, Not a Generated DecorationDesign schemas and operation metadata deliberately, version breaking changes, generate clients safely, and use OpenAPI drift checks to prevent accidental API changes.21mOpen
- 02Deploying FastAPI: ASGI Servers, Workers, and Safe RolloutHow uvicorn, gunicorn, containers, reverse proxies, health checks, and graceful shutdown fit together — and the deployment defaults that cause mysterious production behavior.23mOpen
- 03Scaling and Operating FastAPI: Pools, Metrics, and Failure DisciplineThe operational patterns that determine whether FastAPI scales: connection pools, bounded concurrency, structured logs, metrics, tracing, and deliberate degradation.26mOpen