lib/bearcat/client/courses.rb in bearcat-1.0.24 vs lib/bearcat/client/courses.rb in bearcat-1.0.25
- old
+ new
@@ -34,8 +34,13 @@
response = post("/api/v1/courses/#{course}/content_migrations", params)
pre_attachment = response['pre_attachment']
confirmation_url = post_file(pre_attachment['upload_url'], pre_attachment['upload_params'], file_path)
confirm_file_upload(confirmation_url)
end
+
+ # Performs effectively the same operation as #create_content_migration, but without the need to specify a file to be uploaded
+ def copy_course(course, params = {})
+ post("/api/v1/courses/#{course}/content_migrations", params)
+ end
end
end
end