clever-ruby 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +13 -5
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/clever-ruby.rb +1 -0
- data/lib/clever-ruby/api_operations/list.rb +24 -0
- data/lib/clever-ruby/api_operations/pagelist.rb +6 -2
- data/lib/clever-ruby/api_operations/results_list.rb +20 -0
- data/lib/clever-ruby/util.rb +4 -0
- data/lib/clever-ruby/version.rb +1 -1
- data/test/data/vcr_cassettes/district_count.yml +44 -0
- data/test/data/vcr_cassettes/district_find_by_page.yml +85 -0
- data/test/data/vcr_cassettes/district_find_multiple.yml +85 -0
- data/test/data/vcr_cassettes/district_find_one.yml +85 -0
- data/test/data/vcr_cassettes/districts.yml +46 -5
- data/test/data/vcr_cassettes/districts_event_pages.yml +134 -134
- data/test/data/vcr_cassettes/districts_events.yml +44 -44
- data/test/data/vcr_cassettes/districts_school_pages.yml +50 -50
- data/test/data/vcr_cassettes/districts_schools.yml +44 -44
- data/test/data/vcr_cassettes/districts_section_pages.yml +303 -303
- data/test/data/vcr_cassettes/districts_sections.yml +44 -44
- data/test/data/vcr_cassettes/districts_student_pages.yml +184 -184
- data/test/data/vcr_cassettes/districts_students.yml +44 -44
- data/test/data/vcr_cassettes/districts_students_filtered.yml +25 -25
- data/test/data/vcr_cassettes/districts_teacher_pages.yml +100 -100
- data/test/data/vcr_cassettes/districts_teachers.yml +44 -44
- data/test/data/vcr_cassettes/error_handling.yml +24 -24
- data/test/data/vcr_cassettes/event_count.yml +44 -0
- data/test/data/vcr_cassettes/event_find_by_page.yml +110 -0
- data/test/data/vcr_cassettes/event_find_multiple.yml +124 -0
- data/test/data/vcr_cassettes/event_find_one.yml +114 -0
- data/test/data/vcr_cassettes/events.yml +110 -0
- data/test/data/vcr_cassettes/school_count.yml +44 -0
- data/test/data/vcr_cassettes/school_find_by_page.yml +96 -0
- data/test/data/vcr_cassettes/school_find_multiple.yml +104 -0
- data/test/data/vcr_cassettes/school_find_one.yml +99 -0
- data/test/data/vcr_cassettes/schools.yml +48 -7
- data/test/data/vcr_cassettes/schools_optional_attributes.yml +7 -7
- data/test/data/vcr_cassettes/section_count.yml +44 -0
- data/test/data/vcr_cassettes/section_find_by_page.yml +1146 -0
- data/test/data/vcr_cassettes/section_find_multiple.yml +147 -0
- data/test/data/vcr_cassettes/section_find_one.yml +352 -0
- data/test/data/vcr_cassettes/sections.yml +69 -28
- data/test/data/vcr_cassettes/student_count.yml +44 -0
- data/test/data/vcr_cassettes/student_find_by_page.yml +1171 -0
- data/test/data/vcr_cassettes/student_find_multiple.yml +111 -0
- data/test/data/vcr_cassettes/student_find_one.yml +160 -0
- data/test/data/vcr_cassettes/students.yml +118 -77
- data/test/data/vcr_cassettes/teacher_count.yml +44 -0
- data/test/data/vcr_cassettes/teacher_find_by_page.yml +176 -0
- data/test/data/vcr_cassettes/teacher_find_multiple.yml +119 -0
- data/test/data/vcr_cassettes/teacher_find_one.yml +177 -0
- data/test/data/vcr_cassettes/teachers.yml +15 -3712
- data/test/integration/api_operations/list_test.rb +84 -28
- metadata +82 -30
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
User-Agent:
|
@@ -23,11 +23,11 @@ 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
|
+
- Tue, 09 Sep 2014 21:48:42 GMT
|
31
31
|
Server:
|
32
32
|
- nginx/1.4.7
|
33
33
|
X-Powered-By:
|
@@ -37,10 +37,10 @@ http_interactions:
|
|
37
37
|
Connection:
|
38
38
|
- keep-alive
|
39
39
|
body:
|
40
|
-
encoding:
|
41
|
-
string:
|
40
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:43 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
|
+
- Tue, 09 Sep 2014 21:48:43 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:
|
81
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:43 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
|
+
- Tue, 09 Sep 2014 21:48:44 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:
|
122
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:44 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
|
+
- Tue, 09 Sep 2014 21:48:44 GMT
|
154
154
|
Etag:
|
155
|
-
-
|
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:
|
165
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:44 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
|
+
- Tue, 09 Sep 2014 21:48:44 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:
|
295
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:45 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
|
+
- Tue, 09 Sep 2014 21:48:45 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:
|
336
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:45 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
|
+
- Tue, 09 Sep 2014 21:48:45 GMT
|
368
368
|
Etag:
|
369
|
-
-
|
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:
|
379
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:46 GMT
|
472
472
|
recorded_with: VCR 2.4.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
User-Agent:
|
@@ -23,11 +23,11 @@ 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
|
+
- Tue, 09 Sep 2014 21:48:47 GMT
|
31
31
|
Server:
|
32
32
|
- nginx/1.4.7
|
33
33
|
X-Powered-By:
|
@@ -37,10 +37,10 @@ http_interactions:
|
|
37
37
|
Connection:
|
38
38
|
- keep-alive
|
39
39
|
body:
|
40
|
-
encoding:
|
41
|
-
string:
|
40
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:47 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
|
+
- Tue, 09 Sep 2014 21:48:48 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:
|
81
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:48 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
|
+
- Tue, 09 Sep 2014 21:48:48 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:
|
122
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:48 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
|
+
- Tue, 09 Sep 2014 21:48:49 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:
|
163
|
+
encoding: UTF-8
|
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: Tue, 09 Sep 2014 21:48:49 GMT
|
168
168
|
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/events?count=true
|
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
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Headers:
|
22
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
23
|
+
Access-Control-Allow-Methods:
|
24
|
+
- GET,PATCH,POST,DELETE
|
25
|
+
Access-Control-Allow-Origin:
|
26
|
+
- "*"
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Date:
|
30
|
+
- Tue, 09 Sep 2014 21:48:49 GMT
|
31
|
+
Server:
|
32
|
+
- nginx/1.4.7
|
33
|
+
X-Powered-By:
|
34
|
+
- Express
|
35
|
+
Content-Length:
|
36
|
+
- '69'
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"count":13,"links":[{"rel":"self","uri":"/v1.1/events?count=true"}]}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Tue, 09 Sep 2014 21:48:50 GMT
|
44
|
+
recorded_with: VCR 2.4.0
|