Backend & Systems DesignBeginner7 modules~3.5 hours hands-on
Build a REST API with FastAPI
Build a complete, tested notes/tasks CRUD API in Python with FastAPI — from an empty folder to a running, curl-able service backed by SQLite.
// What you'll be able to do- Prerequisites, expectations, and why FastAPI
- Virtual environment, dependencies, and your first server
- Pydantic request and response schemas
- POST, GET, PUT, and DELETE against an in-memory store
7 modules, built to run
Every module ships runnable code. Expand any one to see what's inside.
00IntroductionWhat you'll build and why30 min
Objective — What you'll build and why
Start moduleFree preview
01OrientationPrerequisites, expectations, and why FastAPI30 min
Objective — Prerequisites, expectations, and why FastAPI
02Project SetupVirtual environment, dependencies, and your first server30 min
Objective — Virtual environment, dependencies, and your first server
03Modeling the DataPydantic request and response schemas30 min
Objective — Pydantic request and response schemas
04The CRUD EndpointsPOST, GET, PUT, and DELETE against an in-memory store30 min
Objective — POST, GET, PUT, and DELETE against an in-memory store
05Persistence with SQLiteSwap the in-memory store for a real database30 min
Objective — Swap the in-memory store for a real database
06See It RunTest the whole API with pytest and TestClient30 min
Objective — Test the whole API with pytest and TestClient
Ready to start Build a REST API with FastAPI?
Start with the free Module 0, then unlock the full course on a Pro plan.