You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST '/register' Will create new user based on request object data. Will return an error if the email is already in use. Will return a success message with the user's id on successful user creation.
POST '/login' Will check user data supplied by request object against registered users, returning an error if not found and returning a success message with the user's id on successful login.
POST '/data' Will accept JSON input of HealthKit data, storing it to the database and echoing the stored data back to client.
Register/Login endpoint response
Status: Returns 'Successful', or 'Unsuccessful' .
userId: Returns the requested user's _id attribute .
token: Returns a JSON web token for web based client .