You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(...).
The text was updated successfully, but these errors were encountered:
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(...)
.The text was updated successfully, but these errors were encountered: