Class OpenApiDocumentService
java.lang.Object
io.quarkus.smallrye.openapi.runtime.OpenApiDocumentService
- All Implemented Interfaces:
OpenApiDocumentHolder
@ApplicationScoped
public class OpenApiDocumentService
extends Object
implements OpenApiDocumentHolder
Loads the document and make it available
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classGenerate the document on every request.(package private) static classGenerate the document once on creation. -
Constructor Summary
ConstructorsConstructorDescriptionOpenApiDocumentService(org.eclipse.microprofile.openapi.OASFilter autoSecurityFilter, OpenApiRecorder.UserDefinedRuntimeFilters userDefinedRuntimeFilters, org.eclipse.microprofile.config.Config config) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[](package private) voidreset(ShutdownEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.smallrye.openapi.runtime.OpenApiDocumentHolder
getDocument
-
Constructor Details
-
OpenApiDocumentService
@Inject public OpenApiDocumentService(org.eclipse.microprofile.openapi.OASFilter autoSecurityFilter, OpenApiRecorder.UserDefinedRuntimeFilters userDefinedRuntimeFilters, org.eclipse.microprofile.config.Config config)
-
-
Method Details
-
reset
-
getJsonDocument
public byte[] getJsonDocument()- Specified by:
getJsonDocumentin interfaceOpenApiDocumentHolder
-
getYamlDocument
public byte[] getYamlDocument()- Specified by:
getYamlDocumentin interfaceOpenApiDocumentHolder
-