ash-project / ash_json_api

The JSON:API extension for the Ash Framework
https://hexdocs.pm/ash_json_api
MIT License
58 stars 41 forks source link

See all project's routes with a simple command #130

Open gcugnet opened 5 months ago

gcugnet commented 5 months ago

Is your feature request related to a problem? Please describe. It is always useful to have a global and concise view of all routes available on your project.

Describe the solution you'd like It would be nice to be able to see the routes in you app's default router + the routes generated from Ash framework in a single view. Something like

mix phx.route

But which would show Ash generated routes in addition to the default router's "hand-written" routes.

Describe alternatives you've considered For now we can use the command described in the AshJsonApi doc:

AshJsonApi.Resource.Info.routes/1

source = https://hexdocs.pm/ash_json_api/getting-started-with-json-api.html#run-your-api

Express the feature either with a change to resource syntax, or with a change to the resource interface

I don’t know.

Additional context

I have nothing more to say.

zachdaniel commented 5 months ago

Great idea :)