Skip to content

[Task] 답안 제출 및 결과 처리 #85

Description

@DDINGJOO

상위 Story

목표

시험 답안 제출 및 결과 처리 로직 구현

API 연동

  • POST /vocab/test/{userId}/submit

Request

{
  "testId": "uuid",
  "answers": [
    {"questionId": 1, "wordId": "uuid", "answer": "apple"},
    {"questionId": 2, "wordId": "uuid", "answer": "book"}
  ]
}

Response

{
  "testId": "uuid",
  "totalQuestions": 20,
  "correctCount": 18,
  "incorrectCount": 2,
  "successRate": 90.0,
  "results": [
    {
      "questionId": 1,
      "isCorrect": true,
      "userAnswer": "apple",
      "correctAnswer": "apple"
    }
  ]
}

처리 로직

  1. 모든 문제 풀이 완료 or 타이머 종료
  2. 답안 배열 생성
  3. API 제출
  4. 결과 페이지로 이동 (/vocab/test/result/:testId)

완료 조건

  • 답안 제출 함수 구현
  • 제출 중 로딩 표시
  • 결과 페이지 라우팅

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions