View Source OpenApiSpex.Server (open_api_spex v3.21.1)

Defines the OpenApiSpex.Server.t type.

Summary

Functions

Builds a Server from a phoenix Endpoint module

Builds a Server from a phoenix Endpoint module

Types

@type t() :: %OpenApiSpex.Server{
  description: String.t() | nil,
  extensions: %{required(String.t()) => any()} | nil,
  url: String.t(),
  variables: %{required(String.t()) => OpenApiSpex.ServerVariable.t()}
}

Server Object

An object representing a Server.

Functions

@spec from_endpoint(module()) :: t()

Builds a Server from a phoenix Endpoint module

Link to this function

from_endpoint(endpoint, opts)

View Source
This function is deprecated. Use from_endpoint/1 instead.
@spec from_endpoint(module(), ignored :: any()) :: t()

Builds a Server from a phoenix Endpoint module