[
https://issues.apache.org/jira/browse/CAMEL-13950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923989#comment-16923989
]
Claus Ibsen commented on CAMEL-13950:
-------------------------------------
Hmm I do think actually routes should always have started with route, instead
of just from
And therefore also rest should start from rest.
As a
get("foo").to("jms:bar")
Is not obvious what it really is
> 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)