Why not use minimal APIs instead? #168
nilaxann65
started this conversation in
Ideas
Replies: 1 comment
-
Nobody's preventing you to use minimal APIs, if it makes sense for your app. For small apps it's usually fine.
If you work in a typical startup building mostly CRUD, and If you are facing an issue where you think it would be better to do most things in just a controller, architecture in this repo is probably not the best choice. You can try using something simpler. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working with DDD, most of the logic resides in the commands/entities, while controllers primarily handle repetitive tasks such as mapping DTOs to commands and managing command responses. However, this could also be addressed using a generic function.
This doesn't mean that I'm suggesting we should use only one controller for the entire module, but rather, we should use criteria to segment the minimal APIs based on the use cases :)
So... why not opt for minimal APIs instead?
Beta Was this translation helpful? Give feedback.
All reactions