public class RestSwaggerSupport extends Object
Constructor and Description |
---|
RestSwaggerSupport() |
Modifier and Type | Method and Description |
---|---|
List<String> |
findCamelContexts() |
List<org.apache.camel.model.rest.RestDefinition> |
getRestDefinitions(org.apache.camel.CamelContext camelContext) |
List<org.apache.camel.model.rest.RestDefinition> |
getRestDefinitions(org.apache.camel.CamelContext camelContext,
String camelId) |
void |
initSwagger(io.swagger.jaxrs.config.BeanConfig swaggerConfig,
Map<String,Object> config) |
void |
renderCamelContexts(RestApiResponseAdapter response,
String contextId,
String contextIdPattern,
boolean json,
boolean yaml,
org.apache.camel.spi.RestConfiguration configuration)
Renders a list of available CamelContexts in the JVM
|
void |
renderResourceListing(org.apache.camel.CamelContext camelContext,
RestApiResponseAdapter response,
io.swagger.jaxrs.config.BeanConfig swaggerConfig,
String contextId,
String route,
boolean json,
boolean yaml,
Map<String,Object> headers,
org.apache.camel.spi.ClassResolver classResolver,
org.apache.camel.spi.RestConfiguration configuration) |
public void initSwagger(io.swagger.jaxrs.config.BeanConfig swaggerConfig, Map<String,Object> config)
public List<org.apache.camel.model.rest.RestDefinition> getRestDefinitions(org.apache.camel.CamelContext camelContext) throws Exception
Exception
public List<org.apache.camel.model.rest.RestDefinition> getRestDefinitions(org.apache.camel.CamelContext camelContext, String camelId) throws Exception
Exception
public void renderResourceListing(org.apache.camel.CamelContext camelContext, RestApiResponseAdapter response, io.swagger.jaxrs.config.BeanConfig swaggerConfig, String contextId, String route, boolean json, boolean yaml, Map<String,Object> headers, org.apache.camel.spi.ClassResolver classResolver, org.apache.camel.spi.RestConfiguration configuration) throws Exception
Exception
public void renderCamelContexts(RestApiResponseAdapter response, String contextId, String contextIdPattern, boolean json, boolean yaml, org.apache.camel.spi.RestConfiguration configuration) throws Exception
Exception
Apache Camel