View Source OpenApiSpex.Server (open_api_spex v3.18.3)

Defines the OpenApiSpex.Server.t type.

Link to this section Summary

Functions

Builds a Server from a phoenix Endpoint module

Builds a Server from a phoenix Endpoint module

Link to this section 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.

Link to this section 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