Skip to content

5. Add GET /api/v1/courses/:id/quiz-attempts endpoint #408

Description

@DeFiVC

What: Add an endpoint that returns all quiz attempts for a specific course module.

Why: Users need to see their past attempts to understand their improvement over time. Currently only the latest submission is visible.

Scope: Create endpoint that queries quizSubmissions for quizzes in a specific module, ordered by submittedAt. Return: attempt number, score, percentage, passed status, date.

Acceptance criteria:

  • Returns all quiz attempts for a module
  • Ordered by date (oldest first)
  • Includes score and pass status
  • Cached for 30s

Technical context: src/modules/quizzes/quiz.service.ts — quiz queries. src/database/schema.ts:113-142 — quizSubmissions.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions