public interface SwaggerV3
| Modifier and Type | Field and Description |
|---|---|
static Class<? extends io.swagger.v3.jaxrs2.ReaderListener> |
CONTEXT_READER_LISTENER
A
ReaderListener class to include in the OpenAPI classes to enable a consistent API definition generation
when the PropertyBox type is used. |
| Modifier and Type | Method and Description |
|---|---|
static io.swagger.v3.oas.integration.api.OpenApiContext |
adapt(io.swagger.v3.oas.integration.api.OpenApiContext context)
Adapt given
OpenApiReader to ensure the CONTEXT_READER_LISTENER class inclusion in the
classes to read, using an adapted OpenApiReader. |
static io.swagger.v3.oas.integration.api.OpenApiReader |
adapt(io.swagger.v3.oas.integration.api.OpenApiReader reader)
Adapt given
OpenApiReader to ensure the CONTEXT_READER_LISTENER class inclusion in the
classes to read. |
static String |
asJson(io.swagger.v3.oas.models.OpenAPI api)
Convert given API definition in JSON format.
|
static String |
asJson(io.swagger.v3.oas.models.OpenAPI api,
boolean pretty)
Convert given API definition in JSON format.
|
static String |
asYaml(io.swagger.v3.oas.models.OpenAPI api)
Convert given API definition in YAML format.
|
static String |
asYaml(io.swagger.v3.oas.models.OpenAPI api,
boolean pretty)
Convert given API definition in YAML format.
|
static ApiReader<io.swagger.v3.oas.models.OpenAPI> |
reader(io.swagger.v3.oas.integration.api.OpenAPIConfiguration configuration)
Create a new
ApiReader to create an OpenAPI definition from a set of API resource classes. |
static final Class<? extends io.swagger.v3.jaxrs2.ReaderListener> CONTEXT_READER_LISTENER
ReaderListener class to include in the OpenAPI classes to enable a consistent API definition generation
when the PropertyBox type is used.static ApiReader<io.swagger.v3.oas.models.OpenAPI> reader(io.swagger.v3.oas.integration.api.OpenAPIConfiguration configuration)
ApiReader to create an OpenAPI definition from a set of API resource classes.configuration - The API configuration to useApiReader instancestatic String asJson(io.swagger.v3.oas.models.OpenAPI api, boolean pretty)
api - The API model to serializepretty - Whether to pretty format the outputstatic String asJson(io.swagger.v3.oas.models.OpenAPI api)
api - The API model to serializestatic String asYaml(io.swagger.v3.oas.models.OpenAPI api, boolean pretty)
api - The API model to serializepretty - Whether to pretty format the outputstatic String asYaml(io.swagger.v3.oas.models.OpenAPI api)
api - The API model to serializestatic io.swagger.v3.oas.integration.api.OpenApiReader adapt(io.swagger.v3.oas.integration.api.OpenApiReader reader)
OpenApiReader to ensure the CONTEXT_READER_LISTENER class inclusion in the
classes to read.
The CONTEXT_READER_LISTENER class is required to provide a consistent API definition when the
PropertyBox type is used.
reader - The reader to adapt (not null)OpenApiReaderstatic io.swagger.v3.oas.integration.api.OpenApiContext adapt(io.swagger.v3.oas.integration.api.OpenApiContext context)
OpenApiReader to ensure the CONTEXT_READER_LISTENER class inclusion in the
classes to read, using an adapted OpenApiReader.context - The context to adapt (not null)OpenApiContextadapt(OpenApiReader)Copyright © 2019 The Holon Platform. All rights reserved.