clever-ruby 0.3.1 → 0.4.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 +7 -0
- data/.drone.yml +14 -0
- data/.rubocop.yml +4 -0
- data/LICENSE +190 -0
- data/README.md +37 -7
- data/Rakefile +12 -2
- data/clever-ruby.gemspec +17 -13
- data/lib/clever-ruby.rb +87 -61
- data/lib/clever-ruby/api_operations/list.rb +9 -4
- data/lib/clever-ruby/api_operations/page.rb +7 -4
- data/lib/clever-ruby/api_operations/pagelist.rb +6 -3
- data/lib/clever-ruby/api_resource.rb +31 -10
- data/lib/clever-ruby/clever_object.rb +34 -35
- data/lib/clever-ruby/configuration.rb +2 -1
- data/lib/clever-ruby/district.rb +4 -12
- data/lib/clever-ruby/errors/api_connection_error.rb +1 -1
- data/lib/clever-ruby/errors/api_error.rb +1 -1
- data/lib/clever-ruby/errors/authentication_error.rb +1 -1
- data/lib/clever-ruby/errors/clever_error.rb +4 -3
- data/lib/clever-ruby/errors/invalid_request_error.rb +4 -3
- data/lib/clever-ruby/event.rb +6 -5
- data/lib/clever-ruby/json.rb +2 -1
- data/lib/clever-ruby/school.rb +2 -0
- data/lib/clever-ruby/section.rb +2 -0
- data/lib/clever-ruby/student.rb +6 -3
- data/lib/clever-ruby/teacher.rb +2 -0
- data/lib/clever-ruby/util.rb +31 -32
- data/lib/clever-ruby/version.rb +2 -1
- data/test/data/vcr_cassettes/districts.yml +10 -16
- data/test/data/vcr_cassettes/districts_event_pages.yml +627 -62
- data/test/data/vcr_cassettes/districts_events.yml +243 -41
- data/test/data/vcr_cassettes/districts_school_pages.yml +93 -102
- data/test/data/vcr_cassettes/districts_schools.yml +85 -92
- data/test/data/vcr_cassettes/districts_section_pages.yml +3364 -314
- data/test/data/vcr_cassettes/districts_sections.yml +591 -266
- data/test/data/vcr_cassettes/districts_student_pages.yml +1701 -14694
- data/test/data/vcr_cassettes/districts_students.yml +209 -2960
- data/test/data/vcr_cassettes/districts_students_filtered.yml +39 -64
- data/test/data/vcr_cassettes/districts_teacher_pages.yml +455 -202
- data/test/data/vcr_cassettes/districts_teachers.yml +244 -163
- data/test/data/vcr_cassettes/error_handling.yml +36 -52
- data/test/data/vcr_cassettes/schools.yml +20 -29
- data/test/data/vcr_cassettes/schools_optional_attributes.yml +21 -30
- data/test/data/vcr_cassettes/sections.yml +1069 -114
- data/test/data/vcr_cassettes/students.yml +1095 -1296
- data/test/data/vcr_cassettes/teachers.yml +2341 -872
- data/test/integration/api_operations/list_test.rb +16 -15
- data/test/integration/district_test.rb +18 -17
- data/test/integration/error_handling_test.rb +8 -7
- data/test/test_helper.rb +2 -2
- data/test/unit/clever_test.rb +13 -13
- data/test/unit/configuration_test.rb +8 -11
- data/test/unit/event_test.rb +18 -21
- data/test/unit/optional_attributes_test.rb +21 -14
- metadata +99 -55
- data/.travis.yml +0 -9
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
|
5
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts?page=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
User-Agent:
|
@@ -21,30 +21,26 @@ http_interactions:
|
|
21
21
|
Access-Control-Allow-Headers:
|
22
22
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
23
23
|
Access-Control-Allow-Methods:
|
24
|
-
- GET,
|
24
|
+
- GET,PATCH,POST,DELETE
|
25
25
|
Access-Control-Allow-Origin:
|
26
|
-
-
|
27
|
-
Cache-Control:
|
28
|
-
- no-cache="set-cookie"
|
26
|
+
- "*"
|
29
27
|
Content-Type:
|
30
28
|
- application/json; charset=utf-8
|
31
29
|
Date:
|
32
|
-
- Wed,
|
30
|
+
- Wed, 03 Sep 2014 19:07:58 GMT
|
33
31
|
Server:
|
34
|
-
- nginx/1.
|
35
|
-
Set-Cookie:
|
36
|
-
- AWSELB=A91137730E0ED0C3FE64858C01B7DE99906AE563A8E925E576645DC25B200EBF95B82D57D3F5C679B21661A8DECDD5707A5ACD5D114CAD14B5229AFB824566522F545F7D62;PATH=/;MAX-AGE=300
|
32
|
+
- nginx/1.4.7
|
37
33
|
X-Powered-By:
|
38
34
|
- Express
|
39
35
|
Content-Length:
|
40
|
-
- '
|
36
|
+
- '224'
|
41
37
|
Connection:
|
42
38
|
- keep-alive
|
43
39
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
46
|
-
http_version:
|
47
|
-
recorded_at: Wed,
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts?page=1"}]}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 03 Sep 2014 19:07:58 GMT
|
48
44
|
- request:
|
49
45
|
method: get
|
50
46
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -53,7 +49,7 @@ http_interactions:
|
|
53
49
|
string: ''
|
54
50
|
headers:
|
55
51
|
Accept:
|
56
|
-
-
|
52
|
+
- "*/*; q=0.5, application/xml"
|
57
53
|
Accept-Encoding:
|
58
54
|
- gzip, deflate
|
59
55
|
User-Agent:
|
@@ -66,30 +62,67 @@ http_interactions:
|
|
66
62
|
Access-Control-Allow-Headers:
|
67
63
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
68
64
|
Access-Control-Allow-Methods:
|
69
|
-
- GET,
|
65
|
+
- GET,PATCH,POST,DELETE
|
70
66
|
Access-Control-Allow-Origin:
|
71
|
-
-
|
72
|
-
Cache-Control:
|
73
|
-
- no-cache="set-cookie"
|
67
|
+
- "*"
|
74
68
|
Content-Type:
|
75
69
|
- application/json; charset=utf-8
|
76
70
|
Date:
|
77
|
-
- Wed,
|
71
|
+
- Wed, 03 Sep 2014 19:07:58 GMT
|
78
72
|
Server:
|
79
|
-
- nginx/1.
|
80
|
-
Set-Cookie:
|
81
|
-
- AWSELB=A91137730E0ED0C3FE64858C01B7DE99906AE563A8E925E576645DC25B200EBF95B82D57D3F5C679B21661A8DECDD5707A5ACD5D114CAD14B5229AFB824566522F545F7D62;PATH=/;MAX-AGE=300
|
73
|
+
- nginx/1.4.7
|
82
74
|
X-Powered-By:
|
83
75
|
- Express
|
84
76
|
Content-Length:
|
85
|
-
- '
|
77
|
+
- '518'
|
86
78
|
Connection:
|
87
79
|
- keep-alive
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Wed, 03 Sep 2014 19:07:58 GMT
|
85
|
+
- request:
|
86
|
+
method: get
|
87
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
|
-
string:
|
91
|
-
|
92
|
-
|
90
|
+
string: ''
|
91
|
+
headers:
|
92
|
+
Accept:
|
93
|
+
- "*/*; q=0.5, application/xml"
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip, deflate
|
96
|
+
User-Agent:
|
97
|
+
- Ruby
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Access-Control-Allow-Headers:
|
104
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
105
|
+
Access-Control-Allow-Methods:
|
106
|
+
- GET,PATCH,POST,DELETE
|
107
|
+
Access-Control-Allow-Origin:
|
108
|
+
- "*"
|
109
|
+
Content-Type:
|
110
|
+
- application/json; charset=utf-8
|
111
|
+
Date:
|
112
|
+
- Wed, 03 Sep 2014 19:07:58 GMT
|
113
|
+
Server:
|
114
|
+
- nginx/1.4.7
|
115
|
+
X-Powered-By:
|
116
|
+
- Express
|
117
|
+
Content-Length:
|
118
|
+
- '518'
|
119
|
+
Connection:
|
120
|
+
- keep-alive
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
124
|
+
http_version:
|
125
|
+
recorded_at: Wed, 03 Sep 2014 19:07:58 GMT
|
93
126
|
- request:
|
94
127
|
method: get
|
95
128
|
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events
|
@@ -98,7 +131,7 @@ http_interactions:
|
|
98
131
|
string: ''
|
99
132
|
headers:
|
100
133
|
Accept:
|
101
|
-
-
|
134
|
+
- "*/*; q=0.5, application/xml"
|
102
135
|
Accept-Encoding:
|
103
136
|
- gzip, deflate
|
104
137
|
User-Agent:
|
@@ -111,28 +144,197 @@ http_interactions:
|
|
111
144
|
Access-Control-Allow-Headers:
|
112
145
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
113
146
|
Access-Control-Allow-Methods:
|
114
|
-
- GET,
|
147
|
+
- GET,PATCH,POST,DELETE
|
115
148
|
Access-Control-Allow-Origin:
|
116
|
-
-
|
117
|
-
Cache-Control:
|
118
|
-
- no-cache="set-cookie"
|
149
|
+
- "*"
|
119
150
|
Content-Type:
|
120
151
|
- application/json; charset=utf-8
|
121
152
|
Date:
|
122
|
-
- Wed,
|
153
|
+
- Wed, 03 Sep 2014 19:07:58 GMT
|
154
|
+
Etag:
|
155
|
+
- '"-1300733905"'
|
123
156
|
Server:
|
124
|
-
- nginx/1.
|
125
|
-
Set-Cookie:
|
126
|
-
- AWSELB=A91137730E0ED0C3FE64858C01B7DE99906AE563A8E925E576645DC25B200EBF95B82D57D3F5C679B21661A8DECDD5707A5ACD5D114CAD14B5229AFB824566522F545F7D62;PATH=/;MAX-AGE=300
|
157
|
+
- nginx/1.4.7
|
127
158
|
X-Powered-By:
|
128
159
|
- Express
|
129
160
|
Content-Length:
|
130
|
-
- '
|
161
|
+
- '15708'
|
131
162
|
Connection:
|
132
163
|
- keep-alive
|
164
|
+
body:
|
165
|
+
encoding: UTF-8
|
166
|
+
string: '{"data":[{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"8/31/1997","ell_status":"N","email":"monique.g@example.net","frl_status":"Paid","gender":"F","grade":"10","hispanic_ethnicity":"Y","iep_status":"","race":"Asian","school":"530e595026403103360ff9fd","sis_id":"556584559","state_id":"485279646","student_number":"556584559","credentials":{"district_username":"moniqueg59","district_password":"EPhie9th"},"location":{"zip":"10020"},"name":{"first":"Monique","middle":"J","last":"Gutmann"},"last_modified":"2014-06-04T14:10:42.770Z","created":"2014-02-26T21:15:16.916Z","id":"530e5964049e75a9262d0304"},"previous_attributes":{"ell_status":"Y"}},"created":"2014-08-11T18:35:19.401Z","id":"53e90ce782399c964b0009e2"},"uri":"/v1.1/events/53e90ce782399c964b0009e2"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"11/4/1998","ell_status":"N","email":"h_william@example.net","frl_status":"Paid","gender":"M","grade":"9","hispanic_ethnicity":"Y","iep_status":"","race":"Black
|
167
|
+
or African American","school":"530e595026403103360ff9fd","sis_id":"617499409","state_id":"979518299","student_number":"617499409","credentials":{"district_username":"williamh09","district_password":"roosh5Oo"},"location":{"zip":"11428"},"name":{"first":"William","middle":"M","last":"Hodkiewicz"},"last_modified":"2014-06-04T14:10:43.010Z","created":"2014-02-26T21:15:17.612Z","id":"530e5965049e75a9262d038f"},"previous_attributes":{"ell_status":"Y"}},"created":"2014-08-11T18:35:19.402Z","id":"53e90ce782399c964b0009e3"},"uri":"/v1.1/events/53e90ce782399c964b0009e3"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"5/17/1998","ell_status":"N","email":"corina.w@example.com","frl_status":"Paid","gender":"F","grade":"9","hispanic_ethnicity":"Y","iep_status":"","race":"American
|
168
|
+
Indian","school":"530e595026403103360ff9fd","sis_id":"670807511","state_id":"814185233","student_number":"670807511","credentials":{"district_username":"corinaw11","district_password":"Eiph5aeX"},"location":{"zip":"10004"},"name":{"first":"Corina","middle":"L","last":"Watsica"},"last_modified":"2014-06-04T14:10:43.290Z","created":"2014-02-26T21:15:18.067Z","id":"530e5966049e75a9262d03fc"},"previous_attributes":{"dob":"5/7/1998"}},"created":"2014-08-11T18:35:19.406Z","id":"53e90ce782399c964b0009e4"},"uri":"/v1.1/events/53e90ce782399c964b0009e4"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"5/13/1998","ell_status":"Y","email":"kim_j@example.org","frl_status":"Paid","gender":"F","grade":"9","hispanic_ethnicity":"N","iep_status":"","race":"Asian","school":"530e595026403103360ff9fd","sis_id":"841688312","state_id":"484726796","student_number":"841688312","credentials":{"district_username":"kimj12","district_password":"phee7kah3R"},"location":{"zip":"11377"},"name":{"first":"Kimberly","last":"Jacobi","middle":"J"},"last_modified":"2014-06-04T14:10:44.004Z","created":"2014-02-26T21:15:19.645Z","id":"530e5967049e75a9262d057e"},"previous_attributes":{"name":{"first":"Kim","last":"Jacobi","middle":"J"}}},"created":"2014-08-11T18:35:19.406Z","id":"53e90ce782399c964b0009e5"},"uri":"/v1.1/events/53e90ce782399c964b0009e5"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Group
|
169
|
+
Guidance","course_number":"101","district":"4fd43cc56d11340000000005","grade":"10","name":"Group
|
170
|
+
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"last_modified":"2014-02-26T21:15:37.930Z","created":"2014-02-26T21:15:37.927Z","id":"530e5979049e75a9262d0af2"},"previous_attributes":{"students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5966049e75a9262d04ba","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"]}},"created":"2014-08-11T18:35:19.418Z","id":"53e90ce782399c964b0009e6"},"uri":"/v1.1/events/53e90ce782399c964b0009e6"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Group
|
171
|
+
Guidance","course_number":"901","district":"4fd43cc56d11340000000005","grade":"9","name":"Group
|
172
|
+
Guidance - 901 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"596","subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262d001a","530e5961049e75a9262d0034","530e5962049e75a9262d0110","530e5963049e75a9262d01db","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d0309","530e5965049e75a9262d038e","530e5965049e75a9262d038f","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d04b4","530e5967049e75a9262d057e","530e5968049e75a9262d0614","530e5968049e75a9262d061c","530e5968049e75a9262d0640"],"last_modified":"2014-02-26T21:15:37.996Z","created":"2014-02-26T21:15:37.994Z","id":"530e5979049e75a9262d0b01"},"previous_attributes":{"students":["530e5961049e75a9262d001a","530e5961049e75a9262d0034","530e5962049e75a9262d0110","530e5963049e75a9262d01db","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d0309","530e5965049e75a9262d038e","530e5965049e75a9262d038f","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5967049e75a9262d057e","530e5968049e75a9262d0614","530e5968049e75a9262d061c","530e5968049e75a9262d063a","530e5968049e75a9262d0640"]}},"created":"2014-08-11T18:35:19.420Z","id":"53e90ce782399c964b0009e7"},"uri":"/v1.1/events/53e90ce782399c964b0009e7"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Grade
|
173
|
+
3 Math, Class 301","course_number":"301","district":"4fd43cc56d11340000000005","grade":"3","name":"Grade
|
174
|
+
3 Math, Class 301 - 301 - S. Block","period":"5","school":"530e595026403103360ff9fe","sis_id":"771","subject":"math","teacher":"530e5955d50c310f36112c15","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5962049e75a9262d00fb","530e5962049e75a9262d015a","530e5963049e75a9262d0219","530e5964049e75a9262d0270","530e5964049e75a9262d02cf","530e5964049e75a9262d02fc","530e5965049e75a9262d0341","530e5965049e75a9262d0343","530e5965049e75a9262d038d","530e5965049e75a9262d03a7","530e5966049e75a9262d0415","530e5966049e75a9262d0439","530e5966049e75a9262d0458","530e5966049e75a9262d04d5","530e5967049e75a9262d04f4","530e5967049e75a9262d051f"],"last_modified":"2014-07-07T15:46:35.850Z","created":"2014-02-26T21:15:38.738Z","id":"530e597a049e75a9262d0baf"},"previous_attributes":{"students":["530e5960049e75a9262cff56","530e5962049e75a9262d00fb","530e5962049e75a9262d015a","530e5963049e75a9262d0219","530e5964049e75a9262d0270","530e5964049e75a9262d02cf","530e5964049e75a9262d02fc","530e5965049e75a9262d0341","530e5965049e75a9262d0343","530e5965049e75a9262d038d","530e5965049e75a9262d03a7","530e5966049e75a9262d0415","530e5966049e75a9262d0439","530e5966049e75a9262d0458","530e5966049e75a9262d04d5","530e5967049e75a9262d04f4","530e5967049e75a9262d051f"]}},"created":"2014-08-28T18:01:13.872Z","id":"53ff6e6b322eced002000088"},"uri":"/v1.1/events/53ff6e6b322eced002000088"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
175
|
+
Music, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
176
|
+
Music, Class 001 - 001 - H. Willms","period":"5","school":"530e595026403103360ff9fe","sis_id":"804","subject":"arts
|
177
|
+
and music","teacher":"530e5955d50c310f36112c02","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff5d","530e5960049e75a9262cff76","530e5961049e75a9262cffdc","530e5962049e75a9262d00d0","530e5962049e75a9262d012d","530e5963049e75a9262d01c1","530e5963049e75a9262d01d3","530e5963049e75a9262d01e1","530e5964049e75a9262d027a","530e5964049e75a9262d02ae","530e5965049e75a9262d03c0","530e5965049e75a9262d03c6","530e5966049e75a9262d042d","530e5966049e75a9262d0451","530e5966049e75a9262d0479","530e5967049e75a9262d057b","530e5967049e75a9262d05a3","530e5967049e75a9262d05ba","530e5967049e75a9262d05c1","530e5968049e75a9262d05e4"],"last_modified":"2014-02-26T21:15:38.877Z","created":"2014-02-26T21:15:38.875Z","id":"530e597a049e75a9262d0bd0"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.064Z","id":"53ff6e6b322eced002000089"},"uri":"/v1.1/events/53ff6e6b322eced002000089"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
178
|
+
Music, Class 002","course_number":"2","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
179
|
+
Music, Class 002 - 002 - S. Schoen","period":"5","school":"530e595026403103360ff9fe","sis_id":"805","subject":"arts
|
180
|
+
and music","teacher":"530e5955d50c310f36112c03","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff1d","530e5960049e75a9262cff55","530e5961049e75a9262cffc2","530e5961049e75a9262d0012","530e5962049e75a9262d00c0","530e5962049e75a9262d010d","530e5962049e75a9262d0136","530e5962049e75a9262d0151","530e5962049e75a9262d0162","530e5963049e75a9262d01bb","530e5963049e75a9262d01f0","530e5964049e75a9262d0295","530e5964049e75a9262d02a7","530e5964049e75a9262d02d8","530e5965049e75a9262d0320","530e5965049e75a9262d03b9","530e5966049e75a9262d0491","530e5966049e75a9262d04c4","530e5967049e75a9262d0520","530e5968049e75a9262d0615"],"last_modified":"2014-02-26T21:15:38.882Z","created":"2014-02-26T21:15:38.879Z","id":"530e597a049e75a9262d0bd1"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.067Z","id":"53ff6e6b322eced00200008a"},"uri":"/v1.1/events/53ff6e6b322eced00200008a"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
181
|
+
Music, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
182
|
+
Music, Class 003 - 003 - J. Stark","period":"4","school":"530e595026403103360ff9fe","sis_id":"806","subject":"arts
|
183
|
+
and music","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:38.886Z","created":"2014-02-26T21:15:38.883Z","id":"530e597a049e75a9262d0bd2"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.070Z","id":"53ff6e6b322eced00200008b"},"uri":"/v1.1/events/53ff6e6b322eced00200008b"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
184
|
+
Science, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
185
|
+
Science, Class 001 - 001 - H. Willms","period":"2","school":"530e595026403103360ff9fe","sis_id":"864","subject":"science","teacher":"530e5955d50c310f36112c02","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff5d","530e5960049e75a9262cff76","530e5961049e75a9262cffdc","530e5962049e75a9262d00d0","530e5962049e75a9262d012d","530e5963049e75a9262d01c1","530e5963049e75a9262d01d3","530e5963049e75a9262d01e1","530e5964049e75a9262d027a","530e5964049e75a9262d02ae","530e5965049e75a9262d03c0","530e5965049e75a9262d03c6","530e5966049e75a9262d042d","530e5966049e75a9262d0451","530e5966049e75a9262d0479","530e5967049e75a9262d057b","530e5967049e75a9262d05a3","530e5967049e75a9262d05ba","530e5967049e75a9262d05c1","530e5968049e75a9262d05e4"],"last_modified":"2014-02-26T21:15:39.166Z","created":"2014-02-26T21:15:39.165Z","id":"530e597b049e75a9262d0c0a"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.073Z","id":"53ff6e6b322eced00200008c"},"uri":"/v1.1/events/53ff6e6b322eced00200008c"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
186
|
+
Science, Class 002","course_number":"2","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
187
|
+
Science, Class 002 - 002 - S. Schoen","period":"3","school":"530e595026403103360ff9fe","sis_id":"865","subject":"science","teacher":"530e5955d50c310f36112c03","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff1d","530e5960049e75a9262cff55","530e5961049e75a9262cffc2","530e5961049e75a9262d0012","530e5962049e75a9262d00c0","530e5962049e75a9262d010d","530e5962049e75a9262d0136","530e5962049e75a9262d0151","530e5962049e75a9262d0162","530e5963049e75a9262d01bb","530e5963049e75a9262d01f0","530e5964049e75a9262d0295","530e5964049e75a9262d02a7","530e5964049e75a9262d02d8","530e5965049e75a9262d0320","530e5965049e75a9262d03b9","530e5966049e75a9262d0491","530e5966049e75a9262d04c4","530e5967049e75a9262d0520","530e5968049e75a9262d0615"],"last_modified":"2014-02-26T21:15:39.183Z","created":"2014-02-26T21:15:39.181Z","id":"530e597b049e75a9262d0c0e"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.076Z","id":"53ff6e6b322eced00200008d"},"uri":"/v1.1/events/53ff6e6b322eced00200008d"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
188
|
+
Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
189
|
+
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":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
190
|
+
http_version:
|
191
|
+
recorded_at: Wed, 03 Sep 2014 19:07:58 GMT
|
192
|
+
- request:
|
193
|
+
method: get
|
194
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
133
195
|
body:
|
134
196
|
encoding: US-ASCII
|
135
|
-
string:
|
136
|
-
|
137
|
-
|
197
|
+
string: ''
|
198
|
+
headers:
|
199
|
+
Accept:
|
200
|
+
- "*/*; q=0.5, application/xml"
|
201
|
+
Accept-Encoding:
|
202
|
+
- gzip, deflate
|
203
|
+
User-Agent:
|
204
|
+
- Ruby
|
205
|
+
response:
|
206
|
+
status:
|
207
|
+
code: 200
|
208
|
+
message: OK
|
209
|
+
headers:
|
210
|
+
Access-Control-Allow-Headers:
|
211
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
212
|
+
Access-Control-Allow-Methods:
|
213
|
+
- GET,PATCH,POST,DELETE
|
214
|
+
Access-Control-Allow-Origin:
|
215
|
+
- "*"
|
216
|
+
Content-Type:
|
217
|
+
- application/json; charset=utf-8
|
218
|
+
Date:
|
219
|
+
- Wed, 03 Sep 2014 19:07:58 GMT
|
220
|
+
Server:
|
221
|
+
- nginx/1.4.7
|
222
|
+
X-Powered-By:
|
223
|
+
- Express
|
224
|
+
Content-Length:
|
225
|
+
- '518'
|
226
|
+
Connection:
|
227
|
+
- keep-alive
|
228
|
+
body:
|
229
|
+
encoding: UTF-8
|
230
|
+
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"}]}'
|
231
|
+
http_version:
|
232
|
+
recorded_at: Wed, 03 Sep 2014 19:07:58 GMT
|
233
|
+
- request:
|
234
|
+
method: get
|
235
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
236
|
+
body:
|
237
|
+
encoding: US-ASCII
|
238
|
+
string: ''
|
239
|
+
headers:
|
240
|
+
Accept:
|
241
|
+
- "*/*; q=0.5, application/xml"
|
242
|
+
Accept-Encoding:
|
243
|
+
- gzip, deflate
|
244
|
+
User-Agent:
|
245
|
+
- Ruby
|
246
|
+
response:
|
247
|
+
status:
|
248
|
+
code: 200
|
249
|
+
message: OK
|
250
|
+
headers:
|
251
|
+
Access-Control-Allow-Headers:
|
252
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
253
|
+
Access-Control-Allow-Methods:
|
254
|
+
- GET,PATCH,POST,DELETE
|
255
|
+
Access-Control-Allow-Origin:
|
256
|
+
- "*"
|
257
|
+
Content-Type:
|
258
|
+
- application/json; charset=utf-8
|
259
|
+
Date:
|
260
|
+
- Wed, 03 Sep 2014 19:07:58 GMT
|
261
|
+
Server:
|
262
|
+
- nginx/1.4.7
|
263
|
+
X-Powered-By:
|
264
|
+
- Express
|
265
|
+
Content-Length:
|
266
|
+
- '518'
|
267
|
+
Connection:
|
268
|
+
- keep-alive
|
269
|
+
body:
|
270
|
+
encoding: UTF-8
|
271
|
+
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"}]}'
|
272
|
+
http_version:
|
273
|
+
recorded_at: Wed, 03 Sep 2014 19:07:58 GMT
|
274
|
+
- request:
|
275
|
+
method: get
|
276
|
+
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/events
|
277
|
+
body:
|
278
|
+
encoding: US-ASCII
|
279
|
+
string: ''
|
280
|
+
headers:
|
281
|
+
Accept:
|
282
|
+
- "*/*; q=0.5, application/xml"
|
283
|
+
Accept-Encoding:
|
284
|
+
- gzip, deflate
|
285
|
+
User-Agent:
|
286
|
+
- Ruby
|
287
|
+
response:
|
288
|
+
status:
|
289
|
+
code: 200
|
290
|
+
message: OK
|
291
|
+
headers:
|
292
|
+
Access-Control-Allow-Headers:
|
293
|
+
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
294
|
+
Access-Control-Allow-Methods:
|
295
|
+
- GET,PATCH,POST,DELETE
|
296
|
+
Access-Control-Allow-Origin:
|
297
|
+
- "*"
|
298
|
+
Content-Type:
|
299
|
+
- application/json; charset=utf-8
|
300
|
+
Date:
|
301
|
+
- Wed, 03 Sep 2014 19:07:59 GMT
|
302
|
+
Etag:
|
303
|
+
- '"-1300733905"'
|
304
|
+
Server:
|
305
|
+
- nginx/1.4.7
|
306
|
+
X-Powered-By:
|
307
|
+
- Express
|
308
|
+
Content-Length:
|
309
|
+
- '15708'
|
310
|
+
Connection:
|
311
|
+
- keep-alive
|
312
|
+
body:
|
313
|
+
encoding: UTF-8
|
314
|
+
string: '{"data":[{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"8/31/1997","ell_status":"N","email":"monique.g@example.net","frl_status":"Paid","gender":"F","grade":"10","hispanic_ethnicity":"Y","iep_status":"","race":"Asian","school":"530e595026403103360ff9fd","sis_id":"556584559","state_id":"485279646","student_number":"556584559","credentials":{"district_username":"moniqueg59","district_password":"EPhie9th"},"location":{"zip":"10020"},"name":{"first":"Monique","middle":"J","last":"Gutmann"},"last_modified":"2014-06-04T14:10:42.770Z","created":"2014-02-26T21:15:16.916Z","id":"530e5964049e75a9262d0304"},"previous_attributes":{"ell_status":"Y"}},"created":"2014-08-11T18:35:19.401Z","id":"53e90ce782399c964b0009e2"},"uri":"/v1.1/events/53e90ce782399c964b0009e2"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"11/4/1998","ell_status":"N","email":"h_william@example.net","frl_status":"Paid","gender":"M","grade":"9","hispanic_ethnicity":"Y","iep_status":"","race":"Black
|
315
|
+
or African American","school":"530e595026403103360ff9fd","sis_id":"617499409","state_id":"979518299","student_number":"617499409","credentials":{"district_username":"williamh09","district_password":"roosh5Oo"},"location":{"zip":"11428"},"name":{"first":"William","middle":"M","last":"Hodkiewicz"},"last_modified":"2014-06-04T14:10:43.010Z","created":"2014-02-26T21:15:17.612Z","id":"530e5965049e75a9262d038f"},"previous_attributes":{"ell_status":"Y"}},"created":"2014-08-11T18:35:19.402Z","id":"53e90ce782399c964b0009e3"},"uri":"/v1.1/events/53e90ce782399c964b0009e3"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"5/17/1998","ell_status":"N","email":"corina.w@example.com","frl_status":"Paid","gender":"F","grade":"9","hispanic_ethnicity":"Y","iep_status":"","race":"American
|
316
|
+
Indian","school":"530e595026403103360ff9fd","sis_id":"670807511","state_id":"814185233","student_number":"670807511","credentials":{"district_username":"corinaw11","district_password":"Eiph5aeX"},"location":{"zip":"10004"},"name":{"first":"Corina","middle":"L","last":"Watsica"},"last_modified":"2014-06-04T14:10:43.290Z","created":"2014-02-26T21:15:18.067Z","id":"530e5966049e75a9262d03fc"},"previous_attributes":{"dob":"5/7/1998"}},"created":"2014-08-11T18:35:19.406Z","id":"53e90ce782399c964b0009e4"},"uri":"/v1.1/events/53e90ce782399c964b0009e4"},{"data":{"type":"students.updated","data":{"object":{"district":"4fd43cc56d11340000000005","dob":"5/13/1998","ell_status":"Y","email":"kim_j@example.org","frl_status":"Paid","gender":"F","grade":"9","hispanic_ethnicity":"N","iep_status":"","race":"Asian","school":"530e595026403103360ff9fd","sis_id":"841688312","state_id":"484726796","student_number":"841688312","credentials":{"district_username":"kimj12","district_password":"phee7kah3R"},"location":{"zip":"11377"},"name":{"first":"Kimberly","last":"Jacobi","middle":"J"},"last_modified":"2014-06-04T14:10:44.004Z","created":"2014-02-26T21:15:19.645Z","id":"530e5967049e75a9262d057e"},"previous_attributes":{"name":{"first":"Kim","last":"Jacobi","middle":"J"}}},"created":"2014-08-11T18:35:19.406Z","id":"53e90ce782399c964b0009e5"},"uri":"/v1.1/events/53e90ce782399c964b0009e5"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Group
|
317
|
+
Guidance","course_number":"101","district":"4fd43cc56d11340000000005","grade":"10","name":"Group
|
318
|
+
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"last_modified":"2014-02-26T21:15:37.930Z","created":"2014-02-26T21:15:37.927Z","id":"530e5979049e75a9262d0af2"},"previous_attributes":{"students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5966049e75a9262d04ba","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"]}},"created":"2014-08-11T18:35:19.418Z","id":"53e90ce782399c964b0009e6"},"uri":"/v1.1/events/53e90ce782399c964b0009e6"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Group
|
319
|
+
Guidance","course_number":"901","district":"4fd43cc56d11340000000005","grade":"9","name":"Group
|
320
|
+
Guidance - 901 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"596","subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5961049e75a9262d001a","530e5961049e75a9262d0034","530e5962049e75a9262d0110","530e5963049e75a9262d01db","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d0309","530e5965049e75a9262d038e","530e5965049e75a9262d038f","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d04b4","530e5967049e75a9262d057e","530e5968049e75a9262d0614","530e5968049e75a9262d061c","530e5968049e75a9262d0640"],"last_modified":"2014-02-26T21:15:37.996Z","created":"2014-02-26T21:15:37.994Z","id":"530e5979049e75a9262d0b01"},"previous_attributes":{"students":["530e5961049e75a9262d001a","530e5961049e75a9262d0034","530e5962049e75a9262d0110","530e5963049e75a9262d01db","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d0309","530e5965049e75a9262d038e","530e5965049e75a9262d038f","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5967049e75a9262d057e","530e5968049e75a9262d0614","530e5968049e75a9262d061c","530e5968049e75a9262d063a","530e5968049e75a9262d0640"]}},"created":"2014-08-11T18:35:19.420Z","id":"53e90ce782399c964b0009e7"},"uri":"/v1.1/events/53e90ce782399c964b0009e7"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Grade
|
321
|
+
3 Math, Class 301","course_number":"301","district":"4fd43cc56d11340000000005","grade":"3","name":"Grade
|
322
|
+
3 Math, Class 301 - 301 - S. Block","period":"5","school":"530e595026403103360ff9fe","sis_id":"771","subject":"math","teacher":"530e5955d50c310f36112c15","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5962049e75a9262d00fb","530e5962049e75a9262d015a","530e5963049e75a9262d0219","530e5964049e75a9262d0270","530e5964049e75a9262d02cf","530e5964049e75a9262d02fc","530e5965049e75a9262d0341","530e5965049e75a9262d0343","530e5965049e75a9262d038d","530e5965049e75a9262d03a7","530e5966049e75a9262d0415","530e5966049e75a9262d0439","530e5966049e75a9262d0458","530e5966049e75a9262d04d5","530e5967049e75a9262d04f4","530e5967049e75a9262d051f"],"last_modified":"2014-07-07T15:46:35.850Z","created":"2014-02-26T21:15:38.738Z","id":"530e597a049e75a9262d0baf"},"previous_attributes":{"students":["530e5960049e75a9262cff56","530e5962049e75a9262d00fb","530e5962049e75a9262d015a","530e5963049e75a9262d0219","530e5964049e75a9262d0270","530e5964049e75a9262d02cf","530e5964049e75a9262d02fc","530e5965049e75a9262d0341","530e5965049e75a9262d0343","530e5965049e75a9262d038d","530e5965049e75a9262d03a7","530e5966049e75a9262d0415","530e5966049e75a9262d0439","530e5966049e75a9262d0458","530e5966049e75a9262d04d5","530e5967049e75a9262d04f4","530e5967049e75a9262d051f"]}},"created":"2014-08-28T18:01:13.872Z","id":"53ff6e6b322eced002000088"},"uri":"/v1.1/events/53ff6e6b322eced002000088"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
323
|
+
Music, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
324
|
+
Music, Class 001 - 001 - H. Willms","period":"5","school":"530e595026403103360ff9fe","sis_id":"804","subject":"arts
|
325
|
+
and music","teacher":"530e5955d50c310f36112c02","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff5d","530e5960049e75a9262cff76","530e5961049e75a9262cffdc","530e5962049e75a9262d00d0","530e5962049e75a9262d012d","530e5963049e75a9262d01c1","530e5963049e75a9262d01d3","530e5963049e75a9262d01e1","530e5964049e75a9262d027a","530e5964049e75a9262d02ae","530e5965049e75a9262d03c0","530e5965049e75a9262d03c6","530e5966049e75a9262d042d","530e5966049e75a9262d0451","530e5966049e75a9262d0479","530e5967049e75a9262d057b","530e5967049e75a9262d05a3","530e5967049e75a9262d05ba","530e5967049e75a9262d05c1","530e5968049e75a9262d05e4"],"last_modified":"2014-02-26T21:15:38.877Z","created":"2014-02-26T21:15:38.875Z","id":"530e597a049e75a9262d0bd0"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.064Z","id":"53ff6e6b322eced002000089"},"uri":"/v1.1/events/53ff6e6b322eced002000089"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
326
|
+
Music, Class 002","course_number":"2","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
327
|
+
Music, Class 002 - 002 - S. Schoen","period":"5","school":"530e595026403103360ff9fe","sis_id":"805","subject":"arts
|
328
|
+
and music","teacher":"530e5955d50c310f36112c03","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff1d","530e5960049e75a9262cff55","530e5961049e75a9262cffc2","530e5961049e75a9262d0012","530e5962049e75a9262d00c0","530e5962049e75a9262d010d","530e5962049e75a9262d0136","530e5962049e75a9262d0151","530e5962049e75a9262d0162","530e5963049e75a9262d01bb","530e5963049e75a9262d01f0","530e5964049e75a9262d0295","530e5964049e75a9262d02a7","530e5964049e75a9262d02d8","530e5965049e75a9262d0320","530e5965049e75a9262d03b9","530e5966049e75a9262d0491","530e5966049e75a9262d04c4","530e5967049e75a9262d0520","530e5968049e75a9262d0615"],"last_modified":"2014-02-26T21:15:38.882Z","created":"2014-02-26T21:15:38.879Z","id":"530e597a049e75a9262d0bd1"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.067Z","id":"53ff6e6b322eced00200008a"},"uri":"/v1.1/events/53ff6e6b322eced00200008a"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
329
|
+
Music, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
330
|
+
Music, Class 003 - 003 - J. Stark","period":"4","school":"530e595026403103360ff9fe","sis_id":"806","subject":"arts
|
331
|
+
and music","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:38.886Z","created":"2014-02-26T21:15:38.883Z","id":"530e597a049e75a9262d0bd2"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.070Z","id":"53ff6e6b322eced00200008b"},"uri":"/v1.1/events/53ff6e6b322eced00200008b"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
332
|
+
Science, Class 001","course_number":"1","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
333
|
+
Science, Class 001 - 001 - H. Willms","period":"2","school":"530e595026403103360ff9fe","sis_id":"864","subject":"science","teacher":"530e5955d50c310f36112c02","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff5d","530e5960049e75a9262cff76","530e5961049e75a9262cffdc","530e5962049e75a9262d00d0","530e5962049e75a9262d012d","530e5963049e75a9262d01c1","530e5963049e75a9262d01d3","530e5963049e75a9262d01e1","530e5964049e75a9262d027a","530e5964049e75a9262d02ae","530e5965049e75a9262d03c0","530e5965049e75a9262d03c6","530e5966049e75a9262d042d","530e5966049e75a9262d0451","530e5966049e75a9262d0479","530e5967049e75a9262d057b","530e5967049e75a9262d05a3","530e5967049e75a9262d05ba","530e5967049e75a9262d05c1","530e5968049e75a9262d05e4"],"last_modified":"2014-02-26T21:15:39.166Z","created":"2014-02-26T21:15:39.165Z","id":"530e597b049e75a9262d0c0a"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.073Z","id":"53ff6e6b322eced00200008c"},"uri":"/v1.1/events/53ff6e6b322eced00200008c"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
334
|
+
Science, Class 002","course_number":"2","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
335
|
+
Science, Class 002 - 002 - S. Schoen","period":"3","school":"530e595026403103360ff9fe","sis_id":"865","subject":"science","teacher":"530e5955d50c310f36112c03","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"students":["530e5960049e75a9262cff1d","530e5960049e75a9262cff55","530e5961049e75a9262cffc2","530e5961049e75a9262d0012","530e5962049e75a9262d00c0","530e5962049e75a9262d010d","530e5962049e75a9262d0136","530e5962049e75a9262d0151","530e5962049e75a9262d0162","530e5963049e75a9262d01bb","530e5963049e75a9262d01f0","530e5964049e75a9262d0295","530e5964049e75a9262d02a7","530e5964049e75a9262d02d8","530e5965049e75a9262d0320","530e5965049e75a9262d03b9","530e5966049e75a9262d0491","530e5966049e75a9262d04c4","530e5967049e75a9262d0520","530e5968049e75a9262d0615"],"last_modified":"2014-02-26T21:15:39.183Z","created":"2014-02-26T21:15:39.181Z","id":"530e597b049e75a9262d0c0e"},"previous_attributes":{"subject":"homeroom/advisory"}},"created":"2014-08-28T18:01:14.076Z","id":"53ff6e6b322eced00200008d"},"uri":"/v1.1/events/53ff6e6b322eced00200008d"},{"data":{"type":"sections.updated","data":{"object":{"course_name":"Kindergarten
|
336
|
+
Science, Class 003","course_number":"3","district":"4fd43cc56d11340000000005","grade":"Kindergarten","name":"Kindergarten
|
337
|
+
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":13},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
338
|
+
http_version:
|
339
|
+
recorded_at: Wed, 03 Sep 2014 19:07:58 GMT
|
138
340
|
recorded_with: VCR 2.4.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts
|
5
|
+
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts?page=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
User-Agent:
|
@@ -21,27 +21,26 @@ http_interactions:
|
|
21
21
|
Access-Control-Allow-Headers:
|
22
22
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
23
23
|
Access-Control-Allow-Methods:
|
24
|
-
- GET,
|
24
|
+
- GET,PATCH,POST,DELETE
|
25
25
|
Access-Control-Allow-Origin:
|
26
|
-
-
|
26
|
+
- "*"
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Date:
|
30
|
-
- Wed,
|
30
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
31
31
|
Server:
|
32
|
-
- nginx/1.4.
|
32
|
+
- nginx/1.4.7
|
33
33
|
X-Powered-By:
|
34
34
|
- Express
|
35
35
|
Content-Length:
|
36
|
-
- '
|
36
|
+
- '224'
|
37
37
|
Connection:
|
38
38
|
- keep-alive
|
39
39
|
body:
|
40
|
-
encoding:
|
41
|
-
string:
|
42
|
-
District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"links":[{"rel":"self","uri":"/v1.1/districts"}]}'
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts?page=1"}]}'
|
43
42
|
http_version:
|
44
|
-
recorded_at: Wed,
|
43
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
45
44
|
- request:
|
46
45
|
method: get
|
47
46
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -50,7 +49,7 @@ http_interactions:
|
|
50
49
|
string: ''
|
51
50
|
headers:
|
52
51
|
Accept:
|
53
|
-
-
|
52
|
+
- "*/*; q=0.5, application/xml"
|
54
53
|
Accept-Encoding:
|
55
54
|
- gzip, deflate
|
56
55
|
User-Agent:
|
@@ -63,26 +62,26 @@ http_interactions:
|
|
63
62
|
Access-Control-Allow-Headers:
|
64
63
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
65
64
|
Access-Control-Allow-Methods:
|
66
|
-
- GET,
|
65
|
+
- GET,PATCH,POST,DELETE
|
67
66
|
Access-Control-Allow-Origin:
|
68
|
-
-
|
67
|
+
- "*"
|
69
68
|
Content-Type:
|
70
69
|
- application/json; charset=utf-8
|
71
70
|
Date:
|
72
|
-
- Wed,
|
71
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
73
72
|
Server:
|
74
|
-
- nginx/1.4.
|
73
|
+
- nginx/1.4.7
|
75
74
|
X-Powered-By:
|
76
75
|
- Express
|
77
76
|
Content-Length:
|
78
|
-
- '
|
77
|
+
- '518'
|
79
78
|
Connection:
|
80
79
|
- keep-alive
|
81
80
|
body:
|
82
|
-
encoding:
|
83
|
-
string:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
84
83
|
http_version:
|
85
|
-
recorded_at: Wed,
|
84
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
86
85
|
- request:
|
87
86
|
method: get
|
88
87
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -91,7 +90,7 @@ http_interactions:
|
|
91
90
|
string: ''
|
92
91
|
headers:
|
93
92
|
Accept:
|
94
|
-
-
|
93
|
+
- "*/*; q=0.5, application/xml"
|
95
94
|
Accept-Encoding:
|
96
95
|
- gzip, deflate
|
97
96
|
User-Agent:
|
@@ -104,26 +103,26 @@ http_interactions:
|
|
104
103
|
Access-Control-Allow-Headers:
|
105
104
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
106
105
|
Access-Control-Allow-Methods:
|
107
|
-
- GET,
|
106
|
+
- GET,PATCH,POST,DELETE
|
108
107
|
Access-Control-Allow-Origin:
|
109
|
-
-
|
108
|
+
- "*"
|
110
109
|
Content-Type:
|
111
110
|
- application/json; charset=utf-8
|
112
111
|
Date:
|
113
|
-
- Wed,
|
112
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
114
113
|
Server:
|
115
|
-
- nginx/1.4.
|
114
|
+
- nginx/1.4.7
|
116
115
|
X-Powered-By:
|
117
116
|
- Express
|
118
117
|
Content-Length:
|
119
|
-
- '
|
118
|
+
- '518'
|
120
119
|
Connection:
|
121
120
|
- keep-alive
|
122
121
|
body:
|
123
|
-
encoding:
|
124
|
-
string:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"},{"rel":"schools","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools"},{"rel":"teachers","uri":"/v1.1/districts/4fd43cc56d11340000000005/teachers"},{"rel":"students","uri":"/v1.1/districts/4fd43cc56d11340000000005/students"},{"rel":"sections","uri":"/v1.1/districts/4fd43cc56d11340000000005/sections"},{"rel":"events","uri":"/v1.1/districts/4fd43cc56d11340000000005/events"}]}'
|
125
124
|
http_version:
|
126
|
-
recorded_at: Wed,
|
125
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
127
126
|
- request:
|
128
127
|
method: get
|
129
128
|
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/schools?limit=100000
|
@@ -132,7 +131,7 @@ http_interactions:
|
|
132
131
|
string: ''
|
133
132
|
headers:
|
134
133
|
Accept:
|
135
|
-
-
|
134
|
+
- "*/*; q=0.5, application/xml"
|
136
135
|
Accept-Encoding:
|
137
136
|
- gzip, deflate
|
138
137
|
User-Agent:
|
@@ -145,40 +144,37 @@ http_interactions:
|
|
145
144
|
Access-Control-Allow-Headers:
|
146
145
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
147
146
|
Access-Control-Allow-Methods:
|
148
|
-
- GET,
|
147
|
+
- GET,PATCH,POST,DELETE
|
149
148
|
Access-Control-Allow-Origin:
|
150
|
-
-
|
149
|
+
- "*"
|
151
150
|
Content-Type:
|
152
151
|
- application/json; charset=utf-8
|
153
152
|
Date:
|
154
|
-
- Wed,
|
153
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
155
154
|
Etag:
|
156
|
-
-
|
155
|
+
- '"-1820526720"'
|
157
156
|
Server:
|
158
|
-
- nginx/1.4.
|
157
|
+
- nginx/1.4.7
|
159
158
|
X-Powered-By:
|
160
159
|
- Express
|
161
160
|
Content-Length:
|
162
|
-
- '
|
161
|
+
- '1812'
|
163
162
|
Connection:
|
164
163
|
- keep-alive
|
165
164
|
body:
|
166
|
-
encoding:
|
167
|
-
string:
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
Memorial High","nces_id":"26309489","phone":"1-(124) 215-8079","school_number":"3935","sis_id":"3935","state_id":"23","location":{"address":"10960
|
178
|
-
Kilback View","city":"North Sarina","state":"MP","zip":"58717-8256"},"principal":{"email":"otto_sanford@mailinator.com","name":"Maryse
|
179
|
-
Tillman"},"last_modified":"2012-11-07T00:44:53.104Z","created":"2012-11-06T00:00:00.000Z","id":"4fee004cca2e43cf27000004"},"uri":"/v1.1/schools/4fee004cca2e43cf27000004"}],"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools?limit=100000"}]}'
|
165
|
+
encoding: UTF-8
|
166
|
+
string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
|
167
|
+
5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
|
168
|
+
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
169
|
+
Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
|
170
|
+
Pineapple Street","city":"Brooklyn","state":"NY","zip":"11201"},"low_grade":"Kindergarten","name":"Clever
|
171
|
+
Elementary School","nces_id":"360007000000","phone":"(718) 555-4567","principal":{"name":"Cecilia
|
172
|
+
Roderick","email":"ceciliar@mailinator.com"},"school_number":"13K123","sis_id":"13K123","state_id":"30890","id":"530e595026403103360ff9fe"},"uri":"/v1.1/schools/530e595026403103360ff9fe"},{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
|
173
|
+
Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
|
174
|
+
Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
|
175
|
+
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/districts/4fd43cc56d11340000000005/schools?limit=100000"}]}'
|
180
176
|
http_version:
|
181
|
-
recorded_at: Wed,
|
177
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
182
178
|
- request:
|
183
179
|
method: get
|
184
180
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -187,7 +183,7 @@ http_interactions:
|
|
187
183
|
string: ''
|
188
184
|
headers:
|
189
185
|
Accept:
|
190
|
-
-
|
186
|
+
- "*/*; q=0.5, application/xml"
|
191
187
|
Accept-Encoding:
|
192
188
|
- gzip, deflate
|
193
189
|
User-Agent:
|
@@ -200,26 +196,26 @@ http_interactions:
|
|
200
196
|
Access-Control-Allow-Headers:
|
201
197
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
202
198
|
Access-Control-Allow-Methods:
|
203
|
-
- GET,
|
199
|
+
- GET,PATCH,POST,DELETE
|
204
200
|
Access-Control-Allow-Origin:
|
205
|
-
-
|
201
|
+
- "*"
|
206
202
|
Content-Type:
|
207
203
|
- application/json; charset=utf-8
|
208
204
|
Date:
|
209
|
-
- Wed,
|
205
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
210
206
|
Server:
|
211
|
-
- nginx/1.4.
|
207
|
+
- nginx/1.4.7
|
212
208
|
X-Powered-By:
|
213
209
|
- Express
|
214
210
|
Content-Length:
|
215
|
-
- '
|
211
|
+
- '518'
|
216
212
|
Connection:
|
217
213
|
- keep-alive
|
218
214
|
body:
|
219
|
-
encoding:
|
220
|
-
string:
|
215
|
+
encoding: UTF-8
|
216
|
+
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"}]}'
|
221
217
|
http_version:
|
222
|
-
recorded_at: Wed,
|
218
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
223
219
|
- request:
|
224
220
|
method: get
|
225
221
|
uri: https://DEMO_KEY:@api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -228,7 +224,7 @@ http_interactions:
|
|
228
224
|
string: ''
|
229
225
|
headers:
|
230
226
|
Accept:
|
231
|
-
-
|
227
|
+
- "*/*; q=0.5, application/xml"
|
232
228
|
Accept-Encoding:
|
233
229
|
- gzip, deflate
|
234
230
|
User-Agent:
|
@@ -241,26 +237,26 @@ http_interactions:
|
|
241
237
|
Access-Control-Allow-Headers:
|
242
238
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
243
239
|
Access-Control-Allow-Methods:
|
244
|
-
- GET,
|
240
|
+
- GET,PATCH,POST,DELETE
|
245
241
|
Access-Control-Allow-Origin:
|
246
|
-
-
|
242
|
+
- "*"
|
247
243
|
Content-Type:
|
248
244
|
- application/json; charset=utf-8
|
249
245
|
Date:
|
250
|
-
- Wed,
|
246
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
251
247
|
Server:
|
252
|
-
- nginx/1.4.
|
248
|
+
- nginx/1.4.7
|
253
249
|
X-Powered-By:
|
254
250
|
- Express
|
255
251
|
Content-Length:
|
256
|
-
- '
|
252
|
+
- '518'
|
257
253
|
Connection:
|
258
254
|
- keep-alive
|
259
255
|
body:
|
260
|
-
encoding:
|
261
|
-
string:
|
256
|
+
encoding: UTF-8
|
257
|
+
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"}]}'
|
262
258
|
http_version:
|
263
|
-
recorded_at: Wed,
|
259
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
264
260
|
- request:
|
265
261
|
method: get
|
266
262
|
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/schools?limit=2&page=1
|
@@ -269,7 +265,7 @@ http_interactions:
|
|
269
265
|
string: ''
|
270
266
|
headers:
|
271
267
|
Accept:
|
272
|
-
-
|
268
|
+
- "*/*; q=0.5, application/xml"
|
273
269
|
Accept-Encoding:
|
274
270
|
- gzip, deflate
|
275
271
|
User-Agent:
|
@@ -282,34 +278,34 @@ http_interactions:
|
|
282
278
|
Access-Control-Allow-Headers:
|
283
279
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
284
280
|
Access-Control-Allow-Methods:
|
285
|
-
- GET,
|
281
|
+
- GET,PATCH,POST,DELETE
|
286
282
|
Access-Control-Allow-Origin:
|
287
|
-
-
|
283
|
+
- "*"
|
288
284
|
Content-Type:
|
289
285
|
- application/json; charset=utf-8
|
290
286
|
Date:
|
291
|
-
- Wed,
|
287
|
+
- Wed, 03 Sep 2014 19:05:19 GMT
|
292
288
|
Etag:
|
293
|
-
-
|
289
|
+
- '"1343271772"'
|
294
290
|
Server:
|
295
|
-
- nginx/1.4.
|
291
|
+
- nginx/1.4.7
|
296
292
|
X-Powered-By:
|
297
293
|
- Express
|
298
294
|
Content-Length:
|
299
|
-
- '
|
295
|
+
- '1337'
|
300
296
|
Connection:
|
301
297
|
- keep-alive
|
302
298
|
body:
|
303
|
-
encoding:
|
304
|
-
string:
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
299
|
+
encoding: UTF-8
|
300
|
+
string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
|
301
|
+
5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
|
302
|
+
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
303
|
+
Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
|
304
|
+
Pineapple Street","city":"Brooklyn","state":"NY","zip":"11201"},"low_grade":"Kindergarten","name":"Clever
|
305
|
+
Elementary School","nces_id":"360007000000","phone":"(718) 555-4567","principal":{"name":"Cecilia
|
306
|
+
Roderick","email":"ceciliar@mailinator.com"},"school_number":"13K123","sis_id":"13K123","state_id":"30890","id":"530e595026403103360ff9fe"},"uri":"/v1.1/schools/530e595026403103360ff9fe"}],"paging":{"current":1,"total":2,"count":3},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools?limit=2&page=1"},{"rel":"next","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools?limit=2&page=2"}]}'
|
311
307
|
http_version:
|
312
|
-
recorded_at: Wed,
|
308
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
313
309
|
- request:
|
314
310
|
method: get
|
315
311
|
uri: https://DEMO_KEY:@api.clever.com//v1.1/districts/4fd43cc56d11340000000005/schools?limit=2&page=2
|
@@ -318,7 +314,7 @@ http_interactions:
|
|
318
314
|
string: ''
|
319
315
|
headers:
|
320
316
|
Accept:
|
321
|
-
-
|
317
|
+
- "*/*; q=0.5, application/xml"
|
322
318
|
Accept-Encoding:
|
323
319
|
- gzip, deflate
|
324
320
|
User-Agent:
|
@@ -331,32 +327,27 @@ http_interactions:
|
|
331
327
|
Access-Control-Allow-Headers:
|
332
328
|
- Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
|
333
329
|
Access-Control-Allow-Methods:
|
334
|
-
- GET,
|
330
|
+
- GET,PATCH,POST,DELETE
|
335
331
|
Access-Control-Allow-Origin:
|
336
|
-
-
|
332
|
+
- "*"
|
337
333
|
Content-Type:
|
338
334
|
- application/json; charset=utf-8
|
339
335
|
Date:
|
340
|
-
- Wed,
|
341
|
-
Etag:
|
342
|
-
- ! '"-1636206654"'
|
336
|
+
- Wed, 03 Sep 2014 19:05:20 GMT
|
343
337
|
Server:
|
344
|
-
- nginx/1.4.
|
338
|
+
- nginx/1.4.7
|
345
339
|
X-Powered-By:
|
346
340
|
- Express
|
347
341
|
Content-Length:
|
348
|
-
- '
|
342
|
+
- '801'
|
349
343
|
Connection:
|
350
344
|
- keep-alive
|
351
345
|
body:
|
352
|
-
encoding:
|
353
|
-
string:
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
Memorial High","nces_id":"26309489","phone":"1-(124) 215-8079","school_number":"3935","sis_id":"3935","state_id":"23","location":{"address":"10960
|
358
|
-
Kilback View","city":"North Sarina","state":"MP","zip":"58717-8256"},"principal":{"email":"otto_sanford@mailinator.com","name":"Maryse
|
359
|
-
Tillman"},"last_modified":"2012-11-07T00:44:53.104Z","created":"2012-11-06T00:00:00.000Z","id":"4fee004cca2e43cf27000004"},"uri":"/v1.1/schools/4fee004cca2e43cf27000004"}],"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools?limit=2&page=2"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools?limit=2&page=1"}]}'
|
346
|
+
encoding: UTF-8
|
347
|
+
string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
|
348
|
+
Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
|
349
|
+
Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
|
350
|
+
Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":2,"total":2,"count":3},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools?limit=2&page=2"},{"rel":"prev","uri":"/v1.1/districts/4fd43cc56d11340000000005/schools?limit=2&page=1"}]}'
|
360
351
|
http_version:
|
361
|
-
recorded_at: Wed,
|
352
|
+
recorded_at: Wed, 03 Sep 2014 19:05:19 GMT
|
362
353
|
recorded_with: VCR 2.4.0
|