Skip to content

GET children

Jefferson Medeiros edited this page Dec 6, 2019 · 6 revisions

Description

Returns a list with children.

Permissions:

  • Admin, Educator, and Health Professional users can list information from all Child user.

Scope

children:readAll

URL

GET https://localhost:3001/v1/children

Curl example

curl -X GET "https://localhost:3001/v1/children" -H "accept: application/json"

Response body

  • 200 Successful requisition.

    [
        {
          "id": "5db1cf6c099ed31587a74cf4",
          "username": "BR99999",
          "institution_id": "5a62be07de34500146d9c624",
          "gender": "male",
          "age": 11
        }
    ]
  • 500 Internal Server Error

Query Strings (Optional)

Query strings are used as follows: there must be a question mark following the URL and providing the parameters for the desired operations. There are four possible operations: filtering, paging, limiting, and sorting.

All parameters can also be used together concatenated by the & character as follows:

https://localhost:3001/v1/children?username=*BR*&sort=username,age&page=1&limit=100

For more details about using Query Strings click here.

Account users

Integration endpoints

auth

users

institutions

children

families

families.children

educators

educators.children.groups

healthprofessionals

healthprofessionals.children.groups

applications

Error patterns

400 Validation Errors

Clone this wiki locally