forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

getStudentAttemptAnswers.ts15 lines, 517 bytesHistoryRawDownload
1import { client } from "@/api/client";
2import type { StudentAnswerSheet } from "@/api/client";
3
4/** Grader view of a specific past sitting's answer sheet (same shape as the current attempt). */
5export async function getStudentAttemptAnswers(
6 examId: string,
7 userId: string,
8 seq: number,
9 signal?: AbortSignal,
10): Promise<StudentAnswerSheet> {
11 return client<StudentAnswerSheet>(
12 `/exams/${encodeURIComponent(examId)}/students/${encodeURIComponent(userId)}/attempts/${seq}/answers`,
13 { signal },
14 );
15}