{"apiVersion":"1.0.0","swaggerVersion":"1.2"}
I have the following annotations in my servlet:
@Api(value = "/WCSCatalogManagerServlet", description = "requests on WCSCatalogManager")
@WebServlet("/WCSCatalogManagerServlet")
public class WCSCatalogManagerServlet extends HttpServlet {...}
<!-- swagger -->
<servlet>
<servlet-name>DefaultServletReaderConfig</servlet-name>
<servlet-class>com.wordnik.swagger.servlet.config.DefaultServletReaderConfig</servlet-class>
<load-on-startup>2</load-on-startup>
<init-param>
<param-name>swagger.resource.package</param-name>
<param-value>gr.uoa.di.madgik.servicescatalogmanager.servlet</param-value>
</init-param>
<init-param>
<param-name>swagger.api.basepath</param-name>
<param-value>http://localhost:8080/api-docs</param-value>
</init-param>
<init-param>
<param-name>api.version</param-name>
<param-value>1.0.0</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>ApiDeclarationServlet</servlet-name>
<servlet-class>com.wordnik.swagger.servlet.listing.ApiDeclarationServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ApiDeclarationServlet</servlet-name>
<url-pattern>/api-docs/*</url-pattern>
</servlet-mapping>
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
--
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/s5gNVKeRB3A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
{"apiVersion":"1.0.0","swaggerVersion":"1.2"}
On both cases I don't get any exception on tomcat logs.
Thanks
Yannis
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/s5gNVKeRB3A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@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-swaggersocket+unsub...@googlegroups.com.
Well, first thing to test/change is the swagger.api.basepath property value accordingly then.
On Wed, Apr 16, 2014 at 4:41 PM, Ioannis Kavvouras <jhk...@gmail.com> wrote:
ApiFilter is the CORS filter. It's the same as the one implemented in Scala.
My tomcat runs on 8080.
Yannis
On 04/16/2014 04:38 PM, Ron wrote:
I assume ApiFilter is the CORS filter?
Also, even though it's quite unlikely that this is the issue, I imagine your tomcat doesn't run on port 8002?
--
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.
--
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/s5gNVKeRB3A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
--
--