AnswerDotAI / AnswerDotAI/ghapi
/credential-authorizations endpoint missing per_page and page query params
- Vorherrschende Sprache
- Python
- Sterne
- 685
- Forks
- 70
- Ø Merge
- 1 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
It looks like the API spec for [Credential Authorizations](https://docs.github.com/en/rest/reference/orgs#list-saml-sso-authorizations-for-an-organization) 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
```
; rel="next",
; rel="last"
```
Calling the API and passing in `?per_page=100&page=1'
Returns 100 results, and the following for `Link` header
```
; rel="next",
; rel="last"
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, die OpenAPI-Definition für den Credential Authorizations-Endpunkt zu finden und sie mit der verlinkten GitHub REST-Dokumentation zu vergleichen. Füge die Abfrageparameter `per_page` und `page` hinzu und überprüfe anschließend, dass die API-Spezifikation beide Parameter akzeptiert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github, openapi, python
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100