carbond.SwaggerDescriptorGenerator

Builds a swagger descriptor from a Service and its endpoints. This is used create the swagger administrative interface.

Methods

generateSwaggerDescriptor  
Arguments
  • service (Service) – The service instance to generate a descriptor for
  • req (Request) – Use the request, if present, to update the host field in the descriptor
Return type Object
Description Generates the descriptor