Skip to main content
New Self-paced AI courses — learn ML, deep learning, and agents on your schedule. Enroll free

Python and FastAPI

Module 19 · FastAPI foundations: your first API

What an API is, installing FastAPI, your first endpoints, how FastAPI works under the hood, automatic docs, validation, dependencies and error handling at a glance.

10 lessons Follow in order
Use the button below to sign in and unlock lessons.
Your path

Lessons in sequence

Work through these in order—each lesson builds on the previous one.

  1. Lesson 1 of 10

    19.1 What is an API, and why FastAPI?

    Enroll to open · 22 min read

  2. Lesson 2 of 10

    19.2 Installing FastAPI and your first endpoint

    Enroll to open · 24 min read

  3. Lesson 3 of 10

    19.3 HTTP, JSON and status codes in FastAPI

    Enroll to open · 26 min read

  4. Lesson 4 of 10

    19.4 Path operations: GET, POST, PUT, PATCH, DELETE

    Enroll to open · 30 min read

  5. Lesson 5 of 10

    19.5 How FastAPI works: ASGI, Starlette and Pydantic

    Enroll to open · 32 min read

  6. Lesson 6 of 10

    19.6 Interactive docs: Swagger UI, ReDoc and OpenAPI

    Enroll to open · 22 min read

  7. Lesson 7 of 10

    19.7 Routes and dependency injection (first look)

    Enroll to open · 24 min read

  8. Lesson 8 of 10

    19.8 Request validation with Pydantic (first look)

    Enroll to open · 24 min read

  9. Lesson 9 of 10

    19.9 Error handling in APIs (first look)

    Enroll to open · 24 min read

  10. Lesson 10 of 10

    19.10 Serving models safely

    Enroll to open · 26 min read

← Back to course