Say an API has a collection of models that allows filtering/sorting
GET .../models?filter=some-filter?sortBy=field1:ascending,field2:descending
and the response contains a set of link relations for paginating, such as the following Atom links:
{ "rel" : "first", .... }.
{ "rel" : "prev", ... },
{ "rel" : "next", ... },
What do people suggest for the link relation that returns to the unfiltered list (with default sort)?
There might be a generic, reusable link relation that would apply to all collections:
{ "rel" : "all", .... }
or
{ "rel" : "collections", ... }
or I could go with a resource-specific link relation, i.e. in this case
{ "rel" : "models", ... }
Suggestions? I've tried to identify APIs that use such link relations, but I'm not having much luck.
(references welcome)
thanks,
djb