@Target(value={TYPE,METHOD}) @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.
|
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
Copyright © 2017. All rights reserved.