Camel Rest DSL
Want to ask how can one pass the body of a PUT request to a method positional
argument.
Eg, with bindingMode=json will the magic ${body} work?
<rest path="/order">
<put uri="/{id}" type="MyOrder">
<to uri="bean:orders?method=update(${header.id},${body})" />
</put>
</rest>
with the method in Java as
update(String id, MyOrder myOrder)
Searched the docs (including Camel in Action, 2nd ed), but can't find an
example anywhere.
Thanks
- Martin
.
