public static final class OpenApiBundle.Builder extends java.lang.Object implements OpenApiBundle.InitialBuilder, OpenApiBundle.FinalBuilder
| Modifier and Type | Method and Description |
|---|---|
OpenApiBundle.Builder |
addResourcePackage(java.lang.String resourcePackage)
Adds a package to the packages Swagger should scan to pick up resources.
|
OpenApiBundle.Builder |
addResourcePackageClass(java.lang.Class<?> resourcePackageClass)
Adds the package of the given class to the packages Swagger should scan to pick up resources.
|
OpenApiBundle |
build() |
OpenApiBundle.FinalBuilder |
disableEmbedParameter()
Disables automatic addition of the embed query parameter if embeddable resources are
discovered.
|
OpenApiBundle.Builder |
withExistingOpenAPI(java.lang.String openApiJsonOrYaml)
Use an existing OpenAPI 3 specification as base for the generation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithExistingOpenAPIFromClasspathResourcepublic OpenApiBundle.FinalBuilder disableEmbedParameter()
OpenApiBundle.FinalBuilderdisableEmbedParameter in interface OpenApiBundle.FinalBuilderpublic OpenApiBundle.Builder addResourcePackage(java.lang.String resourcePackage)
OpenApiBundle.InitialBuilderaddResourcePackage in interface OpenApiBundle.InitialBuilderresourcePackage - the package to be scanned; not nullpublic OpenApiBundle.Builder addResourcePackageClass(java.lang.Class<?> resourcePackageClass)
OpenApiBundle.InitialBuilderaddResourcePackageClass in interface OpenApiBundle.InitialBuilderresourcePackageClass - the class whose package should be scanned; not nullpublic OpenApiBundle.Builder withExistingOpenAPI(java.lang.String openApiJsonOrYaml)
OpenApiBundle.InitialBuilderNote that the OpenAPI annotations always override values from the files if classes are
registered with OpenApiBundle.InitialBuilder.addResourcePackage(String) or OpenApiBundle.InitialBuilder.addResourcePackageClass(Class).
The postprocessing will also be done for these files, including sorting, embed parameter, and server baseurl.
withExistingOpenAPI in interface OpenApiBundle.InitialBuilderopenApiJsonOrYaml - the OpenAPI 3 specification as json or yamlEmbedParameterModifier,
SorterModifier,
ServerUrlFilterpublic OpenApiBundle build()
build in interface OpenApiBundle.FinalBuilder