Open Ukeme-Edet opened 1 month ago
The link to the approved issue is here
@prondubuisi @bolexs @zxenonx could you assign me to the ticket 👀
@Ukeme-Edet your version of api v1
Sorry, I don't get you @theijhay
PATCH /api/v1/users/profile
instead PATCH /api/users/profile
But PATCH? Not GET
?
@theijhay The endpoint used was instructed by a mentor here and yeah it's PATCH
since it's an update :)
@theijhay Please could you assign the ticket to me and add the approved tag
Description
Implement a RESTful API endpoint to handle partial updates of user profile settings. This endpoint will allow authenticated users to modify specific parts of their profile information, such as name, email, or preferences. User preferences will be stored as a JSON field in the user table of the database.
Acceptance Criteria
API Endpoint Implementation:
/api/v1/users/:id
.Data Validation and Authorization:
Updating User Profile:
Response:
Request Example:
PATCH
/api/users/profile
Successful Response:
Error response:
Server Error:
Purpose
Provide a secure and efficient backend service for users to update specific parts of their profile settings, ensuring data validation and maintaining user information integrity.
Requirements
Database Schema
Expected Outcome
A fully functional API endpoint that securely handles partial user profile updates, maintaining data integrity and providing clear feedback on the success or failure of update attempts.
Status Codes:
Testing