{"apiVersion":"1.0.0","swaggerVersion":"1.2"}
When I try to open http://localhost:8080/myapp-web/rest/api-docs/swagger.json I get a 404 error.
--
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.
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.
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.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
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.
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 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-swaggers...@googlegroups.com.
No! I am unable to access the API.
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/BV3Qha91vxI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public ApiConfig() extends ResourceConfig {register(DomainEndpoint.class);
packages("com.wordnik.swagger.jaxrs.listing");BeanConfig beanConfig = new BeanConfig();beanConfig.setVersion("1.0.0");
beanConfig.setResourcePackage("some.package.containing.swagger.documented.endpoint");beanConfig.setHost("http://localhost:8080");beanConfig.setBasePath("/api/");beanConfig.setTitle("A cool API");beanConfig.setScan(true);}
Okay, that's what you need to solve first then. It's not really related to Swagger and is a bit out of scope.Once you have that working, you should be able to access the swagger.json file. Your configuration seems fine.
On Sun, May 10, 2015 at 9:08 AM, sumved shami <sumved...@akosha.in> wrote:
No! I am unable to access the API.
On May 10, 2015 11:37, "Ron Ratovsky" <r...@swagger.io> wrote:
Are you able to access your own API?
On Sun, May 10, 2015 at 8:24 AM, sumved shami <sumved...@akosha.in> wrote:
Hi Ron/FedericoI am trying swagger and jersey integration for the first time. Somehow, I am unable to see swagger.json page and the API responses.I am looking for swagger.json page at: http://localhost:8080/akosha-api/api/swagger.jsonAnd the API at: http://localhost:8080/akosha-api/api/v1/brands GETHere is my github url of the project: https://github.com/sumveds/akosha-api/tree/fr_swagger_integrationI am using the same swagger document Federico is using.My Application class is AkoshaApiApplication and it contains swagger bean configuration.Please have a look at my pom.xml as well. Does it require to have swagger-ui plugins configurations? Anyway, doesn't effect anything.Can you please help me in resolving this issue?Thank you.Regards,Sumved Shami
CIN No. U72900CH2009PTC031912
--
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.
-------------------------------------------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/BV3Qha91vxI/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.
CIN No. U72900CH2009PTC031912
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
-------------------------------------------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/BV3Qha91vxI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
CIN No. U72900CH2009PTC031912
--
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.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
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.
@ApplicationPath("/api")public class ApiConfig extends Application {public ApiConfig() {
BeanConfig beanConfig = new BeanConfig();beanConfig.setVersion("1.0.0");beanConfig.setResourcePackage("some.package.containing.swagger.documented.endpoint");
beanConfig.setScan(true);beanConfig.setPrettyPrint("true");
beanConfig.setSchemes(new String[] {"http"});beanConfig.setHost("localhost:8080");
beanConfig.setBasePath("/doc");
beanConfig.setTitle("A cool API");}
@Overridepublic Set<Class<?>> getClasses() {Set<Class<?>> resources = new HashSet<Class<?>>();resources.add(DomainEndpoint.class);resources.add(com.wordnik.swagger.jaxrs.listing.ApiListingResource.class);resources.add(com.wordnik.swagger.jaxrs.listing.SwaggerSerializers.class);return resources;}}
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
-------------------------------------------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/BV3Qha91vxI/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.
CIN No. U72900CH2009PTC031912
--
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.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
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.
It's me again, just to say that my previous configuration actually works !What I lacked : @Api(value = ..., description = ...) on top of my endpoint :/Sorry for the disturbance, and again thank you for you reply.
Regards,Thomas.
Le mardi 26 mai 2015 17:56:28 UTC+2, Thomas Pepio a écrit :
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
-------------------------------------------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/BV3Qha91vxI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
CIN No. U72900CH2009PTC031912
--
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.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
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.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
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.