Skip to content
skillbld
Building APIs with FastAPI · 12-day planAll days
Day 5 of 12 30 min

Put the pieces together into a complete REST resource - create, list, read, replace, update and delete books - with separate models for creating, updating and returning data, sensible URLs and status codes, and pagination.

By the end of today you can

  • Design REST-style URLs and methods for a resource
  • Implement create, list, read, update and delete endpoints
  • Use separate create, update and public models
  • Choose between PUT (replace) and PATCH (partial update)
  • Add pagination with offset and limit

What's inside

  • 5 sections
  • 3 diagrams and mind maps
  • 1 code examples you can run
  • 5-question quiz
  1. 1The design
  2. 2The models
  3. 3The API
  4. 4PUT or PATCH?
  5. 5Good API habits

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free

Keep going

Day 5: A CRUD API · Building APIs with FastAPI · SkillBld