You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2014/08/10 11:42:17 UTC
[11/11] git commit: Rest DSL. camel-swagger work in progress.
Rest DSL. camel-swagger work in progress.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/50e8ed77
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/50e8ed77
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/50e8ed77
Branch: refs/heads/master
Commit: 50e8ed779883ced56c3897029848f98b80a6d0cc
Parents: 4252f65
Author: Claus Ibsen <da...@apache.org>
Authored: Sun Aug 10 11:41:11 2014 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Aug 10 11:41:11 2014 +0200
----------------------------------------------------------------------
.../src/main/webapp/WEB-INF/web.xml | 22 +++++++++++++-------
1 file changed, 14 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/50e8ed77/examples/camel-example-servlet-rest-tomcat/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-servlet-rest-tomcat/src/main/webapp/WEB-INF/web.xml b/examples/camel-example-servlet-rest-tomcat/src/main/webapp/WEB-INF/web.xml
index e0c8151..7fd5d5f 100755
--- a/examples/camel-example-servlet-rest-tomcat/src/main/webapp/WEB-INF/web.xml
+++ b/examples/camel-example-servlet-rest-tomcat/src/main/webapp/WEB-INF/web.xml
@@ -47,13 +47,14 @@
<load-on-startup>3</load-on-startup>
</servlet>
+ <!-- START SNIPPET: e1 -->
<!-- to setup Camel Swagger api servlet -->
<servlet>
<servlet-name>ApiDeclarationServlet</servlet-name>
<servlet-class>org.apache.camel.component.swagger.RestSwaggerApiDeclarationServlet</servlet-class>
<load-on-startup>2</load-on-startup>
<init-param>
- <param-name>swagger.api.basepath</param-name>
+ <param-name>base.path</param-name>
<param-value>http://localhost:8080/api-docs</param-value>
</init-param>
<init-param>
@@ -62,20 +63,25 @@
</init-param>
<init-param>
<param-name>api.title</param-name>
- <param-value>Camel Rest Example with Swagger</param-value>
+ <param-value>User Services</param-value>
+ </init-param>
+ <init-param>
+ <param-name>api.description</param-name>
+ <param-value>Camel Rest Example with Swagger that provides an User REST service</param-value>
</init-param>
</servlet>
- <!-- define that url path for the Camel Servlet to use -->
- <servlet-mapping>
- <servlet-name>CamelServlet</servlet-name>
- <url-pattern>/rest/*</url-pattern>
- </servlet-mapping>
-
<!-- swagger api declaration -->
<servlet-mapping>
<servlet-name>ApiDeclarationServlet</servlet-name>
<url-pattern>/api-docs/*</url-pattern>
</servlet-mapping>
+ <!-- END SNIPPET: e1 -->
+
+ <!-- define that url path for the Camel Servlet to use -->
+ <servlet-mapping>
+ <servlet-name>CamelServlet</servlet-name>
+ <url-pattern>/rest/*</url-pattern>
+ </servlet-mapping>
</web-app>
\ No newline at end of file