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

problem in pagination #1508

Closed
mehrdad-kj opened this issue Jan 29, 2024 · 1 comment
Closed

problem in pagination #1508

mehrdad-kj opened this issue Jan 29, 2024 · 1 comment

Comments

@mehrdad-kj
Copy link

"colors": [
{
"id": 1,
"label": "red"
},
{
"id": 2,
"label": "blue"
},
{
"id": 3,
"label": "green"
},
{
"id": 4,
"label": "yellow"
},
{
"id": 5,
"label": "black"
},
{
"id": 6,
"label": "white"
},
{
"id": 7,
"label": "orange"
},
{
"id": 8,
"label": "purple"
}
]
this is part of my json file and when i go to this route http://localhost:4000/colors?_limit=2&_page=1 and this one http://localhost:4000/colors?_limit=2&_page=2 gets the same data.

@typicode
Copy link
Owner

Please use _per_page instead (see README)

@typicode typicode closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants