APICall

public protocol APICall

A protocol defining the properties required for making an API call.

  • The path component of the API call URL.

    Declaration

    Swift

    var path: String { get }
  • The HTTP method used for the API call.

    Declaration

    Swift

    var method: HTTPMethod { get }
  • The headers to be included in the API call.

    Declaration

    Swift

    var headers: [HTTPHeaderField : String]? { get }
  • Request parameters to be included in the API call.

    Declaration

    Swift

    var params: Encodable? { get }