Module exercises

Source
Expand description

Controllers for requests starting with /api/v0/course-material/exercises.

Structsยง

CourseMaterialPeerOrSelfReviewDataWithToken

Functionsยง

_add_routes
Add a route for each controller in this module.
get_exercise ๐Ÿ”’
GET /api/v0/course-material/exercises/:exercise_id - Get exercise by id. Includes relevant context so that doing the exercise is possible based on the response.
get_peer_review_for_exercise ๐Ÿ”’
GET /api/v0/course-material/exercises/:exercise_id/peer-review - Get peer review for an exercise. This includes the submission to peer review and the questions the user is supposed to answer.ALTER
get_peer_reviews_received ๐Ÿ”’
GET /api/v0/course-material/exercises/:exercise_id/peer-review-received - Get peer review recieved from other student for an exercise. This includes peer review submitted and the question asociated with it.
post_flag_answer_in_peer_review ๐Ÿ”’
POST `/api/v0/course-material/exercises/:exercise_id/flag-peer-review-answer - Post a report of an answer in peer review made by a student
post_submission ๐Ÿ”’
POST /api/v0/course-material/exercises/:exercise_id/submissions - Post new submission for an exercise.
start_peer_or_self_review ๐Ÿ”’
POST /api/v0/course-material/exercises/:exercise_id/peer-or-self-reviews/start - Post a signal indicating thatthe user will start the peer or self reviewing process.This operation is only valid for exercises marked for peer reviews. No further submissions will beaccepted after posting to this endpoint.
submit_peer_or_self_review ๐Ÿ”’
POST `/api/v0/course-material/exercises/:exercise_id/peer-or-self-reviews - Post a peer review or a self review for anexercise submission.