clever-ruby 0.11.1 → 0.13.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +15 -1
- data/clever-ruby.gemspec +0 -1
- data/lib/clever-ruby.rb +1 -1
- data/lib/clever-ruby/api_resource.rb +43 -7
- data/lib/clever-ruby/district.rb +14 -0
- data/lib/clever-ruby/event.rb +2 -0
- data/lib/clever-ruby/school.rb +2 -0
- data/lib/clever-ruby/school_admin.rb +17 -0
- data/lib/clever-ruby/section.rb +2 -0
- data/lib/clever-ruby/student.rb +2 -0
- data/lib/clever-ruby/teacher.rb +2 -0
- data/lib/clever-ruby/util.rb +1 -9
- data/lib/clever-ruby/version.rb +1 -1
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_district_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_event_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_admin_properly.yml +52 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_section_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_student_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_teacher_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_district.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_event.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school_admin.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_section.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_student.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_teacher.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_by_page.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_with_multiple_ids.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_by_page.yml +24 -10
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_by_page.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_with_multiple_ids.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_by_page.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_with_multiple_ids.yml +28 -20
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_by_page.yml +34 -22
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_by_page.yml +48 -36
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_by_page.yml +27 -17
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml +28 -20
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_district.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_event.yml +28 -14
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school_admin.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_section.yml +34 -22
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_student.yml +48 -36
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_teacher.yml +30 -20
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_events.yml +39 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_schools.yml +36 -22
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_sections.yml +37 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_students.yml +37 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_teachers.yml +34 -20
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_school_admins.yml +101 -0
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_schools.yml +25 -15
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_sections.yml +26 -14
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_students.yml +26 -14
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_teachers.yml +25 -15
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_events.yml +54 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_schools.yml +50 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_sections.yml +51 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_students.yml +51 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_teachers.yml +50 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_admin_s_schools.yml +205 -0
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_district.yml +43 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_events.yml +56 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_sections.yml +58 -36
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_students.yml +69 -45
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_teachers.yml +52 -34
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_district.yml +42 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_events.yml +58 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_school.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_students.yml +45 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_teacher.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_district.yml +42 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_events.yml +58 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_school.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_sections.yml +56 -32
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_teachers.yml +54 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_district.yml +40 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_events.yml +56 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_school.yml +39 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_sections.yml +54 -32
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_students.yml +54 -32
- data/test/data/vcr_cassettes/Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml +42 -24
- data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +13 -7
- data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +142 -61
- data/test/integration/api_operations/list_test.rb +5 -3
- data/test/integration/district_with_non_global_token_test.rb +7 -0
- data/test/integration/last_test.rb +3 -2
- data/test/integration/nested_resource_test.rb +3 -2
- data/test/unit/api_resource_test.rb +29 -14
- data/test/unit/clever_test.rb +1 -0
- metadata +17 -16
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,28 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
33
|
-
Etag:
|
34
|
-
- ! '"1408105812"'
|
35
|
-
Server:
|
36
|
-
- nginx/1.4.7
|
32
|
+
- Sat, 26 Sep 2015 17:37:26 GMT
|
37
33
|
X-Powered-By:
|
38
34
|
- Express
|
35
|
+
X-Ratelimit-Bucket:
|
36
|
+
- bearer
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '1200'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '1112'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1443289062'
|
39
43
|
Content-Length:
|
40
44
|
- '1764'
|
41
45
|
Connection:
|
42
46
|
- keep-alive
|
43
47
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
|
46
50
|
5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
|
47
51
|
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
48
52
|
Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
|
@@ -62,7 +66,7 @@ http_interactions:
|
|
62
66
|
string: ''
|
63
67
|
headers:
|
64
68
|
Accept:
|
65
|
-
-
|
69
|
+
- "*/*; q=0.5, application/xml"
|
66
70
|
Accept-Encoding:
|
67
71
|
- gzip, deflate
|
68
72
|
Authorization:
|
@@ -79,22 +83,28 @@ http_interactions:
|
|
79
83
|
Access-Control-Allow-Methods:
|
80
84
|
- GET,PATCH,POST,DELETE
|
81
85
|
Access-Control-Allow-Origin:
|
82
|
-
-
|
86
|
+
- "*"
|
83
87
|
Content-Type:
|
84
88
|
- application/json; charset=utf-8
|
85
89
|
Date:
|
86
|
-
- Sat,
|
87
|
-
Server:
|
88
|
-
- nginx/1.4.7
|
90
|
+
- Sat, 26 Sep 2015 17:37:26 GMT
|
89
91
|
X-Powered-By:
|
90
92
|
- Express
|
93
|
+
X-Ratelimit-Bucket:
|
94
|
+
- bearer
|
95
|
+
X-Ratelimit-Limit:
|
96
|
+
- '1200'
|
97
|
+
X-Ratelimit-Remaining:
|
98
|
+
- '1111'
|
99
|
+
X-Ratelimit-Reset:
|
100
|
+
- '1443289062'
|
91
101
|
Content-Length:
|
92
102
|
- '932'
|
93
103
|
Connection:
|
94
104
|
- keep-alive
|
95
105
|
body:
|
96
|
-
encoding:
|
97
|
-
string:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: '{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
|
98
108
|
5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
|
99
109
|
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
100
110
|
Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd"},{"rel":"district","uri":"/v1.1/schools/530e595026403103360ff9fd/district"},{"rel":"teachers","uri":"/v1.1/schools/530e595026403103360ff9fd/teachers"},{"rel":"students","uri":"/v1.1/schools/530e595026403103360ff9fd/students"},{"rel":"sections","uri":"/v1.1/schools/530e595026403103360ff9fd/sections"},{"rel":"events","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
|
@@ -108,7 +118,7 @@ http_interactions:
|
|
108
118
|
string: ''
|
109
119
|
headers:
|
110
120
|
Accept:
|
111
|
-
-
|
121
|
+
- "*/*; q=0.5, application/xml"
|
112
122
|
Accept-Encoding:
|
113
123
|
- gzip, deflate
|
114
124
|
Authorization:
|
@@ -125,24 +135,28 @@ http_interactions:
|
|
125
135
|
Access-Control-Allow-Methods:
|
126
136
|
- GET,PATCH,POST,DELETE
|
127
137
|
Access-Control-Allow-Origin:
|
128
|
-
-
|
138
|
+
- "*"
|
129
139
|
Content-Type:
|
130
140
|
- application/json; charset=utf-8
|
131
141
|
Date:
|
132
|
-
- Sat,
|
133
|
-
Etag:
|
134
|
-
- ! '"-1806389900"'
|
135
|
-
Server:
|
136
|
-
- nginx/1.4.7
|
142
|
+
- Sat, 26 Sep 2015 17:37:27 GMT
|
137
143
|
X-Powered-By:
|
138
144
|
- Express
|
145
|
+
X-Ratelimit-Bucket:
|
146
|
+
- bearer
|
147
|
+
X-Ratelimit-Limit:
|
148
|
+
- '1200'
|
149
|
+
X-Ratelimit-Remaining:
|
150
|
+
- '1110'
|
151
|
+
X-Ratelimit-Reset:
|
152
|
+
- '1443289062'
|
139
153
|
Content-Length:
|
140
154
|
- '18088'
|
141
155
|
Connection:
|
142
156
|
- keep-alive
|
143
157
|
body:
|
144
|
-
encoding:
|
145
|
-
string:
|
158
|
+
encoding: UTF-8
|
159
|
+
string: '{"data":[{"data":{"created":"2012-12-01T15:02:36.961Z","credentials":{"district_password":"ru3o8rusbf","district_username":"steven.ogden"},"district":"4fd43cc56d11340000000005","email":"ogden_steven@example.net","last_modified":"2014-02-26T21:15:01.485Z","name":{"first":"Steven","last":"Ogden","middle":"Q"},"school":"530e595026403103360ff9fd","sis_id":"81","teacher_number":"474958","title":"High
|
146
160
|
School Science Teacher","id":"50ba1c0c4eda5d94372227eb"},"uri":"/v1.1/teachers/50ba1c0c4eda5d94372227eb"},{"data":{"created":"2012-12-05T15:00:02.670Z","credentials":{"district_password":"Coo0ooyahgh","district_username":"hauck.haylie"},"district":"4fd43cc56d11340000000005","email":"hauck.haylie@example.com","last_modified":"2014-02-26T21:15:01.358Z","name":{"first":"Haylie","last":"Hauck","middle":"J"},"school":"530e595026403103360ff9fd","sis_id":"48","teacher_number":"830340","title":"Grade
|
147
161
|
10 English Teacher","id":"50bf617202dfe7ca0154296f"},"uri":"/v1.1/teachers/50bf617202dfe7ca0154296f"},{"data":{"created":"2012-12-09T15:00:34.246Z","credentials":{"district_password":"ooDungei8ah","district_username":"doyle_rupert"},"district":"4fd43cc56d11340000000005","email":"doyle.rupert@example.net","last_modified":"2014-02-26T21:15:01.369Z","name":{"first":"Rupert","last":"Doyle","middle":"V"},"school":"530e595026403103360ff9fd","sis_id":"50","teacher_number":"473664","title":"Grade
|
148
162
|
12 English Teacher","id":"50c4a79299ad702e0228e956"},"uri":"/v1.1/teachers/50c4a79299ad702e0228e956"},{"data":{"created":"2012-12-09T15:00:34.248Z","credentials":{"district_password":"Lohneth3osh","district_username":"wolff.cali"},"district":"4fd43cc56d11340000000005","email":"cali_wolff@example.net","last_modified":"2014-02-26T21:15:01.417Z","name":{"first":"Cali","last":"Wolff","middle":"L"},"school":"530e595026403103360ff9fd","sis_id":"62","teacher_number":"762405","title":"Grade
|
@@ -189,7 +203,7 @@ http_interactions:
|
|
189
203
|
string: ''
|
190
204
|
headers:
|
191
205
|
Accept:
|
192
|
-
-
|
206
|
+
- "*/*; q=0.5, application/xml"
|
193
207
|
Accept-Encoding:
|
194
208
|
- gzip, deflate
|
195
209
|
Authorization:
|
@@ -206,24 +220,28 @@ http_interactions:
|
|
206
220
|
Access-Control-Allow-Methods:
|
207
221
|
- GET,PATCH,POST,DELETE
|
208
222
|
Access-Control-Allow-Origin:
|
209
|
-
-
|
223
|
+
- "*"
|
210
224
|
Content-Type:
|
211
225
|
- application/json; charset=utf-8
|
212
226
|
Date:
|
213
|
-
- Sat,
|
214
|
-
Etag:
|
215
|
-
- ! '"-1806389900"'
|
216
|
-
Server:
|
217
|
-
- nginx/1.4.7
|
227
|
+
- Sat, 26 Sep 2015 17:37:27 GMT
|
218
228
|
X-Powered-By:
|
219
229
|
- Express
|
230
|
+
X-Ratelimit-Bucket:
|
231
|
+
- bearer
|
232
|
+
X-Ratelimit-Limit:
|
233
|
+
- '1200'
|
234
|
+
X-Ratelimit-Remaining:
|
235
|
+
- '1109'
|
236
|
+
X-Ratelimit-Reset:
|
237
|
+
- '1443289062'
|
220
238
|
Content-Length:
|
221
239
|
- '18088'
|
222
240
|
Connection:
|
223
241
|
- keep-alive
|
224
242
|
body:
|
225
|
-
encoding:
|
226
|
-
string:
|
243
|
+
encoding: UTF-8
|
244
|
+
string: '{"data":[{"data":{"created":"2012-12-01T15:02:36.961Z","credentials":{"district_password":"ru3o8rusbf","district_username":"steven.ogden"},"district":"4fd43cc56d11340000000005","email":"ogden_steven@example.net","last_modified":"2014-02-26T21:15:01.485Z","name":{"first":"Steven","last":"Ogden","middle":"Q"},"school":"530e595026403103360ff9fd","sis_id":"81","teacher_number":"474958","title":"High
|
227
245
|
School Science Teacher","id":"50ba1c0c4eda5d94372227eb"},"uri":"/v1.1/teachers/50ba1c0c4eda5d94372227eb"},{"data":{"created":"2012-12-05T15:00:02.670Z","credentials":{"district_password":"Coo0ooyahgh","district_username":"hauck.haylie"},"district":"4fd43cc56d11340000000005","email":"hauck.haylie@example.com","last_modified":"2014-02-26T21:15:01.358Z","name":{"first":"Haylie","last":"Hauck","middle":"J"},"school":"530e595026403103360ff9fd","sis_id":"48","teacher_number":"830340","title":"Grade
|
228
246
|
10 English Teacher","id":"50bf617202dfe7ca0154296f"},"uri":"/v1.1/teachers/50bf617202dfe7ca0154296f"},{"data":{"created":"2012-12-09T15:00:34.246Z","credentials":{"district_password":"ooDungei8ah","district_username":"doyle_rupert"},"district":"4fd43cc56d11340000000005","email":"doyle.rupert@example.net","last_modified":"2014-02-26T21:15:01.369Z","name":{"first":"Rupert","last":"Doyle","middle":"V"},"school":"530e595026403103360ff9fd","sis_id":"50","teacher_number":"473664","title":"Grade
|
229
247
|
12 English Teacher","id":"50c4a79299ad702e0228e956"},"uri":"/v1.1/teachers/50c4a79299ad702e0228e956"},{"data":{"created":"2012-12-09T15:00:34.248Z","credentials":{"district_password":"Lohneth3osh","district_username":"wolff.cali"},"district":"4fd43cc56d11340000000005","email":"cali_wolff@example.net","last_modified":"2014-02-26T21:15:01.417Z","name":{"first":"Cali","last":"Wolff","middle":"L"},"school":"530e595026403103360ff9fd","sis_id":"62","teacher_number":"762405","title":"Grade
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,30 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
32
|
+
- Sat, 26 Sep 2015 17:37:48 GMT
|
33
33
|
Etag:
|
34
|
-
-
|
35
|
-
Server:
|
36
|
-
- nginx/1.4.7
|
34
|
+
- '"-682802249"'
|
37
35
|
X-Powered-By:
|
38
36
|
- Express
|
37
|
+
X-Ratelimit-Bucket:
|
38
|
+
- bearer
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '1200'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '1186'
|
43
|
+
X-Ratelimit-Reset:
|
44
|
+
- '1443289122'
|
39
45
|
Content-Length:
|
40
46
|
- '113738'
|
41
47
|
Connection:
|
42
48
|
- keep-alive
|
43
49
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":[{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
46
52
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"data":{"course_name":"Group
|
47
53
|
Guidance","course_number":"102","created":"2014-02-26T21:15:37.934Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-02-26T21:15:37.936Z","name":"Group
|
48
54
|
Guidance - 102 - T. Vaux (Section 2)","period":"0","school":"530e595026403103360ff9fd","sis_id":"582","students":["530e5960049e75a9262cff4f","530e5960049e75a9262cff95","530e5961049e75a9262cffe0","530e5961049e75a9262d0027","530e5961049e75a9262d008d","530e5963049e75a9262d0180","530e5964049e75a9262d0300","530e5964049e75a9262d0302","530e5964049e75a9262d0304","530e5965049e75a9262d039e","530e5965049e75a9262d03b6","530e5965049e75a9262d03e8","530e5966049e75a9262d040c","530e5966049e75a9262d04cc","530e5967049e75a9262d05c0","530e5968049e75a9262d062f"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c12","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af3"},"uri":"/v1.1/sections/530e5979049e75a9262d0af3"},{"data":{"course_name":"Group
|
@@ -315,7 +321,7 @@ http_interactions:
|
|
315
321
|
string: ''
|
316
322
|
headers:
|
317
323
|
Accept:
|
318
|
-
-
|
324
|
+
- "*/*; q=0.5, application/xml"
|
319
325
|
Accept-Encoding:
|
320
326
|
- gzip, deflate
|
321
327
|
Authorization:
|
@@ -332,24 +338,30 @@ http_interactions:
|
|
332
338
|
Access-Control-Allow-Methods:
|
333
339
|
- GET,PATCH,POST,DELETE
|
334
340
|
Access-Control-Allow-Origin:
|
335
|
-
-
|
341
|
+
- "*"
|
336
342
|
Content-Type:
|
337
343
|
- application/json; charset=utf-8
|
338
344
|
Date:
|
339
|
-
- Sat,
|
345
|
+
- Sat, 26 Sep 2015 17:37:48 GMT
|
340
346
|
Etag:
|
341
|
-
-
|
342
|
-
Server:
|
343
|
-
- nginx/1.4.7
|
347
|
+
- '"93377604"'
|
344
348
|
X-Powered-By:
|
345
349
|
- Express
|
350
|
+
X-Ratelimit-Bucket:
|
351
|
+
- bearer
|
352
|
+
X-Ratelimit-Limit:
|
353
|
+
- '1200'
|
354
|
+
X-Ratelimit-Remaining:
|
355
|
+
- '1185'
|
356
|
+
X-Ratelimit-Reset:
|
357
|
+
- '1443289122'
|
346
358
|
Content-Length:
|
347
359
|
- '1343'
|
348
360
|
Connection:
|
349
361
|
- keep-alive
|
350
362
|
body:
|
351
|
-
encoding:
|
352
|
-
string:
|
363
|
+
encoding: UTF-8
|
364
|
+
string: '{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
353
365
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"rel":"district","uri":"/v1.1/sections/530e5979049e75a9262d0af2/district"},{"rel":"teacher","uri":"/v1.1/sections/530e5979049e75a9262d0af2/teacher"},{"rel":"students","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"},{"rel":"school","uri":"/v1.1/sections/530e5979049e75a9262d0af2/school"},{"rel":"events","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
354
366
|
http_version:
|
355
367
|
recorded_at: Sat, 13 Sep 2014 00:07:37 GMT
|
@@ -361,7 +373,7 @@ http_interactions:
|
|
361
373
|
string: ''
|
362
374
|
headers:
|
363
375
|
Accept:
|
364
|
-
-
|
376
|
+
- "*/*; q=0.5, application/xml"
|
365
377
|
Accept-Encoding:
|
366
378
|
- gzip, deflate
|
367
379
|
Authorization:
|
@@ -378,22 +390,28 @@ http_interactions:
|
|
378
390
|
Access-Control-Allow-Methods:
|
379
391
|
- GET,PATCH,POST,DELETE
|
380
392
|
Access-Control-Allow-Origin:
|
381
|
-
-
|
393
|
+
- "*"
|
382
394
|
Content-Type:
|
383
395
|
- application/json; charset=utf-8
|
384
396
|
Date:
|
385
|
-
- Sat,
|
386
|
-
Server:
|
387
|
-
- nginx/1.4.7
|
397
|
+
- Sat, 26 Sep 2015 17:37:48 GMT
|
388
398
|
X-Powered-By:
|
389
399
|
- Express
|
400
|
+
X-Ratelimit-Bucket:
|
401
|
+
- bearer
|
402
|
+
X-Ratelimit-Limit:
|
403
|
+
- '1200'
|
404
|
+
X-Ratelimit-Remaining:
|
405
|
+
- '1184'
|
406
|
+
X-Ratelimit-Reset:
|
407
|
+
- '1443289122'
|
390
408
|
Content-Length:
|
391
409
|
- '139'
|
392
410
|
Connection:
|
393
411
|
- keep-alive
|
394
412
|
body:
|
395
|
-
encoding:
|
396
|
-
string:
|
413
|
+
encoding: UTF-8
|
414
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"}]}'
|
397
415
|
http_version:
|
398
|
-
recorded_at: Sat,
|
416
|
+
recorded_at: Sat, 26 Sep 2015 17:37:49 GMT
|
399
417
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,30 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
32
|
+
- Sat, 26 Sep 2015 17:37:38 GMT
|
33
33
|
Etag:
|
34
|
-
-
|
35
|
-
Server:
|
36
|
-
- nginx/1.4.7
|
34
|
+
- '"-682802249"'
|
37
35
|
X-Powered-By:
|
38
36
|
- Express
|
37
|
+
X-Ratelimit-Bucket:
|
38
|
+
- bearer
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '1200'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '1080'
|
43
|
+
X-Ratelimit-Reset:
|
44
|
+
- '1443289062'
|
39
45
|
Content-Length:
|
40
46
|
- '113738'
|
41
47
|
Connection:
|
42
48
|
- keep-alive
|
43
49
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":[{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
46
52
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"data":{"course_name":"Group
|
47
53
|
Guidance","course_number":"102","created":"2014-02-26T21:15:37.934Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-02-26T21:15:37.936Z","name":"Group
|
48
54
|
Guidance - 102 - T. Vaux (Section 2)","period":"0","school":"530e595026403103360ff9fd","sis_id":"582","students":["530e5960049e75a9262cff4f","530e5960049e75a9262cff95","530e5961049e75a9262cffe0","530e5961049e75a9262d0027","530e5961049e75a9262d008d","530e5963049e75a9262d0180","530e5964049e75a9262d0300","530e5964049e75a9262d0302","530e5964049e75a9262d0304","530e5965049e75a9262d039e","530e5965049e75a9262d03b6","530e5965049e75a9262d03e8","530e5966049e75a9262d040c","530e5966049e75a9262d04cc","530e5967049e75a9262d05c0","530e5968049e75a9262d062f"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c12","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af3"},"uri":"/v1.1/sections/530e5979049e75a9262d0af3"},{"data":{"course_name":"Group
|
@@ -315,7 +321,7 @@ http_interactions:
|
|
315
321
|
string: ''
|
316
322
|
headers:
|
317
323
|
Accept:
|
318
|
-
-
|
324
|
+
- "*/*; q=0.5, application/xml"
|
319
325
|
Accept-Encoding:
|
320
326
|
- gzip, deflate
|
321
327
|
Authorization:
|
@@ -332,24 +338,30 @@ http_interactions:
|
|
332
338
|
Access-Control-Allow-Methods:
|
333
339
|
- GET,PATCH,POST,DELETE
|
334
340
|
Access-Control-Allow-Origin:
|
335
|
-
-
|
341
|
+
- "*"
|
336
342
|
Content-Type:
|
337
343
|
- application/json; charset=utf-8
|
338
344
|
Date:
|
339
|
-
- Sat,
|
345
|
+
- Sat, 26 Sep 2015 17:37:38 GMT
|
340
346
|
Etag:
|
341
|
-
-
|
342
|
-
Server:
|
343
|
-
- nginx/1.4.7
|
347
|
+
- '"93377604"'
|
344
348
|
X-Powered-By:
|
345
349
|
- Express
|
350
|
+
X-Ratelimit-Bucket:
|
351
|
+
- bearer
|
352
|
+
X-Ratelimit-Limit:
|
353
|
+
- '1200'
|
354
|
+
X-Ratelimit-Remaining:
|
355
|
+
- '1079'
|
356
|
+
X-Ratelimit-Reset:
|
357
|
+
- '1443289062'
|
346
358
|
Content-Length:
|
347
359
|
- '1343'
|
348
360
|
Connection:
|
349
361
|
- keep-alive
|
350
362
|
body:
|
351
|
-
encoding:
|
352
|
-
string:
|
363
|
+
encoding: UTF-8
|
364
|
+
string: '{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
353
365
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"rel":"district","uri":"/v1.1/sections/530e5979049e75a9262d0af2/district"},{"rel":"teacher","uri":"/v1.1/sections/530e5979049e75a9262d0af2/teacher"},{"rel":"students","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"},{"rel":"school","uri":"/v1.1/sections/530e5979049e75a9262d0af2/school"},{"rel":"events","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
354
366
|
http_version:
|
355
367
|
recorded_at: Sat, 13 Sep 2014 00:06:24 GMT
|
@@ -361,7 +373,7 @@ http_interactions:
|
|
361
373
|
string: ''
|
362
374
|
headers:
|
363
375
|
Accept:
|
364
|
-
-
|
376
|
+
- "*/*; q=0.5, application/xml"
|
365
377
|
Accept-Encoding:
|
366
378
|
- gzip, deflate
|
367
379
|
Authorization:
|
@@ -378,22 +390,30 @@ http_interactions:
|
|
378
390
|
Access-Control-Allow-Methods:
|
379
391
|
- GET,PATCH,POST,DELETE
|
380
392
|
Access-Control-Allow-Origin:
|
381
|
-
-
|
393
|
+
- "*"
|
382
394
|
Content-Type:
|
383
395
|
- application/json; charset=utf-8
|
384
396
|
Date:
|
385
|
-
- Sat,
|
386
|
-
|
387
|
-
-
|
397
|
+
- Sat, 26 Sep 2015 17:37:39 GMT
|
398
|
+
Etag:
|
399
|
+
- '"-756357441"'
|
388
400
|
X-Powered-By:
|
389
401
|
- Express
|
402
|
+
X-Ratelimit-Bucket:
|
403
|
+
- bearer
|
404
|
+
X-Ratelimit-Limit:
|
405
|
+
- '1200'
|
406
|
+
X-Ratelimit-Remaining:
|
407
|
+
- '1078'
|
408
|
+
X-Ratelimit-Reset:
|
409
|
+
- '1443289062'
|
390
410
|
Content-Length:
|
391
411
|
- '134'
|
392
412
|
Connection:
|
393
413
|
- keep-alive
|
394
414
|
body:
|
395
|
-
encoding:
|
396
|
-
string:
|
415
|
+
encoding: UTF-8
|
416
|
+
string: '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
397
417
|
http_version:
|
398
418
|
recorded_at: Sat, 13 Sep 2014 00:06:24 GMT
|
399
419
|
- request:
|
@@ -404,7 +424,7 @@ http_interactions:
|
|
404
424
|
string: ''
|
405
425
|
headers:
|
406
426
|
Accept:
|
407
|
-
-
|
427
|
+
- "*/*; q=0.5, application/xml"
|
408
428
|
Accept-Encoding:
|
409
429
|
- gzip, deflate
|
410
430
|
Authorization:
|
@@ -421,22 +441,30 @@ http_interactions:
|
|
421
441
|
Access-Control-Allow-Methods:
|
422
442
|
- GET,PATCH,POST,DELETE
|
423
443
|
Access-Control-Allow-Origin:
|
424
|
-
-
|
444
|
+
- "*"
|
425
445
|
Content-Type:
|
426
446
|
- application/json; charset=utf-8
|
427
447
|
Date:
|
428
|
-
- Sat,
|
429
|
-
|
430
|
-
-
|
448
|
+
- Sat, 26 Sep 2015 17:37:39 GMT
|
449
|
+
Etag:
|
450
|
+
- '"-756357441"'
|
431
451
|
X-Powered-By:
|
432
452
|
- Express
|
453
|
+
X-Ratelimit-Bucket:
|
454
|
+
- bearer
|
455
|
+
X-Ratelimit-Limit:
|
456
|
+
- '1200'
|
457
|
+
X-Ratelimit-Remaining:
|
458
|
+
- '1077'
|
459
|
+
X-Ratelimit-Reset:
|
460
|
+
- '1443289062'
|
433
461
|
Content-Length:
|
434
462
|
- '134'
|
435
463
|
Connection:
|
436
464
|
- keep-alive
|
437
465
|
body:
|
438
|
-
encoding:
|
439
|
-
string:
|
466
|
+
encoding: UTF-8
|
467
|
+
string: '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
440
468
|
http_version:
|
441
469
|
recorded_at: Sat, 13 Sep 2014 00:06:24 GMT
|
442
470
|
recorded_with: VCR 2.9.3
|