wkennedy / swagger4spring-web

Swagger support for Spring MVC
89 stars 46 forks source link

Issue when splitting controller in two different classes #73

Open rsallar opened 10 years ago

rsallar commented 10 years ago

Hi, I previously have a unique Controller class level with annotation @RequestMapping({"/v1/global"}) with two methods annotated with @RequestMapping(value="/m1/f1") and @RequestMapping(value="/m2/f1")

And swagger showed only a single point /global with two more points /global/m1 and /global/m2. great.

Later I divided the controller with two controller classes. The first one annotated with @RequestMapping({"/v1/global/m1"}) with a method annotated with @RequestMapping({"f1"})

And another class annotated with @RequestMapping({"/v1/global/m2"}) with a method annotated with @RequestMapping({"f1"})

And now swager shows two top level entries: m1 and m2. How can I get back a single point named global?

Thankyou.