BaseURL

public struct BaseURL
extension BaseURL: CustomStringConvertible

A base URL for the Client.

  • Create a base URL.

    Declaration

    Swift

    public init(location: Location = .default, service: Service = .api, version: String = "1.0")

    Parameters

    location

    a location of the server for the Client.

    service

    a service type.

    version

    a version of API.

  • Create a base URL with a custom URL.

    Declaration

    Swift

    public init(customURL: URL)
  • A service type.

    See more

    Declaration

    Swift

    public enum Service : String
  • A location type.

    See more

    Declaration

    Swift

    public enum Location : String
  • Declaration

    Swift

    public var description: String { get }