Interface RestApiProcessorFactory


public interface RestApiProcessorFactory
Allows SPI to plugin a RestApiProcessorFactory that creates the Camel Processor responsible for servicing and generating the REST API documentation.

For example the camel-openapi-java component provides such a factory that uses OpenAPI/Swagger to generate the documentation.

  • Method Details

    • createApiProcessor

      Processor createApiProcessor(CamelContext camelContext, String contextPath, RestConfiguration configuration, Map<String,Object> parameters) throws Exception
      Creates a new REST API Processor , which provides API listing of the REST services
      Parameters:
      camelContext - the camel context
      contextPath - the context-path
      configuration - the rest configuration
      parameters - additional parameters
      Returns:
      a newly created REST API provider
      Throws:
      Exception - can be thrown