To deploy functions to FireBase, run firebase deploy --only functions
To test functions before deployment, run firebase serve
Add a new customer to \user
first_name
: First name
last_name
: Last name
dob
: Date of birth
200 upon successful requests with ok
Authenticate a user by first name, last name, and date of birth
first_name
: First name
last_name
: Last name
dob
: Date of birth
200 upon successful requests with user id.
422 upon failed requests with message: 'Fail to auth given user'
Return user id of an existing user
first_name
: First name
last_name
: Last name
dob
: Date of birth
200 upon successful requests with user id.
422 upon failed requests with message: 'Fail to get user id'
Retrieve user information by user id.
user_id
: ID token returned by getUserId
function
200 upon successful requests with user information
422 upon failed requests with message: 'User id not found
when user_id
does not exist
N/A
200 upon successful requests with all user names
422 upon failed requests with message: 'Fail to get user info'
{
user_id: USER_ID,
val: COMMENT
}
200 upon successful requests
422 upon unknown id with message: 'unknown user'
422 upon failed requests with message: 'Cannot set general medical info'
{
user_id: USER_ID,
val: COMMENT
}
200 upon successful requests
422 upon unknown id with message: 'unknown user'
422 upon failed requests with message: 'Cannot set medical info'