-
Notifications
You must be signed in to change notification settings - Fork 60
Pagination ... semantic clarification #142
Comments
seek is focused to inform the last read item identifier in a store with a high number of records. |
Thanks @RubenBG7, |
Imagine that you are working on a store with dynamic records, seek allows you to know between request which record id you checked, Limit and offset queries work same page and per_page. |
Thanks @RubenBG7 In all cases I dont understand the sample in the guidelines that tells : |
I think, what is confusing in the documentation is the parameter naming. Maybe we can choose for each API the most relevant implementation for this API with an appropriate parameter naming What do you think about? |
@RubenBG7 , @patrice-conil
|
@aeftef , @RubenBG7 Have a nice week-end. |
Hi ,
I have some issues with the way we handle pagination.
The semantics of per_page, page and seek are not very clear...as far as the example we provide.
With a per_page=20 and a page=10... I imagine retrieving elements from the 200th but the second example says they will start from the 10th.
Is seek not redundant if we consider (per_page * page) is the first element we ant to retrieve?
Maybe a simple definition with two parameters: offset and limit should be clearer.
offset = index of first element to retrieve
limit = max number of element to retrieve
They are also typos is the example (petition => pagination, and returnss => returns), see below.
================ Sample in the doc ===============
Petitions examples:
page=0 per_page=20, which returnss the first 20 resources
page=10 per_page=20, which returns 20 resources from the 10th element.
The text was updated successfully, but these errors were encountered: