api-pagination icon indicating copy to clipboard operation
api-pagination copied to clipboard

:page_facing_up: Link header pagination for Rails and Grape APIs.

Results 24 api-pagination issues
Sort by recently updated
recently updated
newest added

This is my config of pagination: ``` config.page_param do |params| params[:page][:number] end config.per_page_param do |params| params[:page][:size] end ``` I have 40 records. I want to get record beginning with id...

## Why The goal of this change is to avoid doing a `COUNT(*)` when paginating a query with only one page of results. This is important to us because we...

In my own projects I was required to change the configuration on request basis. For example you have `/api/v1` which uses a different header name for the page than `/api/v2`....

The link that is sent as a response to the index request is not an existing link, when I try to access it I get the error below. ``` {...

Hi, There are tests failures against grape 1.3.0. Here are the logs: ``` An error occurred while loading ./spec/active_record_spec.rb. Failure/Error: klass = if Grape::VERSION >= '1.2.0' || defined?(Grape::API::Instance) Grape::API::Instance else...

As my API will be used by a frontend app I wanted to set `per_page_param` as camel-cased `:perPage` instead of the default `:per_page`. I used the described in the documentation...

HI David. I noticed that the `per_page` param is converted to the default value when it is 0. I'd like my API's clients to be able to fetch merely the...

Hi! I think this feature suitable for this gem. Solution based on Kaminari and works independently.