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" />
</post>

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

</rest>

Reply via email to