Open jurcello opened 5 years ago
Not always! JSON:API standard describes both actually. Any fix should be able to handle both situations.
That's a good one. In that case we should write a dedicated parser for the Drupal one, because at the moment it fails at parsing the paging information for Drupal.
Maybe the best way to do this is to define parsers for both situations and let another function detect which parser to use.
In fact JSON:API is agnostic about the pagination strategy that is used by an API (server). Well know strategies include page, offset and cursor based, but are not limited to them.
I.m.o we should allow the client to specify which strategy Hyral should use.
It tries to read the paging using the page query parameter, but jsonAPI returns page[offset] and page[limit]