API Design · Junior · Question 30 of 75
How can an API tell clients there are more pages?
- ✓Correct answer: Return a
nextCursor(or next link) in the body or aLinkheader withrel="next" - 2Return status 206 for every page
- 3Clients should keep requesting until they get a 404
Explanation
The Link header is defined in RFC 8288; GitHub's API uses it for pagination.