The Backend system for the faintrush app
POST /signup
Parameter | Type | Description |
---|---|---|
type |
string |
Required. Your user type (patient/caretaker) |
email |
string |
Required. Your email |
Returns:
- UID if the user is a caretaker
- True if the user is patient
POST /signup_patient_user
Parameter | Type | Description |
---|---|---|
email |
string |
Required. Your email |
Returns:
- UID
POST /login
Parameter | Type | Description |
---|---|---|
email |
string |
Required. Your email |
password |
string |
Required. Your password |
Returns:
- User's data (patient/caretaker's list)
POST /add_caretaker
Parameter | Type | Description |
---|---|---|
UID |
string |
Required. Your UID |
emailList |
string |
Required. Your emailList |
Returns:
- User object after update (patient/caretaker's list)
POST /delete_caretaker
Parameter | Type | Description |
---|---|---|
UID |
string |
Required. Your UID |
emailList |
string |
Required. Your emailList |
Returns:
- User object after update (patient/caretaker's list)
POST /is_auth
Parameter | Type | Description |
---|---|---|
UID |
string |
Required. Your UID |
Returns:
- True (the UID is in the Database) or False (the UID isn't in the Database)
POST /sos_patient
Parameter | Type | Description |
---|---|---|
UID |
string |
Required. Your UID (as a caretaker) |
Returns:
- The patient's data that is connected to this caretaker
- False if the caretaker isn't connected to any patient