bundesAPI / bundesAPI/interpol-api

The REST database does not respect the page parameter

オープン
#11 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
16
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

There is an issue with the REST database itself.

There is no difference in the result of 2 requests with different page parameter.

e.g.
Request
https://ws-public.interpol.int/notices/v1/red?**page=4**&resultPerPage=160

return the same response as request
https://ws-public.interpol.int/notices/v1/red?**page=3**&resultPerPage=160

The JSON response does show the page parameter of the request with the value 1.

So it looks like the REST API prefers a default of 1 instead of respecting the parameter of the request.

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

/notices/v1/red への page=3 と page=4 の2つのリクエストを再現し、報告されたページ値を含めてレスポンスを比較します。次に、エンドポイントの実装とページネーション処理を特定します。要求されたページが尊重され、レスポンスに対応するページが報告されれば完了です。

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

評価

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

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

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