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
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