Interface OpenAPIModelConfiguration
- All Superinterfaces:
OpenAPIEndpointConfiguration
- All Known Implementing Classes:
DeploymentUnitOpenAPIModelConfiguration
Encapsulates the configuration of an OpenAPI model.
- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.wildfly.service.descriptor.TernaryServiceDescriptor<org.eclipse.microprofile.openapi.models.OpenAPI> -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.openapi.api.OpenApiConfigReturns the OpenAPI configuration for this deployment.Map.Entry<org.jboss.vfs.VirtualFile,io.smallrye.openapi.runtime.io.Format> Returns a tuple containing the static file and its format, or null, if the deployment does not define a static file.booleanIndicates whether or not an OpenAPI endpoint is enabled for this deployment.booleanIndicates whether or not the OpenAPI document should use relative URLs.Methods inherited from interface org.wildfly.extension.microprofile.openapi.deployment.OpenAPIEndpointConfiguration
getHostName, getPath, getServerName
-
Field Details
-
SERVICE_DESCRIPTOR
static final org.wildfly.service.descriptor.TernaryServiceDescriptor<org.eclipse.microprofile.openapi.models.OpenAPI> SERVICE_DESCRIPTOR
-
-
Method Details
-
isEnabled
boolean isEnabled()Indicates whether or not an OpenAPI endpoint is enabled for this deployment.- Returns:
- true, if an OpenAPI endpoint is enabled for this deployment, false otherwise.
-
getOpenApiConfig
io.smallrye.openapi.api.OpenApiConfig getOpenApiConfig()Returns the OpenAPI configuration for this deployment.- Returns:
- the OpenAPI configuration for this deployment.
-
getStaticFile
Map.Entry<org.jboss.vfs.VirtualFile,io.smallrye.openapi.runtime.io.Format> getStaticFile()Returns a tuple containing the static file and its format, or null, if the deployment does not define a static file.- Returns:
- a tuple containing the static file and its format, or null, if the deployment does not define a static file.
-
useRelativeServerURLs
boolean useRelativeServerURLs()Indicates whether or not the OpenAPI document should use relative URLs.- Returns:
- true, if the OpenAPI document for this deployment should use relative URLs, false otherwise.
-