Skip to content

Commit

Permalink
fix(na): fix link for api docs in 4.11 release, correct cursor number…
Browse files Browse the repository at this point in the history
… in API docs (#1606)

* fix link for api docs in 4.11 release

* we're zero based for person API pagination, start at 0 instead of 1

* Update content/en/core/releases/4.11.0.md

Co-authored-by: Joshua Kuestersteffen <[email protected]>

* Update content/en/building/reference/api.md

* Update api.md

---------

Co-authored-by: Joshua Kuestersteffen <[email protected]>
  • Loading branch information
mrjones-plip and jkuester authored Oct 10, 2024
1 parent 86f18d9 commit 45d1fb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions content/en/building/reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -874,10 +874,10 @@ Content-Type: application/json; charset=utf-8
}
```

2. Get 3 people of type `person` by using cursor `1`.
2. Get the second set of 100 people of type `person` by using cursor `100`.

```
GET /api/v1/person?type=person&cursor=1&limit=3
GET /api/v1/person?type=person&cursor=100&limit=100
```

```
Expand Down
2 changes: 1 addition & 1 deletion content/en/core/releases/4.11.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ None.
The CHT datasource API has been expanded to allow querying places and persons by contact type.

##### Details
See more details in the [api docs](http://docs.communityhealthtoolkit.org/cht-datasource/).
See more details in the [API docs]({{< relref "building/reference/api#get-apiv1person" >}}).

### Phone numbers are not required to be checked for duplicates
Phone number fields can now be used without automatically checking for duplicates. This can be useful for workflows where users may share a phone or for any workflow where having duplicate phones is possible, and it's undesirable to check for duplicates.
Expand Down

0 comments on commit 45d1fb3

Please sign in to comment.