Swagger UI Multi level tagging

丶灬走出姿态 提交于 2019-12-20 03:32:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!