-
Notifications
You must be signed in to change notification settings - Fork 1
GET educator by ID
JeffMedeiros edited this page Dec 2, 2019
·
5 revisions
Returns a unique educator by id.
Permissions:
-
Admin user can list information of any Educator.
-
Educators users can list only their own information.
educators:read
educator_id: string (A 24-byte hex ID)
curl -X GET "https://localhost:3001/v1/educators/5a62be07de34500146d9c544" -H "accept: application/json"
-
200
Successful requisition.{ "id": "5a62be07de34500146d9c544", "username": "educator01", "institution_id": "5db05279fcfefe5c3de20497", "children_groups": [ { "id": "5db065a5e59316737e2878a3", "name": "Group One", "children": [ { "id": "5db05289fcfefe5c3de20498", "username": "BR0001", "institution_id": "5db05279fcfefe5c3de20497", "gender": "male", "age": 11 } ], "school_class": "4th Grade" } ] }
-
400
Validation errors -
404
Not Found Error
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