We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement an API endpoint that allows users to update his or her preferences. This endpoint allows authenticated user to update their preference.
The system returns the 200 "success" status code if the update is successful.
{ "status": "success", "message": "Preference successfully updated", "status_code": 200 }
Error while updating preference to database
{ "status": "unsuccessful", "status_code": 500, "message": "Internal Server Error." }
unit tests It should fail with incorrect preference data. User Preference should be updated successfully with correct details.
The text was updated successfully, but these errors were encountered:
update this @Vhickyy
use md format
Sorry, something went wrong.
@incredible-phoenix246 please review
No branches or pull requests
Description
Implement an API endpoint that allows users to update his or her preferences. This endpoint allows authenticated user to update their preference.
Endpoint Feature
Acceptance Criteria
Successful Response
The system returns the 200 "success" status code if the update is successful.
Error Handling:
Error while updating preference to database
Testing:
unit tests
It should fail with incorrect preference data.
User Preference should be updated successfully with correct details.
The text was updated successfully, but these errors were encountered: