public interface RestRegistry extends Service
CamelContext
which have been defined and
created using the Rest DSL.Modifier and Type | Interface and Description |
---|---|
static interface |
RestRegistry.RestService
Details about the REST service
|
Modifier and Type | Method and Description |
---|---|
void |
addRestService(Consumer consumer,
String url,
String baseUrl,
String basePath,
String uriTemplate,
String method,
String consumes,
String produces,
String inType,
String outType,
String routeId,
String description)
Adds a new REST service to the registry.
|
String |
apiDocAsJson()
Outputs the Rest services API documentation in JSON (requires camel-swagger-java on classpath)
|
List<RestRegistry.RestService> |
listAllRestServices()
List all REST services from this registry.
|
void |
removeRestService(Consumer consumer)
Removes the REST service from the registry
|
int |
size()
Number of rest services in the registry.
|
void addRestService(Consumer consumer, String url, String baseUrl, String basePath, String uriTemplate, String method, String consumes, String produces, String inType, String outType, String routeId, String description)
consumer
- the consumerurl
- the absolute url of the REST servicebaseUrl
- the base url of the REST servicebasePath
- the base pathuriTemplate
- the uri templatemethod
- the HTTP methodconsumes
- optional details about what media-types the REST service acceptsproduces
- optional details about what media-types the REST service returnsinType
- optional detail input binding to a FQN class nameoutType
- optional detail output binding to a FQN class namerouteId
- the id of the route this rest service will be usingdescription
- optional description about the servicevoid removeRestService(Consumer consumer)
consumer
- the consumerList<RestRegistry.RestService> listAllRestServices()
int size()
String apiDocAsJson()
Apache Camel