Get the profile of the current user.
application/json
{
"sessionID" : "43243-4324-324-234-32"
}
application/json
{
success: true
errMsg: null,
content:
{
"uid": "4",
"name": "John",
"email": "[email protected]",
"phone": "51829838475",
"major": "CS",
"degree": "Undergraduate"
}
}
Update the profile of the current user.
application/json
{
"sessionID": "213123-123-123-213-3123",
"name": "John",
"email": "[email protected]",
"phone": "51829838475",
"major": "CS",
"newPassword" : "new123456",
"degree": "Undergraduate"
}
application/json
{
success: true
errMsg: null,
content: {}
}
Create a new user.
application/json
{
"name": "John",
"email": "[email protected]",
"phone": "51829838475",
"major": "CS",
"password" : "123456",
"degree": "Undergraduate"
}
application/json
{
success: true
errMsg: null,
content:
{
"msg": "User added successfully"
}
}
Delete current user.
application/json
{
"sessionID": "12312-321-3-12-3",
"password" : "123456"
}
application/json
{
success: true
errMsg: null,
content:
{
"uid": "213-2-321-3-12-3",
"msg": "Failed to delete user."
}
}