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
you Can use "api-pagination" gem for add JSON pagination .
for more info go through with this : https://github.com/davidcelis/api-pagination
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.