Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating URIs for Routes #79

Closed
dcomartin opened this issue Dec 14, 2017 · 3 comments
Closed

Generating URIs for Routes #79

dcomartin opened this issue Dec 14, 2017 · 3 comments

Comments

@dcomartin
Copy link

Ability to generate a URI for another Botwin route? Similar to Nancy.Linker. This would likely need to give name to the route so you can resolve it.

My primary usage for this is hypermedia and returning URIs for relevant routes.

@jchannon
Copy link
Member

https://khalidabuhakmeh.com/generate-links-to-aspnet-core-map-endpoints nerd sniping @khalidabuhakmeh

@jchannon
Copy link
Member

Nerd sniping failed...

@jchannon
Copy link
Member

I think you can now use the asp.net core link generator https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.routing.linkgenerator?view=aspnetcore-8.0

Example usage - https://poornimanayar.co.uk/blog/minimal-apis-and-hateoas/

Let me know what you think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants