How can I expose my Rest services in multiple swagger pages.

I am using Spring boot to create some Rest services. How can I expose my Rest services in multiple swagger pages. For example All delete methods be in a separated page!

1 answer

  • answered 2018-10-17 08:09 Arnaud

    You may use tags to alter the grouping like explained here : Grouping Operations With Tags.

    Here is an example annotation you could have on your controller methods :

    @ApiOperation(tags = { "delete" }, value = "this API operation will be grouped under the delete section", nickname = "myMethod")