Skip to content

[Backend] As a logged-in user, I can submit my answers to the survey questions #27

@nkhanh44

Description

@nkhanh44

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions