Sim
Well-known member
Sometimes we want to retrieve a list of items via an API based on some criteria (other than the ID).
Rather than paging through a potentially large number of results and filtering at the calling end - it can be far more efficient to filter them when calling and returning only the desired subset of results.
The new v4 Linode API is a great example of this - their API endpoints are relatively simple - but they offer a global filtering and sorting mechanism (using an
Would be a great addition to the new REST API.
Rather than paging through a potentially large number of results and filtering at the calling end - it can be far more efficient to filter them when calling and returning only the desired subset of results.
The new v4 Linode API is a great example of this - their API endpoints are relatively simple - but they offer a global filtering and sorting mechanism (using an
X-Filter
header and JSON encoded parameters) which provides an incredible amount of power and flexibility in what results are returned.Would be a great addition to the new REST API.
Upvote
6