forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

getStudentMarksHistory.ts11 lines, 453 bytesHistoryRawDownload
1import { client } from "../client";
2import type { ExamResult } from "../client";
3
4/** Full mark history for a student, oldest-first — index 0 = seq 1 (marks carry no seq). Grader-only. */
5export async function getStudentMarksHistory(
6 examId: string,
7 userId: string,
8 signal?: AbortSignal,
9): Promise<ExamResult[]> {
10 return client<ExamResult[]>(`/exams/${encodeURIComponent(examId)}/students/${encodeURIComponent(userId)}/marks`, { signal });
11}