Class BasicSwaggerProvider

java.lang.Object
org.apache.juneau.rest.swagger.BasicSwaggerProvider
All Implemented Interfaces:
SwaggerProvider

public class BasicSwaggerProvider extends Object implements SwaggerProvider
Basic implementation of a SwaggerProvider.
See Also:
  • Constructor Details

  • Method Details

    • getSwagger

      public Swagger getSwagger(RestContext context, Locale locale) throws Exception
      Returns the Swagger associated with the specified context of a Rest-annotated class.

      Subclasses can override this to provide their own method for generating Swagger.

      Specified by:
      getSwagger in interface SwaggerProvider
      Parameters:
      context - The context of the Rest-annotated class.
      locale - The request locale.
      Returns:
      A new Swagger object.
      Throws:
      Exception - If an error occurred producing the Swagger.