I use jsonapi-resources gem in my Rails app. One of my resources is using pagination. There are cases when I want to disable the pagination and make sure that user will get back all the results.
I tried custom implementation with some custom filter, but failed.
I tried passing "weird" values to paginator, but that did not help (examples for paged paginator):
/api/v1/bars?page[size]=-1
- value not allowed/api/v1/bars?page[size]=0
- value not allowed/api/v1/bars?page[size]=999999
- sure, this might work, but it is 100%