-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
beginnerGood for beginnersGood for beginnersgood first issueGood for newcomersGood for newcomersintermediateOpen to intermediatesOpen to intermediates
Description
This is to implement an endpoint that will enable a logged in user access his/her profile information.
This endpoint is expected to return a user
object that contains the username and email of the authenticated user.
Endpoint:
GET /profile/:id
Response spec:
{
"user": {
"username": "...",
"email": "..."
}
}
Edge cases to keep in mind:
- Do not include the password in the response object.
- An authenticated user should only be authorized to view his/her own profile information
- Responses should be sent with the appropriate status codes
- Handle errors properly and return appropriate error messages like so:
{ "error": "appropriate error message" }
Metadata
Metadata
Assignees
Labels
beginnerGood for beginnersGood for beginnersgood first issueGood for newcomersGood for newcomersintermediateOpen to intermediatesOpen to intermediates