Home > AI > Backend > SpringBoot > Spring Data REST >

REST API Design: Filtering, Sorting, and Pagination

GET /items?state=active&seller_id=1234. However, this only works for exact matches. What if you want to do a range such as a price or date range?

Pagination:

  1. Client makes request for most recent items: GET /items?limit=20&page=1
  2. On scroll/next page, client makes second request GET /items?limit=20&page=2
  3. On scroll/next page, client makes third request GET /items?limit=20&page=3

Leave a Reply