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 Classes Modifier and Type Class Description (package private) classOpenApiDocumentService.DynamicDocumentGenerate the document on every request.(package private) classOpenApiDocumentService.StaticDocumentGenerate the document once on creation.
-
Constructor Summary
Constructors Constructor Description OpenApiDocumentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcreate()byte[]getJsonDocument()byte[]getYamlDocument()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.smallrye.openapi.runtime.OpenApiDocumentHolder
getDocument
-
-
-
-
Method Detail
-
create
@PostConstruct void create() throws IOException- Throws:
IOException
-
getJsonDocument
public byte[] getJsonDocument()
- Specified by:
getJsonDocumentin interfaceOpenApiDocumentHolder
-
getYamlDocument
public byte[] getYamlDocument()
- Specified by:
getYamlDocumentin interfaceOpenApiDocumentHolder
-
-