Skip to content

Update user endpoint - #16

Closed
tacio wants to merge 3 commits into
mate-academy:mainfrom
tacio:update-user-endpoint
Closed

Update user endpoint#16
tacio wants to merge 3 commits into
mate-academy:mainfrom
tacio:update-user-endpoint

Conversation

@tacio

@tacio tacio commented Jun 30, 2026

Copy link
Copy Markdown

No description provided.

tacio added 3 commits June 30, 2026 17:07
Mirrors createUser's style: looks up the user by id and returns
undefined if it doesn't exist, so the route layer can turn that
into a 404.
Validates name and email are present (400 if not) before looking
the user up, then returns 404 if the id doesn't exist or the
updated user otherwise. Matches the existing GET/POST conventions.
@tacio tacio closed this by deleting the head repository Jul 17, 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