C
C#14mo 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
Zuzie14mo ago
I think swashbuckle will group endpoints by tag if you add a Tags attribute to each controller [Tags("Pet")]
Accord
Accord14mo 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.