JSON:API Interface #544
Replies: 4 comments 5 replies
-
@ddnexus What JsonApi wants to do here is this possible to reopen this? |
Beta Was this translation helpful? Give feedback.
-
Handling params with a different syntax could be done in an extension and in theory it could be relatively simple. If anyone could prepare a minimal app showing the problem, I could take a look. |
Beta Was this translation helpful? Give feedback.
-
Ok, I am willing to implement this, but I need a few answers. From your input I understand that the conventional way to pass the pagination params for JSON API would be passing nested query params under the What I don't get from your input is whether that particular structure is required in order to be compliant with the convention or it's a technical matter of the structure used by another app/lib/class? Should every pagy related param be put into the nested structure or just a well defined few? Do you have a list? AFAIR pagy uses only the That params from the request are used for creating the pagy object, and are also used to generate the urls of each page. If they are the only params to take care of, it should be quite simple. Please, let me know. |
Beta Was this translation helpful? Give feedback.
-
The jsonapi branch seems to be working! |
Beta Was this translation helpful? Give feedback.
-
In JSON:API pagination example
Rails controller
Pagy::VARS[:page_param] cannot set the number in hash.
Can't use pagy_metadata in JSON:API.
Related code
pagy/lib/pagy/frontend.rb
Line 18 in 49205fe
Beta Was this translation helpful? Give feedback.
All reactions