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
See moreid
parameter. Those will return only a single element. All other requests return an array of elementsDeclaration
Swift
public class Client
- Reactive
-
A wrapper of Result
Declaration
Swift
public typealias APIResponse<T> = (Result<T, Error>) -> Void