Example usage:
@POST
@Servers(value={
@Server(url = "localhost:9080/{proxyPath}/reviews/id",
description = "view of all the reviews",
variables = { @ServerVariable(name = "proxyPath", description = "Base path of the proxy", defaultValue = "proxy") }),
@Server(url = "http://random.url/reviews", description = "random text")
})
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | Server
This annotation represents a Server used in an operation or used by all operations in an OpenAPI document. |
| public @interface | Servers
The Servers annotation is a container for @Server annotations. |
| public @interface | ServerVariable
An object representing a Server Variable for server URL template substitution. |