LoginSignup
10
10

More than 3 years have passed since last update.

api設計時のページング設計メモ

Last updated at Posted at 2014-12-29

limitとoffsetが一般的らしい。

Facebook uses offset and limit
Twitter uses page and rpp (records per page)
LinkedIn uses start and count

 

I recommend limit and offset. It is more common, well understood in leading databases, and easy for developers.

RESTful API Design: can your API give developers just the information they need? | Google Cloud Blog
https://cloud.google.com/blog/products/api-management/restful-api-design-can-your-api-give-developers-just-information-they-need

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10