Minimal API example #37
|
Although there is WebAPI example, it is still not clear how to apply this pattern to modern minimal APIs. Ideally, I'd have one root and bind all the services in that composition but not sure what the proper way is. |
Answered by
NikolayPianikov
Feb 16, 2024
Replies: 2 comments 2 replies
Answer selected by
Serg046
It looks weird.
Works for me in both scenarios. Have you experimented with this example? Or your own? If you have your own, please make sure your composition is defined like this. Are you able to share it? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Serg046 I've added an example that uses a single composition root in a minimal web application. Hopefully it will clarify the use cases. Feel free to ask questions if something is not clear, I will answer and add it to the documentation.