POST /faculty/register
{
email: your_email,
password: your_password,
name: your_name
}
Status 200
A verification email is sent to the faculty with a verification link. Once faculty click the link, Faculty is successfully regiisterd. He/She can continuue to login.
{
err: false,
msg: success_message,
}
Status 400
- email entered is not of iiitr domnain or iith domain,
- password length is less than 8
- email entered is already entered associated with another account
{
err: true,
msg: error_message,
}
Status 500
- server or database error
{
err: true,
msg: error_message,
}
POST /student/register
{
email: your_email,
password: your_password,
name: your_name,
yearOfStudying: your_year_of_studying
}
Status 200
A verification email is sent to the student with a verification link. Once student click the link, Student is successfully regiisterd. He/She can continuue to login.
{
err: false,
msg: success_message,
}
Status 400
- email entered is not of iiitr domnain or iith domain,
- password length is less than 8
- email entered is already entered associated with another account
{
err: true,
msg: error_message,
}
Status 500
- server or database error
{
err: true,
msg: error_message,
}
POST /faculty/login
{
email: your_email,
password: your_password,
}
Status 200
Faculty is succesfully logged in.
{
err: false,
msg: db_user_id,
}
Status 400
- email entered is not registerd
- email entered is not verified
- Invalid Password
{
err: true,
msg: error_message,
}
Status 500
- server or database error
{
err: true,
msg: error_message,
}
POST /student/login
{
email: your_email,
password: your_password,
}
Status 200
Student is succesfully logged in.
{
err: false,
msg: db_user_id,
}
Status 400
- email entered is not registerd
- email entered is not verified
- Invalid Password
{
err: true,
msg: error_message,
}
Status 500
- server or database error
{
err: true,
msg: error_message,
}
POST /faculty/resetPassword
{
email: your_email,
password: your_new_password,
}
Status 200
A verification email is sent to the Faculty with a verification link. Once Faculty click the link, password is successfully changed. He/She can continuue to login.
{
err: false,
msg: success_message,
}
Status 400
- email entered is not registerd
{
err: true,
msg: error_message,
}
Status 500
- server or database error
{
err: true,
msg: error_message,
}
POST /student/resetPassword
{
email: your_email,
password: your_new_password,
}
Status 200
A verification email is sent to the Student with a verification link. Once Student click the link, password is successfully changed. He/She can continuue to login.
{
err: false,
msg: success_message,
}
Status 400
- email entered is not registerd
{
err: true,
msg: error_message,
}
Status 500
- server or database error
{
err: true,
msg: error_message,
}
`
