jakubrohleder / angular-jsonapi

Simple and lightweight, yet powerful ORM for your frontend that seamlessly integrates with your JsonAPI server.
http://jakubrohleder.github.io/angular-jsonapi/
GNU General Public License v3.0
96 stars 34 forks source link

Support for pagination #24

Open hedder opened 8 years ago

hedder commented 8 years ago

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?

jakubrohleder commented 8 years ago

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).

LavaToaster commented 8 years ago

@jakubrohleder Do you have any ETA?

pablorsk commented 8 years ago

I'm interested too :)