ok figured it out

* adding dependencies

<dependency>
    <groupId>io.swagger</groupId>
    <artifactId>swagger-jaxrs</artifactId>
    <version>1.5.18</version>
</dependency>

<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>swagger-ui</artifactId>
    <version>3.13.0</version>
</dependency>


* in Jaxrs startup app, instantiate BeanConfig in constructor and override:


public Set<Class<?>> getClasses() {

    HashSet<Class<?>> set = new HashSet<Class<?>>();
    set.add(io.swagger.jaxrs.listing.ApiListingResource.class);
    set.add(io.swagger.jaxrs.listing.SwaggerSerializers.class);
    return set;
}


and the UI part is just a question of serving static files defined in 
swagger-ui webjar to browser (in my case i wrote a jax-rs resource for that)


On Saturday, March 24, 2018 at 4:20:44 PM UTC+1, [email protected] wrote:
>
> does anybody have a hint or link to tutorial on  this?
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to