-
Notifications
You must be signed in to change notification settings - Fork 10
POST \auth\reg
Tianci Zhong edited this page Dec 21, 2016
·
1 revision
###Description Register the user’s email, password, username and role as student or instructor ###Route POST /auth/reg ###Request Body
{
"email": " … ",
"password": " … ",
"fullname": " … ",
"role": " … "
}
###Response Code 200 on Success 409 when email has already registered ###Response on Success
{
"token": " … "
}
###Response on 409
{
"message": {
"email": "Email is already taken."
}
}
###Response on Others
{
"message": {
"email": "This user does not exist."
}
}