Skip to content

Commit

Permalink
Merge pull request #142 from dhis2/tracker-pagination
Browse files Browse the repository at this point in the history
docs: tracker pagination API TECH-1681 TECH-1683 TECH-1684
  • Loading branch information
teleivo authored Jan 23, 2024
2 parents e41df5d + 432239c commit 8270999
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion releases/2.41/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,17 @@ The `followup` field has been renamed to `followUp` in the response for `GET /tr

##### Pagination

In the tracker exporter endpoints, the pagination-related fields
In the tracker endpoints

* `/tracker/trackedEntities`
* `/tracker/enrollments`
* `/tracker/events`
* `/tracker/relationships`
* `/programNotificationInstances`
* `/programNotificationTemplates/filter`
* `/potentialDuplicates`

the pagination-related fields

```json
{
Expand Down Expand Up @@ -103,6 +113,10 @@ in a future release.
}
```

The actual data previously returned in `instances` is returned in a key named after the plural of
the returned entity itself. For example `/tracker/trackedEntities` returns tracked entities in key
`trackedEntities` while `/potentialDuplicates` returns potential duplicates in key `potentialDuplicates`.

Query parameter `paging` replaces `skipPaging`. Note that `paging` is the inverse of `skipPaging`.
This means if you want to disable pagination use `paging=false` instead of `skipPaging=true`.
Pagination remains on by default.
Expand Down

0 comments on commit 8270999

Please sign in to comment.