public class OpenAPISupport extends Object implements Service
The application can use the OpenAPISupport.Builder to set OpenAPI-related
attributes, including:
Method on OpenAPISupport.Builder |
Purpose |
|---|---|
OpenAPISupport.Builder.config(io.helidon.config.Config) |
sets multiple OpenAPI-related items from a Config object |
OpenAPISupport.Builder.staticFile(java.lang.String) |
sets the static OpenAPI document file (defaults in order to openapi.yaml,
openapi.yml, or openapi.json) |
OpenAPISupport.Builder.enableAnnotationProcessing(boolean) |
sets whether OpenAPI annotations should be processed |
OpenAPISupport.Builder.webContext |
sets the endpoint path that will serve the OpenAPI document |
OpenAPISupport.Builder.modelReader(java.lang.String) |
sets the application-provided class for adding to the OpenAPI document |
OpenAPISupport.Builder.filter(java.lang.String) |
sets the application-provided class for filtering OpenAPI document information |
OpenAPISupport.Builder.servers(java.lang.String) |
sets the servers to be reported in the OpenAPI document |
OpenAPISupport.Builder.addOperationServer(java.lang.String, java.lang.String) |
associates a server with a given operation ID |
OpenAPISupport.Builder.addPathServer(java.lang.String, java.lang.String) |
associates a server with a given path |
openapi file, then the /openapi endpoint responds with
a nearly-empty OpenAPI document.| Modifier and Type | Class and Description |
|---|---|
static class |
OpenAPISupport.Builder
Fluent API builder for
OpenAPISupport. |
| Modifier and Type | Field and Description |
|---|---|
static io.helidon.common.http.MediaType |
DEFAULT_RESPONSE_MEDIA_TYPE
Default media type used in responses in absence of incoming Accept header.
|
static String |
DEFAULT_WEB_CONTEXT
Default path for serving the OpenAPI document.
|
| Modifier and Type | Method and Description |
|---|---|
static OpenAPISupport.Builder |
builder()
Creates a new
OpenAPISupport.Builder for OpenAPISupport using defaults. |
static OpenAPISupport |
create()
Creates a new
OpenAPISupport instance using defaults. |
static OpenAPISupport |
create(Config config)
Creates a new
OpenAPISupport instance using the
'' portion of the provided Config object. |
void |
update(Routing.Rules rules) |
public static final String DEFAULT_WEB_CONTEXT
public static final io.helidon.common.http.MediaType DEFAULT_RESPONSE_MEDIA_TYPE
public void update(Routing.Rules rules)
public static OpenAPISupport.Builder builder()
OpenAPISupport.Builder for OpenAPISupport using defaults.public static OpenAPISupport create()
OpenAPISupport instance using defaults.public static OpenAPISupport create(Config config)
OpenAPISupport instance using the
'' portion of the provided Config object.config - Config object containing OpenAPI-related settingsOpenAPISupport instance created using the config settingsCopyright © 2018–2019 Oracle Corporation. All rights reserved.