Return user with corresponding ID.
URL : /users/:id
Method : GET
"Content-type": "application/json"
"Authorization": "Bearer [valid Moderator token]"
Code : 200 OK
Body :
{
"_id": "5c6659554995bd0017faee8b",
"email": "[email protected]",
"password": "$2a$10$XIs/xj.K61ZPePyvT.Ha1eikd5W0eCHxXffQmAHKg9QiHFI4Uu/8m",
"type": "Applicant",
"verified": true,
"__v": 0
}
Condition : User does not exist.
Code : 404 Not Found
Body :
{
"code": "ResourceNotFound",
"message": "There is no user with the id 5c6659554995bd0017faee8b"
}