Skip to content

Latest commit

 

History

History
110 lines (79 loc) · 2.74 KB

README.md

File metadata and controls

110 lines (79 loc) · 2.74 KB

Faint Base App

The Backend system for the faintrush app

Image

API Reference

Validates user's sign up data, and sign him/her up if he/she is a caretaker.

  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

Signs up a patient user

  POST /signup_patient_user
Parameter Type Description
email string Required. Your email

Returns:

  • UID

Login

  POST /login
Parameter Type Description
email string Required. Your email
password string Required. Your password

Returns:

  • User's data (patient/caretaker's list)

Add a Caretaker

  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)

Delete a Caretaker

  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)

Is Auth

  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)

SOS Patient

  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

Badges

Host Tech DB

Authors