Is there a way to add JSON pagination using the rails-api gem API?
I want to be able to fetch the first 50 users, then on another call start at the 50th user and get 50 more.
Something like this:
url.com/api/v1/users?start=50
You can use Will Paginate, you can also specify how many item you want to show.
You can also follow Rails Cast tutorial on how to use will paginate
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With