A library for Facilitates fetching data from a paginated JSON API.
Describes an API response.
A response may either be Partial (there are more pages of results yet to be fetched), or Complete (all records have been fetched). The response includes all of the items fetched in order.
Build a GET request.
Build a POST request.
Describes an API request.
Create a custom request, allowing the specification of HTTP headers and other options. For example:
Paginated.request
{ method = "GET"
, headers = [Http.header "Private-Token" "XXXXXXXXXXXXXXXX"]
, url = url
, body = Http.emptyBody
, decoder = decoder
, timeout = Nothing
, withCredentials = False
}Convert a Request to a Http.Request that can then be sent via
Http.send.
Send a Request.
Describes an API response.
A response may either be Partial (there are more pages of results yet to be fetched), or Complete (all records have been fetched). The response includes all of the items fetched in order.
Append two paginated responses, collecting the results within.
Encapsulates an API request for a list of items of type
a.