The above repository contains a demo version of my FastAPI training for the beginners.

Training scope

  1. Introduction
    • HTTP protocol
    • REST API
    • Tools overview
    • JSON format
    • Type annotations in Python
  2. FastAPI overview (demo available)
    • Hello world
    • Paths and routing
    • POST method, request body
    • Pydantic, request body model
    • Path parameters
    • HTTPException
    • JSONResponse, default status_code
    • DELETE and PUT methods
    • Project structure
    • Automatic documentation
  3. Databases
    • SQL, pgAdmin
    • Psycopg2
    • SQLAlchemy
    • Secrets management
  4. CRUD application
    • CRUD letters
    • Implementation in psycopg2
    • Implementation in SQLAlchemy
    • Response model
    • Query parameters
  5. Other topics
    • Passwords hashing
    • Authentication and authorization
    • Middleware
    • Application frontend