@Target(value={METHOD,TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Repeatable(value=Servers.class) @Inherited public @interface Server
Operation.servers()
to define servers for the
single operation (when applied at method level) or for all operations of a class (when applied at class level).
It can also be used in OpenAPIDefinition.servers()
to define spec level servers.
OpenAPIDefinition
,
Operation
Modifier and Type | Optional Element and Description |
---|---|
String |
description
An optional string describing the host designated by the URL.
|
Extension[] |
extensions
The list of optional extensions
|
String |
url
Required.
|
ServerVariable[] |
variables
An array of variables used for substitution in the server's URL template.
|
public abstract String url
public abstract String description
public abstract ServerVariable[] variables
public abstract Extension[] extensions
Copyright © 2020. All rights reserved.