Skip to content

Feature/update user endpoint - #150

Closed
anastasiiaoshega513 wants to merge 3 commits into
mate-academy:mainfrom
anastasiiaoshega513:feature/update-user-endpoint
Closed

Feature/update user endpoint#150
anastasiiaoshega513 wants to merge 3 commits into
mate-academy:mainfrom
anastasiiaoshega513:feature/update-user-endpoint

Conversation

@anastasiiaoshega513

Copy link
Copy Markdown

No description provided.

anastasiiaoshega513 and others added 3 commits September 10, 2026 23:44
Follows the existing pattern in store.js (getUserById, createUser):
looks up the user by id, mutates name/email in place, and returns
undefined when no user matches so the route can turn that into a 404.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Validates that name and email are present (400 otherwise), returns 404
when the id doesn't match a user, and 200 with the updated user on
success. Mirrors the validation style already used in POST /users.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Documents the plan, model choice, commit split, and what the
self-review pass checked before opening the PR.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@anastasiiaoshega513 anastasiiaoshega513 closed this by deleting the head repository Sep 10, 2026
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