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,129 @@
1
+ {
2
+ "id": 1,
3
+ "name": "edited group 1",
4
+ "max_membership": null,
5
+ "is_public": false,
6
+ "join_level": "invitation_only",
7
+ "group_category_id": 8,
8
+ "description": "edited group 1 description",
9
+ "members_count": 9,
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
+ {
23
+ "id": 6,
24
+ "name": "admin3@instructure.com",
25
+ "sortable_name": "admin3@instructure.com",
26
+ "short_name": "admin3@instructure.com",
27
+ "sis_user_id": "7 - sis - 6",
28
+ "integration_id": null,
29
+ "sis_login_id": "admin3",
30
+ "sis_import_id": null,
31
+ "login_id": "admin3"
32
+ },
33
+ {
34
+ "id": 7,
35
+ "name": "admin4@instructure.com",
36
+ "sortable_name": "admin4@instructure.com",
37
+ "short_name": "admin4@instructure.com",
38
+ "sis_user_id": "8 - sis - 7",
39
+ "integration_id": null,
40
+ "sis_login_id": "admin4",
41
+ "sis_import_id": null,
42
+ "login_id": "admin4"
43
+ },
44
+ {
45
+ "id": 12,
46
+ "name": "student3",
47
+ "sortable_name": "student3",
48
+ "short_name": "student3",
49
+ "sis_user_id": "18 - sis - 12",
50
+ "integration_id": null,
51
+ "sis_login_id": "student3",
52
+ "sis_import_id": null,
53
+ "login_id": "student3"
54
+ },
55
+ {
56
+ "id": 14,
57
+ "name": "student4",
58
+ "sortable_name": "student4",
59
+ "short_name": "student4",
60
+ "sis_user_id": "26 - sis - 14",
61
+ "integration_id": null,
62
+ "sis_login_id": "student4",
63
+ "sis_import_id": null,
64
+ "login_id": "student4"
65
+ },
66
+ {
67
+ "id": 15,
68
+ "name": "student5",
69
+ "sortable_name": "student5",
70
+ "short_name": "student5",
71
+ "sis_user_id": "27 - sis - 15",
72
+ "integration_id": null,
73
+ "sis_login_id": "student5",
74
+ "sis_import_id": null,
75
+ "login_id": "student5"
76
+ },
77
+ {
78
+ "id": 16,
79
+ "name": "student6",
80
+ "sortable_name": "student6",
81
+ "short_name": "student6",
82
+ "sis_user_id": "28 - sis - 16",
83
+ "integration_id": null,
84
+ "sis_login_id": "student6",
85
+ "sis_import_id": null,
86
+ "login_id": "student6"
87
+ },
88
+ {
89
+ "id": 17,
90
+ "name": "student7",
91
+ "sortable_name": "student7",
92
+ "short_name": "student7",
93
+ "sis_user_id": "29 - sis - 17",
94
+ "integration_id": null,
95
+ "sis_login_id": "student7",
96
+ "sis_import_id": null,
97
+ "login_id": "student7"
98
+ },
99
+ {
100
+ "id": 41,
101
+ "name": "test_with_ivan",
102
+ "sortable_name": "test_with_ivan",
103
+ "short_name": "test_with_ivan",
104
+ "login_id": "test_with_ivan"
105
+ },
106
+ {
107
+ "id": 42,
108
+ "name": "test_with_ivan2",
109
+ "sortable_name": "test_with_ivan2",
110
+ "short_name": "test_with_ivan2",
111
+ "login_id": "test_with_ivan2"
112
+ }
113
+ ],
114
+ "group_category": {
115
+ "id": 8,
116
+ "name": "Sections Cloned as Groups",
117
+ "role": null,
118
+ "self_signup": null,
119
+ "group_limit": null,
120
+ "auto_leader": null,
121
+ "context_type": "Course",
122
+ "course_id": 14,
123
+ "protected": false,
124
+ "allows_multiple_memberships": false,
125
+ "is_member": false
126
+ },
127
+ "has_submission": false,
128
+ "concluded": false
129
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "id": 1,
3
+ "name": "edited 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
+ }
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "enrollment_terms": [
3
3
  {
4
4
  "end_at": "2014-06-30T06:00:00Z",
@@ -0,0 +1,55 @@
1
+ {
2
+ "id": 1,
3
+ "domain": "localhost",
4
+ "url": null,
5
+ "consumer_key": "key",
6
+ "name": "Accredidation",
7
+ "description": null,
8
+ "created_at": "2017-05-19T20:45:01Z",
9
+ "updated_at": "2017-05-19T20:45:01Z",
10
+ "privacy_level": "public",
11
+ "custom_fields": {
12
+ "custom_canvas_role": "$Canvas.membership.roles"
13
+ },
14
+ "workflow_state": "public",
15
+ "vendor_help_link": null,
16
+ "account_navigation": {
17
+ "enabled": "true",
18
+ "text": "Accreditation Tracking",
19
+ "url": "http://localhost:4000/lti/account",
20
+ "visibility": "admins",
21
+ "label": "Accreditation Tracking",
22
+ "selection_width": 800,
23
+ "selection_height": 400
24
+ },
25
+ "similarity_detection": null,
26
+ "assignment_menu": null,
27
+ "assignment_selection": null,
28
+ "collaboration": null,
29
+ "course_assignments_menu": null,
30
+ "course_home_sub_navigation": null,
31
+ "course_navigation": null,
32
+ "course_settings_sub_navigation": null,
33
+ "discussion_topic_menu": null,
34
+ "editor_button": null,
35
+ "file_menu": null,
36
+ "global_navigation": null,
37
+ "homework_submission": null,
38
+ "link_selection": null,
39
+ "migration_selection": null,
40
+ "module_menu": null,
41
+ "post_grades": null,
42
+ "quiz_menu": null,
43
+ "resource_selection": null,
44
+ "tool_configuration": null,
45
+ "user_navigation": {
46
+ "enabled": "true",
47
+ "text": "Accreditation Tracking",
48
+ "url": "http://localhost:4000/lti/user",
49
+ "label": "Accreditation Tracking",
50
+ "selection_width": 800,
51
+ "selection_height": 400
52
+ },
53
+ "wiki_page_menu": null,
54
+ "not_selectable": false
55
+ }
@@ -0,0 +1,57 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "domain": "localhost",
5
+ "url": null,
6
+ "consumer_key": "key",
7
+ "name": "Accredidation",
8
+ "description": null,
9
+ "created_at": "2017-05-19T20:45:01Z",
10
+ "updated_at": "2017-05-19T20:45:01Z",
11
+ "privacy_level": "public",
12
+ "custom_fields": {
13
+ "custom_canvas_role": "$Canvas.membership.roles"
14
+ },
15
+ "workflow_state": "public",
16
+ "vendor_help_link": null,
17
+ "account_navigation": {
18
+ "enabled": "true",
19
+ "text": "Accreditation Tracking",
20
+ "url": "http://localhost:4000/lti/account",
21
+ "visibility": "admins",
22
+ "label": "Accreditation Tracking",
23
+ "selection_width": 800,
24
+ "selection_height": 400
25
+ },
26
+ "similarity_detection": null,
27
+ "assignment_menu": null,
28
+ "assignment_selection": null,
29
+ "collaboration": null,
30
+ "course_assignments_menu": null,
31
+ "course_home_sub_navigation": null,
32
+ "course_navigation": null,
33
+ "course_settings_sub_navigation": null,
34
+ "discussion_topic_menu": null,
35
+ "editor_button": null,
36
+ "file_menu": null,
37
+ "global_navigation": null,
38
+ "homework_submission": null,
39
+ "link_selection": null,
40
+ "migration_selection": null,
41
+ "module_menu": null,
42
+ "post_grades": null,
43
+ "quiz_menu": null,
44
+ "resource_selection": null,
45
+ "tool_configuration": null,
46
+ "user_navigation": {
47
+ "enabled": "true",
48
+ "text": "Accreditation Tracking",
49
+ "url": "http://localhost:4000/lti/user",
50
+ "label": "Accreditation Tracking",
51
+ "selection_width": 800,
52
+ "selection_height": 400
53
+ },
54
+ "wiki_page_menu": null,
55
+ "not_selectable": false
56
+ }
57
+ ]
@@ -0,0 +1,5 @@
1
+ canvas_course_id,course_id,short_name,long_name,canvas_account_id,account_id,canvas_term_id,term_id,status,start_date,end_date,created_by_sis
2
+ 132,,Alg202CR,Algebra 2 Semester 2 Credit Recovery,11,,1,,unpublished,,,false
3
+ 78,,mark,mark alsdorf,3,,1,,unpublished,,,false
4
+ 64,,PhySci102standard,Physical Science 1 Semester 2 Standard,6,,1,,deleted,,,false
5
+ 37,,A2,Algebra 2,9,,1,,unpublished,,,false
@@ -0,0 +1,52 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "body": null,
5
+ "url": null,
6
+ "grade": "0",
7
+ "score": 0,
8
+ "submitted_at": null,
9
+ "assignment_id": 87,
10
+ "user_id": 3006,
11
+ "submission_type": null,
12
+ "workflow_state": "graded",
13
+ "grade_matches_current_submission": true,
14
+ "graded_at": "2016-09-02T16:57:36Z",
15
+ "grader_id": 1,
16
+ "attempt": null,
17
+ "excused": false,
18
+ "late": false,
19
+ "preview_url": "http://localhost:3000/courses/5/assignments/87/submissions/3006?preview=1&version=2",
20
+ "grader": "mvalentine@instructure.com",
21
+ "assignment_name": "00000b",
22
+ "user_name": "a@example.com",
23
+ "current_grade": "0",
24
+ "current_graded_at": "2016-09-02T16:57:36Z",
25
+ "current_grader": "mvalentine@instructure.com"
26
+ },
27
+ {
28
+ "id": 2,
29
+ "body": null,
30
+ "url": null,
31
+ "grade": "0",
32
+ "score": 0,
33
+ "submitted_at": null,
34
+ "assignment_id": 87,
35
+ "user_id": 3006,
36
+ "submission_type": null,
37
+ "workflow_state": "graded",
38
+ "grade_matches_current_submission": true,
39
+ "graded_at": "2016-09-02T16:57:36Z",
40
+ "grader_id": 1,
41
+ "attempt": null,
42
+ "excused": false,
43
+ "late": false,
44
+ "preview_url": "http://localhost:3000/courses/5/assignments/87/submissions/3006?preview=1&version=2",
45
+ "grader": "mvalentine@instructure.com",
46
+ "assignment_name": "00000b",
47
+ "user_name": "a@example.com",
48
+ "current_grade": "0",
49
+ "current_graded_at": "2016-09-02T16:57:36Z",
50
+ "current_grader": "mvalentine@instructure.com"
51
+ }
52
+ ]
@@ -0,0 +1,33 @@
1
+ {
2
+ "data": {
3
+ "assignmentGroup": {
4
+ "id": "QXNzaWdubWVudEdyb3VwLTI5",
5
+ "name": "Assignments",
6
+ "gradesConnection": {
7
+ "nodes": [
8
+ {
9
+ "finalGrade": null,
10
+ "currentScore": 100,
11
+ "enrollment": {
12
+ "_id": "63"
13
+ }
14
+ },
15
+ {
16
+ "finalGrade": null,
17
+ "currentScore": 50,
18
+ "enrollment": {
19
+ "_id": "62"
20
+ }
21
+ },
22
+ {
23
+ "finalGrade": null,
24
+ "currentScore": null,
25
+ "enrollment": {
26
+ "_id": "64"
27
+ }
28
+ }
29
+ ]
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "description": null,
3
+ "group_category_id": 2,
4
+ "id": 3,
5
+ "is_public": false,
6
+ "join_level": "invitation_only",
7
+ "name": "group 1",
8
+ "members_count": 0,
9
+ "storage_quota_mb": 50,
10
+ "context_type": "Course",
11
+ "course_id": 1,
12
+ "followed_by_user": false,
13
+ "avatar_url": null,
14
+ "role": null
15
+ }
@@ -0,0 +1,28 @@
1
+ [
2
+ {
3
+ "auto_leader": "first",
4
+ "group_limit": null,
5
+ "id": 5,
6
+ "name": "mark red",
7
+ "role": null,
8
+ "self_signup": null,
9
+ "context_type": "Course",
10
+ "course_id": 1809,
11
+ "protected": false,
12
+ "allows_multiple_memberships": false,
13
+ "is_member": false
14
+ },
15
+ {
16
+ "auto_leader": null,
17
+ "group_limit": null,
18
+ "id": 4,
19
+ "name": "test group",
20
+ "role": null,
21
+ "self_signup": null,
22
+ "context_type": "Course",
23
+ "course_id": 1809,
24
+ "protected": false,
25
+ "allows_multiple_memberships": false,
26
+ "is_member": false
27
+ }
28
+ ]
@@ -0,0 +1,13 @@
1
+ {
2
+ "auto_leader": "first",
3
+ "group_limit": null,
4
+ "id": 5,
5
+ "name": "mark red",
6
+ "role": null,
7
+ "self_signup": null,
8
+ "context_type": "Course",
9
+ "course_id": 1809,
10
+ "protected": false,
11
+ "allows_multiple_memberships": false,
12
+ "is_member": false
13
+ }
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "id": 94,
4
+ "name": "test group in category",
5
+ "max_membership": null,
6
+ "is_public": false,
7
+ "join_level": "invitation_only",
8
+ "group_category_id": 12,
9
+ "description": "A clone of a section with the same name",
10
+ "members_count": 13,
11
+ "storage_quota_mb": 50,
12
+ "context_type": "Course",
13
+ "course_id": 14,
14
+ "avatar_url": null,
15
+ "role": null,
16
+ "leader": null,
17
+ "has_submission": false,
18
+ "concluded": false
19
+ }
20
+ ]
@@ -0,0 +1,7 @@
1
+ {
2
+ "id": 3799,
3
+ "group_id": 428,
4
+ "workflow_state": "accepted",
5
+ "user_id": 26906,
6
+ "moderator": false
7
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "id": 1,
3
+ "context_id": 1,
4
+ "context_type": "Course",
5
+ "vendor_guid": null,
6
+ "display_name": "",
7
+ "title": "First Outcome",
8
+ "url": "/api/v1/outcomes/1",
9
+ "can_edit": true,
10
+ "has_updateable_rubrics": false,
11
+ "description": "<p>Description</p>",
12
+ "friendly_description": null,
13
+ "points_possible": 5.0,
14
+ "mastery_points": 3.0,
15
+ "ratings": [
16
+ {
17
+ "description": "Exceeds Expectations",
18
+ "points": 5.0
19
+ },
20
+ {
21
+ "description": "Meets Expectations",
22
+ "points": 3.0
23
+ },
24
+ {
25
+ "description": "Does Not Meet Expectations",
26
+ "points": 0.0
27
+ }
28
+ ],
29
+ "calculation_method": "decaying_average",
30
+ "calculation_int": 65,
31
+ "assessed": true
32
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id":2,
3
+ "name":"testuser",
4
+ "sortable_name":"testuser",
5
+ "short_name":"testuser",
6
+ "login_id":"testuser@testing.test",
7
+ "locale":null
8
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "id": 2,
3
+ "name": "Second Module",
4
+ "position": 2,
5
+ "unlock_at": null,
6
+ "require_sequential_progress": true,
7
+ "publish_final_grade": false,
8
+ "prerequisite_module_ids": [
9
+ 1
10
+ ],
11
+ "state": "completed",
12
+ "completed_at": "2014-04-18T19:38:01Z",
13
+ "items_count": 1,
14
+ "items_url": "http://localhost:3000/api/v1/courses/1384/modules/2/items"
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "id": 2,
3
+ "indent": 0,
4
+ "position": 1,
5
+ "title": "Test Page",
6
+ "type": "Page",
7
+ "module_id": 1,
8
+ "html_url": "https://fakedomain.instructure.com/courses/1036/modules/items/1358",
9
+ "page_url": "1-dot-1-intro-to-disease",
10
+ "url": "https://fakedomain.instructure.com/api/v1/courses/1036/pages/1-dot-1-intro-to-disease",
11
+ "completion_requirement": {
12
+ "type": "must_view"
13
+ },
14
+ "published": true
15
+ }
@@ -0,0 +1,47 @@
1
+ [
2
+ {
3
+ "id": 1358,
4
+ "indent": 0,
5
+ "position": 1,
6
+ "title": "Test Page",
7
+ "type": "Page",
8
+ "module_id": 1,
9
+ "html_url": "https://fakedomain.instructure.com/courses/1036/modules/items/1358",
10
+ "page_url": "1-dot-1-intro-to-disease",
11
+ "url": "https://fakedomain.instructure.com/api/v1/courses/1036/pages/1-dot-1-intro-to-disease",
12
+ "completion_requirement": {
13
+ "type": "must_view"
14
+ },
15
+ "published": true
16
+ },
17
+ {
18
+ "id": 1359,
19
+ "indent": 2,
20
+ "position": 2,
21
+ "title": "Test Discussion",
22
+ "type": "Discussion",
23
+ "module_id": 1,
24
+ "html_url": "https://fakedomain.instructure.com/courses/1036/modules/items/1359",
25
+ "content_id": 100,
26
+ "url": "https://fakedomain.instructure.com/api/v1/courses/1036/discussion_topics/100",
27
+ "completion_requirement": {
28
+ "type": "must_contribute"
29
+ },
30
+ "published": true
31
+ },
32
+ {
33
+ "id": 1358,
34
+ "indent": 0,
35
+ "position": 3,
36
+ "title": "Test Page",
37
+ "type": "Assignment",
38
+ "module_id": 1,
39
+ "html_url": "https://fakedomain.instructure.com/courses/1036/modules/items/1358",
40
+ "page_url": "1-dot-1-intro-to-disease",
41
+ "url": "https://fakedomain.instructure.com/api/v1/courses/1036/pages/1-dot-1-intro-to-disease",
42
+ "completion_requirement": {
43
+ "type": "must_view"
44
+ },
45
+ "published": true
46
+ }
47
+ ]
@@ -0,0 +1,3 @@
1
+ {
2
+ "ok": true
3
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "outcome_results": [
3
+ {
4
+ "id": "1",
5
+ "score": 3,
6
+ "links": {
7
+ "user": "101",
8
+ "learning_outcome": "1",
9
+ "alignment": "assignment_1"
10
+ }
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,40 @@
1
+ [
2
+ {
3
+ "created_at": "2015-05-20T19:07:44Z",
4
+ "editing_roles": "teachers",
5
+ "title": "Instruction Test",
6
+ "updated_at": "2015-05-20T19:08:13Z",
7
+ "url": "instruction-test",
8
+ "page_id": 1,
9
+ "last_edited_by": {
10
+ "id": 1,
11
+ "display_name": "ctanner@instructure.com",
12
+ "avatar_image_url": "https://canvas.instructure.com/images/messages/avatar-50.png",
13
+ "html_url": "http://localhost:3000/courses/1/users/1"
14
+ },
15
+ "published": true,
16
+ "hide_from_students": false,
17
+ "front_page": false,
18
+ "html_url": "http://localhost:3000/courses/1/pages/instruction-test",
19
+ "locked_for_user": false
20
+ },
21
+ {
22
+ "created_at": "2015-05-20T19:14:04Z",
23
+ "editing_roles": "teachers",
24
+ "title": "Blah Page",
25
+ "updated_at": "2015-05-20T19:14:04Z",
26
+ "url": "blah-page",
27
+ "page_id": 2,
28
+ "last_edited_by": {
29
+ "id": 1,
30
+ "display_name": "ctanner@instructure.com",
31
+ "avatar_image_url": "https://canvas.instructure.com/images/messages/avatar-50.png",
32
+ "html_url": "http://localhost:3000/courses/1/users/1"
33
+ },
34
+ "published": true,
35
+ "hide_from_students": false,
36
+ "front_page": false,
37
+ "html_url": "http://localhost:3000/courses/1/pages/blah-page",
38
+ "locked_for_user": false
39
+ }
40
+ ]
@@ -0,0 +1,13 @@
1
+ {
2
+ "id": 1,
3
+ "context_id": 1,
4
+ "context_type": "Course",
5
+ "user_id": 123,
6
+ "tag": "course_batch_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": "1 course processed",
12
+ "url": "https://canvas.example.edu/api/v1/progress/1"
13
+ }