Closed toddmohney closed 5 years ago
@toddmohney this would be a handy feature for us on our project. May I submit a PR with this feature?
@shirren Of course! Thanks!
@toddmohney thoughts on whether this feature should support a cursor based strategy? I was thinking of supporting a page-based strategy and offset-based strategy.
@shirren just took a look at your draft PR. I think the page/offset strategy works well here.
@toddmohney thanks for checking it out. The tests pass, so good there. But I am thinking of updating the README with instrsuctions on how to use the Pagination. Should we make it part of this PR or another one?
@shirren I think updating the README as part of this PR makes a lot of sense. Thanks!
@toddmohney done. I've updated the README with an example on how to add pagination links to the payload.
Resolved by https://github.com/toddmohney/json-api/pull/35
Specification: http://jsonapi.org/format/#fetching-pagination