Top Description Methods
org.eclipse.microprofile.openapi.annotations.servers

public @Interface Servers

extends Annotation
Annotations
@Target:TYPE, METHOD
@Retention:RUNTIME
@Inherited
Imports
java.lang.annotation.ElementType, .Inherited, .Retention, .RetentionPolicy, .Target

The Servers annotation is a container for @Server annotations. When used on a method or a type it is treated as if each server annotation were applied individually.

Note

If both Server and Servers annotation are specified on the same type, the server definitions will be combined.

See Also
OpenAPI Specification Server Object

Method Summary

Modifier and TypeMethod and Description
public Server[]

Returns:

the servers used for this API or endpoint.
value
()

An array of Server objects which is used to provide connectivity information to a target server.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Server[] value()

An array of Server objects which is used to provide connectivity information to a target server.

Returns:Server[]

the servers used for this API or endpoint.