Skip to content

Add update user endpoint - #108

Open
pawunder1992 wants to merge 3 commits into
mate-academy:mainfrom
pawunder1992:add-update-user-endpoint
Open

Add update user endpoint#108
pawunder1992 wants to merge 3 commits into
mate-academy:mainfrom
pawunder1992:add-update-user-endpoint

Conversation

@pawunder1992

Copy link
Copy Markdown

No description provided.

- Searches for user by id and returns null if not found
- Updates name and email fields when user exists
- Returns the modified user object
- Follows existing in-memory store pattern
- Validates that both name and email are provided (400 if missing)
- Returns 404 when user does not exist
- Returns 200 with updated user object on success
- Mirrors POST endpoint validation for consistency
- Plan: PUT endpoint with validation and 404 handling
- Model: Claude Opus for pattern consistency
- Commits: Split between data access and routing layers
- Review: Correct implementation on first pass, all tests pass
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