kongchen / swagger-maven-plugin

JAX-RS & SpringMVC supported maven build plugin, helps you generate Swagger JSON and API document in build phase.
http://kongchen.github.io/swagger-maven-plugin/
Apache License 2.0
761 stars 450 forks source link

JAX RS @Path with muti segments #54

Closed perabello closed 10 years ago

perabello commented 10 years ago

I have a service with this path: /companies/tgss The generation with swagger-maven-plugin runs for the strapdown.html file, but not for services.json. In service.json the path is changed by "/companies_tgss.{format}"

kongchen commented 10 years ago

Try to disable useOutputFlatStructure

<useOutputFlatStructure>false</useOutputFlatStructure>
perabello commented 10 years ago

With this tag, the path is correct in service.json But swagger-ui still shows "tgss" instead of "companies/tgss". Should I open a issue for it in swagger-ui foro?