[ 
https://issues.apache.org/jira/browse/CAMEL-13950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16924000#comment-16924000
 ] 

Claus Ibsen commented on CAMEL-13950:
-------------------------------------

Hmm we dont really use variables and splitup. Also mind that we should ideally 
have the Java and XML DSL similar (and also other DSLs like YAML etc) as the 
Java DSL can get too far away from these others. eg we already got some of that 
in Camel 2.x and have some "tricks" to fixup this.

So what I am saying is that a get method does not tell me that its rest or 
something, its not HTTP GET or REST GET or something, but just get. And that 
can mean anything, eg like a getter.



> better endpointdsl for rest
> ---------------------------
>
>                 Key: CAMEL-13950
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13950
>             Project: Camel
>          Issue Type: Improvement
>          Components: rest
>            Reporter: Luca Burgazzoli
>            Priority: Minor
>
> We should have a better "fluent dsl" for rest services, as today we have 
> something like
> {code:java}
>     rest("/v1").get("/api").to(""...)
> {code}
> It would be nice to simplify this by having an option to start from the 
> method like:
> {code:java}
>     get("/api")
>         .accept("...")
>         .to("...")
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to