Interface SwaggerProvider

All Known Implementing Classes:
BasicSwaggerProvider, SwaggerProvider.Void

public interface SwaggerProvider
Interface for retrieving Swagger on a REST resource.
See Also:
  • Method Details

    • create

      Static creator.
      Parameters:
      beanStore - The bean store to use for creating beans.
      Returns:
      A new builder for this object.
    • getSwagger

      Swagger getSwagger(RestContext context, Locale locale) throws Exception
      Returns the Swagger associated with the specified Rest-annotated class.
      Parameters:
      context - The context of the Rest-annotated class.
      locale - The request locale.
      Returns:
      A new Swagger DTO object.
      Throws:
      Exception - If an error occurred producing the Swagger.