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
Route summary tool #15
Comments
Hey @MonsieurMan !
|
@MonsieurMan ! Great Idea :) |
@thomrick Hey, just checked out swagger, it pretty much make this idea useless as for routes, but the |
OK cool ! I'll add tree command to the development plan ! |
Any some news? |
I'm willing to implement this if you can point me in the right direction @thomrick @kamilmysliwiec Right now it's not clear what was agreed on |
Any updates on this? |
Something like adonis |
crawling the .controler.ts files |
@kamilmysliwiec Don't you want to include it in the CLI? I still though that it should be possible to achieve it by static analysis similar to what we are doing here https://github.com/valueadd-poland/ng-packages/tree/master/packages/linking-tool |
Is there any option to provide it as a plugin? |
I could see it being made as a standalone command ( |
This is a very useful feature in Rails for me. Commenting here to show support. |
I don't think we can implement such feature without running the app, which ins't good because I don't want to start the app just to list all the routes 😞 Not easily, at least That is because when we use the versioning feature, it's defined at runtime below |
Any update for this one? I mean, can we just at least read the controllers and display the routes, without having to run the app... or something like that? |
@Neosoulink I believe you can do that if you manage to replicate nestjs core router. |
As much as I like the module architecture, it introduces one issue, everything is split apart. In my case I ended up maintaining a file containing all my application routes.
So I thought that it would be really simple and useful to create a command like:
nest list routes
GET /api/v1/sncf/train-stop-names
POST /api/v1/sncf/train-departures
GET /api/v1/sncf/vehicle-journey
We could also display:
It would be simple to implement (crawling the .controler.ts files) and I think would be a great way to have an overview of the project and it maybe could lead to listing other framework object or even a documentation generator in case of an API.
I'm open to discussing the idea and I'd like to do it if you see any interest in it.
The text was updated successfully, but these errors were encountered: