Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Api Pagination | 653 | 329 | 14 | 2 years ago | 32 | October 26, 2021 | 23 | mit | Ruby | |
:page_facing_up: Link header pagination for Rails and Grape APIs. | ||||||||||
Grape Pagination | 13 | 7 | 9 years ago | 4 | August 23, 2013 | 3 | mit | Ruby | ||
Pagination helpers for Grape. | ||||||||||
Grape_ape_rails | 8 | 8 years ago | 15 | June 29, 2015 | mit | Ruby | ||||
Kaminari Grape | 7 | 24 | 3 | 2 years ago | 4 | January 25, 2017 | mit | Ruby | ||
Kaminari Grape adapter | ||||||||||
Her Kaminari | 5 | 2 | 1 | 7 years ago | 3 | October 09, 2015 | 4 | mit | Ruby | |
Kaminari pagination for Her models | ||||||||||
Yakports | 1 | 9 years ago | JavaScript | |||||||
Grape Client | 1 | 7 years ago | 1 | mit | Ruby | |||||
Simple access from your client to Grape APIs. Automatically supports: kaminari pagination, network access cache, nested objects, http basic authentication. |
Provides helpers for paginating collections in Grape
endpoints. Currently only works with with will_paginate,
or something that responds to the same paginate
interface.
Add this line to your application's Gemfile:
gem 'grape-pagination'
Tag your endpoint as supporting pagination params, then use the paginate
helper.
class API < Grape::API
desc 'Gets everything!'
paginate
get do
paginate collection
end
end
Which would result in a paginated collection and the following headers set:
X-Total: 150
Link: <http://localhost:5000/api/v1/tweets?page=2&per_page=30>; rel="next"
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)