REST

REST

Scheme: rest
Name Kind Type Required Deprecated Default Value Enum Values Description
method path java.lang.String true false get
post
put
delete
patch
head
trace
connect
options
HTTP method to use.
path path java.lang.String true false The base path
uriTemplate path java.lang.String false The uri template
consumes parameter java.lang.String false Media type such as: 'text/xml', or 'application/json' this REST service accepts. By default we accept all kinds of types.
produces parameter java.lang.String false Media type such as: 'text/xml', or 'application/json' this REST service returns.
componentName parameter java.lang.String false The Camel Rest component to use for the REST transport, such as restlet, spark-rest. If no component has been explicit configured, then Camel will lookup if there is a Camel component that integrates with the Rest DSL, or if a org.apache.camel.spi.RestConsumerFactory is registered in the registry. If either one is found, then that is being used.
inType parameter java.lang.String false To declare the incoming POJO binding type as a FQN class name
outType parameter java.lang.String false To declare the outgoing POJO binding type as a FQN class name
routeId parameter java.lang.String false Name of the route this REST services creates
description parameter java.lang.String false Human description to document this REST service
exchangePattern parameter org.apache.camel.ExchangePattern false InOnly InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange.
synchronous parameter boolean false false Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). @param synchronous true to enforce synchronous processing