extra credit Search 85,062 technologies ⌘K Download for Mac

FastAPI

Category
Frameworks and libraries
Docs outline
18 sections

Official docs outline

fastapi.tiangolo.com
  1. First Steps

    Creating a FastAPI app, path operation decorators and functions, HTTP methods, running with uvicorn, automatic OpenAPI docs.

  2. Path and Query Parameters

    Declaring path parameters with type hints and Enums, query parameters, defaults, optional values, and automatic type conversion and validation.

  3. Request Body

    Declaring request bodies with Pydantic models, multiple body parameters, Body fields, nested models, and example data.

  4. Parameter Validation

    Query and Path with string and numeric constraints, min/max length, regex patterns, Annotated metadata, and query parameter models.

  5. Headers, Cookies, Forms and Files

    Header and cookie parameters, form data, file uploads with UploadFile, and parameter models for headers and cookies.

  6. Response Models and Status Codes

    response_model and return type filtering, extra models, response_model_exclude_unset, status codes, and JSON compatible encoding.

  7. Handling Errors

    HTTPException, custom exception handlers, overriding validation error handlers, and returning error responses.

  8. Dependencies and Dependency Injection

    Depends, classes as dependencies, sub-dependencies, global dependencies, dependencies with yield for setup and teardown, and dependency overrides.

  9. Security and Authentication

    OAuth2 password flow, bearer tokens, JWT, password hashing, get current user, OAuth2 scopes, and HTTP basic auth.

  10. Middleware and CORS

    HTTP middleware, request/response interception, CORSMiddleware, and cross-origin configuration.

  11. SQL Databases

    Using SQLModel or SQLAlchemy with FastAPI, session dependencies, CRUD operations, and database models versus API models.

  12. Bigger Applications

    APIRouter, splitting an app across multiple files, router prefixes, tags, and include_router.

  13. Background Tasks

    BackgroundTasks for post-response work, adding tasks, and using them with dependencies.

  14. Streaming, WebSockets and Server-Sent Events

    WebSocket endpoints, streaming responses, server-sent events, and real-time bidirectional communication.

  15. Lifespan Events and Settings

    Startup and shutdown lifespan context managers, Pydantic settings, and environment variable configuration.

  16. Testing

    TestClient, dependency overrides in tests, async tests, and testing WebSockets and lifespan events.

  17. Advanced Responses and OpenAPI

    Custom response classes, returning Response directly, additional responses, OpenAPI customization, callbacks, webhooks, and generated clients.

  18. Sub Applications, Proxies and WSGI

    Mounting sub-applications, running behind a reverse proxy with root_path, and including WSGI apps like Flask.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 113
↑↓ move ↵ open