Function delete_interpreter

Source
pub async fn delete_interpreter(
    __arg0: State<AppState>,
    __arg1: Path<(i64, i64)>,
) -> impl IntoResponse
Expand description

DELETE /api/modules/{module_id}/assignments/{assignment_id}/interpreter

Delete the interpreter for a specific assignment. Only accessible by lecturers assigned to the module.

§Path Parameters

  • module_id (i64): The ID of the module containing the assignment
  • assignment_id (i64): The ID of the assignment whose interpreter is to be deleted

§Responses

  • 200 OK
{
  "success": true,
  "message": "Interpreter removed successfully"
}
  • 404 Not Found
{
  "success": false,
  "message": "No interpreter found for assignment <assignment_id>"
}
  • 500 Internal Server Error
{
  "success": false,
  "message": "<database error details>"
}