public class RestOpenApiReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OAS20_SCHEMA_DEFINITION_PREFIX |
static String |
OAS30_SCHEMA_DEFINITION_PREFIX |
| Constructor and Description |
|---|
RestOpenApiReader() |
| Modifier and Type | Method and Description |
|---|---|
io.apicurio.datamodels.openapi.models.OasDocument |
read(org.apache.camel.CamelContext camelContext,
List<org.apache.camel.model.rest.RestDefinition> rests,
String route,
BeanConfig config,
String camelContextId,
org.apache.camel.spi.ClassResolver classResolver)
Read the REST-DSL definition's and parse that as a OpenApi model representation
|
public static final String OAS20_SCHEMA_DEFINITION_PREFIX
public static final String OAS30_SCHEMA_DEFINITION_PREFIX
public io.apicurio.datamodels.openapi.models.OasDocument read(org.apache.camel.CamelContext camelContext,
List<org.apache.camel.model.rest.RestDefinition> rests,
String route,
BeanConfig config,
String camelContextId,
org.apache.camel.spi.ClassResolver classResolver)
throws ClassNotFoundException
camelContext - the camel contextrests - the rest-dslroute - optional route path to filter the rest-dsl to only include from the chose routeconfig - the openApi configurationclassResolver - class resolver to use @return the openApi modelClassNotFoundException - is thrown if error loading classApache Camel