All Users
API for all users.
On this page
login
⚠️ Subject to change.
All users may login. Password encryption is not used in this stage of development.
{
// Request
"request": "login",
"content": {
"user_type": "admin/student",
"user_name": <string>,
"user_pswd": <string>,
"session_id": <int>
},
}
user_type
: Either admin or student.user_name
: For admin users, their username. For students, their team name, or room name.user_pswd
: For admin users only. Leave empty string for students.session_id
: Provide asession_id
to join a created session.
{
// Respond
"content": <int>,
}
status_code
: 200, on success. 400, on non-existant session. 403, on failed admin login.content
: On success, session stage.