Hi
Yeah there is also an example in the CiA 2nd ed book
xml
https://github.com/camelinaction/camelinaction2/blob/master/chapter10/servlet-swagger-xml/src/main/resources/camel.xml
and for java
https://github.com/camelinaction/camelinaction2/blob/master/chapter10/undertow-swagger/src/main/java/c
Hello,
I had same problem and i resolve it using "onException tag" to intercept
validation error and return another http response code
Example DSL:
java.your.exception
403
true
.
--
View this message in context:
http://camel.
Set a header with the response code you want.
Exchange.CONTENT_TYPE is the key of the header.
On Fri, Mar 25, 2016 at 5:52 AM, urwithsumit wrote:
> Hi,
>
> I am developing a REST service using apache Camel REST DSL.
> In the service if the request validation fail or any excepted failure
> happens