Skip to content

Ship update user endpoint with validation and NOTES.md - #125

Open
08smelnyk-collab wants to merge 3 commits into
mate-academy:mainfrom
08smelnyk-collab:main
Open

Ship update user endpoint with validation and NOTES.md#125
08smelnyk-collab wants to merge 3 commits into
mate-academy:mainfrom
08smelnyk-collab:main

Conversation

@08smelnyk-collab

Copy link
Copy Markdown
  • Added updateUser method to db/store.js
  • Added PUT /users/:id endpoint with 400 validation and 404 error handling in routes/users.js
  • Added NOTES.md documenting plan, model choice, commit split, and review findings
  • Verified with npm test (all 9 tests pass)

08smelnyk-collab and others added 3 commits September 2, 2026 14:41
Finds a user by id and updates their name/email in place, returning
undefined when no user matches so the route layer can 404.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Validates name/email are present (400), looks up the user via
store.updateUser (404 if missing), and returns the updated user
on success. Completes the update-user feature from db/store.js.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Documents the plan, model choice, commit split, and review findings
for the PUT /users/:id feature, satisfying tests/notes.test.js.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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