Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: Page by index #2460

Open
JerryNixon opened this issue Nov 15, 2024 · 0 comments
Open

[Enhancement]: Page by index #2460

JerryNixon opened this issue Nov 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@JerryNixon
Copy link
Contributor

JerryNixon commented Nov 15, 2024

Proposal

Consider enabling paging by index only.

Why?

Most UI use simple paging, which is index paging.

Though this would not take advantage of our current cursor approach, it would be the simplest to implement.

Sample syntax

http://server/api/entity?$page=2

Configuration

This would not require any additional configuration change.

Other details

  1. Closely related to [Enhancement]: Pagination metadata #2459
  2. Is this zero-based? Yes.
  3. How to handle out of bounds? Just return an error.
@JerryNixon JerryNixon added the enhancement New feature or request label Nov 15, 2024
@JerryNixon JerryNixon changed the title [Enhancement]: Page by index [Enhancement]: Page by index (proposal) Nov 15, 2024
@JerryNixon JerryNixon changed the title [Enhancement]: Page by index (proposal) [Enhancement]: Page by index Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant