@ApplicationScoped public class OpenApiDocumentProducer extends Object
| Constructor and Description |
|---|
OpenApiDocumentProducer() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
create()
We load the document from the generated JSON file, which should have all the annotations
Most apps will likely just want to serve the OpenAPI doc, rather than inject it, which is why we generated the
static file and parse it if required.
|
(package private) io.smallrye.openapi.api.OpenApiDocument |
openApiDocument() |
@PostConstruct void create() throws IOException
IOException@Produces @Dependent io.smallrye.openapi.api.OpenApiDocument openApiDocument()
Copyright © 2020 JBoss by Red Hat. All rights reserved.