Skip to content

Add PUT /users/:id update endpoint- #1 - #82

Open
MykhailoIvchenko wants to merge 5 commits into
mate-academy:mainfrom
MykhailoIvchenko:main
Open

Add PUT /users/:id update endpoint- #1#82
MykhailoIvchenko wants to merge 5 commits into
mate-academy:mainfrom
MykhailoIvchenko:main

Conversation

@MykhailoIvchenko

Copy link
Copy Markdown

No description provided.

Mirrors createUser/getUserById: looks up the user by id, returns
undefined if it doesn't exist, otherwise updates and returns it.
Validates name/email like POST does, returns 404 via the store
lookup when the user doesn't exist, otherwise updates and returns it.
Answers the plan/model/commits/review questions for the grading check.
Add PUT /users/:id update endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant