-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(api)!: new user update endpoint
Currently, the endpoint for updating a user is a PATCH to `/users/:id/data`, where `:id` corresponds to the user being updated. However, there's potential indirection when conflicting IDs are sent, such as: ``` PATCH /api/users/6682e893bda48253abd4ddee/data HTTP/1.1 Host: localhost X-ID: 6682e89a7dc345449ac95be2 Content-Type: application/json ``` To resolve this, we are introducing a new endpoint `/users` where we exclusively use the user's ID from the headers. **NOTE:** The old endpoint `/users/:id/data` remains functional but is now marked as **DEPRECATED** for compatibility purposes.
- Loading branch information
1 parent
9461414
commit 53bbb3c
Showing
3 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters