camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <>
Subject REST DSL bind mode per endpoint
Date Wed, 08 Jun 2016 03:51:48 GMT
I have a REST API that ingests XML via a POST endpoint and I also have an
endpoint that will produce text/plain via GET.  Is it possible to have the
POST endpoint use JAXB and the GET endpoint produce text/plain?  So for
instance, I would like to have the following:

<rest path="/data">

<post uri="/upload" consumes="application/xml" type="com.a.b.c.TestDocument"
<to uri="direct:upload" />

<get uri="/status">
<description>Status service</description>
<process ref="StatsGenerator" />


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message