install dependencies: yarn
run: yarn dev
runs on http://localhost:3001
Headears: Content-Type: application/json
Once token acquired set Authorization Bearer Token
-
request body: {email:email, password:password}
returns {token: token}
-
request body: {email:email, password:password}
returns {token: token}
-
returns one time questionnaire
-
returns daily questionnaire
send questionnaire answers to:
-
with body:
[{question1: question,
answer1: answer},
{question2: question,
answer2: answer}...]