Class 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 Detail

      • RestSwaggerReader

        public RestSwaggerReader()
    • 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 context
        rests - the rest-dsl
        config - the swagger configuration
        classResolver - class resolver to use
        Returns:
        the swagger model
        Throws:
        ClassNotFoundException