3 ms·
Here's an example of an endpoint that returns a JSON array. Check the response body of the List Commits endpoint: https://docs.github.com/en/rest/reference/repo
by benatkin 5y ago
Here's an example of an endpoint that returns a JSON array. Check the response body of the List Commits endpoint: https://docs.github.com/en/rest/reference/repos#list-commits https://docs.github.com/en/rest/reference/repos#list-commits
You need a way to get to the next page. Some APIs might return it in the JSON response. GitHub returns it in the Link header (not really a custom header). Details here: https://docs.github.com/en/rest/guides/traversing-with-pagination https://docs.github.com/en/rest/guides/traversing-with-pagin...