SOCSSabaragamuwa / testrepo

0 stars 0 forks source link

Implement GET /users/me #21

Open SOCSSabaragamuwa opened 6 years ago

SOCSSabaragamuwa commented 6 years ago

HTTP GET request to http://localhost:8090/api/users/me should return the currently authenticated user.

200 OK

{
     “self”: “http://localhost:8090/api/users/{user_id}”,
     "email": "{email}",
     "role": "{role}",
     “first_name”: {first_name},
     “last_name”: {last_name},
     “batch”: “{batch}”
     “faculty”: {
            “self”: “http://localhost:8090/api/faculties/{faculty_id}”,
            “name”: “{faculty_name}”
      },
     “department”: {
             “self”: “http://localhost:8090/api/departments/{department_id}”,
             “name”: “{department_name}”
      },
     “degree”: {
             “self”: “http://localhost:8090/api/degrees/{degree_id}”,
             “name”: “{degree_name}”
     }
}