Consider extensions for Minimal API #174
TWolversonReply
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm giving this project a first look just now, and it seems promising.
One thought that occurred to me was that the typical structure of Minimal API projects fairly closely mirrors the structure expected by the APIOps tooling, for obvious reasons. Each method roughly corresponds to an operation, each MapGroup roughly corresponds to an API.
Would it make sense to have an option to define the IDocument method bodies as extensions to Minimal API action methods? This would allow you to express the desired proxying configuration to support calling your API from the outside world within the API, as opposed to defining them in separate classes.
Given a code example lifted from the documentation:
Suppose we add:
Naming and factoring obviously open to discussion.
Beta Was this translation helpful? Give feedback.
All reactions