clever-ruby 0.7.0 → 0.8.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 +8 -8
- data/CHANGELOG.md +4 -0
- data/clever-ruby.gemspec +2 -1
- data/lib/clever-ruby/api_operations/list.rb +71 -0
- data/lib/clever-ruby/api_operations/nested_list.rb +49 -0
- data/lib/clever-ruby/api_operations/page.rb +16 -8
- data/lib/clever-ruby/version.rb +1 -1
- data/test/data/vcr_cassettes/{district_count.yml → Clever_APIOperations_List/counts_district_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{event_count.yml → Clever_APIOperations_List/counts_event_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{school_count.yml → Clever_APIOperations_List/counts_school_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{section_count.yml → Clever_APIOperations_List/counts_section_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{student_count.yml → Clever_APIOperations_List/counts_student_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{teacher_count.yml → Clever_APIOperations_List/counts_teacher_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{district_find_one.yml → Clever_APIOperations_List/finds_a_single_district.yml} +11 -7
- data/test/data/vcr_cassettes/{event_find_one.yml → Clever_APIOperations_List/finds_a_single_event.yml} +11 -7
- data/test/data/vcr_cassettes/{school_find_one.yml → Clever_APIOperations_List/finds_a_single_school.yml} +11 -7
- data/test/data/vcr_cassettes/{section_find_one.yml → Clever_APIOperations_List/finds_a_single_section.yml} +11 -7
- data/test/data/vcr_cassettes/{student_find_one.yml → Clever_APIOperations_List/finds_a_single_student.yml} +11 -7
- data/test/data/vcr_cassettes/{teacher_find_one.yml → Clever_APIOperations_List/finds_a_single_teacher.yml} +11 -7
- data/test/data/vcr_cassettes/{districts.yml → Clever_APIOperations_List/finds_districts_by_page.yml} +11 -7
- data/test/data/vcr_cassettes/{district_find_multiple.yml → Clever_APIOperations_List/finds_districts_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{events.yml → Clever_APIOperations_List/finds_events_by_page.yml} +11 -7
- data/test/data/vcr_cassettes/{event_find_multiple.yml → Clever_APIOperations_List/finds_events_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{schools.yml → Clever_APIOperations_List/finds_schools_by_page.yml} +11 -7
- data/test/data/vcr_cassettes/{school_find_multiple.yml → Clever_APIOperations_List/finds_schools_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{section_find_by_page.yml → Clever_APIOperations_List/finds_sections_by_page.yml} +26 -16
- data/test/data/vcr_cassettes/{section_find_multiple.yml → Clever_APIOperations_List/finds_sections_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{students.yml → Clever_APIOperations_List/finds_students_by_page.yml} +61 -37
- data/test/data/vcr_cassettes/{student_find_multiple.yml → Clever_APIOperations_List/finds_students_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{teachers.yml → Clever_APIOperations_List/finds_teachers_by_page.yml} +11 -7
- data/test/data/vcr_cassettes/{teacher_find_multiple.yml → Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{district_find_by_page.yml → Clever_APIOperations_List/retrieves_all_district.yml} +11 -7
- data/test/data/vcr_cassettes/{event_find_by_page.yml → Clever_APIOperations_List/retrieves_all_event.yml} +11 -7
- data/test/data/vcr_cassettes/{school_find_by_page.yml → Clever_APIOperations_List/retrieves_all_school.yml} +11 -7
- data/test/data/vcr_cassettes/{sections.yml → Clever_APIOperations_List/retrieves_all_section.yml} +26 -16
- data/test/data/vcr_cassettes/{student_find_by_page.yml → Clever_APIOperations_List/retrieves_all_student.yml} +61 -37
- data/test/data/vcr_cassettes/{teacher_find_by_page.yml → Clever_APIOperations_List/retrieves_all_teacher.yml} +11 -7
- data/test/data/vcr_cassettes/{districts_event_pages.yml → Clever_District/pages_methods/pages_a_district_s_events.yml} +56 -34
- data/test/data/vcr_cassettes/{districts_school_pages.yml → Clever_District/pages_methods/pages_a_district_s_schools.yml} +26 -16
- data/test/data/vcr_cassettes/{districts_section_pages.yml → Clever_District/pages_methods/pages_a_district_s_sections.yml} +206 -124
- data/test/data/vcr_cassettes/{districts_student_pages.yml → Clever_District/pages_methods/pages_a_district_s_students.yml} +121 -73
- data/test/data/vcr_cassettes/{districts_teacher_pages.yml → Clever_District/pages_methods/pages_a_district_s_teachers.yml} +61 -37
- data/test/data/vcr_cassettes/{district_events.yml → Clever_NestedResource/retrieves_a_district_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{district_schools.yml → Clever_NestedResource/retrieves_a_district_s_schools.yml} +21 -13
- data/test/data/vcr_cassettes/{district_sections.yml → Clever_NestedResource/retrieves_a_district_s_sections.yml} +51 -31
- data/test/data/vcr_cassettes/{district_students.yml → Clever_NestedResource/retrieves_a_district_s_students.yml} +121 -73
- data/test/data/vcr_cassettes/{district_teachers.yml → Clever_NestedResource/retrieves_a_district_s_teachers.yml} +21 -13
- data/test/data/vcr_cassettes/{school_district.yml → Clever_NestedResource/retrieves_a_school_s_district.yml} +16 -10
- data/test/data/vcr_cassettes/{school_events.yml → Clever_NestedResource/retrieves_a_school_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{school_sections.yml → Clever_NestedResource/retrieves_a_school_s_sections.yml} +31 -19
- data/test/data/vcr_cassettes/{school_students.yml → Clever_NestedResource/retrieves_a_school_s_students.yml} +61 -37
- data/test/data/vcr_cassettes/{school_teachers.yml → Clever_NestedResource/retrieves_a_school_s_teachers.yml} +21 -13
- data/test/data/vcr_cassettes/{section_district.yml → Clever_NestedResource/retrieves_a_section_s_district.yml} +16 -10
- data/test/data/vcr_cassettes/{section_events.yml → Clever_NestedResource/retrieves_a_section_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{section_school.yml → Clever_NestedResource/retrieves_a_section_s_school.yml} +16 -10
- data/test/data/vcr_cassettes/{section_students.yml → Clever_NestedResource/retrieves_a_section_s_students.yml} +21 -13
- data/test/data/vcr_cassettes/{section_teacher.yml → Clever_NestedResource/retrieves_a_section_s_teacher.yml} +16 -10
- data/test/data/vcr_cassettes/{student_district.yml → Clever_NestedResource/retrieves_a_student_s_district.yml} +16 -10
- data/test/data/vcr_cassettes/{student_events.yml → Clever_NestedResource/retrieves_a_student_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{student_school.yml → Clever_NestedResource/retrieves_a_student_s_school.yml} +16 -10
- data/test/data/vcr_cassettes/{student_sections.yml → Clever_NestedResource/retrieves_a_student_s_sections.yml} +21 -13
- data/test/data/vcr_cassettes/{student_teachers.yml → Clever_NestedResource/retrieves_a_student_s_teachers.yml} +21 -13
- data/test/data/vcr_cassettes/{teacher_district.yml → Clever_NestedResource/retrieves_a_teacher_s_district.yml} +16 -10
- data/test/data/vcr_cassettes/{teacher_events.yml → Clever_NestedResource/retrieves_a_teacher_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{teacher_school.yml → Clever_NestedResource/retrieves_a_teacher_s_school.yml} +16 -10
- data/test/data/vcr_cassettes/{teacher_sections.yml → Clever_NestedResource/retrieves_a_teacher_s_sections.yml} +21 -13
- data/test/data/vcr_cassettes/{teacher_students.yml → Clever_NestedResource/retrieves_a_teacher_s_students.yml} +21 -13
- data/test/data/vcr_cassettes/{error_handling.yml → Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml} +16 -10
- data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +49 -0
- data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +719 -0
- data/test/data/vcr_cassettes/last_method/resource/has_working_first_and_last_methods.yml +648 -0
- data/test/integration/api_operations/list_test.rb +40 -50
- data/test/integration/district_test.rb +13 -15
- data/test/integration/error_handling_test.rb +6 -8
- data/test/integration/last_test.rb +70 -0
- data/test/integration/nested_resource_test.rb +7 -9
- data/test/test_helper.rb +3 -0
- data/test/unit/clever_test.rb +1 -1
- data/test/unit/configuration_test.rb +6 -0
- data/test/unit/optional_attributes_test.rb +4 -10
- metadata +147 -129
- data/test/data/vcr_cassettes/schools_optional_attributes.yml +0 -55
- data/test/data/vcr_cassettes/student_teacher.yml +0 -161
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/districts
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:07:43 GMT
|
31
33
|
Server:
|
32
34
|
- nginx/1.4.7
|
33
35
|
X-Powered-By:
|
@@ -40,10 +42,10 @@ http_interactions:
|
|
40
42
|
encoding: US-ASCII
|
41
43
|
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
44
|
http_version:
|
43
|
-
recorded_at:
|
45
|
+
recorded_at: Sat, 13 Sep 2014 00:07:43 GMT
|
44
46
|
- request:
|
45
47
|
method: get
|
46
|
-
uri: https://
|
48
|
+
uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
47
49
|
body:
|
48
50
|
encoding: US-ASCII
|
49
51
|
string: ''
|
@@ -52,6 +54,8 @@ http_interactions:
|
|
52
54
|
- ! '*/*; q=0.5, application/xml'
|
53
55
|
Accept-Encoding:
|
54
56
|
- gzip, deflate
|
57
|
+
Authorization:
|
58
|
+
- Bearer DEMO_TOKEN
|
55
59
|
User-Agent:
|
56
60
|
- Ruby
|
57
61
|
response:
|
@@ -68,7 +72,7 @@ http_interactions:
|
|
68
72
|
Content-Type:
|
69
73
|
- application/json; charset=utf-8
|
70
74
|
Date:
|
71
|
-
-
|
75
|
+
- Sat, 13 Sep 2014 00:07:43 GMT
|
72
76
|
Server:
|
73
77
|
- nginx/1.4.7
|
74
78
|
X-Powered-By:
|
@@ -81,10 +85,10 @@ http_interactions:
|
|
81
85
|
encoding: US-ASCII
|
82
86
|
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
87
|
http_version:
|
84
|
-
recorded_at:
|
88
|
+
recorded_at: Sat, 13 Sep 2014 00:07:43 GMT
|
85
89
|
- request:
|
86
90
|
method: get
|
87
|
-
uri: https://
|
91
|
+
uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/teachers
|
88
92
|
body:
|
89
93
|
encoding: US-ASCII
|
90
94
|
string: ''
|
@@ -93,6 +97,8 @@ http_interactions:
|
|
93
97
|
- ! '*/*; q=0.5, application/xml'
|
94
98
|
Accept-Encoding:
|
95
99
|
- gzip, deflate
|
100
|
+
Authorization:
|
101
|
+
- Bearer DEMO_TOKEN
|
96
102
|
User-Agent:
|
97
103
|
- Ruby
|
98
104
|
response:
|
@@ -109,7 +115,7 @@ http_interactions:
|
|
109
115
|
Content-Type:
|
110
116
|
- application/json; charset=utf-8
|
111
117
|
Date:
|
112
|
-
-
|
118
|
+
- Sat, 13 Sep 2014 00:07:43 GMT
|
113
119
|
Etag:
|
114
120
|
- ! '"-1659229539"'
|
115
121
|
Server:
|
@@ -213,10 +219,10 @@ http_interactions:
|
|
213
219
|
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
|
214
220
|
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"}]}'
|
215
221
|
http_version:
|
216
|
-
recorded_at:
|
222
|
+
recorded_at: Sat, 13 Sep 2014 00:07:43 GMT
|
217
223
|
- request:
|
218
224
|
method: get
|
219
|
-
uri: https://
|
225
|
+
uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/teachers
|
220
226
|
body:
|
221
227
|
encoding: US-ASCII
|
222
228
|
string: ''
|
@@ -225,6 +231,8 @@ http_interactions:
|
|
225
231
|
- ! '*/*; q=0.5, application/xml'
|
226
232
|
Accept-Encoding:
|
227
233
|
- gzip, deflate
|
234
|
+
Authorization:
|
235
|
+
- Bearer DEMO_TOKEN
|
228
236
|
User-Agent:
|
229
237
|
- Ruby
|
230
238
|
response:
|
@@ -241,7 +249,7 @@ http_interactions:
|
|
241
249
|
Content-Type:
|
242
250
|
- application/json; charset=utf-8
|
243
251
|
Date:
|
244
|
-
-
|
252
|
+
- Sat, 13 Sep 2014 00:07:44 GMT
|
245
253
|
Etag:
|
246
254
|
- ! '"-1659229539"'
|
247
255
|
Server:
|
@@ -345,5 +353,5 @@ http_interactions:
|
|
345
353
|
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
|
346
354
|
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"}]}'
|
347
355
|
http_version:
|
348
|
-
recorded_at:
|
349
|
-
recorded_with: VCR 2.
|
356
|
+
recorded_at: Sat, 13 Sep 2014 00:07:44 GMT
|
357
|
+
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/schools
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:07:53 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1408105812"'
|
33
35
|
Server:
|
@@ -51,10 +53,10 @@ http_interactions:
|
|
51
53
|
Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
|
52
54
|
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
55
|
http_version:
|
54
|
-
recorded_at:
|
56
|
+
recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
|
55
57
|
- request:
|
56
58
|
method: get
|
57
|
-
uri: https://
|
59
|
+
uri: https://api.clever.com/v1.1/schools/530e595026403103360ff9fd
|
58
60
|
body:
|
59
61
|
encoding: US-ASCII
|
60
62
|
string: ''
|
@@ -63,6 +65,8 @@ http_interactions:
|
|
63
65
|
- ! '*/*; q=0.5, application/xml'
|
64
66
|
Accept-Encoding:
|
65
67
|
- gzip, deflate
|
68
|
+
Authorization:
|
69
|
+
- Bearer DEMO_TOKEN
|
66
70
|
User-Agent:
|
67
71
|
- Ruby
|
68
72
|
response:
|
@@ -79,7 +83,7 @@ http_interactions:
|
|
79
83
|
Content-Type:
|
80
84
|
- application/json; charset=utf-8
|
81
85
|
Date:
|
82
|
-
-
|
86
|
+
- Sat, 13 Sep 2014 00:07:53 GMT
|
83
87
|
Server:
|
84
88
|
- nginx/1.4.7
|
85
89
|
X-Powered-By:
|
@@ -95,10 +99,10 @@ http_interactions:
|
|
95
99
|
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
96
100
|
Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd"},{"rel":"district","uri":"/v1.1/schools/530e595026403103360ff9fd/district"},{"rel":"teachers","uri":"/v1.1/schools/530e595026403103360ff9fd/teachers"},{"rel":"students","uri":"/v1.1/schools/530e595026403103360ff9fd/students"},{"rel":"sections","uri":"/v1.1/schools/530e595026403103360ff9fd/sections"},{"rel":"events","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
|
97
101
|
http_version:
|
98
|
-
recorded_at:
|
102
|
+
recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
|
99
103
|
- request:
|
100
104
|
method: get
|
101
|
-
uri: https://
|
105
|
+
uri: https://api.clever.com//v1.1/schools/530e595026403103360ff9fd/district
|
102
106
|
body:
|
103
107
|
encoding: US-ASCII
|
104
108
|
string: ''
|
@@ -107,6 +111,8 @@ http_interactions:
|
|
107
111
|
- ! '*/*; q=0.5, application/xml'
|
108
112
|
Accept-Encoding:
|
109
113
|
- gzip, deflate
|
114
|
+
Authorization:
|
115
|
+
- Bearer DEMO_TOKEN
|
110
116
|
User-Agent:
|
111
117
|
- Ruby
|
112
118
|
response:
|
@@ -123,7 +129,7 @@ http_interactions:
|
|
123
129
|
Content-Type:
|
124
130
|
- application/json; charset=utf-8
|
125
131
|
Date:
|
126
|
-
-
|
132
|
+
- Sat, 13 Sep 2014 00:07:53 GMT
|
127
133
|
Server:
|
128
134
|
- nginx/1.4.7
|
129
135
|
X-Powered-By:
|
@@ -136,5 +142,5 @@ http_interactions:
|
|
136
142
|
encoding: US-ASCII
|
137
143
|
string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"}]}'
|
138
144
|
http_version:
|
139
|
-
recorded_at:
|
140
|
-
recorded_with: VCR 2.
|
145
|
+
recorded_at: Sat, 13 Sep 2014 00:07:53 GMT
|
146
|
+
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/schools
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:07:35 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1408105812"'
|
33
35
|
Server:
|
@@ -51,10 +53,10 @@ http_interactions:
|
|
51
53
|
Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
|
52
54
|
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
55
|
http_version:
|
54
|
-
recorded_at:
|
56
|
+
recorded_at: Sat, 13 Sep 2014 00:07:35 GMT
|
55
57
|
- request:
|
56
58
|
method: get
|
57
|
-
uri: https://
|
59
|
+
uri: https://api.clever.com/v1.1/schools/530e595026403103360ff9fd
|
58
60
|
body:
|
59
61
|
encoding: US-ASCII
|
60
62
|
string: ''
|
@@ -63,6 +65,8 @@ http_interactions:
|
|
63
65
|
- ! '*/*; q=0.5, application/xml'
|
64
66
|
Accept-Encoding:
|
65
67
|
- gzip, deflate
|
68
|
+
Authorization:
|
69
|
+
- Bearer DEMO_TOKEN
|
66
70
|
User-Agent:
|
67
71
|
- Ruby
|
68
72
|
response:
|
@@ -79,7 +83,7 @@ http_interactions:
|
|
79
83
|
Content-Type:
|
80
84
|
- application/json; charset=utf-8
|
81
85
|
Date:
|
82
|
-
-
|
86
|
+
- Sat, 13 Sep 2014 00:07:36 GMT
|
83
87
|
Server:
|
84
88
|
- nginx/1.4.7
|
85
89
|
X-Powered-By:
|
@@ -95,10 +99,10 @@ http_interactions:
|
|
95
99
|
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
96
100
|
Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd"},{"rel":"district","uri":"/v1.1/schools/530e595026403103360ff9fd/district"},{"rel":"teachers","uri":"/v1.1/schools/530e595026403103360ff9fd/teachers"},{"rel":"students","uri":"/v1.1/schools/530e595026403103360ff9fd/students"},{"rel":"sections","uri":"/v1.1/schools/530e595026403103360ff9fd/sections"},{"rel":"events","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
|
97
101
|
http_version:
|
98
|
-
recorded_at:
|
102
|
+
recorded_at: Sat, 13 Sep 2014 00:07:36 GMT
|
99
103
|
- request:
|
100
104
|
method: get
|
101
|
-
uri: https://
|
105
|
+
uri: https://api.clever.com//v1.1/schools/530e595026403103360ff9fd/events
|
102
106
|
body:
|
103
107
|
encoding: US-ASCII
|
104
108
|
string: ''
|
@@ -107,6 +111,8 @@ http_interactions:
|
|
107
111
|
- ! '*/*; q=0.5, application/xml'
|
108
112
|
Accept-Encoding:
|
109
113
|
- gzip, deflate
|
114
|
+
Authorization:
|
115
|
+
- Bearer DEMO_TOKEN
|
110
116
|
User-Agent:
|
111
117
|
- Ruby
|
112
118
|
response:
|
@@ -123,7 +129,7 @@ http_interactions:
|
|
123
129
|
Content-Type:
|
124
130
|
- application/json; charset=utf-8
|
125
131
|
Date:
|
126
|
-
-
|
132
|
+
- Sat, 13 Sep 2014 00:07:36 GMT
|
127
133
|
Server:
|
128
134
|
- nginx/1.4.7
|
129
135
|
X-Powered-By:
|
@@ -136,10 +142,10 @@ http_interactions:
|
|
136
142
|
encoding: US-ASCII
|
137
143
|
string: ! '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
|
138
144
|
http_version:
|
139
|
-
recorded_at:
|
145
|
+
recorded_at: Sat, 13 Sep 2014 00:07:36 GMT
|
140
146
|
- request:
|
141
147
|
method: get
|
142
|
-
uri: https://
|
148
|
+
uri: https://api.clever.com//v1.1/schools/530e595026403103360ff9fd/events
|
143
149
|
body:
|
144
150
|
encoding: US-ASCII
|
145
151
|
string: ''
|
@@ -148,6 +154,8 @@ http_interactions:
|
|
148
154
|
- ! '*/*; q=0.5, application/xml'
|
149
155
|
Accept-Encoding:
|
150
156
|
- gzip, deflate
|
157
|
+
Authorization:
|
158
|
+
- Bearer DEMO_TOKEN
|
151
159
|
User-Agent:
|
152
160
|
- Ruby
|
153
161
|
response:
|
@@ -164,7 +172,7 @@ http_interactions:
|
|
164
172
|
Content-Type:
|
165
173
|
- application/json; charset=utf-8
|
166
174
|
Date:
|
167
|
-
-
|
175
|
+
- Sat, 13 Sep 2014 00:07:36 GMT
|
168
176
|
Server:
|
169
177
|
- nginx/1.4.7
|
170
178
|
X-Powered-By:
|
@@ -177,5 +185,5 @@ http_interactions:
|
|
177
185
|
encoding: US-ASCII
|
178
186
|
string: ! '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
|
179
187
|
http_version:
|
180
|
-
recorded_at:
|
181
|
-
recorded_with: VCR 2.
|
188
|
+
recorded_at: Sat, 13 Sep 2014 00:07:36 GMT
|
189
|
+
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/schools
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:07:50 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1408105812"'
|
33
35
|
Server:
|
@@ -51,10 +53,10 @@ http_interactions:
|
|
51
53
|
Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
|
52
54
|
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
55
|
http_version:
|
54
|
-
recorded_at:
|
56
|
+
recorded_at: Sat, 13 Sep 2014 00:07:50 GMT
|
55
57
|
- request:
|
56
58
|
method: get
|
57
|
-
uri: https://
|
59
|
+
uri: https://api.clever.com/v1.1/schools/530e595026403103360ff9fd
|
58
60
|
body:
|
59
61
|
encoding: US-ASCII
|
60
62
|
string: ''
|
@@ -63,6 +65,8 @@ http_interactions:
|
|
63
65
|
- ! '*/*; q=0.5, application/xml'
|
64
66
|
Accept-Encoding:
|
65
67
|
- gzip, deflate
|
68
|
+
Authorization:
|
69
|
+
- Bearer DEMO_TOKEN
|
66
70
|
User-Agent:
|
67
71
|
- Ruby
|
68
72
|
response:
|
@@ -79,7 +83,7 @@ http_interactions:
|
|
79
83
|
Content-Type:
|
80
84
|
- application/json; charset=utf-8
|
81
85
|
Date:
|
82
|
-
-
|
86
|
+
- Sat, 13 Sep 2014 00:07:50 GMT
|
83
87
|
Server:
|
84
88
|
- nginx/1.4.7
|
85
89
|
X-Powered-By:
|
@@ -95,10 +99,10 @@ http_interactions:
|
|
95
99
|
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
96
100
|
Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd"},{"rel":"district","uri":"/v1.1/schools/530e595026403103360ff9fd/district"},{"rel":"teachers","uri":"/v1.1/schools/530e595026403103360ff9fd/teachers"},{"rel":"students","uri":"/v1.1/schools/530e595026403103360ff9fd/students"},{"rel":"sections","uri":"/v1.1/schools/530e595026403103360ff9fd/sections"},{"rel":"events","uri":"/v1.1/schools/530e595026403103360ff9fd/events"}]}'
|
97
101
|
http_version:
|
98
|
-
recorded_at:
|
102
|
+
recorded_at: Sat, 13 Sep 2014 00:07:50 GMT
|
99
103
|
- request:
|
100
104
|
method: get
|
101
|
-
uri: https://
|
105
|
+
uri: https://api.clever.com//v1.1/schools/530e595026403103360ff9fd/sections
|
102
106
|
body:
|
103
107
|
encoding: US-ASCII
|
104
108
|
string: ''
|
@@ -107,6 +111,8 @@ http_interactions:
|
|
107
111
|
- ! '*/*; q=0.5, application/xml'
|
108
112
|
Accept-Encoding:
|
109
113
|
- gzip, deflate
|
114
|
+
Authorization:
|
115
|
+
- Bearer DEMO_TOKEN
|
110
116
|
User-Agent:
|
111
117
|
- Ruby
|
112
118
|
response:
|
@@ -123,7 +129,7 @@ http_interactions:
|
|
123
129
|
Content-Type:
|
124
130
|
- application/json; charset=utf-8
|
125
131
|
Date:
|
126
|
-
-
|
132
|
+
- Sat, 13 Sep 2014 00:07:51 GMT
|
127
133
|
Etag:
|
128
134
|
- ! '"2001655923"'
|
129
135
|
Server:
|
@@ -396,10 +402,10 @@ http_interactions:
|
|
396
402
|
901, Homeroom","course_number":"901","created":"2014-02-26T21:15:38.624Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.626Z","name":"Class
|
397
403
|
901, Homeroom - 901 - B. Glover (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"744","students":["530e5960049e75a9262cff3c","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cffa2","530e5961049e75a9262cfffb","530e5961049e75a9262d0034","530e5961049e75a9262d0038","530e5961049e75a9262d0062","530e5961049e75a9262d0089","530e5961049e75a9262d008f","530e5962049e75a9262d00b7","530e5962049e75a9262d00e6","530e5962049e75a9262d0110","530e5962049e75a9262d015f","530e5962049e75a9262d0174","530e5963049e75a9262d01db","530e5963049e75a9262d01f8","530e5963049e75a9262d020f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02d3","530e5965049e75a9262d034f","530e5965049e75a9262d036c","530e5966049e75a9262d042b","530e5966049e75a9262d046a","530e5966049e75a9262d048d","530e5966049e75a9262d0495","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d4","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d063c"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112bef","term":{"name":"Y1","start_date":"2012-08-01T00:00:00.000Z","end_date":"2013-06-01T00:00:00.000Z"},"id":"530e597a049e75a9262d0b94"},"uri":"/v1.1/sections/530e597a049e75a9262d0b94"}],"paging":{"current":1,"total":2,"count":178},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/sections"},{"rel":"next","uri":"/v1.1/schools/530e595026403103360ff9fd/sections?starting_after=530e597a049e75a9262d0b94"}]}'
|
398
404
|
http_version:
|
399
|
-
recorded_at:
|
405
|
+
recorded_at: Sat, 13 Sep 2014 00:07:51 GMT
|
400
406
|
- request:
|
401
407
|
method: get
|
402
|
-
uri: https://
|
408
|
+
uri: https://api.clever.com//v1.1/schools/530e595026403103360ff9fd/sections?starting_after=530e597a049e75a9262d0b94
|
403
409
|
body:
|
404
410
|
encoding: US-ASCII
|
405
411
|
string: ''
|
@@ -408,6 +414,8 @@ http_interactions:
|
|
408
414
|
- ! '*/*; q=0.5, application/xml'
|
409
415
|
Accept-Encoding:
|
410
416
|
- gzip, deflate
|
417
|
+
Authorization:
|
418
|
+
- Bearer DEMO_TOKEN
|
411
419
|
User-Agent:
|
412
420
|
- Ruby
|
413
421
|
response:
|
@@ -424,7 +432,7 @@ http_interactions:
|
|
424
432
|
Content-Type:
|
425
433
|
- application/json; charset=utf-8
|
426
434
|
Date:
|
427
|
-
-
|
435
|
+
- Sat, 13 Sep 2014 00:07:51 GMT
|
428
436
|
Etag:
|
429
437
|
- ! '"850835071"'
|
430
438
|
Server:
|
@@ -605,10 +613,10 @@ http_interactions:
|
|
605
613
|
to Visual Arts - 100 - R. Plant","period":"1","school":"530e595026403103360ff9fd","sis_id":"960","students":["530e5960049e75a9262cff3c","530e5961049e75a9262cffcd","530e5961049e75a9262d001a","530e5961049e75a9262d0038","530e5961049e75a9262d0048","530e5961049e75a9262d0085","530e5962049e75a9262d00e8","530e5962049e75a9262d015f","530e5963049e75a9262d01a2","530e5963049e75a9262d022f","530e5964049e75a9262d02d3","530e5965049e75a9262d0325","530e5966049e75a9262d04d7","530e5967049e75a9262d0501","530e5967049e75a9262d052d","530e5967049e75a9262d05b5","530e5967049e75a9262d05be","530e5968049e75a9262d05cb","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"arts
|
606
614
|
and music","teacher":"530e5955d50c310f36112c09","term":{"name":"Y1","start_date":"2012-08-01T00:00:00.000Z","end_date":"2013-06-01T00:00:00.000Z"},"id":"530e597b049e75a9262d0c6c"},"uri":"/v1.1/sections/530e597b049e75a9262d0c6c"}],"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/sections?starting_after=530e597a049e75a9262d0b94"},{"rel":"prev","uri":"/v1.1/schools/530e595026403103360ff9fd/sections?ending_before=530e597a049e75a9262d0b95"}]}'
|
607
615
|
http_version:
|
608
|
-
recorded_at:
|
616
|
+
recorded_at: Sat, 13 Sep 2014 00:07:51 GMT
|
609
617
|
- request:
|
610
618
|
method: get
|
611
|
-
uri: https://
|
619
|
+
uri: https://api.clever.com//v1.1/schools/530e595026403103360ff9fd/sections
|
612
620
|
body:
|
613
621
|
encoding: US-ASCII
|
614
622
|
string: ''
|
@@ -617,6 +625,8 @@ http_interactions:
|
|
617
625
|
- ! '*/*; q=0.5, application/xml'
|
618
626
|
Accept-Encoding:
|
619
627
|
- gzip, deflate
|
628
|
+
Authorization:
|
629
|
+
- Bearer DEMO_TOKEN
|
620
630
|
User-Agent:
|
621
631
|
- Ruby
|
622
632
|
response:
|
@@ -633,7 +643,7 @@ http_interactions:
|
|
633
643
|
Content-Type:
|
634
644
|
- application/json; charset=utf-8
|
635
645
|
Date:
|
636
|
-
-
|
646
|
+
- Sat, 13 Sep 2014 00:07:51 GMT
|
637
647
|
Etag:
|
638
648
|
- ! '"2001655923"'
|
639
649
|
Server:
|
@@ -906,10 +916,10 @@ http_interactions:
|
|
906
916
|
901, Homeroom","course_number":"901","created":"2014-02-26T21:15:38.624Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.626Z","name":"Class
|
907
917
|
901, Homeroom - 901 - B. Glover (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"744","students":["530e5960049e75a9262cff3c","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cffa2","530e5961049e75a9262cfffb","530e5961049e75a9262d0034","530e5961049e75a9262d0038","530e5961049e75a9262d0062","530e5961049e75a9262d0089","530e5961049e75a9262d008f","530e5962049e75a9262d00b7","530e5962049e75a9262d00e6","530e5962049e75a9262d0110","530e5962049e75a9262d015f","530e5962049e75a9262d0174","530e5963049e75a9262d01db","530e5963049e75a9262d01f8","530e5963049e75a9262d020f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02d3","530e5965049e75a9262d034f","530e5965049e75a9262d036c","530e5966049e75a9262d042b","530e5966049e75a9262d046a","530e5966049e75a9262d048d","530e5966049e75a9262d0495","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d4","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d063c"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112bef","term":{"name":"Y1","start_date":"2012-08-01T00:00:00.000Z","end_date":"2013-06-01T00:00:00.000Z"},"id":"530e597a049e75a9262d0b94"},"uri":"/v1.1/sections/530e597a049e75a9262d0b94"}],"paging":{"current":1,"total":2,"count":178},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/sections"},{"rel":"next","uri":"/v1.1/schools/530e595026403103360ff9fd/sections?starting_after=530e597a049e75a9262d0b94"}]}'
|
908
918
|
http_version:
|
909
|
-
recorded_at:
|
919
|
+
recorded_at: Sat, 13 Sep 2014 00:07:51 GMT
|
910
920
|
- request:
|
911
921
|
method: get
|
912
|
-
uri: https://
|
922
|
+
uri: https://api.clever.com//v1.1/schools/530e595026403103360ff9fd/sections?starting_after=530e597a049e75a9262d0b94
|
913
923
|
body:
|
914
924
|
encoding: US-ASCII
|
915
925
|
string: ''
|
@@ -918,6 +928,8 @@ http_interactions:
|
|
918
928
|
- ! '*/*; q=0.5, application/xml'
|
919
929
|
Accept-Encoding:
|
920
930
|
- gzip, deflate
|
931
|
+
Authorization:
|
932
|
+
- Bearer DEMO_TOKEN
|
921
933
|
User-Agent:
|
922
934
|
- Ruby
|
923
935
|
response:
|
@@ -934,7 +946,7 @@ http_interactions:
|
|
934
946
|
Content-Type:
|
935
947
|
- application/json; charset=utf-8
|
936
948
|
Date:
|
937
|
-
-
|
949
|
+
- Sat, 13 Sep 2014 00:07:52 GMT
|
938
950
|
Etag:
|
939
951
|
- ! '"850835071"'
|
940
952
|
Server:
|
@@ -1115,5 +1127,5 @@ http_interactions:
|
|
1115
1127
|
to Visual Arts - 100 - R. Plant","period":"1","school":"530e595026403103360ff9fd","sis_id":"960","students":["530e5960049e75a9262cff3c","530e5961049e75a9262cffcd","530e5961049e75a9262d001a","530e5961049e75a9262d0038","530e5961049e75a9262d0048","530e5961049e75a9262d0085","530e5962049e75a9262d00e8","530e5962049e75a9262d015f","530e5963049e75a9262d01a2","530e5963049e75a9262d022f","530e5964049e75a9262d02d3","530e5965049e75a9262d0325","530e5966049e75a9262d04d7","530e5967049e75a9262d0501","530e5967049e75a9262d052d","530e5967049e75a9262d05b5","530e5967049e75a9262d05be","530e5968049e75a9262d05cb","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"arts
|
1116
1128
|
and music","teacher":"530e5955d50c310f36112c09","term":{"name":"Y1","start_date":"2012-08-01T00:00:00.000Z","end_date":"2013-06-01T00:00:00.000Z"},"id":"530e597b049e75a9262d0c6c"},"uri":"/v1.1/sections/530e597b049e75a9262d0c6c"}],"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd/sections?starting_after=530e597a049e75a9262d0b94"},{"rel":"prev","uri":"/v1.1/schools/530e595026403103360ff9fd/sections?ending_before=530e597a049e75a9262d0b95"}]}'
|
1117
1129
|
http_version:
|
1118
|
-
recorded_at:
|
1119
|
-
recorded_with: VCR 2.
|
1130
|
+
recorded_at: Sat, 13 Sep 2014 00:07:52 GMT
|
1131
|
+
recorded_with: VCR 2.9.3
|