Package org.apache.camel.openapi
Class RestOpenApiReader
- java.lang.Object
-
- org.apache.camel.openapi.RestOpenApiReader
-
public class RestOpenApiReader extends Object
A Camel REST-DSL openApi reader that parse the rest-dsl into a openApi model representation. This reader supports the OpenApi Specification 2.0 and 3.0
-
-
Constructor Summary
Constructors Constructor Description RestOpenApiReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
-
Method Detail
-
read
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
Read the REST-DSL definition's and parse that as a OpenApi model representation- Parameters:
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 model- Throws:
ClassNotFoundException
- is thrown if error loading class
-
-