What is the 'Request Model' and 'Response Model'?
Updated Apr 28, 2026
Short answer
These are the specific data structures used to send data into and receive data from a Use Case.
Deep explanation
To prevent the Use Case from depending on the UI (Request) or the Database (Entity directly), we use Request/Response models. The Use Case takes a Request Model and returns a Response Model. The Presenter then takes the Response Model to build the View.
Real-world example
Filtering out a 'password_hash' from a User Entity before sending the data back to the frontend.
Common mistakes
- Returning raw Entities from a Use Case.
Follow-up questions
- Can the Request Model be the same as a DTO?