@ApplicationPath("myapp")public class MyAppConfig extends ResourceConfig { private static Logger logger = Logger.getLogger(MyAppConfig.class.toString());
public MyAppConfig() { // integration with Swagger packages("com.wordnik.swagger.jaxrs.json"); packages("com.wordnik.swagger.jersey.listing");
BeanConfig beanConfig = new BeanConfig(); beanConfig.setBasePath("myapp"); beanConfig.setVersion("1.0");
Info info = new Info(); info.setTitle("MyApp REST API"); info.setDescription("blah blah"); info.setVersion("1.0");
License license = new License(); license.setName("Apache License, Version 2.0"); license.setUrl("http://www.apache.org/licenses/LICENSE-2.0.txt"); info.setLicense(license);
beanConfig.setInfo(info); beanConfig.setResourcePackage("com.myapp.web"); beanConfig.setScan(true);
register(MyAppResource.class); register(MyAppCORSResponseFilter.class); // Register an instance of LoggingFilter. register(new LoggingFilter(logger, true));
// Enable Tracing support. property(ServerProperties.TRACING, "ALL"); }}--
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 received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/xJlJzkJtK-U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
You need to add sonatype's repository for it. I'm not on my computer so it's difficult for me to give you the address buy I'm sure a Google search will give you the info.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/xJlJzkJtK-U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/xJlJzkJtK-U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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.