Why
The user can submit their answers to the survey questions.
Acceptance Criteria
The API endpoint /api/v1/responses is called with the following body:
{
"survey_id": "{{survey_id}}",
"questions": [
{
"id": "{{question_id}}",
"answers": [
{
"id": "{{answer_id}}"
}
]
},
{
"id": "{{question_id}}",
"answers": [
{
"id": "{{answer_id}}",
"answer": "My answer"
}
]
}
]
}
Unit tests are added and passed.
Resources
The API documentation is available on this publicly accessible Postman collection.