APIServer

public struct APIServer

Defines the base URL of an API Server, and provides a default production value.

The actual base URL used can be overridden by an environment variable called JACQUARD_BASE_URL_OVERRIDE, useful eg. for CI servers running hermetic integration tests or custom Xcode testing Schemes.

  • Creates an APIServer instance for a custom URL.

    Declaration

    Swift

    public init(baseURL: URL)
  • Creates an APIServer instance for the production instance.

    Declaration

    Swift

    public static var production: APIServer { get }