Client

  • Client is the root of all requests. It contains two built-in types of making requests

    • Reactive Single events
    • Completion callbacks

    A request may have a few different parameters

    • Page and Per Page
      • standard pagination, optional
    • Filter and Range
      • A ParameterObject with optional fields for filtering or applying ranges
    • Sort
      • A SortObject that contains keys to sort by (ascending or decending)

    Certain requests may also include an id parameter. Those will return only a single element. All other requests return an array of elements

    See more

    Declaration

    Swift

    public class Client
  • A wrapper of Result

    Declaration

    Swift

    public typealias APIResponse<T> = (Result<T, Error>) -> Void