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

pagination #50

Open
michalmikolajczyk opened this issue Jul 19, 2017 · 0 comments
Open

pagination #50

michalmikolajczyk opened this issue Jul 19, 2017 · 0 comments
Assignees
Labels

Comments

@michalmikolajczyk
Copy link
Owner

Please allow FE to pass the variables:

limit – the actual count of nodes returned for every request
page – an offset calculator, i.e. page * limit = offset
sorting – a string, including two words, e.g. price_asc or distance_desc, where the first word is a variable, and the second is the order

The API should return a meta object with the query, and in that object, the total count of nodes should be displayed, so that FE can quickly check if there are more nodes or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants