clever-ruby 0.11.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +15 -1
- data/clever-ruby.gemspec +0 -1
- data/lib/clever-ruby.rb +1 -1
- data/lib/clever-ruby/api_resource.rb +43 -7
- data/lib/clever-ruby/district.rb +14 -0
- data/lib/clever-ruby/event.rb +2 -0
- data/lib/clever-ruby/school.rb +2 -0
- data/lib/clever-ruby/school_admin.rb +17 -0
- data/lib/clever-ruby/section.rb +2 -0
- data/lib/clever-ruby/student.rb +2 -0
- data/lib/clever-ruby/teacher.rb +2 -0
- data/lib/clever-ruby/util.rb +1 -9
- data/lib/clever-ruby/version.rb +1 -1
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_district_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_event_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_admin_properly.yml +52 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_section_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_student_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_teacher_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_district.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_event.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school_admin.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_section.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_student.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_teacher.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_by_page.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_with_multiple_ids.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_by_page.yml +24 -10
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_by_page.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_with_multiple_ids.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_by_page.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_with_multiple_ids.yml +28 -20
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_by_page.yml +34 -22
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_by_page.yml +48 -36
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_by_page.yml +27 -17
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml +28 -20
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_district.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_event.yml +28 -14
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school_admin.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_section.yml +34 -22
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_student.yml +48 -36
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_teacher.yml +30 -20
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_events.yml +39 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_schools.yml +36 -22
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_sections.yml +37 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_students.yml +37 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_teachers.yml +34 -20
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_school_admins.yml +101 -0
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_schools.yml +25 -15
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_sections.yml +26 -14
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_students.yml +26 -14
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_teachers.yml +25 -15
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_events.yml +54 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_schools.yml +50 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_sections.yml +51 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_students.yml +51 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_teachers.yml +50 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_admin_s_schools.yml +205 -0
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_district.yml +43 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_events.yml +56 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_sections.yml +58 -36
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_students.yml +69 -45
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_teachers.yml +52 -34
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_district.yml +42 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_events.yml +58 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_school.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_students.yml +45 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_teacher.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_district.yml +42 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_events.yml +58 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_school.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_sections.yml +56 -32
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_teachers.yml +54 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_district.yml +40 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_events.yml +56 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_school.yml +39 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_sections.yml +54 -32
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_students.yml +54 -32
- data/test/data/vcr_cassettes/Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml +42 -24
- data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +13 -7
- data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +142 -61
- data/test/integration/api_operations/list_test.rb +5 -3
- data/test/integration/district_with_non_global_token_test.rb +7 -0
- data/test/integration/last_test.rb +3 -2
- data/test/integration/nested_resource_test.rb +3 -2
- data/test/unit/api_resource_test.rb +29 -14
- data/test/unit/clever_test.rb +1 -0
- metadata +17 -16
@@ -0,0 +1,101 @@
|
|
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
|
+
- Sat, 26 Sep 2015 17:40:49 GMT
|
33
|
+
X-Powered-By:
|
34
|
+
- Express
|
35
|
+
X-Ratelimit-Bucket:
|
36
|
+
- bearer
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '1200'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '1193'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1443289303'
|
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: Sat, 26 Sep 2015 17:40:49 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
|
+
- Sat, 26 Sep 2015 17:40:49 GMT
|
82
|
+
X-Powered-By:
|
83
|
+
- Express
|
84
|
+
X-Ratelimit-Bucket:
|
85
|
+
- bearer
|
86
|
+
X-Ratelimit-Limit:
|
87
|
+
- '1200'
|
88
|
+
X-Ratelimit-Remaining:
|
89
|
+
- '1192'
|
90
|
+
X-Ratelimit-Reset:
|
91
|
+
- '1443289303'
|
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: Sat, 26 Sep 2015 17:40:49 GMT
|
101
|
+
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,30 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
32
|
+
- Sat, 26 Sep 2015 17:40:55 GMT
|
33
33
|
Etag:
|
34
|
-
-
|
35
|
-
Server:
|
36
|
-
- nginx/1.4.7
|
34
|
+
- '"-682802249"'
|
37
35
|
X-Powered-By:
|
38
36
|
- Express
|
37
|
+
X-Ratelimit-Bucket:
|
38
|
+
- bearer
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '1200'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '1178'
|
43
|
+
X-Ratelimit-Reset:
|
44
|
+
- '1443289303'
|
39
45
|
Content-Length:
|
40
46
|
- '113738'
|
41
47
|
Connection:
|
42
48
|
- keep-alive
|
43
49
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":[{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
46
52
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"data":{"course_name":"Group
|
47
53
|
Guidance","course_number":"102","created":"2014-02-26T21:15:37.934Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-02-26T21:15:37.936Z","name":"Group
|
48
54
|
Guidance - 102 - T. Vaux (Section 2)","period":"0","school":"530e595026403103360ff9fd","sis_id":"582","students":["530e5960049e75a9262cff4f","530e5960049e75a9262cff95","530e5961049e75a9262cffe0","530e5961049e75a9262d0027","530e5961049e75a9262d008d","530e5963049e75a9262d0180","530e5964049e75a9262d0300","530e5964049e75a9262d0302","530e5964049e75a9262d0304","530e5965049e75a9262d039e","530e5965049e75a9262d03b6","530e5965049e75a9262d03e8","530e5966049e75a9262d040c","530e5966049e75a9262d04cc","530e5967049e75a9262d05c0","530e5968049e75a9262d062f"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c12","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af3"},"uri":"/v1.1/sections/530e5979049e75a9262d0af3"},{"data":{"course_name":"Group
|
@@ -306,7 +312,7 @@ http_interactions:
|
|
306
312
|
I","course_number":"101","created":"2014-02-26T21:15:38.354Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.356Z","name":"French
|
307
313
|
I - 101 - G. Gorczany (Section 1)","period":"9","school":"530e595026403103360ff9fd","sis_id":"681","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cff7a","530e5961049e75a9262cfffb","530e5961049e75a9262d005d","530e5961049e75a9262d0070","530e5962049e75a9262d00e8","530e5962049e75a9262d00ff","530e5962049e75a9262d015f","530e5963049e75a9262d0211","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02c3","530e5965049e75a9262d0325","530e5965049e75a9262d033f","530e5965049e75a9262d036c","530e5965049e75a9262d038f","530e5966049e75a9262d03f8","530e5966049e75a9262d0468","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d0496","530e5967049e75a9262d057e","530e5967049e75a9262d0590","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d1","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"language","teacher":"530e5955d50c310f36112bf9","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b55"},"uri":"/v1.1/sections/530e597a049e75a9262d0b55"}],"paging":{"current":1,"total":4,"count":379},"links":[{"rel":"self","uri":"/v1.1/sections"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0b55"}]}'
|
308
314
|
http_version:
|
309
|
-
recorded_at: Sat,
|
315
|
+
recorded_at: Sat, 26 Sep 2015 17:40:55 GMT
|
310
316
|
- request:
|
311
317
|
method: get
|
312
318
|
uri: https://api.clever.com/v1.1/sections/530e597a049e75a9262d0b05
|
@@ -315,7 +321,7 @@ http_interactions:
|
|
315
321
|
string: ''
|
316
322
|
headers:
|
317
323
|
Accept:
|
318
|
-
-
|
324
|
+
- "*/*; q=0.5, application/xml"
|
319
325
|
Accept-Encoding:
|
320
326
|
- gzip, deflate
|
321
327
|
Authorization:
|
@@ -332,25 +338,31 @@ http_interactions:
|
|
332
338
|
Access-Control-Allow-Methods:
|
333
339
|
- GET,PATCH,POST,DELETE
|
334
340
|
Access-Control-Allow-Origin:
|
335
|
-
-
|
341
|
+
- "*"
|
336
342
|
Content-Type:
|
337
343
|
- application/json; charset=utf-8
|
338
344
|
Date:
|
339
|
-
- Sat,
|
345
|
+
- Sat, 26 Sep 2015 17:40:55 GMT
|
340
346
|
Etag:
|
341
|
-
-
|
342
|
-
Server:
|
343
|
-
- nginx/1.4.7
|
347
|
+
- '"93377604"'
|
344
348
|
X-Powered-By:
|
345
349
|
- Express
|
350
|
+
X-Ratelimit-Bucket:
|
351
|
+
- bearer
|
352
|
+
X-Ratelimit-Limit:
|
353
|
+
- '1200'
|
354
|
+
X-Ratelimit-Remaining:
|
355
|
+
- '1177'
|
356
|
+
X-Ratelimit-Reset:
|
357
|
+
- '1443289303'
|
346
358
|
Content-Length:
|
347
359
|
- '1398'
|
348
360
|
Connection:
|
349
361
|
- keep-alive
|
350
362
|
body:
|
351
|
-
encoding:
|
352
|
-
string:
|
363
|
+
encoding: UTF-8
|
364
|
+
string: '{"data":{"course_name":"Group Guidance","course_number":"905","created":"2014-02-26T21:15:38.011Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.013Z","name":"Group
|
353
365
|
Guidance - 905 - J. Cummings (Section 5)","period":"0","school":"530e595026403103360ff9fd","sis_id":"600","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff27","530e5960049e75a9262cff5b","530e5961049e75a9262cfffb","530e5961049e75a9262d0038","530e5961049e75a9262d0089","530e5962049e75a9262d00ba","530e5962049e75a9262d00e6","530e5963049e75a9262d0181","530e5963049e75a9262d020f","530e5963049e75a9262d021b","530e5964049e75a9262d02d3","530e5965049e75a9262d033c","530e5966049e75a9262d045e","530e5966049e75a9262d0496","530e5966049e75a9262d04a5","530e5968049e75a9262d063c"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c16","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b05"},"links":[{"rel":"self","uri":"/v1.1/sections/530e597a049e75a9262d0b05"},{"rel":"district","uri":"/v1.1/sections/530e597a049e75a9262d0b05/district"},{"rel":"teacher","uri":"/v1.1/sections/530e597a049e75a9262d0b05/teacher"},{"rel":"students","uri":"/v1.1/sections/530e597a049e75a9262d0b05/students"},{"rel":"school","uri":"/v1.1/sections/530e597a049e75a9262d0b05/school"},{"rel":"events","uri":"/v1.1/sections/530e597a049e75a9262d0b05/events"}]}'
|
354
366
|
http_version:
|
355
|
-
recorded_at: Sat,
|
367
|
+
recorded_at: Sat, 26 Sep 2015 17:40:55 GMT
|
356
368
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,30 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
32
|
+
- Sat, 26 Sep 2015 17:40:30 GMT
|
33
33
|
Etag:
|
34
|
-
-
|
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
|
+
- '1080'
|
43
|
+
X-Ratelimit-Reset:
|
44
|
+
- '1443289242'
|
39
45
|
Content-Length:
|
40
46
|
- '66289'
|
41
47
|
Connection:
|
42
48
|
- keep-alive
|
43
49
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
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
|
@@ -115,7 +121,7 @@ http_interactions:
|
|
115
121
|
or More Races","school":"530e595026403103360ff9ff","sis_id":"189422359","state_id":"949395711","student_number":"189422359","id":"530e5961049e75a9262cffe3"},"uri":"/v1.1/students/530e5961049e75a9262cffe3"},{"data":{"created":"2014-02-26T21:15:13.206Z","credentials":{"district_username":"mial61","district_password":"uka5Hixae"},"district":"4fd43cc56d11340000000005","dob":"11/10/2002","ell_status":"N","email":"l_mia@example.org","frl_status":"Paid","gender":"F","grade":"5","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:41.072Z","location":{"zip":"10002"},"name":{"first":"Mia","middle":"J","last":"Lindgren"},"race":"Black
|
116
122
|
or African American","school":"530e595026403103360ff9fe","sis_id":"189492161","state_id":"661166974","student_number":"189492161","id":"530e5961049e75a9262cffe4"},"uri":"/v1.1/students/530e5961049e75a9262cffe4"}],"paging":{"current":1,"total":11,"count":1004},"links":[{"rel":"self","uri":"/v1.1/students"},{"rel":"next","uri":"/v1.1/students?starting_after=530e5961049e75a9262cffe4"}]}'
|
117
123
|
http_version:
|
118
|
-
recorded_at: Sat,
|
124
|
+
recorded_at: Sat, 26 Sep 2015 17:40:31 GMT
|
119
125
|
- request:
|
120
126
|
method: get
|
121
127
|
uri: https://api.clever.com/v1.1/students/530e5960049e75a9262cff3c
|
@@ -124,7 +130,7 @@ http_interactions:
|
|
124
130
|
string: ''
|
125
131
|
headers:
|
126
132
|
Accept:
|
127
|
-
-
|
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,
|
154
|
+
- Sat, 26 Sep 2015 17:40:31 GMT
|
149
155
|
Etag:
|
150
|
-
-
|
151
|
-
Server:
|
152
|
-
- nginx/1.4.7
|
156
|
+
- '"-1701622081"'
|
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
|
+
- '1079'
|
165
|
+
X-Ratelimit-Reset:
|
166
|
+
- '1443289242'
|
155
167
|
Content-Length:
|
156
168
|
- '1118'
|
157
169
|
Connection:
|
158
170
|
- keep-alive
|
159
171
|
body:
|
160
|
-
encoding:
|
161
|
-
string:
|
172
|
+
encoding: UTF-8
|
173
|
+
string: '{"data":{"created":"2014-02-26T21:15:12.498Z","credentials":{"district_username":"fredt34","district_password":"ieXahy1j"},"district":"4fd43cc56d11340000000005","dob":"10/30/1998","ell_status":"Y","email":"fred.t@example.net","frl_status":"Paid","gender":"M","grade":"9","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:40.748Z","location":{"zip":"10003"},"name":{"first":"Fred","middle":"W","last":"Trantow"},"race":"Caucasian","school":"530e595026403103360ff9fd","sis_id":"119622134","state_id":"354252109","student_number":"119622134","id":"530e5960049e75a9262cff3c"},"links":[{"rel":"self","uri":"/v1.1/students/530e5960049e75a9262cff3c"},{"rel":"district","uri":"/v1.1/students/530e5960049e75a9262cff3c/district"},{"rel":"sections","uri":"/v1.1/students/530e5960049e75a9262cff3c/sections"},{"rel":"school","uri":"/v1.1/students/530e5960049e75a9262cff3c/school"},{"rel":"teachers","uri":"/v1.1/students/530e5960049e75a9262cff3c/teachers"},{"rel":"contacts","uri":"/v1.1/students/530e5960049e75a9262cff3c/contacts"},{"rel":"events","uri":"/v1.1/students/530e5960049e75a9262cff3c/events"}]}'
|
162
174
|
http_version:
|
163
|
-
recorded_at: Sat,
|
175
|
+
recorded_at: Sat, 26 Sep 2015 17:40:31 GMT
|
164
176
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,28 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
33
|
-
Etag:
|
34
|
-
- ! '"-409931571"'
|
35
|
-
Server:
|
36
|
-
- nginx/1.4.7
|
32
|
+
- Sat, 26 Sep 2015 17:41:24 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
|
+
- '1122'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1443289303'
|
39
43
|
Content-Length:
|
40
44
|
- '44617'
|
41
45
|
Connection:
|
42
46
|
- keep-alive
|
43
47
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
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
|
@@ -133,7 +137,7 @@ http_interactions:
|
|
133
137
|
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
|
134
138
|
School Drama Teacher","id":"530e5955d50c310f36112c19"},"uri":"/v1.1/teachers/530e5955d50c310f36112c19"}],"paging":{"current":1,"total":1,"count":89},"links":[{"rel":"self","uri":"/v1.1/teachers"}]}'
|
135
139
|
http_version:
|
136
|
-
recorded_at: Sat,
|
140
|
+
recorded_at: Sat, 26 Sep 2015 17:41:25 GMT
|
137
141
|
- request:
|
138
142
|
method: get
|
139
143
|
uri: https://api.clever.com/v1.1/teachers/530e5955d50c310f36112bd4
|
@@ -142,7 +146,7 @@ http_interactions:
|
|
142
146
|
string: ''
|
143
147
|
headers:
|
144
148
|
Accept:
|
145
|
-
-
|
149
|
+
- "*/*; q=0.5, application/xml"
|
146
150
|
Accept-Encoding:
|
147
151
|
- gzip, deflate
|
148
152
|
Authorization:
|
@@ -159,23 +163,29 @@ 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,
|
167
|
-
Server:
|
168
|
-
- nginx/1.4.7
|
170
|
+
- Sat, 26 Sep 2015 17:41:25 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
|
+
- '1121'
|
179
|
+
X-Ratelimit-Reset:
|
180
|
+
- '1443289303'
|
171
181
|
Content-Length:
|
172
182
|
- '983'
|
173
183
|
Connection:
|
174
184
|
- keep-alive
|
175
185
|
body:
|
176
|
-
encoding:
|
177
|
-
string:
|
186
|
+
encoding: UTF-8
|
187
|
+
string: '{"data":{"created":"2014-02-26T21:15:01.138Z","credentials":{"district_username":"daniela.raynor","district_password":"quahse5Ch"},"district":"4fd43cc56d11340000000005","email":"raynor_daniela@example.net","last_modified":"2014-02-26T21:15:01.144Z","name":{"first":"Daniela","middle":"F","last":"Raynor"},"school":"530e595026403103360ff9fe","sis_id":"19","teacher_number":"493218","title":"Grade
|
178
188
|
5 Common Branch Teacher","id":"530e5955d50c310f36112bd4"},"links":[{"rel":"self","uri":"/v1.1/teachers/530e5955d50c310f36112bd4"},{"rel":"district","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/district"},{"rel":"school","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/school"},{"rel":"students","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/students"},{"rel":"sections","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/sections"},{"rel":"grade_levels","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/grade_levels"},{"rel":"events","uri":"/v1.1/teachers/530e5955d50c310f36112bd4/events"}]}'
|
179
189
|
http_version:
|
180
|
-
recorded_at: Sat,
|
190
|
+
recorded_at: Sat, 26 Sep 2015 17:41:25 GMT
|
181
191
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,30 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
33
|
-
Server:
|
34
|
-
- nginx/1.4.7
|
32
|
+
- Sat, 26 Sep 2015 17:40:58 GMT
|
35
33
|
X-Powered-By:
|
36
34
|
- Express
|
35
|
+
X-Ratelimit-Bucket:
|
36
|
+
- bearer
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '1200'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '1170'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1443289303'
|
37
43
|
Content-Length:
|
38
44
|
- '217'
|
39
45
|
Connection:
|
40
46
|
- keep-alive
|
41
47
|
body:
|
42
|
-
encoding:
|
43
|
-
string:
|
48
|
+
encoding: UTF-8
|
49
|
+
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"}]}'
|
44
50
|
http_version:
|
45
|
-
recorded_at: Sat,
|
51
|
+
recorded_at: Sat, 26 Sep 2015 17:40:58 GMT
|
46
52
|
- request:
|
47
53
|
method: get
|
48
54
|
uri: https://api.clever.com/v1.1/districts?count=true
|
@@ -51,7 +57,7 @@ http_interactions:
|
|
51
57
|
string: ''
|
52
58
|
headers:
|
53
59
|
Accept:
|
54
|
-
-
|
60
|
+
- "*/*; q=0.5, application/xml"
|
55
61
|
Accept-Encoding:
|
56
62
|
- gzip, deflate
|
57
63
|
Authorization:
|
@@ -68,22 +74,28 @@ http_interactions:
|
|
68
74
|
Access-Control-Allow-Methods:
|
69
75
|
- GET,PATCH,POST,DELETE
|
70
76
|
Access-Control-Allow-Origin:
|
71
|
-
-
|
77
|
+
- "*"
|
72
78
|
Content-Type:
|
73
79
|
- application/json; charset=utf-8
|
74
80
|
Date:
|
75
|
-
- Sat,
|
76
|
-
Server:
|
77
|
-
- nginx/1.4.7
|
81
|
+
- Sat, 26 Sep 2015 17:40:58 GMT
|
78
82
|
X-Powered-By:
|
79
83
|
- Express
|
84
|
+
X-Ratelimit-Bucket:
|
85
|
+
- bearer
|
86
|
+
X-Ratelimit-Limit:
|
87
|
+
- '1200'
|
88
|
+
X-Ratelimit-Remaining:
|
89
|
+
- '1169'
|
90
|
+
X-Ratelimit-Reset:
|
91
|
+
- '1443289303'
|
80
92
|
Content-Length:
|
81
93
|
- '71'
|
82
94
|
Connection:
|
83
95
|
- keep-alive
|
84
96
|
body:
|
85
|
-
encoding:
|
86
|
-
string:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: '{"count":1,"links":[{"rel":"self","uri":"/v1.1/districts?count=true"}]}'
|
87
99
|
http_version:
|
88
|
-
recorded_at: Sat,
|
100
|
+
recorded_at: Sat, 26 Sep 2015 17:40:58 GMT
|
89
101
|
recorded_with: VCR 2.9.3
|