Response Models: Choosing What Goes Out
A response model says exactly which fields a route sends back, set by the route's return type or by response_model=, so separate models for what comes in and what goes out keep fields such as staff notes and password hashes inside the API.
Updated

- Category
- FastAPI
- Level
- Journeyman
- Tags
- BaseModel, fastapi, Mass Assignment, python, Response Model