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.swagger.v3.oas.models.OpenAPI
read
(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
-
OAS30_SCHEMA_DEFINITION_PREFIX
- See Also:
-
-
Constructor Details
-
RestOpenApiReader
public RestOpenApiReader()
-
-
Method Details
-
read
public io.swagger.v3.oas.models.OpenAPI 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, IOException, UnknownHostException 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 classIOException
- is thrown if error loading openapi specificationUnknownHostException
- is thrown if error resolving local hostname
-