Skip to content

Pagination is not working as expected #1502

Description

@pray3m

Pagination is not working

Tried with below URL.

http://localhost:8080/products?_page=2&_per_page=10

I have set _per_page as 10
By doing this,
_page=1 is working as expected as it returns 10 data from index 1 to 1
likewise, _page=2 should have also returned 10 data but instead returns 90 data from index 11 to 100
_page=3 returns 80 data from index 21 to 100.
_page=4 returns 70 data from index 31 to 100.

Expected Outcome: Every _page=value should return 10 data as _per_page is set to 10.

Thanks
Prem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions