Function download_interpreter

Source
pub async fn download_interpreter(
    __arg0: State<AppState>,
    __arg1: Path<(i64, i64)>,
) -> Response
Expand description

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

Download the interpreter file for an assignment. Only one interpreter may exist per assignment.

§Path Parameters

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

§Responses

  • 200 OK: Returns the interpreter as a binary attachment
  • 404 Not Found: If no interpreter exists for the assignment, or if the file is missing on disk
  • 500 Internal Server Error: If DB or file read fails