问题
I just started working on Swagger api 2.0 recently.I am looking for some ways to organize the API documentation. Currently am using @Api(tags = {"Heading1"}) annotation to tag each api. Now the documentation looks like
Tasks
--------->Heading1
-------->Desc1
--------->Desc2
---------->Heading2
--------->Desc3
--------->Desc4
But i am looking for adding some subheadings in the doc ,so that it looks like
Tasks
--------->Heading1
-------->Desc1
--------->SubHeading1
--------->Desc2
---------->Heading2
--------->SubHeading1
--------->Desc3
--------->SubHeading1
--------->Desc4
How do i achieve this ?
回答1:
Nested tags are not supported in OpenAPI (Swagger) 2.0.
来源:https://stackoverflow.com/questions/41800330/swagger-ui-multi-level-tagging