[Backend] As a user, I can submit the answers
AVI5HEK opened this issue · comments
Why
When a user completes the survey, they must be able to submit the answers to the backend.
Acceptance Criteria
- Call the endpoint
/api/v1/responses
with the following request body format:
{
"survey_id": "<survey_id>",
"questions": [
{
"id": <question_id>,
"answers": [
{
"id": <answer_id>
}
]
},
{
"id": "<question_id>",
"answers": [
{
"id": <answer_id>,
"answer": <answer>
}
]
}
]
}