Replies: 1 comment 2 replies
-
No, your request/responses are defined at one layer too deep. Request/response/handlers should be defined at the application level, where each API endpoint has a distinct request and handler. Maybe not a distinct response, as it is common for multiple API endpoints to return the same response. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've got a CRUD web api with code managed as features. So I've got GetAll, GetById, Create, Update and Delete features with corresponding requests/handlers.
When I create or update my entity, I need to return my entity, which is the same code/feature as GetById.
So my question, is it a good idea to send multiple request from a single endpoint?
Here is what would be the result in my controller.
Regards
Beta Was this translation helpful? Give feedback.
All reactions