[ https://issues.apache.org/jira/browse/CAMEL-17675 ]


    Chris deleted comment on CAMEL-17675:
    -------------------------------

was (Author: cwild):
With this change, how would you set the response code and message?

Before it we could just set it in the route via the header 
_Exchange.HTTP_RESPONSE_CODE_  and the message body, but this doesn't work 
anymore.

Furthermore it seems when an Exception is thrown in the called route the api 
will still return 200. How can we propage errors to the caller?

> Rest DSL - Removed inlined routes
> ---------------------------------
>
>                 Key: CAMEL-17675
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17675
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.16.0
>
>
> In the Rest DSL you can inline a route but that was a mistake.
> I made a mistake when rest-dsl was created that you could embed a route 
> inside it
> that is bad, instead its better as it was a facade to a route which you link 
> via direct.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to