bearcat 1.0.0 → 1.5.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. checksums.yaml +7 -0
  2. data/bearcat.gemspec +15 -5
  3. data/lib/badgrcat/api_array.rb +25 -0
  4. data/lib/badgrcat/client/methods.rb +54 -0
  5. data/lib/badgrcat/client.rb +53 -0
  6. data/lib/badgrcat/version.rb +3 -0
  7. data/lib/bearcat/api_array.rb +132 -65
  8. data/lib/bearcat/client/account_reports.rb +6 -14
  9. data/lib/bearcat/client/accounts.rb +18 -6
  10. data/lib/bearcat/client/analytics.rb +12 -0
  11. data/lib/bearcat/client/assignment_groups.rb +15 -0
  12. data/lib/bearcat/client/assignments.rb +17 -9
  13. data/lib/bearcat/client/blueprint_courses.rb +25 -0
  14. data/lib/bearcat/client/calendar_events.rb +9 -17
  15. data/lib/bearcat/client/canvas_files.rb +0 -2
  16. data/lib/bearcat/client/conferences.rb +3 -8
  17. data/lib/bearcat/client/content_exports.rb +39 -0
  18. data/lib/bearcat/client/content_migrations.rb +54 -0
  19. data/lib/bearcat/client/conversations.rb +3 -8
  20. data/lib/bearcat/client/courses.rb +25 -14
  21. data/lib/bearcat/client/custom_gradebook_columns.rb +21 -0
  22. data/lib/bearcat/client/discussions.rb +10 -4
  23. data/lib/bearcat/client/enrollments.rb +9 -25
  24. data/lib/bearcat/client/external_tools.rb +18 -0
  25. data/lib/bearcat/client/file_helper.rb +36 -30
  26. data/lib/bearcat/client/files.rb +9 -0
  27. data/lib/bearcat/client/folders.rb +24 -0
  28. data/lib/bearcat/client/graph_ql.rb +17 -0
  29. data/lib/bearcat/client/group_categories.rb +18 -0
  30. data/lib/bearcat/client/group_memberships.rb +14 -0
  31. data/lib/bearcat/client/groups.rb +10 -2
  32. data/lib/bearcat/client/learning_outcomes.rb +17 -0
  33. data/lib/bearcat/client/logins.rb +20 -0
  34. data/lib/bearcat/client/module_items.rb +18 -0
  35. data/lib/bearcat/client/modules.rb +12 -7
  36. data/lib/bearcat/client/o_auth2.rb +18 -9
  37. data/lib/bearcat/client/outcome_groups.rb +2 -4
  38. data/lib/bearcat/client/outcome_imports.rb +48 -0
  39. data/lib/bearcat/client/outcomes.rb +4 -7
  40. data/lib/bearcat/client/pages.rb +15 -0
  41. data/lib/bearcat/client/progresses.rb +9 -0
  42. data/lib/bearcat/client/quizzes.rb +13 -9
  43. data/lib/bearcat/client/reports.rb +37 -17
  44. data/lib/bearcat/client/roles.rb +15 -0
  45. data/lib/bearcat/client/rubric.rb +17 -0
  46. data/lib/bearcat/client/rubric_assessment.rb +13 -0
  47. data/lib/bearcat/client/rubric_association.rb +13 -0
  48. data/lib/bearcat/client/search.rb +9 -0
  49. data/lib/bearcat/client/sections.rb +10 -17
  50. data/lib/bearcat/client/sis_imports.rb +6 -12
  51. data/lib/bearcat/client/submissions.rb +53 -21
  52. data/lib/bearcat/client/tabs.rb +12 -0
  53. data/lib/bearcat/client/users.rb +32 -13
  54. data/lib/bearcat/client.rb +111 -45
  55. data/lib/bearcat/client_module.rb +103 -0
  56. data/lib/bearcat/rate_limiting/increment_bucket.lua +33 -0
  57. data/lib/bearcat/rate_limiting/redis_script.rb +164 -0
  58. data/lib/bearcat/rate_limiting.rb +69 -0
  59. data/lib/bearcat/redis_connection.rb +106 -0
  60. data/lib/bearcat/spec_helpers.rb +125 -0
  61. data/lib/bearcat/version.rb +1 -1
  62. data/lib/bearcat.rb +49 -0
  63. data/lib/catalogcat/api_array.rb +22 -0
  64. data/lib/catalogcat/client/catalogs.rb +21 -0
  65. data/lib/catalogcat/client/certificates.rb +17 -0
  66. data/lib/catalogcat/client/courses.rb +25 -0
  67. data/lib/catalogcat/client/email_domain_sets.rb +17 -0
  68. data/lib/catalogcat/client/enrollments.rb +25 -0
  69. data/lib/catalogcat/client/orders.rb +13 -0
  70. data/lib/catalogcat/client/user_registrations.rb +9 -0
  71. data/lib/catalogcat/client.rb +26 -0
  72. data/lib/catalogcat/version.rb +3 -0
  73. data/lib/catalogcat.rb +14 -0
  74. data/spec/bearcat/api_array_spec.rb +112 -0
  75. data/spec/bearcat/client/accounts_spec.rb +71 -1
  76. data/spec/bearcat/client/analytics_spec.rb +22 -0
  77. data/spec/bearcat/client/assignment_groups_spec.rb +47 -0
  78. data/spec/bearcat/client/assignments_spec.rb +43 -0
  79. data/spec/bearcat/client/blueprint_courses_spec.rb +43 -0
  80. data/spec/bearcat/client/canvas_files_spec.rb +1 -2
  81. data/spec/bearcat/client/content_exports_spec.rb +68 -0
  82. data/spec/bearcat/client/content_migrations_spec.rb +94 -0
  83. data/spec/bearcat/client/courses_spec.rb +81 -2
  84. data/spec/bearcat/client/custom_gradebook_columns_spec.rb +66 -0
  85. data/spec/bearcat/client/discussions_spec.rb +73 -0
  86. data/spec/bearcat/client/enrollments_spec.rb +10 -0
  87. data/spec/bearcat/client/external_tools_spec.rb +106 -0
  88. data/spec/bearcat/client/files_spec.rb +15 -0
  89. data/spec/bearcat/client/folders_spec.rb +18 -0
  90. data/spec/bearcat/client/graph_ql_spec.rb +35 -0
  91. data/spec/bearcat/client/group_categories_spec.rb +45 -0
  92. data/spec/bearcat/client/group_membership_spec.rb +14 -0
  93. data/spec/bearcat/client/group_memberships_spec.rb +36 -0
  94. data/spec/bearcat/client/groups_spec.rb +46 -0
  95. data/spec/bearcat/client/learning_outcomes_spec.rb +25 -0
  96. data/spec/bearcat/client/module_items_spec.rb +60 -0
  97. data/spec/bearcat/client/modules_spec.rb +38 -1
  98. data/spec/bearcat/client/o_auth2_spec.rb +3 -3
  99. data/spec/bearcat/client/pages_spec.rb +17 -0
  100. data/spec/bearcat/client/quizzes_spec.rb +41 -4
  101. data/spec/bearcat/client/reports_spec.rb +40 -1
  102. data/spec/bearcat/client/roles_spec.rb +24 -0
  103. data/spec/bearcat/client/rubric_assessment_spec.rb +47 -0
  104. data/spec/bearcat/client/rubric_association_spec.rb +39 -0
  105. data/spec/bearcat/client/rubric_spec.rb +45 -0
  106. data/spec/bearcat/client/search_spec.rb +16 -0
  107. data/spec/bearcat/client/sections_spec.rb +12 -0
  108. data/spec/bearcat/client/submissions_spec.rb +47 -2
  109. data/spec/bearcat/client/users_spec.rb +43 -0
  110. data/spec/bearcat/client_spec.rb +1 -4
  111. data/spec/bearcat/rate_limiting_spec.rb +62 -0
  112. data/spec/bearcat/stub_bearcat_spec.rb +15 -0
  113. data/spec/fixtures/access_token.json +3 -0
  114. data/spec/fixtures/account_admin_create.json +14 -0
  115. data/spec/fixtures/account_admin_delete.json +15 -0
  116. data/spec/fixtures/account_admins.json +54 -0
  117. data/spec/fixtures/account_courses.json +48 -0
  118. data/spec/fixtures/account_grading_standards.json +20 -0
  119. data/spec/fixtures/account_groups.json +42 -0
  120. data/spec/fixtures/account_role.json +34 -0
  121. data/spec/fixtures/account_roles.json +35 -0
  122. data/spec/fixtures/account_sis_imports.json +39 -0
  123. data/spec/fixtures/account_sub_accounts.json +17 -0
  124. data/spec/fixtures/accounts.json +13 -0
  125. data/spec/fixtures/assignment.json +32 -0
  126. data/spec/fixtures/assignment_group.json +7 -0
  127. data/spec/fixtures/assignment_groups.json +16 -0
  128. data/spec/fixtures/blueprint_migration.json +12 -0
  129. data/spec/fixtures/blueprint_subscriptions.json +5 -0
  130. data/spec/fixtures/blueprint_template.json +7 -0
  131. data/spec/fixtures/blueprint_update_assocations_success.json +3 -0
  132. data/spec/fixtures/communication_channels.json +10 -0
  133. data/spec/fixtures/content_export.json +9 -0
  134. data/spec/fixtures/content_migration_files/content_migration.json +13 -0
  135. data/spec/fixtures/course_copy.json +18 -0
  136. data/spec/fixtures/course_files.json +38 -0
  137. data/spec/fixtures/course_folder.json +21 -0
  138. data/spec/fixtures/course_folders.json +44 -0
  139. data/spec/fixtures/course_grading_standards.json +20 -0
  140. data/spec/fixtures/course_settings.json +33 -0
  141. data/spec/fixtures/create_course_discussion.json +44 -0
  142. data/spec/fixtures/created_group.json +37 -0
  143. data/spec/fixtures/created_group_category.json +15 -0
  144. data/spec/fixtures/created_group_membership.json +8 -0
  145. data/spec/fixtures/created_module.json +13 -0
  146. data/spec/fixtures/custom_gradebook_columns/column_data.json +4 -0
  147. data/spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json +7 -0
  148. data/spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json +16 -0
  149. data/spec/fixtures/custom_gradebook_columns/gradebook_column_progress.json +14 -0
  150. data/spec/fixtures/dashboard.json +6 -0
  151. data/spec/fixtures/delete_course.json +3 -0
  152. data/spec/fixtures/delete_group_category.json +3 -0
  153. data/spec/fixtures/deleted_group.json +37 -0
  154. data/spec/fixtures/department_level_participation.json +73 -0
  155. data/spec/fixtures/department_level_statistics.json +10 -0
  156. data/spec/fixtures/discussion_entries.json +21 -0
  157. data/spec/fixtures/discussion_entry_replies.json +21 -0
  158. data/spec/fixtures/discussion_topic.json +49 -0
  159. data/spec/fixtures/discussion_topics.json +51 -0
  160. data/spec/fixtures/edited_group.json +129 -0
  161. data/spec/fixtures/edited_group_category.json +15 -0
  162. data/spec/fixtures/enrollment_terms.json +1 -1
  163. data/spec/fixtures/external_tool.json +55 -0
  164. data/spec/fixtures/external_tools.json +57 -0
  165. data/spec/fixtures/file.csv +5 -0
  166. data/spec/fixtures/gradebook_history.json +52 -0
  167. data/spec/fixtures/graph_ql_scores.json +33 -0
  168. data/spec/fixtures/group.json +15 -0
  169. data/spec/fixtures/group_categories.json +28 -0
  170. data/spec/fixtures/group_category.json +13 -0
  171. data/spec/fixtures/group_category_groups.json +20 -0
  172. data/spec/fixtures/group_membership.json +7 -0
  173. data/spec/fixtures/learning_outcome.json +32 -0
  174. data/spec/fixtures/merge_user.json +8 -0
  175. data/spec/fixtures/module.json +15 -0
  176. data/spec/fixtures/module_item.json +15 -0
  177. data/spec/fixtures/module_items.json +47 -0
  178. data/spec/fixtures/ok.json +3 -0
  179. data/spec/fixtures/outcome_result.json +13 -0
  180. data/spec/fixtures/pages.json +40 -0
  181. data/spec/fixtures/progress.json +13 -0
  182. data/spec/fixtures/quizzes/course_quiz_questions.json +59 -0
  183. data/spec/fixtures/quizzes/quiz_assignment_override.json +31 -0
  184. data/spec/fixtures/reactivate_enrollment.json +20 -0
  185. data/spec/fixtures/rubric.json +13 -0
  186. data/spec/fixtures/rubric_assessment.json +32 -0
  187. data/spec/fixtures/rubric_association.json +13 -0
  188. data/spec/fixtures/search_find_recipients.json +10 -0
  189. data/spec/fixtures/update_section.json +1 -1
  190. data/spec/fixtures/user_details.json +16 -0
  191. data/spec/fixtures/user_logins.json +9 -0
  192. data/spec/helper.rb +2 -0
  193. metadata +336 -43
@@ -0,0 +1,38 @@
1
+ [
2
+ {
3
+ "id": 109,
4
+ "folder_id": 22,
5
+ "content-type": "application/pdf",
6
+ "display_name": "HBS Doctoral MVP SRD.pdf",
7
+ "filename": "1432764737_14__HBS%252BDoctoral%252BMVP%252BSRD.pdf",
8
+ "url": "http://localhost:3000/files/109/download?download_frd=1&verifier=FBoa2CGPYKxLYgKu49oSl3b6qnfvsmLgGeBxaUrW",
9
+ "size": 177660,
10
+ "created_at": "2015-05-27T22:12:16Z",
11
+ "updated_at": "2015-05-27T22:12:17Z",
12
+ "unlock_at": null,
13
+ "locked": false,
14
+ "hidden": false,
15
+ "lock_at": null,
16
+ "hidden_for_user": false,
17
+ "thumbnail_url": null,
18
+ "locked_for_user": false
19
+ },
20
+ {
21
+ "id": 110,
22
+ "folder_id": 22,
23
+ "content-type": "application/x-ruby",
24
+ "display_name": "magic_eight.rb",
25
+ "filename": "1432764737_152__magic_eight.rb",
26
+ "url": "http://localhost:3000/files/110/download?download_frd=1&verifier=cFogneKgMZGvmTV9ausxxP8QJPTIzDjr81SyeGMB",
27
+ "size": 2218,
28
+ "created_at": "2015-05-27T22:12:17Z",
29
+ "updated_at": "2015-05-27T22:12:17Z",
30
+ "unlock_at": null,
31
+ "locked": false,
32
+ "hidden": false,
33
+ "lock_at": null,
34
+ "hidden_for_user": false,
35
+ "thumbnail_url": null,
36
+ "locked_for_user": false
37
+ }
38
+ ]
@@ -0,0 +1,21 @@
1
+ {
2
+ "context_id": 1,
3
+ "context_type": "Course",
4
+ "created_at": "2015-04-28T19:14:58Z",
5
+ "full_name": "new folder",
6
+ "id": 3,
7
+ "lock_at": null,
8
+ "name": "new folder",
9
+ "parent_folder_id": null,
10
+ "position": null,
11
+ "unlock_at": null,
12
+ "updated_at": "2015-04-28T19:14:58Z",
13
+ "locked": false,
14
+ "folders_url": "http://localhost:3000/api/v1/folders/1/folders",
15
+ "files_url": "http://localhost:3000/api/v1/folders/1/files",
16
+ "files_count": 2,
17
+ "folders_count": 1,
18
+ "hidden": null,
19
+ "locked_for_user": false,
20
+ "hidden_for_user": false
21
+ }
@@ -0,0 +1,44 @@
1
+ [
2
+ {
3
+ "context_id": 1,
4
+ "context_type": "Course",
5
+ "created_at": "2015-04-28T19:14:58Z",
6
+ "full_name": "course files",
7
+ "id": 1,
8
+ "lock_at": null,
9
+ "name": "course files",
10
+ "parent_folder_id": null,
11
+ "position": null,
12
+ "unlock_at": null,
13
+ "updated_at": "2015-04-28T19:14:58Z",
14
+ "locked": false,
15
+ "folders_url": "http://localhost:3000/api/v1/folders/1/folders",
16
+ "files_url": "http://localhost:3000/api/v1/folders/1/files",
17
+ "files_count": 2,
18
+ "folders_count": 1,
19
+ "hidden": null,
20
+ "locked_for_user": false,
21
+ "hidden_for_user": false
22
+ },
23
+ {
24
+ "context_id": 1,
25
+ "context_type": "Course",
26
+ "created_at": "2015-08-10T13:30:50Z",
27
+ "full_name": "course files/folder1",
28
+ "id": 593,
29
+ "lock_at": null,
30
+ "name": "folder1",
31
+ "parent_folder_id": 1,
32
+ "position": 1,
33
+ "unlock_at": null,
34
+ "updated_at": "2015-08-10T13:30:50Z",
35
+ "locked": false,
36
+ "folders_url": "http://localhost:3000/api/v1/folders/593/folders",
37
+ "files_url": "http://localhost:3000/api/v1/folders/593/files",
38
+ "files_count": 1,
39
+ "folders_count": 0,
40
+ "hidden": null,
41
+ "locked_for_user": false,
42
+ "hidden_for_user": false
43
+ }
44
+ ]
@@ -0,0 +1,20 @@
1
+ {
2
+ "id":2,
3
+ "title":"custom grading scheme",
4
+ "context_id":69,
5
+ "context_type":"Course",
6
+ "grading_scheme":[
7
+ {"name":"A","value":0.94},
8
+ {"name":"A-","value":0.9},
9
+ {"name":"B+","value":0.87},
10
+ {"name":"B","value":0.84},
11
+ {"name":"B-","value":0.8},
12
+ {"name":"C+","value":0.77},
13
+ {"name":"C","value":0.74},
14
+ {"name":"C-","value":0.7},
15
+ {"name":"D+","value":0.67},
16
+ {"name":"D","value":0.64},
17
+ {"name":"D-","value":0.61},
18
+ {"name":"F","value":0.0}
19
+ ]
20
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "allow_student_discussion_topics": false,
3
+ "allow_student_discussion_editing": true,
4
+ "allow_student_discussion_reporting": false,
5
+ "allow_student_anonymous_discussion_topics": false,
6
+ "filter_speed_grader_by_student_group": false,
7
+ "grading_standard_enabled": false,
8
+ "grading_standard_id": null,
9
+ "grade_passback_setting": null,
10
+ "allow_student_organized_groups": true,
11
+ "hide_final_grades": true,
12
+ "hide_distribution_graphs": true,
13
+ "hide_sections_on_course_users_page": false,
14
+ "lock_all_announcements": true,
15
+ "usage_rights_required": false,
16
+ "restrict_student_past_view": false,
17
+ "restrict_student_future_view": false,
18
+ "restrict_quantitative_data": false,
19
+ "show_announcements_on_home_page": false,
20
+ "home_page_announcement_limit": 3,
21
+ "syllabus_course_summary": true,
22
+ "homeroom_course": false,
23
+ "image_url": null,
24
+ "image_id": null,
25
+ "image": null,
26
+ "banner_image_url": null,
27
+ "banner_image_id": null,
28
+ "banner_image": null,
29
+ "course_color": null,
30
+ "friendly_name": null,
31
+ "default_due_time": "23:59:59",
32
+ "conditional_release": true
33
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "assignment_id": null,
3
+ "delayed_post_at": null,
4
+ "discussion_type": "side_comment",
5
+ "id": 43,
6
+ "last_reply_at": "2014-07-31T22:30:41Z",
7
+ "lock_at": null,
8
+ "podcast_has_student_posts": null,
9
+ "position": null,
10
+ "posted_at": "2014-07-31T22:30:41Z",
11
+ "root_topic_id": null,
12
+ "title": "This is a course discussion",
13
+ "user_name": "test user",
14
+ "discussion_subentry_count": 0,
15
+ "permissions": {
16
+ "attach": false,
17
+ "update": true,
18
+ "delete": true
19
+ },
20
+ "message": null,
21
+ "require_initial_post": null,
22
+ "user_can_see_posts": true,
23
+ "podcast_url": null,
24
+ "read_state": "read",
25
+ "unread_count": 0,
26
+ "subscribed": true,
27
+ "topic_children": [],
28
+ "attachments": [],
29
+ "published": false,
30
+ "can_unpublish": true,
31
+ "locked": false,
32
+ "author": {
33
+ "id": 1,
34
+ "display_name": "test_user",
35
+ "avatar_image_url": "https://secure.gravatar.com/avatar/avatar-50.png",
36
+ "html_url": "http://localhost:3000/groups/2/users/1"
37
+ },
38
+ "html_url": "http://localhost:3000/groups/2/discussion_topics/43",
39
+ "url": "http://localhost:3000/groups/2/discussion_topics/43",
40
+ "pinned": false,
41
+ "group_category_id": null,
42
+ "can_group": true,
43
+ "locked_for_user": false
44
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "id": 7,
3
+ "name": "created group 1",
4
+ "max_membership": null,
5
+ "is_public": false,
6
+ "join_level": "invitation_only",
7
+ "group_category_id": 2,
8
+ "description": null,
9
+ "members_count": 0,
10
+ "storage_quota_mb": 50,
11
+ "permissions": {
12
+ "create_discussion_topic": true,
13
+ "join": false,
14
+ "create_announcement": true
15
+ },
16
+ "context_type": "Course",
17
+ "course_id": 14,
18
+ "avatar_url": null,
19
+ "role": null,
20
+ "leader": null,
21
+ "users": [],
22
+ "group_category": {
23
+ "id": 2,
24
+ "name": "Group Category!!!!!",
25
+ "role": null,
26
+ "self_signup": null,
27
+ "group_limit": null,
28
+ "auto_leader": null,
29
+ "context_type": "Course",
30
+ "course_id": 14,
31
+ "protected": false,
32
+ "allows_multiple_memberships": false,
33
+ "is_member": false
34
+ },
35
+ "has_submission": false,
36
+ "concluded": false
37
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "id": 1,
3
+ "name": "new group category",
4
+ "role": null,
5
+ "self_signup": null,
6
+ "group_limit": null,
7
+ "auto_leader": null,
8
+ "context_type": "Course",
9
+ "course_id": 14,
10
+ "groups_count": 0,
11
+ "unassigned_users_count": 13,
12
+ "protected": false,
13
+ "allows_multiple_memberships": false,
14
+ "is_member": false
15
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": 14,
3
+ "group_id": 3,
4
+ "workflow_state": "accepted",
5
+ "user_id": 6,
6
+ "moderator": false,
7
+ "just_created": true
8
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "id": 1,
3
+ "name": "new module",
4
+ "position": 1,
5
+ "unlock_at": null,
6
+ "require_sequential_progress": true,
7
+ "publish_final_grade": false,
8
+ "prerequisite_module_ids": [],
9
+ "state": "active",
10
+ "completed_at": "2014-04-18T19:38:01Z",
11
+ "items_count": 0,
12
+ "items_url": "http://localhost:3000/api/v1/courses/1384/modules/1/items"
13
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "content": "Nut allergy",
3
+ "user_id": 1
4
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "id": 3,
3
+ "title": "Third",
4
+ "position": 3,
5
+ "teacher_notes": false,
6
+ "hidden": false
7
+ }
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "title": "First",
5
+ "position": 1,
6
+ "teacher_notes": false,
7
+ "hidden": false
8
+ },
9
+ {
10
+ "id": 2,
11
+ "title": "Second",
12
+ "position": 2,
13
+ "teacher_notes": false,
14
+ "hidden": false
15
+ }
16
+ ]
@@ -0,0 +1,14 @@
1
+ {
2
+ "id": 1,
3
+ "context_id": 1,
4
+ "context_type": "Course",
5
+ "user_id": 123,
6
+ "tag": "custom_columns_submissions_update",
7
+ "completion": 100,
8
+ "workflow_state": "completed",
9
+ "created_at": "2013-01-15T15:00:00Z",
10
+ "updated_at": "2013-01-15T15:04:00Z",
11
+ "message": "",
12
+ "results": {},
13
+ "url": "https://canvas.example.edu/api/v1/progress/1"
14
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "dashboard_positions": {
3
+ "course_42": 2,
4
+ "course_88": 1
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "delete": true
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "delete": true
3
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "id": 7,
3
+ "name": "created group 1",
4
+ "max_membership": null,
5
+ "is_public": false,
6
+ "join_level": "invitation_only",
7
+ "group_category_id": 2,
8
+ "description": null,
9
+ "members_count": 0,
10
+ "storage_quota_mb": 50,
11
+ "permissions": {
12
+ "create_discussion_topic": true,
13
+ "join": false,
14
+ "create_announcement": true
15
+ },
16
+ "context_type": "Course",
17
+ "course_id": 14,
18
+ "avatar_url": null,
19
+ "role": null,
20
+ "leader": null,
21
+ "users": [],
22
+ "group_category": {
23
+ "id": 2,
24
+ "name": "Group Category!!!!!",
25
+ "role": null,
26
+ "self_signup": null,
27
+ "group_limit": null,
28
+ "auto_leader": null,
29
+ "context_type": "Course",
30
+ "course_id": 14,
31
+ "protected": false,
32
+ "allows_multiple_memberships": false,
33
+ "is_member": false
34
+ },
35
+ "has_submission": false,
36
+ "concluded": false
37
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "by_date": [
3
+ {
4
+ "date": "2015-09-14",
5
+ "participations": 0,
6
+ "views": 10
7
+ },
8
+ {
9
+ "date": "2015-06-02",
10
+ "participations": 0,
11
+ "views": 7
12
+ },
13
+ {
14
+ "date": "2015-02-02",
15
+ "participations": 0,
16
+ "views": 38
17
+ }
18
+ ],
19
+ "by_category": [
20
+ {
21
+ "category": "announcements",
22
+ "views": 3
23
+ },
24
+ {
25
+ "category": "assignments",
26
+ "views": 112
27
+ },
28
+ {
29
+ "category": "collaborations",
30
+ "views": 2
31
+ },
32
+ {
33
+ "category": "conferences",
34
+ "views": 1
35
+ },
36
+ {
37
+ "category": "discussions",
38
+ "views": 56
39
+ },
40
+ {
41
+ "category": "files",
42
+ "views": 26
43
+ },
44
+ {
45
+ "category": "general",
46
+ "views": 328
47
+ },
48
+ {
49
+ "category": "grades",
50
+ "views": 57
51
+ },
52
+ {
53
+ "category": "groups",
54
+ "views": 1
55
+ },
56
+ {
57
+ "category": "modules",
58
+ "views": 100
59
+ },
60
+ {
61
+ "category": "other",
62
+ "views": 197
63
+ },
64
+ {
65
+ "category": "pages",
66
+ "views": 21
67
+ },
68
+ {
69
+ "category": "quizzes",
70
+ "views": 43
71
+ }
72
+ ]
73
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "courses": 23,
3
+ "subaccounts": 8,
4
+ "teachers": 7,
5
+ "students": 8,
6
+ "discussion_topics": 187,
7
+ "media_objects": 1,
8
+ "attachments": 557,
9
+ "assignments": 253
10
+ }
@@ -0,0 +1,21 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "user_id": 170000004597713,
5
+ "parent_id": null,
6
+ "created_at": "2016-08-22T18:41:53Z",
7
+ "updated_at": "2016-08-22T18:41:53Z",
8
+ "rating_count": null,
9
+ "rating_sum": null,
10
+ "user_name": "Mark Valentine",
11
+ "message": "<p><a id=\"\" class=\"\" title=\"\" href=\"http://ola.aacc.edu/policies/IntegrityPolicy.pdf\" target=\"\">what about this policy?</a></p>",
12
+ "user": {
13
+ "id": 170000004597713,
14
+ "display_name": "Mark Valentine",
15
+ "avatar_image_url": "https://secure.gravatar.com/avatar/ef7cb412b0b68576d39a7014919e6e92?s=50&d=https%3A%2F%2Fmvalentine.instructure.com%2Fimages%2Fmessages%2Favatar-50.png",
16
+ "html_url": "https://mvalentine.instructure.com/courses/1/users/17~4597713"
17
+ },
18
+ "read_state": "read",
19
+ "forced_read_state": false
20
+ }
21
+ ]
@@ -0,0 +1,21 @@
1
+ [
2
+ {
3
+ "id": 3,
4
+ "user_id": 170000004597713,
5
+ "parent_id": 1,
6
+ "created_at": "2016-08-25T16:46:59Z",
7
+ "updated_at": "2016-08-25T16:46:59Z",
8
+ "rating_count": null,
9
+ "rating_sum": null,
10
+ "user_name": "Mark Valentine",
11
+ "message": "<p>i am not in favor of that.</p>",
12
+ "user": {
13
+ "id": 170000004597713,
14
+ "display_name": "Mark Valentine",
15
+ "avatar_image_url": "https://secure.gravatar.com/avatar/ef7cb412b0b68576d39a7014919e6e92?s=50&d=https%3A%2F%2Fmvalentine.instructure.com%2Fimages%2Fmessages%2Favatar-50.png",
16
+ "html_url": "https://mvalentine.instructure.com/courses/1/users/17~4597713"
17
+ },
18
+ "read_state": "read",
19
+ "forced_read_state": false
20
+ }
21
+ ]
@@ -0,0 +1,49 @@
1
+ {
2
+ "id": 1,
3
+ "title": "Lets talk about the integrity policy",
4
+ "last_reply_at": "2016-08-22T18:41:53Z",
5
+ "delayed_post_at": null,
6
+ "posted_at": "2016-08-22T18:26:42Z",
7
+ "assignment_id": null,
8
+ "root_topic_id": null,
9
+ "position": null,
10
+ "podcast_has_student_posts": false,
11
+ "discussion_type": "side_comment",
12
+ "lock_at": null,
13
+ "allow_rating": false,
14
+ "only_graders_can_rate": false,
15
+ "sort_by_rating": false,
16
+ "user_name": "Mark Valentine",
17
+ "discussion_subentry_count": 1,
18
+ "permissions": {
19
+ "attach": true,
20
+ "update": true,
21
+ "reply": true,
22
+ "delete": true
23
+ },
24
+ "require_initial_post": null,
25
+ "user_can_see_posts": true,
26
+ "podcast_url": null,
27
+ "read_state": "read",
28
+ "unread_count": 0,
29
+ "subscribed": true,
30
+ "topic_children": [],
31
+ "attachments": [],
32
+ "published": true,
33
+ "can_unpublish": true,
34
+ "locked": false,
35
+ "can_lock": true,
36
+ "author": {
37
+ "id": 170000004597713,
38
+ "display_name": "Mark Valentine",
39
+ "avatar_image_url": "https://secure.gravatar.com/avatar/ef7cb412b0b68576d39a7014919e6e92?s=50&d=https%3A%2F%2Fmvalentine.instructure.com%2Fimages%2Fmessages%2Favatar-50.png",
40
+ "html_url": "https://mvalentine.instructure.com/courses/1/users/17~4597713"
41
+ },
42
+ "html_url": "https://mvalentine.instructure.com/courses/1/discussion_topics/1",
43
+ "url": "https://mvalentine.instructure.com/courses/1/discussion_topics/1",
44
+ "pinned": false,
45
+ "group_category_id": null,
46
+ "can_group": true,
47
+ "locked_for_user": false,
48
+ "message": "<p>I have this policy.</p>\r\n<p><a class=\"\" title=\"http://ola.aacc.edu/policies/IntegrityPolicy.pdf\" href=\"https://mvalentine.instructure.com/courses/1/files/3/download?verifier=gAUYA5q4jdW9k7R3A4Tw2TQ0KKmP5g4ubOelhFOU&amp;wrap=1\" target=\"\" data-api-endpoint=\"https://mvalentine.instructure.com/api/v1/courses/1/files/3\" data-api-returntype=\"File\">http://ola.aacc.edu/policies/IntegrityPolicy.pdf</a></p>\r\n<p> </p>"
49
+ }
@@ -0,0 +1,51 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "title": "Lets talk about the integrity policy",
5
+ "last_reply_at": "2016-08-22T18:41:53Z",
6
+ "delayed_post_at": null,
7
+ "posted_at": "2016-08-22T18:26:42Z",
8
+ "assignment_id": null,
9
+ "root_topic_id": null,
10
+ "position": null,
11
+ "podcast_has_student_posts": false,
12
+ "discussion_type": "side_comment",
13
+ "lock_at": null,
14
+ "allow_rating": false,
15
+ "only_graders_can_rate": false,
16
+ "sort_by_rating": false,
17
+ "user_name": "Mark Valentine",
18
+ "discussion_subentry_count": 1,
19
+ "permissions": {
20
+ "attach": true,
21
+ "update": true,
22
+ "reply": true,
23
+ "delete": true
24
+ },
25
+ "require_initial_post": null,
26
+ "user_can_see_posts": true,
27
+ "podcast_url": null,
28
+ "read_state": "read",
29
+ "unread_count": 0,
30
+ "subscribed": true,
31
+ "topic_children": [],
32
+ "attachments": [],
33
+ "published": true,
34
+ "can_unpublish": true,
35
+ "locked": false,
36
+ "can_lock": true,
37
+ "author": {
38
+ "id": 170000004597713,
39
+ "display_name": "Mark Valentine",
40
+ "avatar_image_url": "https://secure.gravatar.com/avatar/ef7cb412b0b68576d39a7014919e6e92?s=50&d=https%3A%2F%2Fmvalentine.instructure.com%2Fimages%2Fmessages%2Favatar-50.png",
41
+ "html_url": "https://mvalentine.instructure.com/courses/1/users/17~4597713"
42
+ },
43
+ "html_url": "https://mvalentine.instructure.com/courses/1/discussion_topics/1",
44
+ "url": "https://mvalentine.instructure.com/courses/1/discussion_topics/1",
45
+ "pinned": false,
46
+ "group_category_id": null,
47
+ "can_group": true,
48
+ "locked_for_user": false,
49
+ "message": "<p>I have this policy.</p>\r\n<p><a class=\"\" title=\"http://ola.aacc.edu/policies/IntegrityPolicy.pdf\" href=\"https://mvalentine.instructure.com/courses/1/files/3/download?verifier=gAUYA5q4jdW9k7R3A4Tw2TQ0KKmP5g4ubOelhFOU&amp;wrap=1\" target=\"\" data-api-endpoint=\"https://mvalentine.instructure.com/api/v1/courses/1/files/3\" data-api-returntype=\"File\">http://ola.aacc.edu/policies/IntegrityPolicy.pdf</a></p>\r\n<p> </p>"
50
+ }
51
+ ]