typicode / json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)
Other
73.05k stars 7.02k forks source link

per_page (paginate) It works fine only on the first page #1493

Closed imhalid closed 10 months ago

imhalid commented 10 months ago
Screenshot 2024-01-20 at 20 45 10 Screenshot 2024-01-20 at 20 45 24
JaN0h4ck commented 10 months ago

Can confirm, just had the same issue. Steps to reproduce are:

  1. Make a request for page 1 with x _per_page
  2. Make a request for another page with x _per_page

And you get a different amount of items each time.

typicode commented 10 months ago

Working on it :+1:

typicode commented 10 months ago

Fixed

imhalid commented 10 months ago

Fixed

Thanks for the quick fix. I tried it and it works correctly now.

SalahAdDin commented 10 months ago

@imhalid if it is solved, you can close this issue.

imhalid commented 10 months ago

@imhalid if it is solved, you can close this issue.

@SalahAdDin i forgot 👍🏻