Skip to content

Group routes by first tag with delimiter #1150

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

Open
jannis6023 opened this issue Mar 30, 2025 · 0 comments
Open

Group routes by first tag with delimiter #1150

jannis6023 opened this issue Mar 30, 2025 · 0 comments

Comments

@jannis6023
Copy link

jannis6023 commented Mar 30, 2025

I group my API Routes in the swagger by naming my tags by the "category" - e.g. routes starting with /tenants/:tenantId/users/:userId has tag /tenants/users as it is affecting users in tenants.
I found that sta currently supports the "split by first tag", but this would make swagger typescript api more advanced and more seeming like APIs generated by e.g. OpenAPI or Stripe.

I guess it would be easy if you specify a delimiter in the command, e.g. /. Then grouping "underneath". So just a new child object containing the endpoints.

Then you could use the request from the example above via api.tenants.users.getUser(...).

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

1 participant