Interface OpenApiBundle.InitialBuilder

    • Method Detail

      • withExistingOpenAPIFromClasspathResource

        default OpenApiBundle.FinalBuilder withExistingOpenAPIFromClasspathResource​(java.lang.String path)
        Reads an existing OpenAPI 3 specification from the given classpath resource and provide it to withExistingOpenAPI(String)
        Parameters:
        path - the path to an OpenAPI 3 YAML or JSON file in the classpath.
        Returns:
        the builder
        See Also:
        withExistingOpenAPI(String)
      • addResourcePackage

        OpenApiBundle.FinalBuilder addResourcePackage​(java.lang.String resourcePackage)
        Adds a package to the packages Swagger should scan to pick up resources.
        Parameters:
        resourcePackage - the package to be scanned; not null
        Returns:
        the builder
        Throws:
        java.lang.NullPointerException - if resourcePackage is null
        java.lang.IllegalArgumentException - if resourcePackage is empty
        See Also:
        Swagger's BeanConfig
      • addResourcePackageClass

        OpenApiBundle.FinalBuilder addResourcePackageClass​(java.lang.Class<?> resourcePackageClass)
        Adds the package of the given class to the packages Swagger should scan to pick up resources.
        Parameters:
        resourcePackageClass - the class whose package should be scanned; not null
        Returns:
        the builder
        Throws:
        java.lang.NullPointerException - if resourcePackageClass is null
        See Also:
        Swagger's BeanConfig