17 ms·
Pagination is implicitly non-restful as page=X can change anytime a new book is added, depending on the ordering getting done.
by bad_user 15y ago
Pagination is implicitly non-restful as page=X can change anytime a new book is added, depending on the ordering getting done.
- bradgessler 15y agoThat's like saying that a resource is implicitly non-restful because its state might change. If a book is added, the page=x resource is simply outdated and should be refreshed.
- justincormack 15y agoIf you need page stability you can refer to the items at the top of the page not the page numbers, the nice thing about rest is they are still just next and prev links.
- pornel 15y agoRoy Fielding's paper says that "temporal services" are OK: > A resource is a conceptual mapping to a set of entities, not the entity that corresponds to the mapping at any particular point in time. http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch...