Requirements
Functional Requirements
What the product must do.
- Allow users to set and update display name
- Allow users to set and update display photo
- Allow users to update their email address
- Allow users to update their password
Non-Functional Requirements
How the product must behave.
- Authenticate users using JWTs
- Prevent sensitive data exposure
- Prevent unauthorized account updates
Out of Scope
Items that are specifically excluded from this feature.
n/a
Acceptance Criteria
Overall acceptance criteria for the feature.
Requirements
Functional Requirements
Non-Functional Requirements
Out of Scope
n/a
Acceptance Criteria
Scenario: Successful account update
Givenan authenticated userWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter references the account of the authenticated userThensend200responseScenario: Account mismatch
Givenauthenticated userAWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter references the account of userBThensend403responseScenario: Invalid token
Givena user with an invalid tokenWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter references an existing accountThensend401responseScenario: Missing account
Givenany userWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter does not reference an existing accountThensend404responseScenario: Missing token
Givena user without a tokenWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter references an existing accountThensend401responseScenario: An unknown error occurs
Whenany request is sent toPATCH /accounts/:uidAndan unknown error occursThensend500response