Greetings all,
I'm using the camel rest dsl in a karaf osgi blueprint to define my route (and
I love it, so easy), and I've got an onException block properly handling my
(known) exceptions for an 'application/json' POST endpoint.
I've set it to produce 'application/json' and when things go well
Hi
And using
.setBody(simple("{ \"error\": \"${exception.message}\" }"))
Does not work?
On Wed, Nov 5, 2014 at 7:02 AM, Gary Kennedy wrote:
> Greetings all,
>
> I'm using the camel rest dsl in a karaf osgi blueprint to define my route
> (and I love it, so easy), and I've got an onExc
-->
{ "error": "${exception.message}"
}
(Sorry. I should have included this snippet in the first email)
Cheers,
Gary
--
View t
e,
making the route POST/GET specific). It might be easier to play with the
consumes/produces part of the rest dsl to bring the above theory used above
into the rest dsl. Anyways,
Cheers,
Gary
--
View this message in context:
http://camel.465427.n5.nabble.com/Setting-rest-response-json-directly-
specific). It might be easier to play with the
> consumes/produces part of the rest dsl to bring the above theory used above
> into the rest dsl. Anyways,
>
> Cheers,
> Gary
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Setting-r