AnswerDotAI / ghapi

A delightful and complete interface to GitHub's amazing API
https://ghapi.fast.ai/
Apache License 2.0
626 stars 65 forks source link

/credential-authorizations endpoint missing per_page and page query params #89

Open ffalor opened 3 years ago

ffalor commented 3 years ago

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"