Class OpenAPIObjectGenerator


  • public class OpenAPIObjectGenerator
    extends Object
    Java parser class which scans for all Endpoint classes and produces OpenApi json.
    • Constructor Detail

      • OpenAPIObjectGenerator

        public OpenAPIObjectGenerator()
    • Method Detail

      • addSourcePath

        public void addSourcePath​(Path sourcePath)
        Adds the source path to the generator to process.
        Parameters:
        sourcePath - the source path to generate the metadata from
      • setOpenApiConfiguration

        public void setOpenApiConfiguration​(OpenAPIConfiguration configuration)
        Sets the configuration to be used when generating an Open API spec.
        Parameters:
        configuration - the generator configuration
      • getOpenApi

        public io.swagger.v3.oas.models.OpenAPI getOpenApi()
        Gets the Open API, generates it if necessary.
        Returns:
        the Open API data