AnswerDotAI / AnswerDotAI/ghapi

/credential-authorizations endpoint missing per_page and page query params

オープン
#89 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
685
フォーク
70
平均マージ
1分
マージ済み PR(30日)
2

説明

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"
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Credential Authorizations エンドポイントの OpenAPI 定義を見つけ、リンク先の GitHub REST ドキュメントと比較します。クエリパラメーター `per_page` と `page` を追加し、API 仕様が両方のパラメーターを受け入れることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github, openapi, python
領域
api
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。