I just started working on Swagger 2.0 API recently. I am looking for some ways to organize the API documentation.
Currently I'm using the @Api(tags = {"Heading1"})
Java annotation to tag each API. The generated documentation looks like
Tasks
--------->Heading1
-------->Desc1
--------->Desc2
---------->Heading2
--------->Desc3
--------->Desc4
I'd like to add 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?