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)
- abccontroller base url mapping "abc/test1" , @api(value="abccontroller" )
- xyzcontroller base url mapping "xyz/test2" , @api(value="xyzcontroller" )
- 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) ,
- abc/
- abc/test1
- xyz/test2
- abc/test3
but wanted have 3 listings ( grouping controller , @tag value property.
- xyzcontroller
- abccontroller
- abcxyzcontroller
there concept of tags in swagger. when 1 not provided, deduced @api
annotation.
try setting annotation such:
@api(value="abccontroller, tags = "abccontroller" )
Comments
Post a Comment