question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

generic pagination support page[xy] next to offset/limit

See original GitHub issue

Is there a reason QuerySpec doesn’t support page[number]?

from the spec: Note: JSON API is agnostic about the pagination strategy used by a server. Effective pagination strategies include (but are not limited to): page-based, offset-based, and cursor-based. The page query parameter can be used as a basis for any of these strategies. For example, a page-based strategy might use query parameters such as page[number] and page[size], an offset-based strategy might use page[offset] and page[limit], while a cursor-based strategy might use page[cursor].

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
remmeiercommented, Feb 27, 2018

just yesterday it was merged thanks to the PR of @vicmosin. I will also to some experiments with it and then do a release.

crnk API is still fairly compatible, altough QueryParams and some other things have been deprecated. The internal implementation is mostly rewritten (taking Katharsis 2.x as baseline).

0reactions
Ramblurrcommented, Feb 28, 2018

Mega props, thanks @vicmosin and @remmeier 😄 That is such good news to hear 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Initialize the Generic Beat with Limit Offset Pagination, Basic ...
This topic outlines the process to set up the Generic beat to fetch logs from any log sources that support limit offset-based pagination, ......
Read more >
Pagination - Django REST framework
The client includes both a "limit" and an "offset" query parameter. The limit indicates the maximum number of items to return, and is...
Read more >
Pagination - Smartling Help Center
If you don't include the offset and limit parameters in the request, the offset defaults to 0 and the response will include only...
Read more >
Pagination: offset and limit | Open APIs - TM Forum Community
1) Pagination is mandatory - Assumed answer is yes. 2) Pagination can be done with offset and limit or, must be done with...
Read more >
The best database pagination technique is
To get the second page, we keep the limit at 10 ( this doesn't change since we want every page to contain 10...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found