bundesAPI / bundesAPI/interpol-api
The REST database does not respect the page parameter
- Ngôn ngữ chính
- Python
- Star
- 16
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Tái hiện hai request tới /notices/v1/red với page=3 và page=4 rồi so sánh các response của chúng, bao gồm cả giá trị page được báo cáo. Sau đó, tìm phần triển khai endpoint và cơ chế xử lý phân trang; hoàn thành khi page được yêu cầu được tôn trọng và response báo page tương ứng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100