camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [11/11] git commit: Rest DSL. camel-swagger work in progress.
Date Sun, 10 Aug 2014 09:42:17 GMT
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 <davsclaus@apache.org>
Authored: Sun Aug 10 11:41:11 2014 +0200
Committer: Claus Ibsen <davsclaus@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


Mime
View raw message