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

Easy API pagination for Rails

Results 10 pager-api issues
Sort by recently updated
recently updated
newest added

I'm currently using this with a project and it's working well for including pagination metadata in a JSONAPI using AMS and Kaminari. However I want to extend the returned metadata...

### What does this PR do? * Currently the pagination implementation completely overwrites the response `:meta` options - I have a use case that requires adding additional options to the...

The link in the README points to nothing: https://github.com/IcaliaLabs/pager-api#documentation

### What does this PR do? * Allows to user other methods name, for example, if you use kaminari and will_paginate together and you need to change the pagination method...

My code looks like this, I need to render other keys `unless params[:search].present?` `@response.merge!({code: 0, message:"failed, please provide search term"})` `else` `data = Model.search(params[:search])` `@response[:data] = { search_result: data, size:...

![screen shot 2018-07-04 at 9 06 19 am](https://user-images.githubusercontent.com/944683/42281593-a2dd51ba-7f69-11e8-9a6f-aac020bab564.png)

enhancement
help wanted

FYI: https://keepachangelog.com/en/0.3.0/

enhancement
help wanted

I use `gem 'active_interaction'` and pager-api not included to class Interactions code example ```ruby class Interactions::Users::List < ActiveInteraction::Base include Contracts::Core include Contracts::Builtin array :role, default: nil do :string end Contract...

On a [conversation](https://github.com/IcaliaLabs/pager-api/pull/23) with @ddnexus and @cseelus we were discussing about the possibility of having a a configuration option for the `:page` param, rather than hard coding it to `:page`....

``` def index paginate Loan.unscoped end ``` ``` Started GET "/loans" for 127.0.0.1 at 2017-04-05 11:31:31 -0400 Processing by LoansController#index as */* Parameters: {"loan"=>{}} CACHE (0.0ms) SELECT COUNT(*) FROM "loans"...