Assignment#

class AssignmentBaseHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments.

async get(lecture_id: int)[source]#

Sends a GET request to the grader service and returns assignments of the lecture

Parameters

lecture_id (int) – id of the lecture

async post(lecture_id: int)[source]#

Sends post-request to the grader service to create an assignment

Parameters

lecture_id (int) – id of the lecture in which the new assignment is

class AssignmentObjectHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}.

async delete(lecture_id: int, assignment_id: int)[source]#

Sends a DELETE-request to the grader service to “soft”-delete a assignment

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

async get(lecture_id: int, assignment_id: int)[source]#

Sends a GET-request to the grader service to get a specific assignment

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the specific assignment

async put(lecture_id: int, assignment_id: int)[source]#

Sends a PUT-request to the grader service to update a assignment

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment