Hi all,
I am using Resteasy to provide REST services and swagger version 1.2.3 to document these API.
In my application.ear, I have a web application with a resteasy servlet providing some rest resources. Api docs are generated automatically through a Resource extending com.wordnik.swagger.jaxrs.listing.ApiListing exposed at /api-docs.
Now I want to create a new web application in the same application.ear to provide some other rest resources:
I have created a new extension of ApiListing to document the rest resources of the second webapp.
So I expect that
- while accessing
http://localhost:8080/app2/rest/api-docs I have to see documentation of second webapp resources.
Instead of that, whatever url I visit, I see the same documentation, specifically the first documention accessed after application deploy
- so If I deploy the application and then go to
http://localhost:8080/app1/rest/api-docs, then both url will show api docs of first web app resources
- while If I deploy the application and then go to
http://localhost:8080/app2/rest/api-docs, then both url will show api docs of second web app resources
So the question is: I'm doing something wrong or it's impossible to have multiple swagger apilisting in the same application?
Consider that it's hard for me upgrade the used swagger version :-(
Thanks a lot for your help
Antonio