Concept Flow - Response model declaration
Define Pydantic model
Create FastAPI app
Declare endpoint with response_model
Client sends request
Endpoint returns data
FastAPI validates and filters response
Client receives filtered response
This flow shows how FastAPI uses a Pydantic model to declare the shape of the response data, validates it, and sends only the declared fields back to the client.