Assignment#
- class AssignmentBaseHandler(application: grader_service.server.GraderServer, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)[source]
Tornado Handler class for http requests to /lectures/{lecture_id}/assignments.
- async get(lecture_id: int)[source]
Returns all assignments of a lecture.
- Parameters
lecture_id (int) – id of the lecture
- Raises
HTTPError – throws err if lecture is deleted
- async post(lecture_id: int)[source]
Creates a new assignment.
- Parameters
lecture_id (int) – id of the lecture
- class AssignmentObjectHandler(application: grader_service.server.GraderServer, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)[source]
Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}.
- async delete(lecture_id: int, assignment_id: int)[source]
Soft-Deletes a specific assignment.
- Parameters
lecture_id (int) – id of the lecture
assignment_id (int) – id of the assignment
- Raises
HTTPError – throws err if assignment was not found or deleted
- async get(lecture_id: int, assignment_id: int)[source]
Returns a specific assignment of a lecture.
- Parameters
lecture_id (int) – id of the lecture
assignment_id (int) – id of the assignment
- Raises
HTTPError – throws err if assignment was not found
- async put(lecture_id: int, assignment_id: int)[source]
Updates an assignment.
- Parameters
lecture_id (int) – id of the lecture
assignment_id (int) – id of the assignment
- Raises
HTTPError – throws err if assignment was not found
- class AssignmentPropertiesHandler(application: grader_service.server.GraderServer, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)[source]
Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/properties.
- async get(lecture_id: int, assignment_id: int)[source]
Returns the properties of a specific assignment.
- Parameters
lecture_id (int) – id of the lecture
assignment_id (int) – id of the assignment
- Raises
HTTPError – throws err if the assignment or their properties were not found
- async put(lecture_id: int, assignment_id: int)[source]
Updates the properties of a specific assignment.
- Parameters
lecture_id (int) – id of the lecture
assignment_id (int) – id of the assignment
- Raises
HTTPError – throws err if the assignment was not found
- class AssignmentResetHandler(application: grader_service.server.GraderServer, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)[source]
Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/reset.
- async get(lecture_id: int, assignment_id: int)[source]