@Version("2.0") @ProviderType

Package org.eclipse.microprofile.openapi.models.servers

Model interfaces to represent servers used for a single API operation or for all operations in an OpenAPI document, as well as a way to represent variables for server URL template substitution.

The behaviour of methods inherited from java.lang.Object are undefined by the MicroProfile OpenAPI specification.

Example usage:

  public OpenAPI buildModel() {
      return OASFactory.createOpenAPI()
                      .description("The production API server")
                      .addVariable("username", OASFactory.createServerVariable()
                              .description("Reviews of the app by users")