lib/bearcat/client/assignments.rb in bearcat-1.3.22 vs lib/bearcat/client/assignments.rb in bearcat-1.3.23

- old
+ new

@@ -12,11 +12,23 @@ def assignment_overrides(course, assignment) get("/api/v1/courses/#{course}/assignments/#{assignment}/overrides") end + def all_assignment_overrides(course_id) + get("/api/v1/courses/#{course_id}/assignments/overrides") + end + def create_assignment_override(course, assignment, params) post("api/v1/courses/#{course}/assignments/#{assignment}/overrides", params) + end + + def batch_create_assignment_overrides(course_id, params) + post("/api/v1/courses/#{course_id}/assignments/overrides", params) + end + + def batch_update_assignment_overrides(course_id, params) + put("/api/v1/courses/#{course_id}/assignments/overrides", params) end def create_assignment(course, params={}) post("/api/v1/courses/#{course}/assignments", params) end