diff --git a/README.md b/README.md index fa6a256..26f715e 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ time budget), or **open** (sit anytime, optionally timed per attempt); students *sit* them via attempts — retakes metered by a per-exam limit (`0` = unlimited), leaving the exam room governed by a teacher-controlled rejoin door — and teachers watch attendance, per-student remaining time, -sittings, walk-outs, submissions, and marks land live on a monitor endpoint -(snapshot or SSE stream). Courses also carry **lesson +sittings, walk-outs, no-shows (`absent` once the window closes), submissions, +and marks land live on a monitor endpoint (snapshot or SSE stream). Courses also carry **lesson sessions** with teacher-taken roll call (students never self-mark a lesson), staff clock in/out on a server-stamped **work log**, and every user has an **attendance report** (event + per-course lesson tallies with rates). @@ -294,7 +294,7 @@ marks/attendance reports narrow to the courses the caller manages. | POST | `/exams/{id}/attempt/answers` | student | `{question_id, selected? \| text?}` — autosave one answer while enrolled and `in_progress` (and not locked out by a closed rejoin door) | | GET | `/exams/{id}/attempts/{user}/answers` | teacher | A student's answer sheet: `is_correct` flags + suggested `auto_score` (course manager) | | GET | `/exams/{id}/attempt/ws` | student | **WebSocket** exam room: state ticks, autosave, finish; entering clears `left_at`, leaving stamps it (see "Taking an exam") | -| GET | `/exams/{id}/live` | teacher | Live monitor snapshot: roster × latest attempts × marks + per-student progress/`left_at`/`attempts_used` + counts (course manager) | +| GET | `/exams/{id}/live` | teacher | Live monitor snapshot: roster × latest attempts × marks + per-student progress/`left_at`/`attempts_used` + counts; no-shows turn `absent` once the window closes (course manager) | | GET | `/exams/{id}/live/stream` | teacher | The same snapshot as SSE `snapshot` events every ~2s (course manager) | | GET | `/marks/me` | student | The caller's mark report (per-course + overall averages) | | GET | `/marks/{user}` | teacher | A user's mark report, narrowed to the caller's courses (manager+: full) | diff --git a/src/lib.rs b/src/lib.rs index 96ac5b7..56d7322 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,7 +45,7 @@ use crate::state::AppState; (name = "sessions", description = "Lesson sessions and their roll call (session teacher or course manager marks enrolled students; manager+ marks the teacher)"), (name = "work", description = "Staff work log: check-in/check-out stamped by the server clock, manager corrections"), (name = "attendance", description = "Attendance summary reports: event tallies + per-course lesson roll call with rates"), - (name = "exams", description = "Exams (per course, weighted): results, sync/async/open scheduling, attempts with retakes (`max_attempts`, 0 = unlimited) and a live rejoin door (`allow_rejoin`), questions/answers, and live monitoring. A modeless exam is an offline-graded draft — attempts on it are a 409. Not in this spec (WebSocket): the student exam room at `GET /exams/{id}/attempt/ws` — JSON frames; entering clears the attempt's `left_at`, leaving mid-attempt stamps it. See the README's \"Taking an exam\" section for the protocol"), + (name = "exams", description = "Exams (per course, weighted): results, sync/async/open scheduling, attempts with retakes (`max_attempts`, 0 = unlimited) and a live rejoin door (`allow_rejoin`), questions/answers, and live monitoring (no-shows flagged `absent` once the window closes). A modeless exam is an offline-graded draft — attempts on it are a 409. Not in this spec (WebSocket): the student exam room at `GET /exams/{id}/attempt/ws` — JSON frames; entering clears the attempt's `left_at`, leaving mid-attempt stamps it. See the README's \"Taking an exam\" section for the protocol"), (name = "marks", description = "Weighted mark reports per course and overall, labeled by the school's grade bands when configured"), (name = "settings", description = "School policy, one singleton: exam kinds, attendance statuses, grade-display bands. Read: any authenticated user; edit: manager+"), (name = "terms", description = "Academic terms (semester/trimester/quarter — whatever the school runs); courses may link to one. Read: any authenticated user; edit: manager+"),