bundesAPI / bundesAPI/interpol-api

The REST database does not respect the page parameter

Offen
#11 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
16
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Reproduce the two requests to /notices/v1/red with page=3 and page=4 and compare their responses, including the reported page value. Then locate the endpoint implementation and pagination handling; done means the requested page is respected and the response reports the corresponding page.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.