Courses/Full-Stack Software Engineer/Build a REST API with FastAPI
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
// Curriculum

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
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?
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?
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?
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?
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?
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.

Preview free modulesBack to catalog