Reputation: 21614
WRT http://camel.apache.org/rest.html.
Is this component used by the client to set-up endpoint to reach an existent server?
.to("http://endpointuri")
instead?Or
used by the service provider to set-up the service provider??
1 or 2? For use by client or server? As usual, the camel docs has unspecified indirection.
Upvotes: 0
Views: 97
Reputation: 3193
This component allows Camel to expose REST services. These services will be invoked by your client. In the internal processing of a service you can do anything you want like calling other services. The DSL relies on underlying http components so you can use undertow, jetty, netty and others to set this up.
There is no such thing as a http-dsl. Essentially you use the rest-dsl together with some http framework such as undertow to expose some REST services. The DSL makes the creation of the REST services easier. I think it can also generate swagger docs for you.
Upvotes: 1