Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The production server ip-address:port is https://dashboard-prod.diaper-project.com:5000

The production server AWS Chalice:port is https://4wuiajclt6.execute-api.us-east-1.amazonaws.com/api/ (

...

No Longer in Use)


URL/api/login/
DescriptionLogin a user, and set cookie for authentication
MethodPOST
Url Param
Request Body Data
  1. HTML Form Submission with fields:
    1. email (string)
    2. password (string)
    3. remember_me (optional boolean)
  2. Alternatively, you can manually add following fields in request body as a json format:
    1. email (string)
    2. password (string)
    3. remember_me (optional boolean)
    4. formdata (empty string)
Response
  • {message: "Logged in."} - 200
  • {message: "Bad request format"} - 400
  • {message: "invalid credential(s) provided, please check your credential(s) and try again"} - 400/401
Cookie
  • session: a cookie for trace login status
  • remember_token: a cookie for remember_me feature (only when logged in with remember_me set to true)

...

URL/api/sendOnboardingSurvey
Description

Post to this endpoint with <email> and (optional) <name> to send onboarding email to email, will send a notification email to researchers at the same time.

MethodPOST
Url Param
Request Body Data

form-data

  1. email (string)
  2. name (string)
Response
  • {message: {"Email sent"}} , 200

...