Azure / data-api-builder

Data API builder provides modern REST and GraphQL endpoints to your Azure Databases and on-prem stores.
https://aka.ms/dab/docs
MIT License
949 stars 197 forks source link

[Enhancement]: Page by index #2460

Open JerryNixon opened 1 week ago

JerryNixon commented 1 week ago

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 #2459
  2. Is this zero-based? Yes.
  3. How to handle out of bounds? Just return an error.