User Story: As a worker at Purrgent Care, I would like functionality to link a person to an existing account. From the UI, this should be accessible when editing a person, there will be a drop-down that shows all existing accounts, an account can be selected, then submitted to link the person to that account.
Technical Details - Backend:
Update the existing endpoint in the back-end person controller to optionally link a person to an account.
API Design:
PUT request for /person/{person_id} including the account_id of the selected account
Technical Details - Frontend:
Update the existing PersonEdit webpage to include a drop drown for accounts.
If an account is selected, then pass the account_id with the request to update the person.
If an account is not selected, then do not pass the account_id with the request to update the person.
Title: Link person to an account
User Story: As a worker at Purrgent Care, I would like functionality to link a person to an existing account. From the UI, this should be accessible when editing a person, there will be a drop-down that shows all existing accounts, an account can be selected, then submitted to link the person to that account.
Technical Details - Backend:
API Design:
Technical Details - Frontend:
Acceptance Criteria:
Depends on: https://github.com/JesseMattson/PurrgentCare/issues/44