Swagger-ui version 2.1.4 is not populating API list grouping on Controllers -


i moved swagger 1.x 2.x , swagger-ui not populating api's in controller group.

example: suppose have 3 controllers ( using spring mvc)

  1. abccontroller base url mapping "abc/test1" , @api(value="abccontroller" )
  2. xyzcontroller base url mapping "xyz/test2" , @api(value="xyzcontroller" )
  3. abcxyzcontroller base url mapping "abc/test3" , @api(value="abcxyzcontroller" )

now , when start application

it shows 4 api listing (but api url instead of @api tag value) ,

  1. abc/
  2. abc/test1
  3. xyz/test2
  4. abc/test3

but wanted have 3 listings ( grouping controller , @tag value property.

  1. xyzcontroller
  2. abccontroller
  3. abcxyzcontroller

there concept of tags in swagger. when 1 not provided, deduced @api annotation.

try setting annotation such:

@api(value="abccontroller, tags = "abccontroller" ) 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -