pagination: Spring Data JPA Page vs Slice vs keyset Window scrolling, with the SQL and REST shapes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4bLvQVbZweAqqf54x
This commit is contained in:
Claude
2026-11-16 11:13:56 +05:30
parent e3d1b550ae
commit 91938727f2
42 changed files with 1446 additions and 0 deletions
@@ -0,0 +1,5 @@
GET /products/echo -> 200 {"sort":"UNSORTED","size":20,"page":0}
GET /products/echo?page=2&size=5&sort=price,desc&sort=id -> 200 {"sort":"price: DESC,id: ASC","size":5,"page":2}
GET /products/echo?size=100000 -> 200 {"sort":"UNSORTED","size":2000,"page":0}
GET /products/echo?page=-3&size=0 -> 200 {"sort":"UNSORTED","size":20,"page":0}
GET /products/echo?page=abc -> 200 {"sort":"UNSORTED","size":20,"page":0}