Spark Component
Available as of Camel 2.14
The Spark component allows to define REST endpoints using the Spark Java library which has a nice DSL.
Spark Java requires Java 8 runtime.
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-spark</artifactId> <version>${camel-version}</version> </dependency>
URI format
spark://verb:path?[options]
URI Options
Unknown macro: {div}
Name |
Default Value |
Description |
---|---|---|
verb |
|
GET, POST, DELETE, etc. |
path |
|
the content path which support Spark syntax. See further below for examples. |
accept |
/ |
accept type such as: 'text/xml', or 'application/json'. By default we accept all kinds of types. |