This is documentation for an unreleased version. For the latest API, see version 2.5.
Version: Next
HasItems
Structural contract for a single page of results from a paginated API endpoint.
Implementations must expose items. They may optionally expose count — the number of items scanned by the API for
this page, which can exceed len(items) when filters drop items from the response. The iterator helpers consult
count opportunistically via getattr for offset bookkeeping and fall back to len(items) when it is absent.
Structural contract for a single page of results from a paginated API endpoint.
Implementations must expose
items. They may optionally exposecount— the number of items scanned by the API for this page, which can exceedlen(items)when filters drop items from the response. The iterator helpers consultcountopportunistically viagetattrfor offset bookkeeping and fall back tolen(items)when it is absent.