Author: buildbot
Date: Tue Aug  9 12:18:49 2016
New Revision: 994805

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/spring-boot.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/spring-boot.html
==============================================================================
--- websites/production/camel/content/spring-boot.html (original)
+++ websites/production/camel/content/spring-boot.html Tue Aug  9 12:18:49 2016
@@ -306,6 +306,31 @@ camel.springboot.xmlRoutes = classpath:c
             <to uri="log:out"/>
         </route>
     &lt;/routes&gt;]]></script>
+</div></div><h3 id="SpringBoot-Addingrest-dsl">Adding 
rest-dsl</h3><p><strong>Available since Camel 2.18</strong></p><p>By default 
you can put Camel Rest-DSL XML routes in the classpath under the&#160;directory 
camel-rest, which camel-spring-boot will auto detect and include.<br 
clear="none">You can configure the directory name or turn this off using the 
configuration option</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[// turn off
+camel.springboot.xmlRests = false
+// scan in the com/foo/routes classpath
+camel.springboot.xmlRests = classpath:com/foo/rests/*.xml]]></script>
+</div></div><p>The Rest-DSL XML files should be Camel XML rests (not 
CamelContext) such as</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;rests 
xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
+   &lt;rest&gt;
+      &lt;post uri=&quot;/persons&quot;&gt;
+         &lt;to uri=&quot;direct:postPersons&quot;/&gt;
+      &lt;/post&gt;
+      &lt;get uri=&quot;/persons&quot;&gt;
+         &lt;to uri=&quot;direct:getPersons&quot;/&gt;
+      &lt;/get&gt;
+      &lt;get uri=&quot;/persons/{personId}&quot;&gt;
+          &lt;to uri=&quot;direct:getPersionId&quot;/&gt;
+      &lt;/get&gt;
+      &lt;put uri=&quot;/persons/{personId}&quot;&gt;
+          &lt;to uri=&quot;direct:putPersionId&quot;/&gt;
+      &lt;/put&gt;
+      &lt;delete uri=&quot;/persons/{personId}&quot;&gt;
+          &lt;to uri=&quot;direct:deletePersionId&quot;/&gt;
+      &lt;/delete&gt;
+   &lt;/rest&gt;
+ &lt;/rests&gt;]]></script>
 </div></div><p>&#160;</p><p><br clear="none"></p><h3 
id="SpringBoot-SeeAlso">See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul></div>
         </td>


Reply via email to