ghapi
ghapi copied to clipboard
/credential-authorizations endpoint missing per_page and page query params
It looks like the API spec for Credential Authorizations is missing the per_page
and page
params.
Calling the endpoint without these params will return 30 results.
In the Link
header of the response it will include the next page, and the last page
<https://api.github.com/organizations/{orgid}/credential-authorizations?page=2>; rel="next",
<https://api.github.com/organizations/{orgid}/credential-authorizations?page=66>; rel="last"
Calling the API and passing in `?per_page=100&page=1'
Returns 100 results, and the following for Link
header
<https://api.github.com/organizations/{orgid}/credential-authorizations?per_page=100&page=2>; rel="next",
<https://api.github.com/organizations/{orgid}/credential-authorizations?per_page=100&page=20>; rel="last"