Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paging with id (token) instead offset number #411

Open
raffis opened this issue Nov 13, 2019 · 0 comments
Open

Paging with id (token) instead offset number #411

raffis opened this issue Nov 13, 2019 · 0 comments

Comments

@raffis
Copy link
Contributor

raffis commented Nov 13, 2019

Describe the change

Support token based paging. We should support to fetch resources from a specific id which is a cursor in this case.

Current situation

Currently paging for all endpoints is supported using offset:x while x is a number.

Should

Offset should accept an id which is most likely the resource id. Since the resource id contains the date/time it is possible to retrieve all resources > _id.

Due backwards compatibility offset should probably accept a number as well.

@raffis raffis added this to the 3.0.x milestone Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant