All frameworks
FastAPI

FastAPI

Build production-ready APIs with FastAPI through hands-on challenges, one concept at a time.

FastAPI 0.139FastAPI 0.139Python 3.13Python 3.13
Module 1

Path Operations & Routing

Learn how FastAPI turns URLs into handlers: typing the values inside the path so conversion and rejection happen before your code runs, ordering fixed paths ahead of parameterized ones, constraining a segment to a fixed set of choices, and capturing a whole nested path in one parameter.

4

Typed Path Parameters

easy3 / 3 solved

Route Order And Fixed Paths

easyNo attempts yet

Enum Constrained Categories

easyNo attempts yet

Storage Browser Routes

easy1 / 2 solved
Module 2

Query Parameters

Learn how FastAPI reads the values that arrive in the address bar: declaring them so they convert themselves, filling in the ones a caller leaves out, putting limits on what is allowed, collecting a parameter sent more than once, and binding a public name Python cannot spell.

4

Optional Search Filters

easyNo attempts yet

Constrained Query Rules

easyNo attempts yet

Repeated And Aliased Parameters

easyNo attempts yet

Catalog Search Contract

easyNo attempts yet
Module 3

Request Body and Pydantic Models

Learn how FastAPI reads what a caller sends in the body: describing its shape as a model, giving optional parts sensible defaults, putting a rule on every field, refusing keys the model never declared, and nesting models inside each other so a mistake is reported at the exact place it happened.

4

Item Creation Model

easyNo attempts yet

Field Constrained Order

easyNo attempts yet

Nested Shipment Structure

easyNo attempts yet

Booking Request Payload

easyNo attempts yet
Module 4

Response Models and Status Codes

Learn how FastAPI shapes what leaves your API: declaring a response model so internal values never escape, answering each outcome with the code it deserves, tuning how much of a record goes on the wire, and publishing the same contract in the generated description.

4

Filtered User Response

easyNo attempts yet

Correct Creation Codes

easyNo attempts yet

Serialization Tuning

easyNo attempts yet

Accounts API Output Contract

easyNo attempts yet