the pager reacts strangely on these versions
- incorrect behaviour
https://play.dhis2.org/2.31.9/api/organisationUnits.json
https://play.dhis2.org/2.32.5/api/organisationUnits.json
"pager": {
"page": 1,
"pageCount": 1,
"total": 50,
"pageSize": 50
},
In fact it looks like it behave like the event api (where you need to force the page number calculations)
Am I missing such a parameter (totalPages=true) ?
- Expected behaviour
https://play.dhis2.org/2.30/api/organisationUnits.json
https://play.dhis2.org/2.33.4/api/organisationUnits.json
https://play.dhis2.org/2.34.0/api/organisationUnits.json
"pager": {
"page": 1,
"pageCount": 27,
"total": 1332,
"pageSize": 50,
"nextPage": "https://play.dhis2.org/2.34.0/api/organisationUnits.json?page=2"
},