public class RestOpenApiReader extends Object
Constructor and Description |
---|
RestOpenApiReader() |
Modifier and Type | Method and Description |
---|---|
io.apicurio.datamodels.openapi.models.OasDocument |
read(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 io.apicurio.datamodels.openapi.models.OasDocument read(List<org.apache.camel.model.rest.RestDefinition> rests, String route, BeanConfig config, String camelContextId, org.apache.camel.spi.ClassResolver classResolver) throws ClassNotFoundException
rests
- the rest-dslroute
- optional route path to filter the rest-dsl to only include from the chose routeconfig
- the openApi configurationclassResolver
- class resolver to useClassNotFoundException
Apache Camel