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/students?limit=20
|
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:02:47 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"-2093033185"'
|
33
35
|
Server:
|
@@ -56,10 +58,10 @@ http_interactions:
|
|
56
58
|
or More Races","school":"530e595026403103360ff9fd","sis_id":"115115824","state_id":"761459009","student_number":"115115824","id":"530e5960049e75a9262cff2f"},"uri":"/v1.1/students/530e5960049e75a9262cff2f"},{"data":{"created":"2014-02-26T21:15:12.473Z","credentials":{"district_username":"arleneh66","district_password":"ak0yahReesie"},"district":"4fd43cc56d11340000000005","dob":"11/26/2002","ell_status":"Y","email":"h.arlene@example.net","frl_status":"Paid","gender":"F","grade":"5","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.735Z","location":{"zip":"11206"},"name":{"first":"Arlene","middle":"K","last":"Huels"},"race":"Asian","school":"530e595026403103360ff9fe","sis_id":"118346066","state_id":"483748383","student_number":"118346066","id":"530e5960049e75a9262cff33"},"uri":"/v1.1/students/530e5960049e75a9262cff33"},{"data":{"created":"2014-02-26T21:15:12.486Z","credentials":{"district_username":"daniloc44","district_password":"ooph8aiLe"},"district":"4fd43cc56d11340000000005","dob":"11/16/1999","ell_status":"Y","email":"danilo_c@example.com","frl_status":"Paid","gender":"M","grade":"8","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.741Z","location":{"zip":"10456"},"name":{"first":"Danilo","middle":"S","last":"Carter"},"race":"Caucasian","school":"530e595026403103360ff9ff","sis_id":"119227044","state_id":"320059203","student_number":"119227044","id":"530e5960049e75a9262cff37"},"uri":"/v1.1/students/530e5960049e75a9262cff37"},{"data":{"created":"2014-02-26T21:15:12.492Z","credentials":{"district_username":"shawnw68","district_password":"nuY3yaeY9Lei"},"district":"4fd43cc56d11340000000005","dob":"3/11/1997","ell_status":"N","email":"shawn_w@example.org","frl_status":"Paid","gender":"M","grade":"10","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.745Z","location":{"zip":"10303"},"name":{"first":"Shawn","middle":"S","last":"Willms"},"race":"Black
|
57
59
|
or African American","school":"530e595026403103360ff9fd","sis_id":"119477368","state_id":"852618443","student_number":"119477368","id":"530e5960049e75a9262cff39"},"uri":"/v1.1/students/530e5960049e75a9262cff39"},{"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"},"uri":"/v1.1/students/530e5960049e75a9262cff3c"}],"paging":{"current":1,"total":51,"count":1004},"links":[{"rel":"self","uri":"/v1.1/students?limit=20"},{"rel":"next","uri":"/v1.1/students?limit=20&starting_after=530e5960049e75a9262cff3c"}]}'
|
58
60
|
http_version:
|
59
|
-
recorded_at:
|
61
|
+
recorded_at: Sat, 13 Sep 2014 00:02:47 GMT
|
60
62
|
- request:
|
61
63
|
method: get
|
62
|
-
uri: https://
|
64
|
+
uri: https://api.clever.com/v1.1/students?where=%7B%22_id%22:%7B%22$in%22:%5B%22530e5960049e75a9262cff1d%22,%22530e5960049e75a9262cff1f%22,%22530e5960049e75a9262cff21%22,%22530e5960049e75a9262cff23%22,%22530e5960049e75a9262cff25%22,%22530e5960049e75a9262cff27%22,%22530e5960049e75a9262cff29%22,%22530e5960049e75a9262cff2d%22,%22530e5960049e75a9262cff33%22,%22530e5960049e75a9262cff39%22%5D%7D%7D
|
63
65
|
body:
|
64
66
|
encoding: US-ASCII
|
65
67
|
string: ''
|
@@ -68,6 +70,8 @@ http_interactions:
|
|
68
70
|
- ! '*/*; q=0.5, application/xml'
|
69
71
|
Accept-Encoding:
|
70
72
|
- gzip, deflate
|
73
|
+
Authorization:
|
74
|
+
- Bearer DEMO_TOKEN
|
71
75
|
User-Agent:
|
72
76
|
- Ruby
|
73
77
|
response:
|
@@ -84,7 +88,7 @@ http_interactions:
|
|
84
88
|
Content-Type:
|
85
89
|
- application/json; charset=utf-8
|
86
90
|
Date:
|
87
|
-
-
|
91
|
+
- Sat, 13 Sep 2014 00:02:47 GMT
|
88
92
|
Etag:
|
89
93
|
- ! '"456977829"'
|
90
94
|
Server:
|
@@ -107,5 +111,5 @@ http_interactions:
|
|
107
111
|
or African American","school":"530e595026403103360ff9ff","sis_id":"114766758","state_id":"361263052","student_number":"114766758","id":"530e5960049e75a9262cff29"},"uri":"/v1.1/students/530e5960049e75a9262cff29"},{"data":{"created":"2014-02-26T21:15:12.454Z","credentials":{"district_username":"maryr27","district_password":"ohVie2aeD"},"district":"4fd43cc56d11340000000005","dob":"9/30/2003","ell_status":"N","email":"mary_r@example.net","frl_status":"Paid","gender":"F","grade":"4","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.728Z","location":{"zip":"10038"},"name":{"first":"Mary","middle":"L","last":"Ryan"},"race":"Asian","school":"530e595026403103360ff9fe","sis_id":"115088927","state_id":"155063237","student_number":"115088927","id":"530e5960049e75a9262cff2d"},"uri":"/v1.1/students/530e5960049e75a9262cff2d"},{"data":{"created":"2014-02-26T21:15:12.473Z","credentials":{"district_username":"arleneh66","district_password":"ak0yahReesie"},"district":"4fd43cc56d11340000000005","dob":"11/26/2002","ell_status":"Y","email":"h.arlene@example.net","frl_status":"Paid","gender":"F","grade":"5","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.735Z","location":{"zip":"11206"},"name":{"first":"Arlene","middle":"K","last":"Huels"},"race":"Asian","school":"530e595026403103360ff9fe","sis_id":"118346066","state_id":"483748383","student_number":"118346066","id":"530e5960049e75a9262cff33"},"uri":"/v1.1/students/530e5960049e75a9262cff33"},{"data":{"created":"2014-02-26T21:15:12.492Z","credentials":{"district_username":"shawnw68","district_password":"nuY3yaeY9Lei"},"district":"4fd43cc56d11340000000005","dob":"3/11/1997","ell_status":"N","email":"shawn_w@example.org","frl_status":"Paid","gender":"M","grade":"10","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:40.745Z","location":{"zip":"10303"},"name":{"first":"Shawn","middle":"S","last":"Willms"},"race":"Black
|
108
112
|
or African American","school":"530e595026403103360ff9fd","sis_id":"119477368","state_id":"852618443","student_number":"119477368","id":"530e5960049e75a9262cff39"},"uri":"/v1.1/students/530e5960049e75a9262cff39"}],"paging":{"current":1,"total":1,"count":10},"links":[{"rel":"self","uri":"/v1.1/students?where=%7B%22_id%22:%7B%22$in%22:[%22530e5960049e75a9262cff1d%22,%22530e5960049e75a9262cff1f%22,%22530e5960049e75a9262cff21%22,%22530e5960049e75a9262cff23%22,%22530e5960049e75a9262cff25%22,%22530e5960049e75a9262cff27%22,%22530e5960049e75a9262cff29%22,%22530e5960049e75a9262cff2d%22,%22530e5960049e75a9262cff33%22,%22530e5960049e75a9262cff39%22]%7D%7D"}]}'
|
109
113
|
http_version:
|
110
|
-
recorded_at:
|
111
|
-
recorded_with: VCR 2.
|
114
|
+
recorded_at: Sat, 13 Sep 2014 00:02:47 GMT
|
115
|
+
recorded_with: VCR 2.9.3
|
data/test/data/vcr_cassettes/{teachers.yml → Clever_APIOperations_List/finds_teachers_by_page.yml}
RENAMED
@@ -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/teachers
|
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:05:06 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"-409931571"'
|
33
35
|
Server:
|
@@ -131,10 +133,10 @@ http_interactions:
|
|
131
133
|
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
|
132
134
|
School Drama Teacher","id":"530e5955d50c310f36112c19"},"uri":"/v1.1/teachers/530e5955d50c310f36112c19"}],"paging":{"current":1,"total":1,"count":89},"links":[{"rel":"self","uri":"/v1.1/teachers"}]}'
|
133
135
|
http_version:
|
134
|
-
recorded_at:
|
136
|
+
recorded_at: Sat, 13 Sep 2014 00:05:06 GMT
|
135
137
|
- request:
|
136
138
|
method: get
|
137
|
-
uri: https://
|
139
|
+
uri: https://api.clever.com/v1.1/teachers?count=true
|
138
140
|
body:
|
139
141
|
encoding: US-ASCII
|
140
142
|
string: ''
|
@@ -143,6 +145,8 @@ http_interactions:
|
|
143
145
|
- ! '*/*; q=0.5, application/xml'
|
144
146
|
Accept-Encoding:
|
145
147
|
- gzip, deflate
|
148
|
+
Authorization:
|
149
|
+
- Bearer DEMO_TOKEN
|
146
150
|
User-Agent:
|
147
151
|
- Ruby
|
148
152
|
response:
|
@@ -159,7 +163,7 @@ http_interactions:
|
|
159
163
|
Content-Type:
|
160
164
|
- application/json; charset=utf-8
|
161
165
|
Date:
|
162
|
-
-
|
166
|
+
- Sat, 13 Sep 2014 00:05:06 GMT
|
163
167
|
Server:
|
164
168
|
- nginx/1.4.7
|
165
169
|
X-Powered-By:
|
@@ -172,5 +176,5 @@ http_interactions:
|
|
172
176
|
encoding: US-ASCII
|
173
177
|
string: ! '{"count":89,"links":[{"rel":"self","uri":"/v1.1/teachers?count=true"}]}'
|
174
178
|
http_version:
|
175
|
-
recorded_at:
|
176
|
-
recorded_with: VCR 2.
|
179
|
+
recorded_at: Sat, 13 Sep 2014 00:05:06 GMT
|
180
|
+
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/teachers?limit=20
|
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:05:05 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"-327461194"'
|
33
35
|
Server:
|
@@ -62,10 +64,10 @@ http_interactions:
|
|
62
64
|
5 Common Branch Teacher","id":"530e5955d50c310f36112bd3"},"uri":"/v1.1/teachers/530e5955d50c310f36112bd3"},{"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
|
63
65
|
5 Common Branch Teacher","id":"530e5955d50c310f36112bd4"},"uri":"/v1.1/teachers/530e5955d50c310f36112bd4"}],"paging":{"current":1,"total":5,"count":89},"links":[{"rel":"self","uri":"/v1.1/teachers?limit=20"},{"rel":"next","uri":"/v1.1/teachers?limit=20&starting_after=530e5955d50c310f36112bd4"}]}'
|
64
66
|
http_version:
|
65
|
-
recorded_at:
|
67
|
+
recorded_at: Sat, 13 Sep 2014 00:05:05 GMT
|
66
68
|
- request:
|
67
69
|
method: get
|
68
|
-
uri: https://
|
70
|
+
uri: https://api.clever.com/v1.1/teachers?where=%7B%22_id%22:%7B%22$in%22:%5B%22509fbd7ec474fab64a8e9d53%22,%2250ba1c0c4eda5d94372227eb%22,%2250c20477987eda0d3d02d30e%22,%2250c4a79299ad702e0228e956%22,%2250c89ff19ed67a1d3f1f50c9%22,%22530e5955d50c310f36112bcb%22,%22530e5955d50c310f36112bcd%22,%22530e5955d50c310f36112bcf%22,%22530e5955d50c310f36112bd1%22,%22530e5955d50c310f36112bd3%22%5D%7D%7D
|
69
71
|
body:
|
70
72
|
encoding: US-ASCII
|
71
73
|
string: ''
|
@@ -74,6 +76,8 @@ http_interactions:
|
|
74
76
|
- ! '*/*; q=0.5, application/xml'
|
75
77
|
Accept-Encoding:
|
76
78
|
- gzip, deflate
|
79
|
+
Authorization:
|
80
|
+
- Bearer DEMO_TOKEN
|
77
81
|
User-Agent:
|
78
82
|
- Ruby
|
79
83
|
response:
|
@@ -90,7 +94,7 @@ http_interactions:
|
|
90
94
|
Content-Type:
|
91
95
|
- application/json; charset=utf-8
|
92
96
|
Date:
|
93
|
-
-
|
97
|
+
- Sat, 13 Sep 2014 00:05:05 GMT
|
94
98
|
Etag:
|
95
99
|
- ! '"-500104801"'
|
96
100
|
Server:
|
@@ -115,5 +119,5 @@ http_interactions:
|
|
115
119
|
School Science Teacher","id":"530e5955d50c310f36112bd1"},"uri":"/v1.1/teachers/530e5955d50c310f36112bd1"},{"data":{"created":"2014-02-26T21:15:01.121Z","credentials":{"district_username":"marley_walsh","district_password":"aex5iSee"},"district":"4fd43cc56d11340000000005","email":"walsh_marley@example.org","last_modified":"2014-02-26T21:15:01.123Z","name":{"first":"Marley","middle":"K","last":"Walsh"},"school":"530e595026403103360ff9fe","sis_id":"18","teacher_number":"399452","title":"Grade
|
116
120
|
5 Common Branch Teacher","id":"530e5955d50c310f36112bd3"},"uri":"/v1.1/teachers/530e5955d50c310f36112bd3"}],"paging":{"current":1,"total":1,"count":10},"links":[{"rel":"self","uri":"/v1.1/teachers?where=%7B%22_id%22:%7B%22$in%22:[%22509fbd7ec474fab64a8e9d53%22,%2250ba1c0c4eda5d94372227eb%22,%2250c20477987eda0d3d02d30e%22,%2250c4a79299ad702e0228e956%22,%2250c89ff19ed67a1d3f1f50c9%22,%22530e5955d50c310f36112bcb%22,%22530e5955d50c310f36112bcd%22,%22530e5955d50c310f36112bcf%22,%22530e5955d50c310f36112bd1%22,%22530e5955d50c310f36112bd3%22]%7D%7D"}]}'
|
117
121
|
http_version:
|
118
|
-
recorded_at:
|
119
|
-
recorded_with: VCR 2.
|
122
|
+
recorded_at: Sat, 13 Sep 2014 00:05:05 GMT
|
123
|
+
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/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:02:47 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:02:47 GMT
|
44
46
|
- request:
|
45
47
|
method: get
|
46
|
-
uri: https://
|
48
|
+
uri: https://api.clever.com/v1.1/districts?count=true
|
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:03:47 GMT
|
72
76
|
Server:
|
73
77
|
- nginx/1.4.7
|
74
78
|
X-Powered-By:
|
@@ -81,5 +85,5 @@ http_interactions:
|
|
81
85
|
encoding: US-ASCII
|
82
86
|
string: ! '{"count":1,"links":[{"rel":"self","uri":"/v1.1/districts?count=true"}]}'
|
83
87
|
http_version:
|
84
|
-
recorded_at:
|
85
|
-
recorded_with: VCR 2.
|
88
|
+
recorded_at: Sat, 13 Sep 2014 00:03:47 GMT
|
89
|
+
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/events
|
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:05:02 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"-214069741"'
|
33
35
|
Server:
|
@@ -59,10 +61,10 @@ http_interactions:
|
|
59
61
|
Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
60
62
|
Science, Class 003 - 003 - J. Stark","period":"4","school":"530e595026403103360ff9fe","sis_id":"866","subject":"science","teacher":"50c20477987eda0d3d02d310","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffbe","530e5961049e75a9262cffc3","530e5961049e75a9262d0000","530e5961049e75a9262d0036","530e5961049e75a9262d0074","530e5962049e75a9262d00c5","530e5963049e75a9262d01fa","530e5964049e75a9262d027e","530e5964049e75a9262d02a8","530e5964049e75a9262d02ab","530e5964049e75a9262d02f7","530e5965049e75a9262d03b2","530e5965049e75a9262d03bf","530e5966049e75a9262d040a","530e5966049e75a9262d0449","530e5967049e75a9262d051b","530e5967049e75a9262d0565","530e5968049e75a9262d05f0","530e5968049e75a9262d061e","530e5968049e75a9262d0623"],"last_modified":"2014-02-26T21:15:39.195Z","created":"2014-02-26T21:15:39.193Z","id":"530e597b049e75a9262d0c12"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.088Z","id":"53ff6e6b322eced00200008e"},"uri":"/v1.1/events/53ff6e6b322eced00200008e"}],"paging":{"current":1,"total":1,"count":7},"links":[{"rel":"self","uri":"/v1.1/events"}]}'
|
61
63
|
http_version:
|
62
|
-
recorded_at:
|
64
|
+
recorded_at: Sat, 13 Sep 2014 00:05:02 GMT
|
63
65
|
- request:
|
64
66
|
method: get
|
65
|
-
uri: https://
|
67
|
+
uri: https://api.clever.com/v1.1/events?count=true
|
66
68
|
body:
|
67
69
|
encoding: US-ASCII
|
68
70
|
string: ''
|
@@ -71,6 +73,8 @@ http_interactions:
|
|
71
73
|
- ! '*/*; q=0.5, application/xml'
|
72
74
|
Accept-Encoding:
|
73
75
|
- gzip, deflate
|
76
|
+
Authorization:
|
77
|
+
- Bearer DEMO_TOKEN
|
74
78
|
User-Agent:
|
75
79
|
- Ruby
|
76
80
|
response:
|
@@ -87,7 +91,7 @@ http_interactions:
|
|
87
91
|
Content-Type:
|
88
92
|
- application/json; charset=utf-8
|
89
93
|
Date:
|
90
|
-
-
|
94
|
+
- Sat, 13 Sep 2014 00:05:02 GMT
|
91
95
|
Server:
|
92
96
|
- nginx/1.4.7
|
93
97
|
X-Powered-By:
|
@@ -100,5 +104,5 @@ http_interactions:
|
|
100
104
|
encoding: US-ASCII
|
101
105
|
string: ! '{"count":7,"links":[{"rel":"self","uri":"/v1.1/events?count=true"}]}'
|
102
106
|
http_version:
|
103
|
-
recorded_at:
|
104
|
-
recorded_with: VCR 2.
|
107
|
+
recorded_at: Sat, 13 Sep 2014 00:05:02 GMT
|
108
|
+
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:05:05 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:05:05 GMT
|
55
57
|
- request:
|
56
58
|
method: get
|
57
|
-
uri: https://
|
59
|
+
uri: https://api.clever.com/v1.1/schools?count=true
|
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:05:05 GMT
|
83
87
|
Server:
|
84
88
|
- nginx/1.4.7
|
85
89
|
X-Powered-By:
|
@@ -92,5 +96,5 @@ http_interactions:
|
|
92
96
|
encoding: US-ASCII
|
93
97
|
string: ! '{"count":3,"links":[{"rel":"self","uri":"/v1.1/schools?count=true"}]}'
|
94
98
|
http_version:
|
95
|
-
recorded_at:
|
96
|
-
recorded_with: VCR 2.
|
99
|
+
recorded_at: Sat, 13 Sep 2014 00:05:05 GMT
|
100
|
+
recorded_with: VCR 2.9.3
|
data/test/data/vcr_cassettes/{sections.yml → Clever_APIOperations_List/retrieves_all_section.yml}
RENAMED
@@ -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/sections
|
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:04:59 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1525695678"'
|
33
35
|
Server:
|
@@ -304,10 +306,10 @@ http_interactions:
|
|
304
306
|
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
|
305
307
|
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"}]}'
|
306
308
|
http_version:
|
307
|
-
recorded_at:
|
309
|
+
recorded_at: Sat, 13 Sep 2014 00:04:59 GMT
|
308
310
|
- request:
|
309
311
|
method: get
|
310
|
-
uri: https://
|
312
|
+
uri: https://api.clever.com//v1.1/sections?starting_after=530e597a049e75a9262d0b55
|
311
313
|
body:
|
312
314
|
encoding: US-ASCII
|
313
315
|
string: ''
|
@@ -316,6 +318,8 @@ http_interactions:
|
|
316
318
|
- ! '*/*; q=0.5, application/xml'
|
317
319
|
Accept-Encoding:
|
318
320
|
- gzip, deflate
|
321
|
+
Authorization:
|
322
|
+
- Bearer DEMO_TOKEN
|
319
323
|
User-Agent:
|
320
324
|
- Ruby
|
321
325
|
response:
|
@@ -332,7 +336,7 @@ http_interactions:
|
|
332
336
|
Content-Type:
|
333
337
|
- application/json; charset=utf-8
|
334
338
|
Date:
|
335
|
-
-
|
339
|
+
- Sat, 13 Sep 2014 00:05:00 GMT
|
336
340
|
Etag:
|
337
341
|
- ! '"-2141551314"'
|
338
342
|
Server:
|
@@ -563,10 +567,10 @@ http_interactions:
|
|
563
567
|
Class 602","course_number":"602","created":"2014-02-26T21:15:38.782Z","district":"4fd43cc56d11340000000005","grade":"6","last_modified":"2014-02-26T21:15:38.785Z","name":"Mathematics,
|
564
568
|
Class 602 - 602 - B. Goldner","period":"3","school":"530e595026403103360ff9ff","sis_id":"781","students":["530e5960049e75a9262cff4e","530e5961049e75a9262cffed","530e5961049e75a9262cfff5","530e5961049e75a9262d0009","530e5961049e75a9262d000f","530e5961049e75a9262d005e","530e5961049e75a9262d0083","530e5962049e75a9262d0098","530e5962049e75a9262d00a0","530e5962049e75a9262d00d4","530e5962049e75a9262d010b","530e5963049e75a9262d0220","530e5964049e75a9262d02b3","530e5964049e75a9262d02b8","530e5964049e75a9262d02f6","530e5965049e75a9262d034c","530e5965049e75a9262d0389","530e5965049e75a9262d03c5","530e5966049e75a9262d041e","530e5966049e75a9262d0494","530e5967049e75a9262d05ae","530e5967049e75a9262d05c4","530e5968049e75a9262d05d6","530e5968049e75a9262d05f3","530e5968049e75a9262d05ff","530e5968049e75a9262d060b"],"subject":"math","teacher":"530e5955d50c310f36112be0","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0bb9"},"uri":"/v1.1/sections/530e597a049e75a9262d0bb9"}],"links":[{"rel":"self","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0b55"},{"rel":"prev","uri":"/v1.1/sections?ending_before=530e597a049e75a9262d0b56"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0bb9"}]}'
|
565
569
|
http_version:
|
566
|
-
recorded_at:
|
570
|
+
recorded_at: Sat, 13 Sep 2014 00:05:00 GMT
|
567
571
|
- request:
|
568
572
|
method: get
|
569
|
-
uri: https://
|
573
|
+
uri: https://api.clever.com//v1.1/sections?starting_after=530e597a049e75a9262d0bb9
|
570
574
|
body:
|
571
575
|
encoding: US-ASCII
|
572
576
|
string: ''
|
@@ -575,6 +579,8 @@ http_interactions:
|
|
575
579
|
- ! '*/*; q=0.5, application/xml'
|
576
580
|
Accept-Encoding:
|
577
581
|
- gzip, deflate
|
582
|
+
Authorization:
|
583
|
+
- Bearer DEMO_TOKEN
|
578
584
|
User-Agent:
|
579
585
|
- Ruby
|
580
586
|
response:
|
@@ -591,7 +597,7 @@ http_interactions:
|
|
591
597
|
Content-Type:
|
592
598
|
- application/json; charset=utf-8
|
593
599
|
Date:
|
594
|
-
-
|
600
|
+
- Sat, 13 Sep 2014 00:05:00 GMT
|
595
601
|
Etag:
|
596
602
|
- ! '"-126630109"'
|
597
603
|
Server:
|
@@ -864,10 +870,10 @@ http_interactions:
|
|
864
870
|
Chemistry","course_number":"404","created":"2014-02-26T21:15:39.240Z","district":"4fd43cc56d11340000000005","grade":"12","last_modified":"2014-02-26T21:15:39.242Z","name":"AP
|
865
871
|
Chemistry - 404 - M. Kulas (Section 3)","period":"3","school":"530e595026403103360ff9fd","sis_id":"881","students":["530e5960049e75a9262cff52","530e5960049e75a9262cff67","530e5960049e75a9262cff6a","530e5961049e75a9262cffb7","530e5961049e75a9262d005b","530e5962049e75a9262d012c","530e5962049e75a9262d015b","530e5963049e75a9262d018b","530e5963049e75a9262d0209","530e5963049e75a9262d024a","530e5964049e75a9262d02ee","530e5965049e75a9262d0326","530e5965049e75a9262d0332","530e5965049e75a9262d0349","530e5965049e75a9262d0372","530e5966049e75a9262d0447","530e5967049e75a9262d04fa","530e5967049e75a9262d058c","530e5968049e75a9262d05dc","530e5968049e75a9262d063b"],"subject":"science","teacher":"530e5955d50c310f36112bd6","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597b049e75a9262d0c1d"},"uri":"/v1.1/sections/530e597b049e75a9262d0c1d"}],"links":[{"rel":"self","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0bb9"},{"rel":"prev","uri":"/v1.1/sections?ending_before=530e597a049e75a9262d0bba"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597b049e75a9262d0c1d"}]}'
|
866
872
|
http_version:
|
867
|
-
recorded_at:
|
873
|
+
recorded_at: Sat, 13 Sep 2014 00:05:00 GMT
|
868
874
|
- request:
|
869
875
|
method: get
|
870
|
-
uri: https://
|
876
|
+
uri: https://api.clever.com//v1.1/sections?starting_after=530e597b049e75a9262d0c1d
|
871
877
|
body:
|
872
878
|
encoding: US-ASCII
|
873
879
|
string: ''
|
@@ -876,6 +882,8 @@ http_interactions:
|
|
876
882
|
- ! '*/*; q=0.5, application/xml'
|
877
883
|
Accept-Encoding:
|
878
884
|
- gzip, deflate
|
885
|
+
Authorization:
|
886
|
+
- Bearer DEMO_TOKEN
|
879
887
|
User-Agent:
|
880
888
|
- Ruby
|
881
889
|
response:
|
@@ -892,7 +900,7 @@ http_interactions:
|
|
892
900
|
Content-Type:
|
893
901
|
- application/json; charset=utf-8
|
894
902
|
Date:
|
895
|
-
-
|
903
|
+
- Sat, 13 Sep 2014 00:05:01 GMT
|
896
904
|
Etag:
|
897
905
|
- ! '"-790023927"'
|
898
906
|
Server:
|
@@ -1101,10 +1109,10 @@ http_interactions:
|
|
1101
1109
|
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
|
1102
1110
|
and music","teacher":"530e5955d50c310f36112c09","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597b049e75a9262d0c6c"},"uri":"/v1.1/sections/530e597b049e75a9262d0c6c"}],"links":[{"rel":"self","uri":"/v1.1/sections?starting_after=530e597b049e75a9262d0c1d"},{"rel":"prev","uri":"/v1.1/sections?ending_before=530e597b049e75a9262d0c1e"}]}'
|
1103
1111
|
http_version:
|
1104
|
-
recorded_at:
|
1112
|
+
recorded_at: Sat, 13 Sep 2014 00:05:01 GMT
|
1105
1113
|
- request:
|
1106
1114
|
method: get
|
1107
|
-
uri: https://
|
1115
|
+
uri: https://api.clever.com/v1.1/sections?count=true
|
1108
1116
|
body:
|
1109
1117
|
encoding: US-ASCII
|
1110
1118
|
string: ''
|
@@ -1113,6 +1121,8 @@ http_interactions:
|
|
1113
1121
|
- ! '*/*; q=0.5, application/xml'
|
1114
1122
|
Accept-Encoding:
|
1115
1123
|
- gzip, deflate
|
1124
|
+
Authorization:
|
1125
|
+
- Bearer DEMO_TOKEN
|
1116
1126
|
User-Agent:
|
1117
1127
|
- Ruby
|
1118
1128
|
response:
|
@@ -1129,7 +1139,7 @@ http_interactions:
|
|
1129
1139
|
Content-Type:
|
1130
1140
|
- application/json; charset=utf-8
|
1131
1141
|
Date:
|
1132
|
-
-
|
1142
|
+
- Sat, 13 Sep 2014 00:05:01 GMT
|
1133
1143
|
Server:
|
1134
1144
|
- nginx/1.4.7
|
1135
1145
|
X-Powered-By:
|
@@ -1142,5 +1152,5 @@ http_interactions:
|
|
1142
1152
|
encoding: US-ASCII
|
1143
1153
|
string: ! '{"count":379,"links":[{"rel":"self","uri":"/v1.1/sections?count=true"}]}'
|
1144
1154
|
http_version:
|
1145
|
-
recorded_at:
|
1146
|
-
recorded_with: VCR 2.
|
1155
|
+
recorded_at: Sat, 13 Sep 2014 00:05:01 GMT
|
1156
|
+
recorded_with: VCR 2.9.3
|