MainConfigurationProperties.rest()
The name of the Camel component to use as the REST API (such as swagger)
Sets a leading API context-path the REST API services will be using.
Sets the route id to use for the route that services the REST API.
To use a specific hostname for the API documentation (such as swagger or openapi)
Whether vendor extension is enabled in the Rest APIs.
Sets the binding mode to use.
Package name to use as base (offset) for classpath scanning of POJO classes are located when using binding mode
is enabled for JSon or XML.
Whether to enable validation of the client request to check:
1) Content-Type header matches what the Rest DSL consumes; returns HTTP Status 415 if validation error. 2) Accept
header matches what the Rest DSL produces; returns HTTP Status 406 if validation error. 3) Missing required data
(query parameters, HTTP headers, body); returns HTTP Status 400 if validation error. 4) Parsing error of the
message body (JSon, XML or Auto binding mode must be enabled); returns HTTP Status 400 if validation error.
Whether to check what Camel is returning as response to the client:
1) Status-code and Content-Type matches Rest DSL response messages. 2) Check whether expected headers is included
according to the Rest DSL repose message headers. 3) If the response body is JSon then check whether its valid
JSon.
The Camel Rest component to use for the REST transport (consumer), such as netty-http, jetty, servlet, undertow.
Adds a component property
Sets a leading context-path the REST services will be using.
Adds a CORS header property
Adds a data format property
Whether to enable CORS headers in the HTTP response.
The hostname to use for exposing the REST service.
If no hostname has been explicit configured, then this resolver is used to compute the hostname the REST service
will be using.
Inline routes in rest-dsl which are linked using direct endpoints.
Name of specific json data format to use.
RestConfigurationProperties.withPort(int port)
The port number to use for exposing the REST service.
Sets the location of the api document (swagger api) the REST producer will use to validate the REST uri and query
parameters are valid accordingly to the api document.
Sets the name of the Camel component to use as the REST producer
The scheme to use for exposing the REST service.
Whether to skip binding on output if there is a custom HTTP error code header.
Whether to use X-Forward headers to set host etc. for OpenApi.
Adds a validation error property
Name of specific XML data format to use.