camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: Updated docs
Date Tue, 09 Aug 2016 11:48:54 GMT
Repository: camel
Updated Branches:
  refs/heads/master ec06ec69f -> 2b00399af


Updated docs


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2b00399a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2b00399a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2b00399a

Branch: refs/heads/master
Commit: 2b00399afaf60d9f8d396d53a630b0a8274011c4
Parents: ec06ec6
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Aug 9 13:47:19 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Aug 9 13:47:19 2016 +0200

----------------------------------------------------------------------
 .../src/main/docs/spring-boot.adoc              | 41 ++++++++++++++++++++
 1 file changed, 41 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2b00399a/components/camel-spring-boot/src/main/docs/spring-boot.adoc
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/main/docs/spring-boot.adoc b/components/camel-spring-boot/src/main/docs/spring-boot.adoc
index d904a1b..094214b 100644
--- a/components/camel-spring-boot/src/main/docs/spring-boot.adoc
+++ b/components/camel-spring-boot/src/main/docs/spring-boot.adoc
@@ -489,6 +489,47 @@ The XML files should be Camel XML routes (not CamelContext) such as
     </routes>
 ---------------------------------------------------------
 
+[[SpringBoot-AddingREST]]
+Adding XML Rest-DSL
+^^^^^^^^^^^^^^^^^^^
+
+By default you can put Camel Rest-DSL XML routes in the classpath under the
+directory camel-rest, which camel-spring-boot will auto detect and include.
+You can configure the directory name or turn this off using the configuration option
+
+[source,java]
+-----------------------------------------------------------
+// turn off
+camel.springboot.xmlRests = false
+// scan in the com/foo/routes classpath
+camel.springboot.xmlRests = classpath:com/foo/rests/*.xml
+-----------------------------------------------------------
+
+The Rest-DSL XML files should be Camel XML rests (not CamelContext) such as
+
+[source,xml]
+---------------------------------------------------------
+   <rests xmlns="http://camel.apache.org/schema/spring">
+      <rest>
+         <post uri="/persons">
+            <to uri="direct:postPersons"/>
+         </post>
+         <get uri="/persons">
+            <to uri="direct:getPersons"/>
+         </get>
+         <get uri="/persons/{personId}">
+             <to uri="direct:getPersionId"/>
+         </get>
+         <put uri="/persons/{personId}">
+             <to uri="direct:putPersionId"/>
+         </put>
+         <delete uri="/persons/{personId}">
+             <to uri="direct:deletePersionId"/>
+         </delete>
+      </rest>
+    </rests>
+---------------------------------------------------------
+
 [[SpringBoot-SeeAlso]]
 See Also
 ^^^^^^^^


Mime
View raw message