Finally i found the solution. I registred explicitely ApiListingResource &
SwaggerSerializers
ResourceConfig resourceConfig = new ResourceConfig();
resourceConfig.packages("com.fiftyfive.services.apis",
"io.swagger.jaxrs.listing");
ServletContainer servletContainer = new ServletContai
:
>
> You’d need to check you application logs to see why you’re getting 500.
> You might need to bump up the log levels.
>
>
>
>
>
>
>
> *From: *> on behalf of Dali <
> moh...@fifty-five.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " &
wrote:
>
> You’d need to check you application logs to see why you’re getting 500.
> You might need to bump up the log levels.
>
>
>
>
>
>
>
> *From: *> on behalf of Dali <
> moh...@fifty-five.com >
> *Reply-To: *"swagger-sw...@googlegrou
).
>
> ApiListingResource is just a JAX-RS resource like your own – which should
> be exposed at the root of the other resources.
>
>
>
> You’re also using a really old version of swagger-core – that version has
> many known issues, some of which are critical.
>
UTC+1, Ron wrote:
>
> Which version of swagger-core do you use?
>
> What URL do you use to access your API?
>
> The swagger.json?
>
>
>
>
>
>
>
> *From: *> on behalf of Dali <
> moh...@fifty-five.com >
> *Reply-To: *"swagger-sw...@googl
gt;
>
>
>
> *From: *> on behalf of Dali <
> moh...@fifty-five.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Tuesday, 27 December 2016 at 10:16
> *To: *Swagger >
> *Subject: *Can
ass);
register(ApiListingResource.class);
register(SwaggerSerializers.class);
}
}
I'm using jersey 2.22 and swagger 1.5.
My API classes (and swagger annotations) are under my.resources.packages
My Api calls works
All help appreciated
Regards,
Dali
--
You received this message