Skip to content

6. Add POST /api/v1/admin/courses/:id/modules/:moduleId/quizzes/generate endpoint #409

Description

@DeFiVC

What: Add an admin endpoint that generates quizzes for a specific module using the AI service.

Why: Admins need to generate quizzes through the admin API without going through the user-facing endpoint. This allows bulk quiz generation and management.

Scope: Create endpoint that calls the AI service to generate questions for a specific module. Store the generated quiz. Return the generated quiz with questions (including correct answers for admin review).

Acceptance criteria:

  • Admin can generate quizzes via admin API
  • Generated quiz includes correct answers
  • Quiz is stored in the database
  • Generation is logged in audit logs

Technical context: src/modules/quizzes/quiz.service.ts:28-147 — generateQuiz. src/modules/quizzes/ai-client.ts — AI service client.


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