-
Notifications
You must be signed in to change notification settings - Fork 1
GET children
Returns a list with children.
Permissions:
- Admin, Educator, and Health Professional users can list information from all Child user.
children:readAll
curl -X GET "https://localhost:3001/v1/children" -H "accept: application/json"
-
200
Successful requisition.[ { "id": "5db1cf6c099ed31587a74cf4", "username": "BR99999", "institution_id": "5a62be07de34500146d9c624", "gender": "male", "age": 11 } ]
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.
-
Filtering
https://localhost:3001/v1/children?username=BR* (string at the beginning of username) https://localhost:3001/v1/children?username=*BR (string at end of username) https://localhost:3001/v1/children?username=*BR* (string in the middle of username) https://localhost:3001/v1/children?username=BR001 (exactly the same string in the username)
-
Pagination
-
Limitation
-
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.
OCARIoT Account Microservice API (Full documentation)
- POST institutions
- GET institutions
- GET institutions.inst_id
- PATCH institutions.inst_id
- DELETE institutions.inst_id
- POST educators.children.groups
- GET educators.children.groups
- GET educators.children.groups.group_id
- PATCH educators.children.groups.group_id
- DELETE educators.children.groups.group_id
- POST healthprofessionals
- GET healthprofessionals
- GET healthprofessionals.hprof_id
- PATCH healthprofessionals.hprof_id