def create_request_processor(type, path, opts)
      current_endpoint_info = settings.swagger_current_endpoint_info
      current_endpoint_parameters = settings.swagger_current_endpoint_parameters
      current_endpoint_responses = settings.swagger_current_endpoint_responses
      endpoint = Sinatra::SwaggerExposer::Configuration::SwaggerEndpoint.new(
        type,
        path,
        current_endpoint_parameters.values,
        current_endpoint_responses.clone,
        current_endpoint_info[:summary],
        current_endpoint_info[:description],
        current_endpoint_info[:tags],
        current_endpoint_info[:path],
        current_endpoint_info[:produces])
      settings.swagger_endpoints << endpoint
      current_endpoint_info.clear
      current_endpoint_parameters.clear
      current_endpoint_responses.clear
      settings.swagger_processor_creator.create_request_processor(endpoint)
    end
def create_request_processor(type, path, opts)
      current_endpoint_info = settings.swagger_current_endpoint_info
      current_endpoint_parameters = settings.swagger_current_endpoint_parameters
      current_endpoint_responses = settings.swagger_current_endpoint_responses
      endpoint = Sinatra::SwaggerExposer::Configuration::SwaggerEndpoint.new(
        type,
        path,
        current_endpoint_parameters.values,
        current_endpoint_responses.clone,
        current_endpoint_info[:summary],
        current_endpoint_info[:description],
        current_endpoint_info[:tags],
        current_endpoint_info[:path],
        current_endpoint_info[:produces])
      settings.swagger_endpoints << endpoint
      current_endpoint_info.clear
      current_endpoint_parameters.clear
      current_endpoint_responses.clear
      settings.swagger_processor_creator.create_request_processor(endpoint)
    end
Call for each endpoint declaration
 @return [Sinatra::SwaggerExposer::Processing::SwaggerRequestProcessor]