will have the same data as GET /api/v1/users/:id but may be extended further later
PUT /api/v1/users/current
updates user information
user should be able to update:
username
profile picture
email
password
Extended both GET /api/v1/users/current and GET /api/v1/users/:id to also return profile picture
Profile pictures are stored in /uploads
Users can get profile pictures from localhost:4200/uploads/{imageName}
Fixes/resolves #96
Type of change
Please delete options that are not relevant.
[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update
Checklist:
Leave blank if not applicable
I have completed these steps when making this pull request:
[x] I have checked that the PR is from a forked repository
[x] I have assigned my name to the issue
[x] I have moved the issue to the In Progress column
[x] I have labelled the PR appropriately
[x] I have assigned people responsible to the PR
Before opening the PR for review:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have documented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have moved the linked issue to the Review in Progress column
Description
Adds 2 new endpoints:
GET /api/v1/users/current
GET /api/v1/users/:id
but may be extended further laterPUT /api/v1/users/current
Extended both
GET /api/v1/users/current
andGET /api/v1/users/:id
to also return profile picture Profile pictures are stored in /uploads Users can get profile pictures from localhost:4200/uploads/{imageName}Fixes/resolves #96
Type of change
Please delete options that are not relevant.
Checklist:
Leave blank if not applicable
I have completed these steps when making this pull request:
Before opening the PR for review: