Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Independent

Learn FastAPI

via Independent

Overview

Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
This section provides introductory guides and comprehensive tutorials for learning FastAPI. Considered the official and recommended way to grasp the framework, it covers everything from fundamental Python types and asynchronous programming to advanced topics like security, deployment, and testing. FastAPI is a modern, fast (high-performance) web framework for building APIs with Python 3.8+ based on standard Python type hints. It is designed to be easy to learn, fast to code, and ready for production environments.

Syllabus

  • Python Types Intro
  • Concurrency and async / await
  • Environment Variables
  • Virtual Environments
  • Tutorial - User Guide
    • First Steps
    • Path Parameters
    • Query Parameters
    • Request Body
    • Query Parameters and String Validations
    • Path Parameters and Numeric Validations
    • Query Parameter Models
    • Body - Multiple Parameters
    • Body - Fields
    • Body - Nested Models
    • Declare Request Example Data
    • Extra Data Types
    • Cookie Parameters
    • Header Parameters
    • Cookie Parameter Models
    • Header Parameter Models
    • Response Model - Return Type
    • Extra Models
    • Response Status Code
    • Form Data
    • Form Models
    • Request Files
    • Request Forms and Files
    • Handling Errors
    • Path Operation Configuration
    • JSON Compatible Encoder
    • Body - Updates
    • Dependencies
      • Classes as Dependencies
      • Sub-dependencies
      • Dependencies in path operation decorators
      • Global Dependencies
      • Dependencies with yield
    • Security
      • Security - First Steps
      • Get Current User
      • Simple OAuth2 with Password and Bearer
      • OAuth2 with Password (and hashing), Bearer with JWT tokens
    • Middleware
    • CORS (Cross-Origin Resource Sharing)
    • SQL (Relational) Databases
    • Bigger Applications - Multiple Files
    • Stream JSON Lines
    • Server-Sent Events (SSE)
    • Background Tasks
    • Metadata and Docs URLs
    • Frontend
    • Static Files
    • Testing
    • Debugging
  • Advanced User Guide
    • Stream Data
    • Path Operation Advanced Configuration
    • Additional Status Codes
    • Return a Response Directly
    • Custom Response - HTML, Stream, File, others
    • Additional Responses in OpenAPI
    • Response Cookies
    • Response Headers
    • Response - Change Status Code
    • Advanced Dependencies
    • Advanced Security
      • OAuth2 scopes
      • HTTP Basic Auth
    • Using the Request Directly
    • Using Dataclasses
    • Advanced Middleware
    • Sub Applications - Mounts
    • Behind a Proxy
    • Templates
    • WebSockets
    • Lifespan Events
    • Testing WebSockets
    • Testing Events: lifespan and startup - shutdown
    • Testing Dependencies with Overrides
    • Async Tests
    • Settings and Environment Variables
    • OpenAPI Callbacks
    • OpenAPI Webhooks
    • Including WSGI - Flask, Django, others
    • Generating SDKs
    • Advanced Python Types
    • JSON with Bytes as Base64
    • Strict Content-Type Checking
  • FastAPI CLI
  • Editor Support
  • Deployment
    • About FastAPI versions
    • FastAPI Cloud
    • About HTTPS
    • Run a Server Manually
    • Deployments Concepts
    • Deploy FastAPI on Cloud Providers
    • Server Workers - Uvicorn with Workers
    • FastAPI in Containers - Docker
  • How To - Recipes
    • General - How To - Recipes
    • Migrate from Pydantic v1 to Pydantic v2
    • GraphQL
    • Custom Request and APIRoute class
    • Conditional OpenAPI
    • Extending OpenAPI
    • Separate OpenAPI Schemas for Input and Output or Not
    • Custom Docs UI Static Assets (Self-Hosting)
    • Configure Swagger UI
    • Testing a Database
    • Use Old 403 Authentication Error Status Codes

Reviews

Start your review of Learn FastAPI

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.