public class RestSwaggerReader extends Object
Constructor and Description |
---|
RestSwaggerReader() |
Modifier and Type | Method and Description |
---|---|
io.swagger.models.Swagger |
read(List<org.apache.camel.model.rest.RestDefinition> rests,
String route,
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
|
public io.swagger.models.Swagger read(List<org.apache.camel.model.rest.RestDefinition> rests, String route, io.swagger.jaxrs.config.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 swagger configurationclassResolver
- class resolver to useClassNotFoundException
Apache Camel