Package org.apache.camel.openapi
Class RestOpenApiReader
java.lang.Object
org.apache.camel.openapi.RestOpenApiReader
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.apicurio.datamodels.openapi.models.OasDocumentread(org.apache.camel.CamelContext camelContext, List<org.apache.camel.model.rest.RestDefinition> rests, BeanConfig config, String camelContextId, org.apache.camel.spi.ClassResolver classResolver) Read the REST-DSL definition's and parse that as a OpenApi model representation
-
Field Details
-
OAS20_SCHEMA_DEFINITION_PREFIX
- See Also:
-
OAS30_SCHEMA_DEFINITION_PREFIX
- See Also:
-
-
Constructor Details
-
RestOpenApiReader
public RestOpenApiReader()
-
-
Method Details
-
read
public io.apicurio.datamodels.openapi.models.OasDocument read(org.apache.camel.CamelContext camelContext, List<org.apache.camel.model.rest.RestDefinition> rests, 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-dslconfig- the openApi configurationclassResolver- class resolver to use @return the openApi model- Throws:
ClassNotFoundException- is thrown if error loading class
-