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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +15 -1
  4. data/clever-ruby.gemspec +0 -1
  5. data/lib/clever-ruby.rb +1 -1
  6. data/lib/clever-ruby/api_resource.rb +43 -7
  7. data/lib/clever-ruby/district.rb +14 -0
  8. data/lib/clever-ruby/event.rb +2 -0
  9. data/lib/clever-ruby/school.rb +2 -0
  10. data/lib/clever-ruby/school_admin.rb +17 -0
  11. data/lib/clever-ruby/section.rb +2 -0
  12. data/lib/clever-ruby/student.rb +2 -0
  13. data/lib/clever-ruby/teacher.rb +2 -0
  14. data/lib/clever-ruby/util.rb +1 -9
  15. data/lib/clever-ruby/version.rb +1 -1
  16. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_district_properly.yml +14 -8
  17. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_event_properly.yml +14 -8
  18. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_admin_properly.yml +52 -0
  19. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_properly.yml +14 -8
  20. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_section_properly.yml +14 -8
  21. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_student_properly.yml +14 -8
  22. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_teacher_properly.yml +14 -8
  23. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_district.yml +28 -16
  24. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_event.yml +28 -16
  25. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school.yml +28 -18
  26. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school_admin.yml +101 -0
  27. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_section.yml +30 -18
  28. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_student.yml +30 -18
  29. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_teacher.yml +28 -18
  30. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_by_page.yml +28 -16
  31. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_with_multiple_ids.yml +28 -16
  32. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_by_page.yml +24 -10
  33. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_with_multiple_ids.yml +30 -18
  34. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_by_page.yml +101 -0
  35. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_with_multiple_ids.yml +101 -0
  36. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_by_page.yml +28 -18
  37. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_with_multiple_ids.yml +28 -20
  38. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_by_page.yml +34 -22
  39. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_with_multiple_ids.yml +30 -18
  40. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_by_page.yml +48 -36
  41. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_with_multiple_ids.yml +30 -18
  42. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_by_page.yml +27 -17
  43. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml +28 -20
  44. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_district.yml +28 -16
  45. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_event.yml +28 -14
  46. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school.yml +28 -18
  47. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school_admin.yml +101 -0
  48. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_section.yml +34 -22
  49. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_student.yml +48 -36
  50. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_teacher.yml +30 -20
  51. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_events.yml +39 -19
  52. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_schools.yml +36 -22
  53. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_sections.yml +37 -19
  54. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_students.yml +37 -19
  55. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_teachers.yml +34 -20
  56. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_school_admins.yml +101 -0
  57. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_schools.yml +25 -15
  58. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_sections.yml +26 -14
  59. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_students.yml +26 -14
  60. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_teachers.yml +25 -15
  61. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_events.yml +54 -30
  62. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_schools.yml +50 -30
  63. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_sections.yml +51 -27
  64. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_students.yml +51 -27
  65. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_teachers.yml +50 -30
  66. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_admin_s_schools.yml +205 -0
  67. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_district.yml +43 -27
  68. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_events.yml +56 -30
  69. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_sections.yml +58 -36
  70. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_students.yml +69 -45
  71. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_teachers.yml +52 -34
  72. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_district.yml +42 -24
  73. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_events.yml +58 -30
  74. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_school.yml +41 -23
  75. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_students.yml +45 -27
  76. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_teacher.yml +41 -23
  77. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_district.yml +42 -24
  78. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_events.yml +58 -30
  79. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_school.yml +41 -23
  80. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_sections.yml +56 -32
  81. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_teachers.yml +54 -30
  82. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_district.yml +40 -24
  83. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_events.yml +56 -30
  84. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_school.yml +39 -23
  85. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_sections.yml +54 -32
  86. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_students.yml +54 -32
  87. data/test/data/vcr_cassettes/Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml +42 -24
  88. data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +13 -7
  89. data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +142 -61
  90. data/test/integration/api_operations/list_test.rb +5 -3
  91. data/test/integration/district_with_non_global_token_test.rb +7 -0
  92. data/test/integration/last_test.rb +3 -2
  93. data/test/integration/nested_resource_test.rb +3 -2
  94. data/test/unit/api_resource_test.rb +29 -14
  95. data/test/unit/clever_test.rb +1 -0
  96. metadata +17 -16
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
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, 13 Sep 2014 00:07:45 GMT
32
+ - Sat, 26 Sep 2015 17:37:30 GMT
33
33
  Etag:
34
- - ! '"-1704869160"'
35
- Server:
36
- - nginx/1.4.7
34
+ - '"-1672977800"'
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
+ - '1101'
43
+ X-Ratelimit-Reset:
44
+ - '1443289062'
39
45
  Content-Length:
40
46
  - '66289'
41
47
  Connection:
42
48
  - keep-alive
43
49
  body:
44
- encoding: US-ASCII
45
- string: ! '{"data":[{"data":{"created":"2014-02-26T21:15:12.346Z","credentials":{"district_username":"stevez33","district_password":"auyik3tiTieL"},"district":"4fd43cc56d11340000000005","dob":"2/11/2007","ell_status":"N","email":"z.steve@example.net","frl_status":"Paid","gender":"M","grade":"Kindergarten","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.656Z","location":{"zip":"10459"},"name":{"first":"Steve","middle":"G","last":"Ziemann"},"race":"Black
50
+ encoding: UTF-8
51
+ string: '{"data":[{"data":{"created":"2014-02-26T21:15:12.346Z","credentials":{"district_username":"stevez33","district_password":"auyik3tiTieL"},"district":"4fd43cc56d11340000000005","dob":"2/11/2007","ell_status":"N","email":"z.steve@example.net","frl_status":"Paid","gender":"M","grade":"Kindergarten","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.656Z","location":{"zip":"10459"},"name":{"first":"Steve","middle":"G","last":"Ziemann"},"race":"Black
46
52
  or African American","school":"530e595026403103360ff9fe","sis_id":"100095233","state_id":"231786324","student_number":"100095233","id":"530e5960049e75a9262cff1d"},"uri":"/v1.1/students/530e5960049e75a9262cff1d"},{"data":{"created":"2014-02-26T21:15:12.358Z","credentials":{"district_username":"douglasw58","district_password":"ahFii2nae"},"district":"4fd43cc56d11340000000005","dob":"6/18/1998","ell_status":"Y","email":"w_douglas@example.net","frl_status":"Paid","gender":"M","grade":"9","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.661Z","location":{"zip":"11004"},"name":{"first":"Douglas","middle":"S","last":"Wisoky"},"race":"Caucasian","school":"530e595026403103360ff9fd","sis_id":"101565758","state_id":"498006597","student_number":"101565758","id":"530e5960049e75a9262cff1e"},"uri":"/v1.1/students/530e5960049e75a9262cff1e"},{"data":{"created":"2014-02-26T21:15:12.368Z","credentials":{"district_username":"joel42","district_password":"CaaDie0eboo"},"district":"4fd43cc56d11340000000005","dob":"7/4/1997","ell_status":"Y","email":"l.joe@example.net","frl_status":"Paid","gender":"M","grade":"10","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.664Z","location":{"zip":"10473"},"name":{"first":"Joe","middle":"S","last":"Lakin"},"race":"Black
47
53
  or African American","school":"530e595026403103360ff9fd","sis_id":"106078142","state_id":"635493722","student_number":"106078142","id":"530e5960049e75a9262cff1f"},"uri":"/v1.1/students/530e5960049e75a9262cff1f"},{"data":{"created":"2014-02-26T21:15:12.374Z","credentials":{"district_username":"evalynb40","district_password":"ooXahwook2"},"district":"4fd43cc56d11340000000005","dob":"8/10/2006","ell_status":"N","email":"b_evalyn@example.org","frl_status":"Paid","gender":"F","grade":"1","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.668Z","location":{"zip":"10029"},"name":{"first":"Evalyn","middle":"J","last":"Bradtke"},"race":"Black
48
54
  or African American","school":"530e595026403103360ff9fe","sis_id":"106091540","state_id":"552729322","student_number":"106091540","id":"530e5960049e75a9262cff20"},"uri":"/v1.1/students/530e5960049e75a9262cff20"},{"data":{"created":"2014-02-26T21:15:12.382Z","credentials":{"district_username":"coryt00","district_password":"ahW1taesao5"},"district":"4fd43cc56d11340000000005","dob":"7/21/1997","ell_status":"Y","email":"cory_t@example.net","frl_status":"Paid","gender":"M","grade":"10","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.673Z","location":{"zip":"10038"},"name":{"first":"Cory","middle":"V","last":"Thompson"},"race":"Black
@@ -124,7 +130,7 @@ http_interactions:
124
130
  string: ''
125
131
  headers:
126
132
  Accept:
127
- - ! '*/*; q=0.5, application/xml'
133
+ - "*/*; q=0.5, application/xml"
128
134
  Accept-Encoding:
129
135
  - gzip, deflate
130
136
  Authorization:
@@ -141,24 +147,30 @@ http_interactions:
141
147
  Access-Control-Allow-Methods:
142
148
  - GET,PATCH,POST,DELETE
143
149
  Access-Control-Allow-Origin:
144
- - ! '*'
150
+ - "*"
145
151
  Content-Type:
146
152
  - application/json; charset=utf-8
147
153
  Date:
148
- - Sat, 13 Sep 2014 00:07:45 GMT
154
+ - Sat, 26 Sep 2015 17:37:30 GMT
149
155
  Etag:
150
- - ! '"1850740737"'
151
- Server:
152
- - nginx/1.4.7
156
+ - '"558167227"'
153
157
  X-Powered-By:
154
158
  - Express
159
+ X-Ratelimit-Bucket:
160
+ - bearer
161
+ X-Ratelimit-Limit:
162
+ - '1200'
163
+ X-Ratelimit-Remaining:
164
+ - '1100'
165
+ X-Ratelimit-Reset:
166
+ - '1443289062'
155
167
  Content-Length:
156
168
  - '1151'
157
169
  Connection:
158
170
  - keep-alive
159
171
  body:
160
- encoding: US-ASCII
161
- string: ! '{"data":{"created":"2014-02-26T21:15:12.346Z","credentials":{"district_username":"stevez33","district_password":"auyik3tiTieL"},"district":"4fd43cc56d11340000000005","dob":"2/11/2007","ell_status":"N","email":"z.steve@example.net","frl_status":"Paid","gender":"M","grade":"Kindergarten","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.656Z","location":{"zip":"10459"},"name":{"first":"Steve","middle":"G","last":"Ziemann"},"race":"Black
172
+ encoding: UTF-8
173
+ string: '{"data":{"created":"2014-02-26T21:15:12.346Z","credentials":{"district_username":"stevez33","district_password":"auyik3tiTieL"},"district":"4fd43cc56d11340000000005","dob":"2/11/2007","ell_status":"N","email":"z.steve@example.net","frl_status":"Paid","gender":"M","grade":"Kindergarten","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.656Z","location":{"zip":"10459"},"name":{"first":"Steve","middle":"G","last":"Ziemann"},"race":"Black
162
174
  or African American","school":"530e595026403103360ff9fe","sis_id":"100095233","state_id":"231786324","student_number":"100095233","id":"530e5960049e75a9262cff1d"},"links":[{"rel":"self","uri":"/v1.1/students/530e5960049e75a9262cff1d"},{"rel":"district","uri":"/v1.1/students/530e5960049e75a9262cff1d/district"},{"rel":"sections","uri":"/v1.1/students/530e5960049e75a9262cff1d/sections"},{"rel":"school","uri":"/v1.1/students/530e5960049e75a9262cff1d/school"},{"rel":"teachers","uri":"/v1.1/students/530e5960049e75a9262cff1d/teachers"},{"rel":"contacts","uri":"/v1.1/students/530e5960049e75a9262cff1d/contacts"},{"rel":"events","uri":"/v1.1/students/530e5960049e75a9262cff1d/events"}]}'
163
175
  http_version:
164
176
  recorded_at: Sat, 13 Sep 2014 00:07:45 GMT
@@ -170,7 +182,7 @@ http_interactions:
170
182
  string: ''
171
183
  headers:
172
184
  Accept:
173
- - ! '*/*; q=0.5, application/xml'
185
+ - "*/*; q=0.5, application/xml"
174
186
  Accept-Encoding:
175
187
  - gzip, deflate
176
188
  Authorization:
@@ -187,22 +199,28 @@ http_interactions:
187
199
  Access-Control-Allow-Methods:
188
200
  - GET,PATCH,POST,DELETE
189
201
  Access-Control-Allow-Origin:
190
- - ! '*'
202
+ - "*"
191
203
  Content-Type:
192
204
  - application/json; charset=utf-8
193
205
  Date:
194
- - Sat, 13 Sep 2014 00:07:45 GMT
195
- Server:
196
- - nginx/1.4.7
206
+ - Sat, 26 Sep 2015 17:37:31 GMT
197
207
  X-Powered-By:
198
208
  - Express
209
+ X-Ratelimit-Bucket:
210
+ - bearer
211
+ X-Ratelimit-Limit:
212
+ - '1200'
213
+ X-Ratelimit-Remaining:
214
+ - '1099'
215
+ X-Ratelimit-Reset:
216
+ - '1443289062'
199
217
  Content-Length:
200
218
  - '620'
201
219
  Connection:
202
220
  - keep-alive
203
221
  body:
204
- encoding: US-ASCII
205
- string: ! '{"data":[{"data":{"created":"2014-02-26T21:15:01.475Z","credentials":{"district_username":"schoen.seth","district_password":"aiX0iayai"},"district":"4fd43cc56d11340000000005","email":"seth_schoen@example.org","last_modified":"2014-02-26T21:15:01.477Z","name":{"first":"Seth","middle":"C","last":"Schoen"},"school":"530e595026403103360ff9fe","sis_id":"69","teacher_number":"256742","title":"Kindergarten
222
+ encoding: UTF-8
223
+ string: '{"data":[{"data":{"created":"2014-02-26T21:15:01.475Z","credentials":{"district_username":"schoen.seth","district_password":"aiX0iayai"},"district":"4fd43cc56d11340000000005","email":"seth_schoen@example.org","last_modified":"2014-02-26T21:15:01.477Z","name":{"first":"Seth","middle":"C","last":"Schoen"},"school":"530e595026403103360ff9fe","sis_id":"69","teacher_number":"256742","title":"Kindergarten
206
224
  Teacher","id":"530e5955d50c310f36112c03"},"uri":"/v1.1/teachers/530e5955d50c310f36112c03"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/students/530e5960049e75a9262cff1d/teachers"}]}'
207
225
  http_version:
208
226
  recorded_at: Sat, 13 Sep 2014 00:07:45 GMT
@@ -214,7 +232,7 @@ http_interactions:
214
232
  string: ''
215
233
  headers:
216
234
  Accept:
217
- - ! '*/*; q=0.5, application/xml'
235
+ - "*/*; q=0.5, application/xml"
218
236
  Accept-Encoding:
219
237
  - gzip, deflate
220
238
  Authorization:
@@ -231,22 +249,28 @@ http_interactions:
231
249
  Access-Control-Allow-Methods:
232
250
  - GET,PATCH,POST,DELETE
233
251
  Access-Control-Allow-Origin:
234
- - ! '*'
252
+ - "*"
235
253
  Content-Type:
236
254
  - application/json; charset=utf-8
237
255
  Date:
238
- - Sat, 13 Sep 2014 00:07:45 GMT
239
- Server:
240
- - nginx/1.4.7
256
+ - Sat, 26 Sep 2015 17:37:31 GMT
241
257
  X-Powered-By:
242
258
  - Express
259
+ X-Ratelimit-Bucket:
260
+ - bearer
261
+ X-Ratelimit-Limit:
262
+ - '1200'
263
+ X-Ratelimit-Remaining:
264
+ - '1098'
265
+ X-Ratelimit-Reset:
266
+ - '1443289062'
243
267
  Content-Length:
244
268
  - '620'
245
269
  Connection:
246
270
  - keep-alive
247
271
  body:
248
- encoding: US-ASCII
249
- string: ! '{"data":[{"data":{"created":"2014-02-26T21:15:01.475Z","credentials":{"district_username":"schoen.seth","district_password":"aiX0iayai"},"district":"4fd43cc56d11340000000005","email":"seth_schoen@example.org","last_modified":"2014-02-26T21:15:01.477Z","name":{"first":"Seth","middle":"C","last":"Schoen"},"school":"530e595026403103360ff9fe","sis_id":"69","teacher_number":"256742","title":"Kindergarten
272
+ encoding: UTF-8
273
+ string: '{"data":[{"data":{"created":"2014-02-26T21:15:01.475Z","credentials":{"district_username":"schoen.seth","district_password":"aiX0iayai"},"district":"4fd43cc56d11340000000005","email":"seth_schoen@example.org","last_modified":"2014-02-26T21:15:01.477Z","name":{"first":"Seth","middle":"C","last":"Schoen"},"school":"530e595026403103360ff9fe","sis_id":"69","teacher_number":"256742","title":"Kindergarten
250
274
  Teacher","id":"530e5955d50c310f36112c03"},"uri":"/v1.1/teachers/530e5955d50c310f36112c03"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/students/530e5960049e75a9262cff1d/teachers"}]}'
251
275
  http_version:
252
276
  recorded_at: Sat, 13 Sep 2014 00:07:45 GMT
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
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, 13 Sep 2014 00:07:52 GMT
33
- Etag:
34
- - ! '"-409931571"'
35
- Server:
36
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:37:49 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
+ - '1183'
41
+ X-Ratelimit-Reset:
42
+ - '1443289122'
39
43
  Content-Length:
40
44
  - '44617'
41
45
  Connection:
42
46
  - keep-alive
43
47
  body:
44
- encoding: US-ASCII
45
- string: ! '{"data":[{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
48
+ encoding: UTF-8
49
+ string: '{"data":[{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
46
50
  3 Common Branch Teacher","id":"509fbd7ec474fab64a8e9d53"},"uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53"},{"data":{"created":"2012-11-27T15:04:48.474Z","credentials":{"district_password":"OMeitoo3v","district_username":"reuben.conn"},"district":"4fd43cc56d11340000000005","email":"conn_reuben@example.net","last_modified":"2014-02-26T21:15:01.234Z","name":{"first":"Reuben","last":"Conn","middle":"K"},"school":"530e595026403103360ff9ff","sis_id":"33","teacher_number":"215041","title":"Grade
47
51
  8 Mathematics Teacher","id":"50b4d690ad221ab95f1c6c39"},"uri":"/v1.1/teachers/50b4d690ad221ab95f1c6c39"},{"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
48
52
  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
@@ -142,7 +146,7 @@ http_interactions:
142
146
  string: ''
143
147
  headers:
144
148
  Accept:
145
- - ! '*/*; q=0.5, application/xml'
149
+ - "*/*; q=0.5, application/xml"
146
150
  Accept-Encoding:
147
151
  - gzip, deflate
148
152
  Authorization:
@@ -159,22 +163,28 @@ http_interactions:
159
163
  Access-Control-Allow-Methods:
160
164
  - GET,PATCH,POST,DELETE
161
165
  Access-Control-Allow-Origin:
162
- - ! '*'
166
+ - "*"
163
167
  Content-Type:
164
168
  - application/json; charset=utf-8
165
169
  Date:
166
- - Sat, 13 Sep 2014 00:07:52 GMT
167
- Server:
168
- - nginx/1.4.7
170
+ - Sat, 26 Sep 2015 17:37:49 GMT
169
171
  X-Powered-By:
170
172
  - Express
173
+ X-Ratelimit-Bucket:
174
+ - bearer
175
+ X-Ratelimit-Limit:
176
+ - '1200'
177
+ X-Ratelimit-Remaining:
178
+ - '1182'
179
+ X-Ratelimit-Reset:
180
+ - '1443289122'
171
181
  Content-Length:
172
182
  - '972'
173
183
  Connection:
174
184
  - keep-alive
175
185
  body:
176
- encoding: US-ASCII
177
- string: ! '{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
186
+ encoding: UTF-8
187
+ string: '{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
178
188
  3 Common Branch Teacher","id":"509fbd7ec474fab64a8e9d53"},"links":[{"rel":"self","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53"},{"rel":"district","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/district"},{"rel":"school","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/school"},{"rel":"students","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/students"},{"rel":"sections","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/sections"},{"rel":"grade_levels","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/grade_levels"},{"rel":"events","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/events"}]}'
179
189
  http_version:
180
190
  recorded_at: Sat, 13 Sep 2014 00:07:52 GMT
@@ -186,7 +196,7 @@ http_interactions:
186
196
  string: ''
187
197
  headers:
188
198
  Accept:
189
- - ! '*/*; q=0.5, application/xml'
199
+ - "*/*; q=0.5, application/xml"
190
200
  Accept-Encoding:
191
201
  - gzip, deflate
192
202
  Authorization:
@@ -203,22 +213,28 @@ http_interactions:
203
213
  Access-Control-Allow-Methods:
204
214
  - GET,PATCH,POST,DELETE
205
215
  Access-Control-Allow-Origin:
206
- - ! '*'
216
+ - "*"
207
217
  Content-Type:
208
218
  - application/json; charset=utf-8
209
219
  Date:
210
- - Sat, 13 Sep 2014 00:07:52 GMT
211
- Server:
212
- - nginx/1.4.7
220
+ - Sat, 26 Sep 2015 17:37:50 GMT
213
221
  X-Powered-By:
214
222
  - Express
223
+ X-Ratelimit-Bucket:
224
+ - bearer
225
+ X-Ratelimit-Limit:
226
+ - '1200'
227
+ X-Ratelimit-Remaining:
228
+ - '1181'
229
+ X-Ratelimit-Reset:
230
+ - '1443289122'
215
231
  Content-Length:
216
232
  - '139'
217
233
  Connection:
218
234
  - keep-alive
219
235
  body:
220
- encoding: US-ASCII
221
- string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"}]}'
236
+ encoding: UTF-8
237
+ string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"}]}'
222
238
  http_version:
223
- recorded_at: Sat, 13 Sep 2014 00:07:52 GMT
239
+ recorded_at: Sat, 26 Sep 2015 17:37:50 GMT
224
240
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
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, 13 Sep 2014 00:07:53 GMT
33
- Etag:
34
- - ! '"-409931571"'
35
- Server:
36
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:37:40 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
+ - '1076'
41
+ X-Ratelimit-Reset:
42
+ - '1443289062'
39
43
  Content-Length:
40
44
  - '44617'
41
45
  Connection:
42
46
  - keep-alive
43
47
  body:
44
- encoding: US-ASCII
45
- string: ! '{"data":[{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
48
+ encoding: UTF-8
49
+ string: '{"data":[{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
46
50
  3 Common Branch Teacher","id":"509fbd7ec474fab64a8e9d53"},"uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53"},{"data":{"created":"2012-11-27T15:04:48.474Z","credentials":{"district_password":"OMeitoo3v","district_username":"reuben.conn"},"district":"4fd43cc56d11340000000005","email":"conn_reuben@example.net","last_modified":"2014-02-26T21:15:01.234Z","name":{"first":"Reuben","last":"Conn","middle":"K"},"school":"530e595026403103360ff9ff","sis_id":"33","teacher_number":"215041","title":"Grade
47
51
  8 Mathematics Teacher","id":"50b4d690ad221ab95f1c6c39"},"uri":"/v1.1/teachers/50b4d690ad221ab95f1c6c39"},{"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
48
52
  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
@@ -142,7 +146,7 @@ http_interactions:
142
146
  string: ''
143
147
  headers:
144
148
  Accept:
145
- - ! '*/*; q=0.5, application/xml'
149
+ - "*/*; q=0.5, application/xml"
146
150
  Accept-Encoding:
147
151
  - gzip, deflate
148
152
  Authorization:
@@ -159,22 +163,28 @@ http_interactions:
159
163
  Access-Control-Allow-Methods:
160
164
  - GET,PATCH,POST,DELETE
161
165
  Access-Control-Allow-Origin:
162
- - ! '*'
166
+ - "*"
163
167
  Content-Type:
164
168
  - application/json; charset=utf-8
165
169
  Date:
166
- - Sat, 13 Sep 2014 00:07:53 GMT
167
- Server:
168
- - nginx/1.4.7
170
+ - Sat, 26 Sep 2015 17:37:40 GMT
169
171
  X-Powered-By:
170
172
  - Express
173
+ X-Ratelimit-Bucket:
174
+ - bearer
175
+ X-Ratelimit-Limit:
176
+ - '1200'
177
+ X-Ratelimit-Remaining:
178
+ - '1075'
179
+ X-Ratelimit-Reset:
180
+ - '1443289062'
171
181
  Content-Length:
172
182
  - '972'
173
183
  Connection:
174
184
  - keep-alive
175
185
  body:
176
- encoding: US-ASCII
177
- string: ! '{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
186
+ encoding: UTF-8
187
+ string: '{"data":{"created":"2012-11-11T15:00:14.036Z","credentials":{"district_password":"Acoev0oow4","district_username":"spinka_leo"},"district":"4fd43cc56d11340000000005","email":"spinka.leo@example.net","last_modified":"2014-02-26T21:15:01.038Z","name":{"first":"Leo","last":"Spinka","middle":"R"},"school":"530e595026403103360ff9fe","sis_id":"11","teacher_number":"539224","title":"Grade
178
188
  3 Common Branch Teacher","id":"509fbd7ec474fab64a8e9d53"},"links":[{"rel":"self","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53"},{"rel":"district","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/district"},{"rel":"school","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/school"},{"rel":"students","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/students"},{"rel":"sections","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/sections"},{"rel":"grade_levels","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/grade_levels"},{"rel":"events","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/events"}]}'
179
189
  http_version:
180
190
  recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
@@ -186,7 +196,7 @@ http_interactions:
186
196
  string: ''
187
197
  headers:
188
198
  Accept:
189
- - ! '*/*; q=0.5, application/xml'
199
+ - "*/*; q=0.5, application/xml"
190
200
  Accept-Encoding:
191
201
  - gzip, deflate
192
202
  Authorization:
@@ -203,22 +213,30 @@ http_interactions:
203
213
  Access-Control-Allow-Methods:
204
214
  - GET,PATCH,POST,DELETE
205
215
  Access-Control-Allow-Origin:
206
- - ! '*'
216
+ - "*"
207
217
  Content-Type:
208
218
  - application/json; charset=utf-8
209
219
  Date:
210
- - Sat, 13 Sep 2014 00:07:53 GMT
211
- Server:
212
- - nginx/1.4.7
220
+ - Sat, 26 Sep 2015 17:37:40 GMT
221
+ Etag:
222
+ - '"323518025"'
213
223
  X-Powered-By:
214
224
  - Express
225
+ X-Ratelimit-Bucket:
226
+ - bearer
227
+ X-Ratelimit-Limit:
228
+ - '1200'
229
+ X-Ratelimit-Remaining:
230
+ - '1074'
231
+ X-Ratelimit-Reset:
232
+ - '1443289062'
215
233
  Content-Length:
216
234
  - '134'
217
235
  Connection:
218
236
  - keep-alive
219
237
  body:
220
- encoding: US-ASCII
221
- string: ! '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/events"}]}'
238
+ encoding: UTF-8
239
+ string: '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/events"}]}'
222
240
  http_version:
223
241
  recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
224
242
  - request:
@@ -229,7 +247,7 @@ http_interactions:
229
247
  string: ''
230
248
  headers:
231
249
  Accept:
232
- - ! '*/*; q=0.5, application/xml'
250
+ - "*/*; q=0.5, application/xml"
233
251
  Accept-Encoding:
234
252
  - gzip, deflate
235
253
  Authorization:
@@ -246,22 +264,30 @@ http_interactions:
246
264
  Access-Control-Allow-Methods:
247
265
  - GET,PATCH,POST,DELETE
248
266
  Access-Control-Allow-Origin:
249
- - ! '*'
267
+ - "*"
250
268
  Content-Type:
251
269
  - application/json; charset=utf-8
252
270
  Date:
253
- - Sat, 13 Sep 2014 00:07:53 GMT
254
- Server:
255
- - nginx/1.4.7
271
+ - Sat, 26 Sep 2015 17:37:41 GMT
272
+ Etag:
273
+ - '"323518025"'
256
274
  X-Powered-By:
257
275
  - Express
276
+ X-Ratelimit-Bucket:
277
+ - bearer
278
+ X-Ratelimit-Limit:
279
+ - '1200'
280
+ X-Ratelimit-Remaining:
281
+ - '1073'
282
+ X-Ratelimit-Reset:
283
+ - '1443289062'
258
284
  Content-Length:
259
285
  - '134'
260
286
  Connection:
261
287
  - keep-alive
262
288
  body:
263
- encoding: US-ASCII
264
- string: ! '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/events"}]}'
289
+ encoding: UTF-8
290
+ string: '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/teachers/509fbd7ec474fab64a8e9d53/events"}]}'
265
291
  http_version:
266
292
  recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
267
293
  recorded_with: VCR 2.9.3