clever-ruby 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/clever-ruby.rb +9 -2
- data/lib/clever-ruby/api_operations/page.rb +20 -4
- data/lib/clever-ruby/api_operations/pagelist.rb +3 -8
- data/lib/clever-ruby/version.rb +1 -1
- data/test/data/vcr_cassettes/districts.yml +8 -8
- data/test/data/vcr_cassettes/districts_event_pages.yml +208 -167
- data/test/data/vcr_cassettes/districts_events.yml +46 -46
- data/test/data/vcr_cassettes/districts_school_pages.yml +58 -58
- data/test/data/vcr_cassettes/districts_schools.yml +46 -46
- data/test/data/vcr_cassettes/districts_section_pages.yml +419 -419
- data/test/data/vcr_cassettes/districts_sections.yml +46 -46
- data/test/data/vcr_cassettes/districts_student_pages.yml +249 -249
- data/test/data/vcr_cassettes/districts_students.yml +46 -46
- data/test/data/vcr_cassettes/districts_students_filtered.yml +27 -27
- data/test/data/vcr_cassettes/districts_teacher_pages.yml +129 -129
- data/test/data/vcr_cassettes/districts_teachers.yml +46 -46
- data/test/data/vcr_cassettes/error_handling.yml +26 -26
- data/test/data/vcr_cassettes/schools.yml +10 -10
- data/test/data/vcr_cassettes/schools_optional_attributes.yml +10 -10
- data/test/data/vcr_cassettes/sections.yml +40 -40
- data/test/data/vcr_cassettes/students.yml +110 -110
- data/test/data/vcr_cassettes/teachers.yml +544 -544
- data/test/integration/district_test.rb +1 -1
- data/test/unit/clever_test.rb +1 -1
- metadata +1 -1
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
|
5
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
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
|
User-Agent:
|
@@ -23,24 +23,24 @@ http_interactions:
|
|
23
23
|
Access-Control-Allow-Methods:
|
24
24
|
- GET,PATCH,POST,DELETE
|
25
25
|
Access-Control-Allow-Origin:
|
26
|
-
-
|
26
|
+
- ! '*'
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 08 Sep 2014 21:31:29 GMT
|
31
31
|
Server:
|
32
32
|
- nginx/1.4.7
|
33
33
|
X-Powered-By:
|
34
34
|
- Express
|
35
35
|
Content-Length:
|
36
|
-
- '
|
36
|
+
- '217'
|
37
37
|
Connection:
|
38
38
|
- keep-alive
|
39
39
|
body:
|
40
|
-
encoding:
|
41
|
-
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts"}]}'
|
42
42
|
http_version:
|
43
|
-
recorded_at:
|
43
|
+
recorded_at: Mon, 08 Sep 2014 21:31:29 GMT
|
44
44
|
- request:
|
45
45
|
method: get
|
46
46
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
string: ''
|
50
50
|
headers:
|
51
51
|
Accept:
|
52
|
-
-
|
52
|
+
- ! '*/*; q=0.5, application/xml'
|
53
53
|
Accept-Encoding:
|
54
54
|
- gzip, deflate
|
55
55
|
User-Agent:
|
@@ -64,11 +64,11 @@ http_interactions:
|
|
64
64
|
Access-Control-Allow-Methods:
|
65
65
|
- GET,PATCH,POST,DELETE
|
66
66
|
Access-Control-Allow-Origin:
|
67
|
-
-
|
67
|
+
- ! '*'
|
68
68
|
Content-Type:
|
69
69
|
- application/json; charset=utf-8
|
70
70
|
Date:
|
71
|
-
-
|
71
|
+
- Mon, 08 Sep 2014 21:31:29 GMT
|
72
72
|
Server:
|
73
73
|
- nginx/1.4.7
|
74
74
|
X-Powered-By:
|
@@ -78,10 +78,10 @@ http_interactions:
|
|
78
78
|
Connection:
|
79
79
|
- keep-alive
|
80
80
|
body:
|
81
|
-
encoding:
|
82
|
-
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Mon, 08 Sep 2014 21:31:29 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
87
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
string: ''
|
91
91
|
headers:
|
92
92
|
Accept:
|
93
|
-
-
|
93
|
+
- ! '*/*; q=0.5, application/xml'
|
94
94
|
Accept-Encoding:
|
95
95
|
- gzip, deflate
|
96
96
|
User-Agent:
|
@@ -105,11 +105,11 @@ http_interactions:
|
|
105
105
|
Access-Control-Allow-Methods:
|
106
106
|
- GET,PATCH,POST,DELETE
|
107
107
|
Access-Control-Allow-Origin:
|
108
|
-
-
|
108
|
+
- ! '*'
|
109
109
|
Content-Type:
|
110
110
|
- application/json; charset=utf-8
|
111
111
|
Date:
|
112
|
-
-
|
112
|
+
- Mon, 08 Sep 2014 21:31:29 GMT
|
113
113
|
Server:
|
114
114
|
- nginx/1.4.7
|
115
115
|
X-Powered-By:
|
@@ -119,10 +119,10 @@ http_interactions:
|
|
119
119
|
Connection:
|
120
120
|
- keep-alive
|
121
121
|
body:
|
122
|
-
encoding:
|
123
|
-
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
122
|
+
encoding: US-ASCII
|
123
|
+
string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
124
124
|
http_version:
|
125
|
-
recorded_at:
|
125
|
+
recorded_at: Mon, 08 Sep 2014 21:31:29 GMT
|
126
126
|
- request:
|
127
127
|
method: get
|
128
128
|
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/teachers
|
@@ -131,7 +131,7 @@ http_interactions:
|
|
131
131
|
string: ''
|
132
132
|
headers:
|
133
133
|
Accept:
|
134
|
-
-
|
134
|
+
- ! '*/*; q=0.5, application/xml'
|
135
135
|
Accept-Encoding:
|
136
136
|
- gzip, deflate
|
137
137
|
User-Agent:
|
@@ -146,13 +146,13 @@ http_interactions:
|
|
146
146
|
Access-Control-Allow-Methods:
|
147
147
|
- GET,PATCH,POST,DELETE
|
148
148
|
Access-Control-Allow-Origin:
|
149
|
-
-
|
149
|
+
- ! '*'
|
150
150
|
Content-Type:
|
151
151
|
- application/json; charset=utf-8
|
152
152
|
Date:
|
153
|
-
-
|
153
|
+
- Mon, 08 Sep 2014 21:31:29 GMT
|
154
154
|
Etag:
|
155
|
-
- '"-1659229539"'
|
155
|
+
- ! '"-1659229539"'
|
156
156
|
Server:
|
157
157
|
- nginx/1.4.7
|
158
158
|
X-Powered-By:
|
@@ -162,8 +162,8 @@ http_interactions:
|
|
162
162
|
Connection:
|
163
163
|
- keep-alive
|
164
164
|
body:
|
165
|
-
encoding:
|
166
|
-
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
|
165
|
+
encoding: US-ASCII
|
166
|
+
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
|
167
167
|
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
|
168
168
|
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
|
169
169
|
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
|
@@ -254,7 +254,7 @@ http_interactions:
|
|
254
254
|
Coach","id":"530e5955d50c310f36112c18"},"uri":"/v1.1/teachers/530e5955d50c310f36112c18"},{"data":{"created":"2014-02-26T21:15:01.572Z","credentials":{"district_username":"m_paucek","district_password":"jhga8salgh"},"district":"4fd43cc56d11340000000005","email":"paucek_m@example.org","last_modified":"2014-02-26T21:15:01.574Z","name":{"first":"Meaghan","middle":"P","last":"Paucek"},"school":"530e595026403103360ff9fd","sis_id":"93","teacher_number":"843713","title":"High
|
255
255
|
School Drama Teacher","id":"530e5955d50c310f36112c19"},"uri":"/v1.1/teachers/530e5955d50c310f36112c19"}],"paging":{"current":1,"total":1,"count":89},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"}]}'
|
256
256
|
http_version:
|
257
|
-
recorded_at:
|
257
|
+
recorded_at: Mon, 08 Sep 2014 21:31:29 GMT
|
258
258
|
- request:
|
259
259
|
method: get
|
260
260
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -263,7 +263,7 @@ http_interactions:
|
|
263
263
|
string: ''
|
264
264
|
headers:
|
265
265
|
Accept:
|
266
|
-
-
|
266
|
+
- ! '*/*; q=0.5, application/xml'
|
267
267
|
Accept-Encoding:
|
268
268
|
- gzip, deflate
|
269
269
|
User-Agent:
|
@@ -278,11 +278,11 @@ http_interactions:
|
|
278
278
|
Access-Control-Allow-Methods:
|
279
279
|
- GET,PATCH,POST,DELETE
|
280
280
|
Access-Control-Allow-Origin:
|
281
|
-
-
|
281
|
+
- ! '*'
|
282
282
|
Content-Type:
|
283
283
|
- application/json; charset=utf-8
|
284
284
|
Date:
|
285
|
-
-
|
285
|
+
- Mon, 08 Sep 2014 21:31:30 GMT
|
286
286
|
Server:
|
287
287
|
- nginx/1.4.7
|
288
288
|
X-Powered-By:
|
@@ -292,10 +292,10 @@ http_interactions:
|
|
292
292
|
Connection:
|
293
293
|
- keep-alive
|
294
294
|
body:
|
295
|
-
encoding:
|
296
|
-
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
295
|
+
encoding: US-ASCII
|
296
|
+
string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
297
297
|
http_version:
|
298
|
-
recorded_at:
|
298
|
+
recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
|
299
299
|
- request:
|
300
300
|
method: get
|
301
301
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -304,7 +304,7 @@ http_interactions:
|
|
304
304
|
string: ''
|
305
305
|
headers:
|
306
306
|
Accept:
|
307
|
-
-
|
307
|
+
- ! '*/*; q=0.5, application/xml'
|
308
308
|
Accept-Encoding:
|
309
309
|
- gzip, deflate
|
310
310
|
User-Agent:
|
@@ -319,11 +319,11 @@ http_interactions:
|
|
319
319
|
Access-Control-Allow-Methods:
|
320
320
|
- GET,PATCH,POST,DELETE
|
321
321
|
Access-Control-Allow-Origin:
|
322
|
-
-
|
322
|
+
- ! '*'
|
323
323
|
Content-Type:
|
324
324
|
- application/json; charset=utf-8
|
325
325
|
Date:
|
326
|
-
-
|
326
|
+
- Mon, 08 Sep 2014 21:31:30 GMT
|
327
327
|
Server:
|
328
328
|
- nginx/1.4.7
|
329
329
|
X-Powered-By:
|
@@ -333,10 +333,10 @@ http_interactions:
|
|
333
333
|
Connection:
|
334
334
|
- keep-alive
|
335
335
|
body:
|
336
|
-
encoding:
|
337
|
-
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
336
|
+
encoding: US-ASCII
|
337
|
+
string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
338
338
|
http_version:
|
339
|
-
recorded_at:
|
339
|
+
recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
|
340
340
|
- request:
|
341
341
|
method: get
|
342
342
|
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/teachers
|
@@ -345,7 +345,7 @@ http_interactions:
|
|
345
345
|
string: ''
|
346
346
|
headers:
|
347
347
|
Accept:
|
348
|
-
-
|
348
|
+
- ! '*/*; q=0.5, application/xml'
|
349
349
|
Accept-Encoding:
|
350
350
|
- gzip, deflate
|
351
351
|
User-Agent:
|
@@ -360,13 +360,13 @@ http_interactions:
|
|
360
360
|
Access-Control-Allow-Methods:
|
361
361
|
- GET,PATCH,POST,DELETE
|
362
362
|
Access-Control-Allow-Origin:
|
363
|
-
-
|
363
|
+
- ! '*'
|
364
364
|
Content-Type:
|
365
365
|
- application/json; charset=utf-8
|
366
366
|
Date:
|
367
|
-
-
|
367
|
+
- Mon, 08 Sep 2014 21:31:30 GMT
|
368
368
|
Etag:
|
369
|
-
- '"-1659229539"'
|
369
|
+
- ! '"-1659229539"'
|
370
370
|
Server:
|
371
371
|
- nginx/1.4.7
|
372
372
|
X-Powered-By:
|
@@ -376,8 +376,8 @@ http_interactions:
|
|
376
376
|
Connection:
|
377
377
|
- keep-alive
|
378
378
|
body:
|
379
|
-
encoding:
|
380
|
-
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
|
379
|
+
encoding: US-ASCII
|
380
|
+
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
|
381
381
|
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
|
382
382
|
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
|
383
383
|
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
|
@@ -468,5 +468,5 @@ http_interactions:
|
|
468
468
|
Coach","id":"530e5955d50c310f36112c18"},"uri":"/v1.1/teachers/530e5955d50c310f36112c18"},{"data":{"created":"2014-02-26T21:15:01.572Z","credentials":{"district_username":"m_paucek","district_password":"jhga8salgh"},"district":"4fd43cc56d11340000000005","email":"paucek_m@example.org","last_modified":"2014-02-26T21:15:01.574Z","name":{"first":"Meaghan","middle":"P","last":"Paucek"},"school":"530e595026403103360ff9fd","sis_id":"93","teacher_number":"843713","title":"High
|
469
469
|
School Drama Teacher","id":"530e5955d50c310f36112c19"},"uri":"/v1.1/teachers/530e5955d50c310f36112c19"}],"paging":{"current":1,"total":1,"count":89},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"}]}'
|
470
470
|
http_version:
|
471
|
-
recorded_at:
|
471
|
+
recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
|
472
472
|
recorded_with: VCR 2.4.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
|
5
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
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
|
User-Agent:
|
@@ -23,24 +23,24 @@ http_interactions:
|
|
23
23
|
Access-Control-Allow-Methods:
|
24
24
|
- GET,PATCH,POST,DELETE
|
25
25
|
Access-Control-Allow-Origin:
|
26
|
-
-
|
26
|
+
- ! '*'
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 08 Sep 2014 21:31:30 GMT
|
31
31
|
Server:
|
32
32
|
- nginx/1.4.7
|
33
33
|
X-Powered-By:
|
34
34
|
- Express
|
35
35
|
Content-Length:
|
36
|
-
- '
|
36
|
+
- '217'
|
37
37
|
Connection:
|
38
38
|
- keep-alive
|
39
39
|
body:
|
40
|
-
encoding:
|
41
|
-
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts"}]}'
|
42
42
|
http_version:
|
43
|
-
recorded_at:
|
43
|
+
recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
|
44
44
|
- request:
|
45
45
|
method: get
|
46
46
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
string: ''
|
50
50
|
headers:
|
51
51
|
Accept:
|
52
|
-
-
|
52
|
+
- ! '*/*; q=0.5, application/xml'
|
53
53
|
Accept-Encoding:
|
54
54
|
- gzip, deflate
|
55
55
|
User-Agent:
|
@@ -64,11 +64,11 @@ http_interactions:
|
|
64
64
|
Access-Control-Allow-Methods:
|
65
65
|
- GET,PATCH,POST,DELETE
|
66
66
|
Access-Control-Allow-Origin:
|
67
|
-
-
|
67
|
+
- ! '*'
|
68
68
|
Content-Type:
|
69
69
|
- application/json; charset=utf-8
|
70
70
|
Date:
|
71
|
-
-
|
71
|
+
- Mon, 08 Sep 2014 21:31:30 GMT
|
72
72
|
Server:
|
73
73
|
- nginx/1.4.7
|
74
74
|
X-Powered-By:
|
@@ -78,10 +78,10 @@ http_interactions:
|
|
78
78
|
Connection:
|
79
79
|
- keep-alive
|
80
80
|
body:
|
81
|
-
encoding:
|
82
|
-
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
87
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
string: ''
|
91
91
|
headers:
|
92
92
|
Accept:
|
93
|
-
-
|
93
|
+
- ! '*/*; q=0.5, application/xml'
|
94
94
|
Accept-Encoding:
|
95
95
|
- gzip, deflate
|
96
96
|
User-Agent:
|
@@ -105,11 +105,11 @@ http_interactions:
|
|
105
105
|
Access-Control-Allow-Methods:
|
106
106
|
- GET,PATCH,POST,DELETE
|
107
107
|
Access-Control-Allow-Origin:
|
108
|
-
-
|
108
|
+
- ! '*'
|
109
109
|
Content-Type:
|
110
110
|
- application/json; charset=utf-8
|
111
111
|
Date:
|
112
|
-
-
|
112
|
+
- Mon, 08 Sep 2014 21:31:30 GMT
|
113
113
|
Server:
|
114
114
|
- nginx/1.4.7
|
115
115
|
X-Powered-By:
|
@@ -119,10 +119,10 @@ http_interactions:
|
|
119
119
|
Connection:
|
120
120
|
- keep-alive
|
121
121
|
body:
|
122
|
-
encoding:
|
123
|
-
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
122
|
+
encoding: US-ASCII
|
123
|
+
string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
124
124
|
http_version:
|
125
|
-
recorded_at:
|
125
|
+
recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
|
126
126
|
- request:
|
127
127
|
method: get
|
128
128
|
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events?created_since=2013-02-15T%202:30:42%200000
|
@@ -131,7 +131,7 @@ http_interactions:
|
|
131
131
|
string: ''
|
132
132
|
headers:
|
133
133
|
Accept:
|
134
|
-
-
|
134
|
+
- ! '*/*; q=0.5, application/xml'
|
135
135
|
Accept-Encoding:
|
136
136
|
- gzip, deflate
|
137
137
|
User-Agent:
|
@@ -146,11 +146,11 @@ http_interactions:
|
|
146
146
|
Access-Control-Allow-Methods:
|
147
147
|
- GET,PATCH,POST,DELETE
|
148
148
|
Access-Control-Allow-Origin:
|
149
|
-
-
|
149
|
+
- ! '*'
|
150
150
|
Content-Type:
|
151
151
|
- application/json; charset=utf-8
|
152
152
|
Date:
|
153
|
-
-
|
153
|
+
- Mon, 08 Sep 2014 21:31:30 GMT
|
154
154
|
Server:
|
155
155
|
- nginx/1.4.7
|
156
156
|
X-Powered-By:
|
@@ -160,9 +160,9 @@ http_interactions:
|
|
160
160
|
Connection:
|
161
161
|
- keep-alive
|
162
162
|
body:
|
163
|
-
encoding:
|
164
|
-
string: '{"error":"Could not parse created_since ''2013-02-15T 2:30:42 0000''.
|
163
|
+
encoding: US-ASCII
|
164
|
+
string: ! '{"error":"Could not parse created_since ''2013-02-15T 2:30:42 0000''.
|
165
165
|
Please ensure it is either a valid ObjectID or a valid W3C datetime: http://www.w3.org/TR/NOTE-datetime."}'
|
166
166
|
http_version:
|
167
|
-
recorded_at:
|
167
|
+
recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
|
168
168
|
recorded_with: VCR 2.4.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://DEMO_KEY:@api.clever.com/v1.1/schools
|
5
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/schools
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
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
|
User-Agent:
|
@@ -23,24 +23,24 @@ http_interactions:
|
|
23
23
|
Access-Control-Allow-Methods:
|
24
24
|
- GET,PATCH,POST,DELETE
|
25
25
|
Access-Control-Allow-Origin:
|
26
|
-
-
|
26
|
+
- ! '*'
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 08 Sep 2014 21:31:31 GMT
|
31
31
|
Etag:
|
32
|
-
- '"
|
32
|
+
- ! '"1408105812"'
|
33
33
|
Server:
|
34
34
|
- nginx/1.4.7
|
35
35
|
X-Powered-By:
|
36
36
|
- Express
|
37
37
|
Content-Length:
|
38
|
-
- '
|
38
|
+
- '1764'
|
39
39
|
Connection:
|
40
40
|
- keep-alive
|
41
41
|
body:
|
42
|
-
encoding:
|
43
|
-
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
|
42
|
+
encoding: US-ASCII
|
43
|
+
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
|
44
44
|
5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
|
45
45
|
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
46
46
|
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
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
Roderick","email":"ceciliar@mailinator.com"},"school_number":"13K123","sis_id":"13K123","state_id":"30890","id":"530e595026403103360ff9fe"},"uri":"/v1.1/schools/530e595026403103360ff9fe"},{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
|
50
50
|
Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
|
51
51
|
Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
|
52
|
-
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
|
52
|
+
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"}]}'
|
53
53
|
http_version:
|
54
|
-
recorded_at:
|
54
|
+
recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
|
55
55
|
recorded_with: VCR 2.4.0
|