Ok, here's my setup. I have the UI working like mentioned above. I then
have a java class that extends javax.ws.rs.core.Application where I do this:
public class MyApplication extends Application {
public MyApplication() {
BeanConfig beanConfig = new BeanConfig();
beanConfig.setVersion("1.0");
beanConfig.setTitle("My App");
beanConfig.setDescription("My description.");
beanConfig.setSchemes(new String[]{"http, https"});
beanConfig.setBasePath("/myContext/");
beanConfig.setResourcePackage("com.myPackage.rest.resource");
beanConfig.setPrettyPrint(true);
beanConfig.setScan(true);
}
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new HashSet<Class<?>>();
resources.add(ApiListingResource.class);
resources.add(SwaggerSerializers.class);
return resources;
}
}
That's all I have really besides all my annotations obviously.
>
>
--
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.