Skip to content

Group routes by first tag with delimiter #1150

Open
@jannis6023

Description

@jannis6023

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(...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions