Please write specs for the this story and implemented features. (If there is more please don't delete it)
User Story
As a patient request therapist to connect
Regular Process
Sent a GET request to /users/search with the email address of the therapist - respond with a list of public users with this email address
Sent POST request to /user/{:uuid}/invite with your the users uuid and a timeframe for the invite (in days)
if authenticated
respond with the invite data
Should create a pending invite that expirs in the numbers of days form now.
else
respond with an error
Edge Cases
Invite already exists - response with an error
If data is missing or not found - response with an error
Please write specs for the this story and implemented features. (If there is more please don't delete it)
User Story
As a patient request therapist to connect
Regular Process
Sent a GET request to /users/search with the email address of the therapist - respond with a list of public users with this email address Sent POST request to /user/{:uuid}/invite with your the users uuid and a timeframe for the invite (in days) if authenticated
Edge Cases
Invite already exists - response with an error If data is missing or not found - response with an error