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
@@ -0,0 +1,205 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.clever.com/v1.1/school_admins
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Access-Control-Allow-Headers:
24
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
25
+ Access-Control-Allow-Methods:
26
+ - GET,PATCH,POST,DELETE
27
+ Access-Control-Allow-Origin:
28
+ - "*"
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Date:
32
+ - Mon, 28 Sep 2015 15:45:43 GMT
33
+ X-Powered-By:
34
+ - Express
35
+ X-Ratelimit-Bucket:
36
+ - bearer
37
+ X-Ratelimit-Limit:
38
+ - '1200'
39
+ X-Ratelimit-Remaining:
40
+ - '1199'
41
+ X-Ratelimit-Reset:
42
+ - '1443455203'
43
+ Content-Length:
44
+ - '352'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":[{"data":{"district":"4fd43cc56d11340000000005","email":"thinkerton@example.com","name":{"first":"Think","last":"Thinkerton"},"schools":["530e595026403103360ff9fd"],"staff_id":"1212","title":"Principal","id":"5601b814141fd30001000017"},"uri":"/v1.1/school_admins/5601b814141fd30001000017"}],"links":[{"rel":"self","uri":"/v1.1/school_admins"}]}'
50
+ http_version:
51
+ recorded_at: Mon, 28 Sep 2015 15:45:44 GMT
52
+ - request:
53
+ method: get
54
+ uri: https://api.clever.com/v1.1/school_admins/5601b814141fd30001000017
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ''
58
+ headers:
59
+ Accept:
60
+ - "*/*; q=0.5, application/xml"
61
+ Accept-Encoding:
62
+ - gzip, deflate
63
+ Authorization:
64
+ - Bearer DEMO_TOKEN
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Access-Control-Allow-Headers:
73
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
74
+ Access-Control-Allow-Methods:
75
+ - GET,PATCH,POST,DELETE
76
+ Access-Control-Allow-Origin:
77
+ - "*"
78
+ Content-Type:
79
+ - application/json; charset=utf-8
80
+ Date:
81
+ - Mon, 28 Sep 2015 15:45:44 GMT
82
+ X-Powered-By:
83
+ - Express
84
+ X-Ratelimit-Bucket:
85
+ - bearer
86
+ X-Ratelimit-Limit:
87
+ - '1200'
88
+ X-Ratelimit-Remaining:
89
+ - '1198'
90
+ X-Ratelimit-Reset:
91
+ - '1443455203'
92
+ Content-Length:
93
+ - '392'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: UTF-8
98
+ string: '{"data":{"district":"4fd43cc56d11340000000005","email":"thinkerton@example.com","name":{"first":"Think","last":"Thinkerton"},"schools":["530e595026403103360ff9fd"],"staff_id":"1212","title":"Principal","id":"5601b814141fd30001000017"},"links":[{"rel":"self","uri":"/v1.1/school_admins/5601b814141fd30001000017"},{"rel":"schools","uri":"/v1.1/school_admins/5601b814141fd30001000017/schools"}]}'
99
+ http_version:
100
+ recorded_at: Mon, 28 Sep 2015 15:45:44 GMT
101
+ - request:
102
+ method: get
103
+ uri: https://api.clever.com//v1.1/school_admins/5601b814141fd30001000017/schools
104
+ body:
105
+ encoding: US-ASCII
106
+ string: ''
107
+ headers:
108
+ Accept:
109
+ - "*/*; q=0.5, application/xml"
110
+ Accept-Encoding:
111
+ - gzip, deflate
112
+ Authorization:
113
+ - Bearer DEMO_TOKEN
114
+ User-Agent:
115
+ - Ruby
116
+ response:
117
+ status:
118
+ code: 200
119
+ message: OK
120
+ headers:
121
+ Access-Control-Allow-Headers:
122
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
123
+ Access-Control-Allow-Methods:
124
+ - GET,PATCH,POST,DELETE
125
+ Access-Control-Allow-Origin:
126
+ - "*"
127
+ Content-Type:
128
+ - application/json; charset=utf-8
129
+ Date:
130
+ - Mon, 28 Sep 2015 15:45:44 GMT
131
+ X-Powered-By:
132
+ - Express
133
+ X-Ratelimit-Bucket:
134
+ - bearer
135
+ X-Ratelimit-Limit:
136
+ - '1200'
137
+ X-Ratelimit-Remaining:
138
+ - '1197'
139
+ X-Ratelimit-Reset:
140
+ - '1443455203'
141
+ Content-Length:
142
+ - '626'
143
+ Connection:
144
+ - keep-alive
145
+ body:
146
+ encoding: UTF-8
147
+ 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
148
+ 5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
149
+ High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
150
+ Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"}],"links":[{"rel":"self","uri":"/v1.1/school_admins/5601b814141fd30001000017/schools"}]}'
151
+ http_version:
152
+ recorded_at: Mon, 28 Sep 2015 15:45:45 GMT
153
+ - request:
154
+ method: get
155
+ uri: https://api.clever.com//v1.1/school_admins/5601b814141fd30001000017/schools
156
+ body:
157
+ encoding: US-ASCII
158
+ string: ''
159
+ headers:
160
+ Accept:
161
+ - "*/*; q=0.5, application/xml"
162
+ Accept-Encoding:
163
+ - gzip, deflate
164
+ Authorization:
165
+ - Bearer DEMO_TOKEN
166
+ User-Agent:
167
+ - Ruby
168
+ response:
169
+ status:
170
+ code: 200
171
+ message: OK
172
+ headers:
173
+ Access-Control-Allow-Headers:
174
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
175
+ Access-Control-Allow-Methods:
176
+ - GET,PATCH,POST,DELETE
177
+ Access-Control-Allow-Origin:
178
+ - "*"
179
+ Content-Type:
180
+ - application/json; charset=utf-8
181
+ Date:
182
+ - Mon, 28 Sep 2015 15:45:45 GMT
183
+ X-Powered-By:
184
+ - Express
185
+ X-Ratelimit-Bucket:
186
+ - bearer
187
+ X-Ratelimit-Limit:
188
+ - '1200'
189
+ X-Ratelimit-Remaining:
190
+ - '1196'
191
+ X-Ratelimit-Reset:
192
+ - '1443455203'
193
+ Content-Length:
194
+ - '626'
195
+ Connection:
196
+ - keep-alive
197
+ body:
198
+ encoding: UTF-8
199
+ 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
200
+ 5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
201
+ High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
202
+ Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"}],"links":[{"rel":"self","uri":"/v1.1/school_admins/5601b814141fd30001000017/schools"}]}'
203
+ http_version:
204
+ recorded_at: Mon, 28 Sep 2015 15:45:45 GMT
205
+ 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
- - ! '"1408105812"'
35
- Server:
36
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:37:34 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
+ - '1090'
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: US-ASCII
45
- 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
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
@@ -52,7 +56,7 @@ http_interactions:
52
56
  Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
53
57
  Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
54
58
  Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":1,"total":1,"count":3},"links":[{"rel":"self","uri":"/v1.1/schools"}]}'
55
- http_version:
59
+ http_version:
56
60
  recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
57
61
  - request:
58
62
  method: get
@@ -62,7 +66,7 @@ http_interactions:
62
66
  string: ''
63
67
  headers:
64
68
  Accept:
65
- - ! '*/*; q=0.5, application/xml'
69
+ - "*/*; q=0.5, application/xml"
66
70
  Accept-Encoding:
67
71
  - gzip, deflate
68
72
  Authorization:
@@ -79,26 +83,32 @@ 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, 13 Sep 2014 00:07:53 GMT
87
- Server:
88
- - nginx/1.4.7
90
+ - Sat, 26 Sep 2015 17:37:35 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
+ - '1089'
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: US-ASCII
97
- 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
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"}]}'
101
- http_version:
111
+ http_version:
102
112
  recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
103
113
  - request:
104
114
  method: get
@@ -108,7 +118,7 @@ http_interactions:
108
118
  string: ''
109
119
  headers:
110
120
  Accept:
111
- - ! '*/*; q=0.5, application/xml'
121
+ - "*/*; q=0.5, application/xml"
112
122
  Accept-Encoding:
113
123
  - gzip, deflate
114
124
  Authorization:
@@ -125,22 +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, 13 Sep 2014 00:07:53 GMT
133
- Server:
134
- - nginx/1.4.7
142
+ - Sat, 26 Sep 2015 17:37:35 GMT
135
143
  X-Powered-By:
136
144
  - Express
145
+ X-Ratelimit-Bucket:
146
+ - bearer
147
+ X-Ratelimit-Limit:
148
+ - '1200'
149
+ X-Ratelimit-Remaining:
150
+ - '1088'
151
+ X-Ratelimit-Reset:
152
+ - '1443289062'
137
153
  Content-Length:
138
154
  - '139'
139
155
  Connection:
140
156
  - keep-alive
141
157
  body:
142
- encoding: US-ASCII
143
- string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"}]}'
144
- http_version:
145
- recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
158
+ encoding: UTF-8
159
+ string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"}]}'
160
+ http_version:
161
+ recorded_at: Sat, 26 Sep 2015 17:37:35 GMT
146
162
  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:35 GMT
33
- Etag:
34
- - ! '"1408105812"'
35
- Server:
36
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:37:23 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
+ - '1119'
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: US-ASCII
45
- 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
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
- - ! '*/*; q=0.5, application/xml'
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, 13 Sep 2014 00:07:36 GMT
87
- Server:
88
- - nginx/1.4.7
90
+ - Sat, 26 Sep 2015 17:37:24 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
+ - '1118'
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: US-ASCII
97
- 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
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
- - ! '*/*; q=0.5, application/xml'
121
+ - "*/*; q=0.5, application/xml"
112
122
  Accept-Encoding:
113
123
  - gzip, deflate
114
124
  Authorization:
@@ -125,22 +135,30 @@ 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, 13 Sep 2014 00:07:36 GMT
133
- Server:
134
- - nginx/1.4.7
142
+ - Sat, 26 Sep 2015 17:37:24 GMT
143
+ Etag:
144
+ - '"277102009"'
135
145
  X-Powered-By:
136
146
  - Express
147
+ X-Ratelimit-Bucket:
148
+ - bearer
149
+ X-Ratelimit-Limit:
150
+ - '1200'
151
+ X-Ratelimit-Remaining:
152
+ - '1117'
153
+ X-Ratelimit-Reset:
154
+ - '1443289062'
137
155
  Content-Length:
138
156
  - '133'
139
157
  Connection:
140
158
  - keep-alive
141
159
  body:
142
- encoding: US-ASCII
143
- string: ! '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
160
+ encoding: UTF-8
161
+ string: '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
144
162
  http_version:
145
163
  recorded_at: Sat, 13 Sep 2014 00:07:36 GMT
146
164
  - request:
@@ -151,7 +169,7 @@ http_interactions:
151
169
  string: ''
152
170
  headers:
153
171
  Accept:
154
- - ! '*/*; q=0.5, application/xml'
172
+ - "*/*; q=0.5, application/xml"
155
173
  Accept-Encoding:
156
174
  - gzip, deflate
157
175
  Authorization:
@@ -168,22 +186,30 @@ http_interactions:
168
186
  Access-Control-Allow-Methods:
169
187
  - GET,PATCH,POST,DELETE
170
188
  Access-Control-Allow-Origin:
171
- - ! '*'
189
+ - "*"
172
190
  Content-Type:
173
191
  - application/json; charset=utf-8
174
192
  Date:
175
- - Sat, 13 Sep 2014 00:07:36 GMT
176
- Server:
177
- - nginx/1.4.7
193
+ - Sat, 26 Sep 2015 17:37:24 GMT
194
+ Etag:
195
+ - '"277102009"'
178
196
  X-Powered-By:
179
197
  - Express
198
+ X-Ratelimit-Bucket:
199
+ - bearer
200
+ X-Ratelimit-Limit:
201
+ - '1200'
202
+ X-Ratelimit-Remaining:
203
+ - '1116'
204
+ X-Ratelimit-Reset:
205
+ - '1443289062'
180
206
  Content-Length:
181
207
  - '133'
182
208
  Connection:
183
209
  - keep-alive
184
210
  body:
185
- encoding: US-ASCII
186
- string: ! '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
211
+ encoding: UTF-8
212
+ string: '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
187
213
  http_version:
188
214
  recorded_at: Sat, 13 Sep 2014 00:07:36 GMT
189
215
  recorded_with: VCR 2.9.3