Regen README endpoint table after the layer split
Browse files at this commite2d0e438ca3c7af3cc8cd37b7da5bf148cc69cfeParent: 3c74f9a- chore
- regen README endpoint table after the layer split
1 changed file +1 -1
- README.md +1 -1
README.mdmodified+1 -1
| @@ -1147,7 +1147,7 @@ window filtering, before paging; negative values are a `400` naming the field. | |||
| 1147 | | DELETE | `/exams/{id}` | teacher | Delete an exam. Requires teacher+ and management rights over the exam's course (its creator, or manager/admin). Cascades the exam's results, attempts, questions, answers, and question + answer images (blobs included). | | 1147 | | DELETE | `/exams/{id}` | teacher | Delete an exam. Requires teacher+ and management rights over the exam's course (its creator, or manager/admin). Cascades the exam's results, attempts, questions, answers, and question + answer images (blobs included). | |
| 1148 | | GET | `/exams/{id}/attempt` | student | The caller's own (latest) attempt: status, deadline, remaining time, and mark once graded — everything a student's live exam screen needs, judged by the server clock. `404` until an attempt is started. | | 1148 | | GET | `/exams/{id}/attempt` | student | The caller's own (latest) attempt: status, deadline, remaining time, and mark once graded — everything a student's live exam screen needs, judged by the server clock. `404` until an attempt is started. | |
| 1149 | | POST | `/exams/{id}/attempt` | student | Start, resume, or retake the caller's attempt. Requires the student role (staff run exams, they don't sit them), enrollment in the exam's course, a sittable exam (`sync`/`async`/`open` mode), and — when a window exists — the window to be open. A still-running attempt is returned as-is (`200` instead of `201`), so a reconnecting client gets its original clock back — re-starting never resets the time. Once the latest attempt is submitted or expired, re-posting starts the next sitting (`201`, blank answer sheet) while the exam's `max_attempts` (0 = unlimited) allows it. | | 1149 | | POST | `/exams/{id}/attempt` | student | Start, resume, or retake the caller's attempt. Requires the student role (staff run exams, they don't sit them), enrollment in the exam's course, a sittable exam (`sync`/`async`/`open` mode), and — when a window exists — the window to be open. A still-running attempt is returned as-is (`200` instead of `201`), so a reconnecting client gets its original clock back — re-starting never resets the time. Once the latest attempt is submitted or expired, re-posting starts the next sitting (`201`, blank answer sheet) while the exam's `max_attempts` (0 = unlimited) allows it. | |
| 1150 | -| POST | `/exams/{id}/attempt/answers` | student | Save (or overwrite) one answer in the caller's in-progress attempt. `choice` questions take `selected`; `text` questions take `text`. Requires the student role and enrollment in the exam's course — an unenrollment (or a promotion out of `student`) mid-exam closes the sheet. Rejected once the attempt is submitted or its deadline has passed — the server clock, not the client's, is the judge — and rejected while the student has left the exam room with the exam's rejoin door closed. | | 1150 | +| POST | `/exams/{id}/attempt/answers` | student | Save (or overwrite) one answer in the caller's in-progress attempt. `choice` questions take `selected`; `text` questions take `text`. Requires the student role and enrollment in the exam's course — an unenrollment (or a promotion out of `student`) mid-exam closes the sheet. Rejected once the attempt is submitted or its deadline has passed — the server clock, not the client's, is the judge — and rejected while the student has left the exam room with the rejoin door closed. | |
| 1151 | | GET | `/exams/{id}/attempt/answers/{qid}/image` | student | The caller's own drawn-answer bytes. Same visibility wall as the sitting question view — enrollment plus a started attempt (404 before that). | | 1151 | | GET | `/exams/{id}/attempt/answers/{qid}/image` | student | The caller's own drawn-answer bytes. Same visibility wall as the sitting question view — enrollment plus a started attempt (404 before that). | |
| 1152 | | POST | `/exams/{id}/attempt/answers/{qid}/image` | student | Attach (or replace) the caller's drawn answer to a question inside their in-progress attempt. `multipart/form-data` with the drawing under a `file` field; the declared content type must be `image/png`, `image/jpeg`, `image/webp`, or `image/gif` (rasters only — no SVG), the bytes at most the school's `max_file_bytes`. Rides the exact `POST /exams/{id}/attempt/answers` gate chain: the student role, an in-progress attempt, current enrollment, and the rejoin door. | | 1152 | | POST | `/exams/{id}/attempt/answers/{qid}/image` | student | Attach (or replace) the caller's drawn answer to a question inside their in-progress attempt. `multipart/form-data` with the drawing under a `file` field; the declared content type must be `image/png`, `image/jpeg`, `image/webp`, or `image/gif` (rasters only — no SVG), the bytes at most the school's `max_file_bytes`. Rides the exact `POST /exams/{id}/attempt/answers` gate chain: the student role, an in-progress attempt, current enrollment, and the rejoin door. | |
| 1153 | | DELETE | `/exams/{id}/attempt/answers/{qid}/image` | student | Clear the caller's drawn answer to a question. Same writable-attempt gate chain as the upload. | | 1153 | | DELETE | `/exams/{id}/attempt/answers/{qid}/image` | student | Clear the caller's drawn answer to a question. Same writable-attempt gate chain as the upload. | |