Function list_submissions

Source
pub async fn list_submissions(
    __arg0: State<AppState>,
    __arg1: Path<(i64, i64)>,
    __arg2: Extension<AuthUser>,
    __arg3: Query<ListSubmissionsQuery>,
) -> Response
Expand description

GET /api/modules/{module_id}/assignments/{assignment_id}/submissions

List submissions for a specific assignment.

  • Students: Can only view their own submissions, with optional query, pagination, and sort.
  • Lecturers/Tutors/Admins: Can view all submissions with full filters, pagination, sorting.

§Path Parameters

  • module_id (i64): The ID of the module
  • assignment_id (i64): The ID of the assignment

§Query Parameters

  • page, per_page, query, username, sort (see API docs above for details)

§Notes

  • Students: username is ignored, only their own submissions returned.
  • Late submissions are calculated based on due_date.