Structs§
- Change
Password Data - Consent
Data - Email
Data - Main
Frontend 🔒Users ApiDoc - MyCourse
- MyStudies
- MyStudies
Completion - A completion as the student may see it.
needs_to_be_reviewedones are excluded so a student cannot infer that they are under suspicion. - MyStudies
Course - MyStudies
Course Module - A course module as the student’s own profile shows it, with their best visible completion.
- MyStudies
Totals - Summarises the courses the profile lists, i.e. the non-hidden ones.
- Reset
Password Data - Reset
Password Token Payload
Functions§
- _add_
routes - change_
user_ password - get_
all_ 🔒research_ form_ answers_ with_ user_ id - GET
/api/v0/main-frontend/users/get-user-research-consents- Gets all users research consents for a course specific research form. - get_
course_ enrollments_ for_ user - GET
/api/v0/main-frontend/users/:id/course-enrollments - get_
my_ 🔒courses - GET
/api/v0/main-frontend/users/my-courses- Gets all the courses the user has either started or gotten a permission to. - get_
my_ 🔒studies - GET
/api/v0/main-frontend/users/my-studies- The authenticated user’s own study record: every course they are enrolled in, its modules, and their completions. - get_
research_ consent_ by_ user_ id - GET
/api/v0/main-frontend/users/get-user-research-consent- Gets users research consent. - get_
user - GET
/api/v0/main-frontend/users/:id - get_
user_ course_ submission_ times - GET
/api/v0/main-frontend/users/:id/courses/:course_id/submission-times- A user’s exercise submission times in a course, each tagged with its exercise and module. Teacher/admin (global) view. - get_
user_ reset_ exercise_ logs - GET
/api/v0/main-frontend/users/:id/user-reset-exercise-logs- Get all logs of reset exercises for a user - get_
user_ roles - GET
/api/v0/main-frontend/users/:id/roles- All roles held by a user, across scopes. Teacher/admin (global) view; used to label the account (e.g. staff/teacher) on the user-details page. - get_
user_ suspected_ cheaters - GET
/api/v0/main-frontend/users/:id/suspected-cheaters- Cross-course suspected-cheater records for a user, each paired with the course’s applicable duration threshold. Teacher/admin (global) view; read-only (confirm/dismiss happen on the per-course cheaters page). - hide_
course_ 🔒from_ my_ courses - POST
/api/v0/main-frontend/users/my-courses/:course_id/hide- Hides a course from the authenticated user’s “My courses” list. - post_
user_ consents - POST
/api/v0/main-frontend/users/user-research-consents- Adds a research consent for a student. - reset_
password_ token_ status - reset_
user_ password - send_
reset_ password_ email - unhide_
course_ 🔒from_ my_ courses - POST
/api/v0/main-frontend/users/my-courses/:course_id/unhide- Puts a previously hidden course back into the authenticated user’s “My courses” list.