Skip to content

Commit

Permalink
Merge pull request #193 from donny-wong/extension_api (#194)
Browse files Browse the repository at this point in the history
Extension api

Co-authored-by: Samuel Maldonado <pretendWhale@users.noreply.github.com>
  • Loading branch information
donny-wong and pretendWhale authored Sep 22, 2023
1 parent 604ac46 commit f9ef1a9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions RESTful-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,40 @@ NOTE: adding feedback files to subdirectories is currently not supported
- required parameters:
- tag_id (integer)

### POST /api/courses/:course_id/assignments/:assignment_id/groups/:group_id/extension

- description: Create an extension for the given group for the given assignment
- required parameters:
- extension
- time_delta
- weeks (integer)
- days (integer)
- hours (integer)
- minutes (integer)
- apply_penalty (boolean, optional)
- note (string, optional)

NOTE: for time_delta, at least one of the following is required: weeks, days, hours, minutes.

### PATCH /api/courses/:course_id/assignments/:assignment_id/groups/:group_id/extension

- description: Update an extension for the given group for the given assignment
- required parameters:
- extension
- time_delta
- weeks (integer)
- days (integer)
- hours (integer)
- minutes (integer)
- apply_penalty (boolean, optional)
- note (string, optional)

NOTE: for time_delta, at least one of the following is required: weeks, days, hours, minutes.

### DELETE /api/courses/:course_id/assignments/:assignment_id/groups/:group_id/extension

- description: Delete an extension for the given group for the given assignment

### GET /api/courses/:course_id/feedback_files/:id

- description: Download the content of the given feedback file
Expand Down

0 comments on commit f9ef1a9

Please sign in to comment.