Package org.apache.camel.swagger
Class RestSwaggerReader
- java.lang.Object
-
- org.apache.camel.swagger.RestSwaggerReader
-
public class RestSwaggerReader extends Object
A Camel REST-DSL swagger reader that parse the rest-dsl into a swagger model representation. This reader supports the Swagger Specification 2.0
-
-
Constructor Summary
Constructors Constructor Description RestSwaggerReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.swagger.models.Swagger
read(org.apache.camel.CamelContext camelContext, List<org.apache.camel.model.rest.RestDefinition> rests, io.swagger.jaxrs.config.BeanConfig config, String camelContextId, org.apache.camel.spi.ClassResolver classResolver)
Read the REST-DSL definition's and parse that as a Swagger model representation
-
-
-
Method Detail
-
read
public io.swagger.models.Swagger read(org.apache.camel.CamelContext camelContext, List<org.apache.camel.model.rest.RestDefinition> rests, io.swagger.jaxrs.config.BeanConfig config, String camelContextId, org.apache.camel.spi.ClassResolver classResolver) throws ClassNotFoundException
Read the REST-DSL definition's and parse that as a Swagger model representation- Parameters:
camelContext
- the camel contextrests
- the rest-dslconfig
- the swagger configurationclassResolver
- class resolver to use- Returns:
- the swagger model
- Throws:
ClassNotFoundException
-
-