headless_lms_server::controllers::main_frontend::exams

Function release_grades

Source
async fn release_grades(
    pool: Data<PgPool>,
    exam_id: Path<Uuid>,
    user: AuthUser,
    payload: Json<Vec<Uuid>>,
) -> ControllerResult<Json<()>>
Expand description

POST /api/v0/main-frontend/exam/:exam_id/release-grades - Publishes grading results of an exam by updating user_exercise_states according to teacher_grading_decisons and changes teacher_grading_decisions hidden field to false. Takes teacher grading decision ids as input.