bundesAPI / bundesAPI/interpol-api

The REST database does not respect the page parameter

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.