I think the only way you can do this is if you configure one of the servlets to scan both packages.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You can do this with some hacking in swagger-core 1.5.0-SNAPSHOT but not in 1.3.x as the swagger object in 1.3.x is a static global, and cannot vary inside a single class loader.
On Dec 2, 2014, at 9:35 AM, Ron <web...@gmail.com> wrote:
It's a limitation of swagger-core, not of Swagger. It's not really such a common use case that we were asked to support so far.
On 2 December 2014 at 19:29, Peter Varga <peter...@gmail.com> wrote:
Well, I don't want to do that because I want each servlet to serve a different API.One can have as many servlets as desired, and Jersey has no issues with this. All paths to Jersey APIs are relative to the servlet's URL.So this is a limitation in Swagger? Some state is global/static when it shouldn't be?
On Thursday, November 27, 2014 3:49:42 PM UTC-5, tony tam wrote:I think the only way you can do this is if you configure one of the servlets to scan both packages.
On Thursday, November 27, 2014 10:04:26 AM UTC-10, Peter Varga wrote:I'm using Swagger with JAX-RS + Jersey. So far we've had 1 single API:/v1Now we need to add another/v2Both of these are served by the same war file, via a separate <servlet> in the web.xml.I would like to get the Swagger resource listing using/v1/api-docs-v1/v2/api-docs-v2I've defined my own classes that extend the ApiListingResource class, but I'm not having much luck. Swagger seems to cache the resource listing. I always get the resource listing for whichever one was invoked first.Is what I'm trying to do possible or is this just not going to work?Thanks
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.