Ibrahim S. Gerbiqi
Ibrahim S. Gerbiqi

Reputation: 264

Grouping different routes within same controller with swagger on NestJs

I have an application that has multiple controllers that those controllers have within them 2 routes @Controller(['1/:someParam', '/2/:someParam']) but when I create swagger it shows both of them within the same group, what I need is to be able to group those as well.

Is there any possible way to create such a thing?

Upvotes: 0

Views: 2020

Answers (1)

Shamkhal Zeynalzade
Shamkhal Zeynalzade

Reputation: 57

You can use ApiTags. @ApiTags('firsturl', 'secondurl') ApiTags accept string array as parameter.

Upvotes: 2

Related Questions