Topic
FastAPI
Build REST APIs with FastAPI: routes, Pydantic models and validation, databases, authentication and testing.
Start with: FastAPI Request and Response Models with Pydantic
1 article in 1 topic
Models and Validation
- FastAPI Request and Response Models with Pydantic: Design the JSON on Purpose
Stop sending your database rows to clients. A BookRequest model decides what may come in, a BookResponse model decides what goes out, and an internal shelf_code stays in the database.