Full-Stack Software EngineerBeginner7 modules~3.5 hours hands-on3 learning modes
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
Questions this module answers
- What should you know about the working API you'll have running by the end of this course?
- How do you choose the learning path that fits where you are today?
Start moduleFree preview
01OrientationPrerequisites, expectations, and why FastAPI30 min
Questions this module answers
- How do you confirm you have the tools needed to build the API?
- What should you know about exactly what the finished notes/tasks API does?
02Project SetupVirtual environment, dependencies, and your first server30 min
Questions this module answers
- How do you create an isolated project with its dependencies installed?
- How do you confirm the server responds to a real HTTP request?
03Modeling the DataPydantic request and response schemas30 min
Questions this module answers
- What should you know about why input and output schemas should differ?
- How do you define Pydantic models for creating, updating, and returning a task?
04The CRUD EndpointsPOST, GET, PUT, and DELETE against an in-memory store30 min
Questions this module answers
- How do you implement all five CRUD endpoints against an in-memory store?
- How do you use path and query parameters correctly?
05Persistence with SQLiteSwap the in-memory store for a real database30 min
Questions this module answers
- What should you know about why in-memory storage doesn't survive a restart?
- How do you rewire the endpoints to read and write the database?
06See It RunTest the whole API with pytest and TestClient30 min
Questions this module answers
- How do you write automated tests for every endpoint with pytest and TestClient?
- How do you run the full suite and see it pass?
Ready to start Build a REST API with FastAPI?
Start with the free Module 0, then unlock the full course on a Pro plan.