lib/bearcat/client/submissions.rb in bearcat-1.0.6 vs lib/bearcat/client/submissions.rb in bearcat-1.0.7

- old
+ new

@@ -16,9 +16,17 @@ def section_submission(section, assignment, params) post("/api/v1/sections/#{section}/assignments/#{assignment}/submissions", params) end + def grade_course_submission(course, assignment, user, params) + put("/api/v1/courses/#{course}/assignments/#{assignment}/submissions/#{user}", params) + end + + def grade_section_submission(section, assignment, user, params) + put("/api/v1/sections/#{section}/assignments/#{assignment}/submissions/#{user}", params) + end + def course_file_upload_submission(course, assignment, user, file_path, params={}) response = upload_file("/api/v1/courses/#{course}/assignments/#{assignment}/submissions/#{user}/files", file_path, params) params['submission'] = { 'submission_type' => 'online_upload', 'file_ids'=> [response['id']]