C
C#2y ago
dela

❔ OpenAPI add TAG swagger

Hi, I have an api with two controllers and I'm using swashbuckle to generate the swaggers. What I do is later get the json from the swagger and export it to docusaurus so that the documentation is generated automatically. The problem is that within docusaurus it is not shown divided by tags. For example. I have the controller named "pets" and another controller called "users" I want their respective endpoints to be seen within pets and the same with users. Is there some configuration of swashbuckle or something else that can divide each controller by tags? Thanks
2 Replies
Zuzie
Zuzie2y ago
I think swashbuckle will group endpoints by tag if you add a Tags attribute to each controller [Tags("Pet")]
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server