장점:
단점:
장점:
단점:
요청 타입 | 첫 번째 요청 | 첫 번째 응답 | 두 번째 요청 | 두 번째 응답 |
---|---|---|---|---|
커서기반 | GET /posts?limit=3 | [ { id: 10, title: "게시물 J" }, { id: 9, title: "게시물 I" }, { id: 8, title: "게시물 H" } ] | GET /posts?limit=3&cursor=8 | [ { id: 7, title: "게시물 G" }, { id: 6, title: "게시물 F" }, { id: 5, title: "게시물 E" } ] |
오프셋기반 | GET /posts?limit=3&offset=0 | [ { id: 10, title: "게시물 J" }, { id: 9, title: "게시물 I" }, { id: 8, title: "게시물 H" } ] | GET /posts?limit=3&offset=3 | [ { id: 7, title: "게시물 G" }, { id: 6, title: "게시물 F" }, { id: 5, title: "게시물 E" } ] |