Replies: 2 comments 2 replies
-
@Tratcher I was wondering if you had any suggestions regarding the Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
There are no docs for the level of detail you are looking at. This is framework author level docs and we don’t prioritize those. We expect 1% of people to create these implementations, that said, if there’s something you are trying to accomplish, we can point you in the right direction. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I've been searching for a few days for guides as to implementing my own Endpoints via an
EndpointDataSource
implementation. Where I'm struggling the most is finding information on which metadata objects are used for Authorization/Authentication, HttpMethods, Host, etc. As well as there is seemingly only the source code for YARP and this blog to go off of for seeing how to implementEndpointDataSource
.I can see them used in YARP:
EndpointDataSource
Metadata Add
But am wondering if there are any plans to more formally document how someone might go about creating an endpoint implementation.
I understand that in the following example I would miss out on any "minimal api" specific functionality but believe I should be able to augment this RouteEndpoint, (or a custom Endpoint and Matcher? / IRouter?) to plug into other middleware functionality like Auth.
Mostly I'm looking for:
How can I know when to do this and with what classes/instances?
Are there any plans to break out the
Metadata.Add
calls intoConventionBuilders
for each concern? So that someone building a library could callMy goal: register endpoints based on a custom spec. similar to YARP.
My concern: I use yarp's code as a guide but wont be able to know if the Metadata objects ever have breaking changes.
My hope: Explicit docs, guides, or public API's that guide a developer to success by default.
I am willing to collaborate/contribute as I can. If there were any guidance on this I'd be happy to pick it up to build a proposal but I'm starting somewhat in the dark based on all information I could find.
Any discussion is welcome. Thanks
Beta Was this translation helpful? Give feedback.
All reactions