Hi Claus - thanks for getting back to this thread. That what I meant,
that after the camel-servlet based RESt-DSL consumer is up it does not
enforce Accept vs Produces intersection.
Cheers, Sergey
On 21/09/15 12:02, Claus Ibsen wrote:
The rest-dsl is syntax sugar, and passes on the request to the actual
transport, which then does what it care to do.
On Tue, Aug 25, 2015 at 7:10 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote:
Hi,
Experimenting a bit with a camel-example-servlet-rest-tomcat,
ServletComponent creates a Consumer for RESTComponent, and unless I'm
missing something, it ignores the consumes and produces initialization
properties - so
curl -X GET -H "Accept: application/bar"
http://localhost:8080/camel-example-servlet-rest-tomcat/rest/user/123
still returns JSON instead of HTTP error...
Don't mind creating a patch but perhaps someone who is more did this
integration can fix it given that I'm only starting looking at how REST
component is supported...
Cheers, Sergey