Grin: endpoint to link all the other endpoints

Created on 17 Nov 2017  路  2Comments  路  Source: mimblewimble/grin

I have trouble remembering the exact format for all of the available endpoints and keep having to dig into the code to get them. Provide a single 'index' endpoint that displays all of the available endpoints. Can probably just serve up a simple html page from the disk, or if we want to get really fancy, probe all of the available endpoints from the router and build it up dynamically

enhancement good first issue help wanted

Most helpful comment

The REST purists always point out that all endpoints should be discoverable through links. So maybe automatically have /v1 list all endpoints that have been added to hyper?

All 2 comments

The REST purists always point out that all endpoints should be discoverable through links. So maybe automatically have /v1 list all endpoints that have been added to hyper?

Would be nice if the iron router allowed some kind of introspection to list the registered endpoints but it looks like all the routing internals are kept private.
Shouldn't be too much work to maintain our own state as we go through the routing initialization.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lehnberg picture lehnberg  路  5Comments

garyyu picture garyyu  路  6Comments

shrikus picture shrikus  路  6Comments

Makadu59 picture Makadu59  路  6Comments

ignopeverell picture ignopeverell  路  3Comments