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> </routes>]]></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 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[<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>]]></script> </div></div><p> </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>