Title: Create user functionality to disable/enable an account
User Story: As a worker at Purrgent Care, I would like a quick button or toggle to activate or de-activate an account. If the account is already active, then the button should be de-activate. If the account is already inactive, the button should be activate. When I press the activate or de-activate button it should update the account in the database and re-load the page to show all accounts.
Technical details - Backend:
Implement 1 endpoint in the back-end account controller to update the active status of an account.
API Design:
PUT request for /accounts/{id} including a boolean active status in the body of the request
Title: Create user functionality to disable/enable an account
User Story: As a worker at Purrgent Care, I would like a quick button or toggle to activate or de-activate an account. If the account is already active, then the button should be de-activate. If the account is already inactive, the button should be activate. When I press the activate or de-activate button it should update the account in the database and re-load the page to show all accounts.
Technical details - Backend:
/accounts/{id}
including a boolean active status in the body of the requestAcceptance Criteria: