fix to properly use max per page settings - #3279
Conversation
pengyin-shan
left a comment
There was a problem hiding this comment.
Tested your branch and it works. Thank you!
|
@briri can I suggest you add logic to the Rest API version of V0 app/controllers/api/v0/base_api_controller.rb |
|
@briri The API V1 works fine and UI pagination. Found issue with API V0. It is broken. Error:
Please add pagination_params() to app/controllers/api/v0/base_controller.rb. It works when I added it in. |
…ude functionality in the plans controller
|
thanks @johnpinto1. I had originally added the function there to mimic v1 but then realized that plans was the only paginated endpoint and it needed |
johnpinto1
left a comment
There was a problem hiding this comment.
Thanks @briri. Ready to merge @benjaminfaure
api_max_page_sizeconfiguration parampaginable.rbto useresults_per_pageinstead ofapi_max_page_size