Project

General

Profile

Actions

Bug #1427

closed

API: Paging is broken

Added by Christoph Hoffmann over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2020-12-02
Estimated time:
Found in version:

Description

When paging the total number of of hits decreases with increasing start number.

e.g. https://demo-dev.openatlas.eu/api/0.1/query/?items=place&limit=50&show=detailed returns 65 hits:

[
{
entities: 65,
entity_per_page: 50,
index: [
{
page: 1,
start_id: 9408,
},
{
page: 2,
start_id: 15386,
},
],
total_pages: 2,
}
],

when continueing to the next page the total number of hits decreases (to the number of entities left going forward I think)

[
{
entities: 15,
entity_per_page: 50,
index: [
{
page: 1,
start_id: 9408,
},
{
page: 2,
start_id: 15386,
},
],
total_pages: 2,
}
],

expected behaviour would be that the hits remain the same, regardless on wich page I currently am

Actions

Also available in: Atom PDF