public class RestOpenApiSupport extends Object
| Constructor and Description |
|---|
RestOpenApiSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected RestDefinitionsResolver |
createJmxRestDefinitionsResolver(org.apache.camel.CamelContext camelContext) |
static String |
getBasePathFromOasDocument(io.apicurio.datamodels.openapi.models.OasDocument openapi) |
static String |
getHostFromOasDocument(io.apicurio.datamodels.openapi.models.OasDocument openapi) |
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 |
initOpenApi(BeanConfig openApiConfig,
Map<String,Object> config) |
static String |
parseVariables(String url,
io.apicurio.datamodels.openapi.v3.models.Oas30Server server) |
void |
renderCamelContexts(org.apache.camel.CamelContext camelContext,
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,
BeanConfig openApiConfig,
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 static String getHostFromOasDocument(io.apicurio.datamodels.openapi.models.OasDocument openapi)
public static String getBasePathFromOasDocument(io.apicurio.datamodels.openapi.models.OasDocument openapi)
public static String parseVariables(String url, io.apicurio.datamodels.openapi.v3.models.Oas30Server server)
public void initOpenApi(BeanConfig openApiConfig, Map<String,Object> config)
public List<org.apache.camel.model.rest.RestDefinition> getRestDefinitions(org.apache.camel.CamelContext camelContext) throws Exception
Exceptionpublic List<org.apache.camel.model.rest.RestDefinition> getRestDefinitions(org.apache.camel.CamelContext camelContext, String camelId) throws Exception
Exceptionprotected RestDefinitionsResolver createJmxRestDefinitionsResolver(org.apache.camel.CamelContext camelContext)
public void renderResourceListing(org.apache.camel.CamelContext camelContext,
RestApiResponseAdapter response,
BeanConfig openApiConfig,
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
Exceptionpublic void renderCamelContexts(org.apache.camel.CamelContext camelContext,
RestApiResponseAdapter response,
String contextId,
String contextIdPattern,
boolean json,
boolean yaml,
org.apache.camel.spi.RestConfiguration configuration)
throws Exception
ExceptionApache Camel