angular-jsonapi icon indicating copy to clipboard operation
angular-jsonapi copied to clipboard

Support for pagination

Open hedder opened this issue 9 years ago • 3 comments

Of.spec has a statement regarding pagination

A server MAY choose to limit the number of resources returned in a response to a subset ("page") of the whole set available.

A server MAY provide links to traverse a paginated data set ("pagination links").

Pagination links MUST appear in the links object that corresponds to a collection. To paginate the primary data, supply pagination links in the top-level links object. To paginate an included collection returned in a compound document, supply pagination links in the corresponding links object.

The following keys MUST be used for pagination links:

first: the first page of data last: the last page of data prev: the previous page of data next: the next page of data

here

Do you have plans to support pages?

hedder avatar Nov 14 '15 23:11 hedder

Certainly! I'm back from my journey and this is the next point on my roadmap.

I'll prepare the paginated object API example today and if it suits you i'll add it in the next release (probably by the end of a week).

jakubrohleder avatar Dec 02 '15 15:12 jakubrohleder

@jakubrohleder Do you have any ETA?

LavaToaster avatar Dec 10 '15 16:12 LavaToaster

I'm interested too :)

pablorsk avatar Dec 29 '15 13:12 pablorsk