Skip to content

Commit

Permalink
Merge pull request #140 from dhis2/TECH-1679
Browse files Browse the repository at this point in the history
docs: pagination fields in page objects in tracker exporter TECH-1679
  • Loading branch information
teleivo authored Jan 18, 2024
2 parents 32a6b95 + aad23f4 commit 17b87a2
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions releases/2.41/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@

#### Breaking Changes

The following query parameters have been removed as the same behavior can be achieved using `filter` parameter
The following query parameters have been removed as the same behavior can be achieved using the `filter` parameter

* `/tracker/trackedEntities?query`
* `/tracker/trackedEntities?attribute`

The following query parameters have been removed as they were misleading and not provide any useful information
The following query parameters have been removed as they were misleading and did not provide any useful information

* `/tracker/trackedEntities?includeAllAttributes`

The following query parameters have been removed as they have never been implemented and thus had no
Expand All @@ -42,6 +43,42 @@ The `followup` field has been renamed to `followUp` in the response for `GET /tr

#### Deprecated APIs

##### Pagination

In the tracker exporter endpoints, the pagination-related fields

```json
{
"page": 3,
"pageSize": 2,
"total": 373570,
"pageCount": 186785,
"instances": [
]
}
```

have been deprecated in favor of a `pager` object. Both the flat pagination fields shown above and
the nested `pager` are returned as of 2.41 if pagination is enabled. The flat fields will be removed
in a future release.

```json
{
"pager": {
"page": 3,
"pageSize": 2,
"total": 373570,
"pageCount": 186785,
},
"page": 3,
"pageSize": 2,
"total": 373570,
"pageCount": 186785,
}
```

This aligns pagination in Tracker with other DHIS2 endpoints.

##### Semicolon as separator for identifiers (UID)

The following query parameters accepting one or more semicolon separated UIDs are deprecated in
Expand Down

0 comments on commit 17b87a2

Please sign in to comment.