Given 2 resources:
jsonapi_resources :companies
jsonapi_resources :users
User has_many Companies
default_paginator = :paged
/companies
request is paginated and that's what I want. But I also want to disable it for relationship request /users/4/companies
. How to do this?
The best solution I found will be to override
JSONAPI::RequestParser#parse_pagination
like this: