You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But JsonApiClient::Query::Builder#pagination_paramswraps those in a page: {…}, resulting in URLs like
?page[page[number]]=2&page[page[size]]=20
Without overriding #pagination_params, there's no way to get rid of the page[…] wrapping. Moving the wrapping to page_param and per_page_param probably requires a major version bump. In the meantime, a little more documentation would help.
The text was updated successfully, but these errors were encountered:
senid231
added a commit
to senid231/json_api_client
that referenced
this issue
Oct 3, 2018
The current pagination docs are a bit confusing. They suggest
But
JsonApiClient::Query::Builder#pagination_params
wraps those in apage: {…}
, resulting in URLs likeWithout overriding
#pagination_params
, there's no way to get rid of thepage[…]
wrapping. Moving the wrapping topage_param
andper_page_param
probably requires a major version bump. In the meantime, a little more documentation would help.The text was updated successfully, but these errors were encountered: