Filtering and sorting
Narrow and order a listing
Listings accept five query parameters: page, filter, sort, include and fields. Any other query parameter answers 422.
Each endpoint documents the filters, sorts and includes it accepts.
Filtering
Filters go under filter:
- A list filter takes several values with
[]. A row matches when it matches any of them. - Several filters combine: a row must match all of them.
- Boolean filters take
1or0(trueandfalsealso work). - An empty value is ignored:
filter[team]=does not filter.
Sorting
sort takes a comma-separated list of fields. A leading - sorts that field in descending order:
Without sort, each listing uses the default order its endpoint documents.
Mistakes: 400 or 422
The allowed values are listed in full in the real answer:
