Course Curriculum
10 interactive lessons with real-time autograding
Introduction to FastAPI
Modern Python APIs, async foundations, Swagger docs, and first route.
Path & Query Parameters
Route parameters, type validation, query strings, and optional fields.
Request Bodies & Pydantic
Data schemas with BaseModel, Field validation, and nested structures.
Responses & Errors
Status codes, response_model, HTTPException, and custom error handlers.
Building a CRUD API
Complete Create, Read, Update, Delete resource lifecycle.
Dependencies
FastAPI Depends system, code reuse, auth checks, and database sessions.
Databases & SQLModel
Connecting to SQLite/PostgreSQL with SQLModel and async sessions.
Authentication & Security
OAuth2 with Password flow, JWT tokens, and password hashing.
Testing FastAPI
Pytest, TestClient, API test fixtures, and status assertions.
Serving ML Models
Loading scikit-learn/onnx models, inference endpoints, and Dockerization.