clever-ruby 0.11.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +15 -1
- data/clever-ruby.gemspec +0 -1
- data/lib/clever-ruby.rb +1 -1
- data/lib/clever-ruby/api_resource.rb +43 -7
- data/lib/clever-ruby/district.rb +14 -0
- data/lib/clever-ruby/event.rb +2 -0
- data/lib/clever-ruby/school.rb +2 -0
- data/lib/clever-ruby/school_admin.rb +17 -0
- data/lib/clever-ruby/section.rb +2 -0
- data/lib/clever-ruby/student.rb +2 -0
- data/lib/clever-ruby/teacher.rb +2 -0
- data/lib/clever-ruby/util.rb +1 -9
- data/lib/clever-ruby/version.rb +1 -1
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_district_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_event_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_admin_properly.yml +52 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_section_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_student_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_teacher_properly.yml +14 -8
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_district.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_event.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school_admin.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_section.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_student.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_teacher.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_by_page.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_with_multiple_ids.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_by_page.yml +24 -10
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_by_page.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_with_multiple_ids.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_by_page.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_with_multiple_ids.yml +28 -20
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_by_page.yml +34 -22
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_by_page.yml +48 -36
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_with_multiple_ids.yml +30 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_by_page.yml +27 -17
- data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml +28 -20
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_district.yml +28 -16
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_event.yml +28 -14
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school.yml +28 -18
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school_admin.yml +101 -0
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_section.yml +34 -22
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_student.yml +48 -36
- data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_teacher.yml +30 -20
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_events.yml +39 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_schools.yml +36 -22
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_sections.yml +37 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_students.yml +37 -19
- data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_teachers.yml +34 -20
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_school_admins.yml +101 -0
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_schools.yml +25 -15
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_sections.yml +26 -14
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_students.yml +26 -14
- data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_teachers.yml +25 -15
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_events.yml +54 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_schools.yml +50 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_sections.yml +51 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_students.yml +51 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_teachers.yml +50 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_admin_s_schools.yml +205 -0
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_district.yml +43 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_events.yml +56 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_sections.yml +58 -36
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_students.yml +69 -45
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_teachers.yml +52 -34
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_district.yml +42 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_events.yml +58 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_school.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_students.yml +45 -27
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_teacher.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_district.yml +42 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_events.yml +58 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_school.yml +41 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_sections.yml +56 -32
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_teachers.yml +54 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_district.yml +40 -24
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_events.yml +56 -30
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_school.yml +39 -23
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_sections.yml +54 -32
- data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_students.yml +54 -32
- data/test/data/vcr_cassettes/Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml +42 -24
- data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +13 -7
- data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +142 -61
- data/test/integration/api_operations/list_test.rb +5 -3
- data/test/integration/district_with_non_global_token_test.rb +7 -0
- data/test/integration/last_test.rb +3 -2
- data/test/integration/nested_resource_test.rb +3 -2
- data/test/unit/api_resource_test.rb +29 -14
- data/test/unit/clever_test.rb +1 -0
- metadata +17 -16
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,30 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
33
|
-
Server:
|
34
|
-
- nginx/1.4.7
|
32
|
+
- Sat, 26 Sep 2015 17:37:32 GMT
|
35
33
|
X-Powered-By:
|
36
34
|
- Express
|
35
|
+
X-Ratelimit-Bucket:
|
36
|
+
- bearer
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '1200'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '1097'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1443289062'
|
37
43
|
Content-Length:
|
38
44
|
- '217'
|
39
45
|
Connection:
|
40
46
|
- keep-alive
|
41
47
|
body:
|
42
|
-
encoding:
|
43
|
-
string:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts"}]}'
|
44
50
|
http_version:
|
45
|
-
recorded_at: Sat,
|
51
|
+
recorded_at: Sat, 26 Sep 2015 17:37:32 GMT
|
46
52
|
- request:
|
47
53
|
method: get
|
48
54
|
uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -51,7 +57,7 @@ http_interactions:
|
|
51
57
|
string: ''
|
52
58
|
headers:
|
53
59
|
Accept:
|
54
|
-
-
|
60
|
+
- "*/*; q=0.5, application/xml"
|
55
61
|
Accept-Encoding:
|
56
62
|
- gzip, deflate
|
57
63
|
Authorization:
|
@@ -68,24 +74,30 @@ http_interactions:
|
|
68
74
|
Access-Control-Allow-Methods:
|
69
75
|
- GET,PATCH,POST,DELETE
|
70
76
|
Access-Control-Allow-Origin:
|
71
|
-
-
|
77
|
+
- "*"
|
72
78
|
Content-Type:
|
73
79
|
- application/json; charset=utf-8
|
74
80
|
Date:
|
75
|
-
- Sat,
|
76
|
-
Server:
|
77
|
-
- nginx/1.4.7
|
81
|
+
- Sat, 26 Sep 2015 17:37:32 GMT
|
78
82
|
X-Powered-By:
|
79
83
|
- Express
|
84
|
+
X-Ratelimit-Bucket:
|
85
|
+
- bearer
|
86
|
+
X-Ratelimit-Limit:
|
87
|
+
- '1200'
|
88
|
+
X-Ratelimit-Remaining:
|
89
|
+
- '1096'
|
90
|
+
X-Ratelimit-Reset:
|
91
|
+
- '1443289062'
|
80
92
|
Content-Length:
|
81
93
|
- '518'
|
82
94
|
Connection:
|
83
95
|
- keep-alive
|
84
96
|
body:
|
85
|
-
encoding:
|
86
|
-
string:
|
97
|
+
encoding: UTF-8
|
98
|
+
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"}]}'
|
87
99
|
http_version:
|
88
|
-
recorded_at: Sat,
|
100
|
+
recorded_at: Sat, 26 Sep 2015 17:37:32 GMT
|
89
101
|
- request:
|
90
102
|
method: get
|
91
103
|
uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/sections
|
@@ -94,7 +106,7 @@ http_interactions:
|
|
94
106
|
string: ''
|
95
107
|
headers:
|
96
108
|
Accept:
|
97
|
-
-
|
109
|
+
- "*/*; q=0.5, application/xml"
|
98
110
|
Accept-Encoding:
|
99
111
|
- gzip, deflate
|
100
112
|
Authorization:
|
@@ -982,17 +994,23 @@ http_interactions:
|
|
982
994
|
Access-Control-Allow-Methods:
|
983
995
|
- GET,PATCH,POST,DELETE
|
984
996
|
Access-Control-Allow-Origin:
|
985
|
-
-
|
997
|
+
- "*"
|
986
998
|
Content-Type:
|
987
999
|
- application/json; charset=utf-8
|
988
1000
|
Date:
|
989
|
-
- Sat,
|
1001
|
+
- Sat, 26 Sep 2015 17:37:32 GMT
|
990
1002
|
Etag:
|
991
|
-
-
|
992
|
-
Server:
|
993
|
-
- nginx/1.4.7
|
1003
|
+
- '"-696284929"'
|
994
1004
|
X-Powered-By:
|
995
1005
|
- Express
|
1006
|
+
X-Ratelimit-Bucket:
|
1007
|
+
- bearer
|
1008
|
+
X-Ratelimit-Limit:
|
1009
|
+
- '1200'
|
1010
|
+
X-Ratelimit-Remaining:
|
1011
|
+
- '1095'
|
1012
|
+
X-Ratelimit-Reset:
|
1013
|
+
- '1443289062'
|
996
1014
|
Content-Length:
|
997
1015
|
- '95741'
|
998
1016
|
Connection:
|
@@ -1221,17 +1239,23 @@ http_interactions:
|
|
1221
1239
|
Access-Control-Allow-Methods:
|
1222
1240
|
- GET,PATCH,POST,DELETE
|
1223
1241
|
Access-Control-Allow-Origin:
|
1224
|
-
-
|
1242
|
+
- "*"
|
1225
1243
|
Content-Type:
|
1226
1244
|
- application/json; charset=utf-8
|
1227
1245
|
Date:
|
1228
|
-
- Sat,
|
1246
|
+
- Sat, 26 Sep 2015 17:37:33 GMT
|
1229
1247
|
Etag:
|
1230
|
-
-
|
1231
|
-
Server:
|
1232
|
-
- nginx/1.4.7
|
1248
|
+
- '"-696284929"'
|
1233
1249
|
X-Powered-By:
|
1234
1250
|
- Express
|
1251
|
+
X-Ratelimit-Bucket:
|
1252
|
+
- bearer
|
1253
|
+
X-Ratelimit-Limit:
|
1254
|
+
- '1200'
|
1255
|
+
X-Ratelimit-Remaining:
|
1256
|
+
- '1094'
|
1257
|
+
X-Ratelimit-Reset:
|
1258
|
+
- '1443289062'
|
1235
1259
|
Content-Length:
|
1236
1260
|
- '116608'
|
1237
1261
|
Connection:
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,30 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
33
|
-
Server:
|
34
|
-
- nginx/1.4.7
|
32
|
+
- Sat, 26 Sep 2015 17:37:15 GMT
|
35
33
|
X-Powered-By:
|
36
34
|
- Express
|
35
|
+
X-Ratelimit-Bucket:
|
36
|
+
- bearer
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '1200'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '1138'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1443289062'
|
37
43
|
Content-Length:
|
38
44
|
- '217'
|
39
45
|
Connection:
|
40
46
|
- keep-alive
|
41
47
|
body:
|
42
|
-
encoding:
|
43
|
-
string:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts"}]}'
|
44
50
|
http_version:
|
45
|
-
recorded_at: Sat,
|
51
|
+
recorded_at: Sat, 26 Sep 2015 17:37:15 GMT
|
46
52
|
- request:
|
47
53
|
method: get
|
48
54
|
uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -51,7 +57,7 @@ http_interactions:
|
|
51
57
|
string: ''
|
52
58
|
headers:
|
53
59
|
Accept:
|
54
|
-
-
|
60
|
+
- "*/*; q=0.5, application/xml"
|
55
61
|
Accept-Encoding:
|
56
62
|
- gzip, deflate
|
57
63
|
Authorization:
|
@@ -68,24 +74,30 @@ http_interactions:
|
|
68
74
|
Access-Control-Allow-Methods:
|
69
75
|
- GET,PATCH,POST,DELETE
|
70
76
|
Access-Control-Allow-Origin:
|
71
|
-
-
|
77
|
+
- "*"
|
72
78
|
Content-Type:
|
73
79
|
- application/json; charset=utf-8
|
74
80
|
Date:
|
75
|
-
- Sat,
|
76
|
-
Server:
|
77
|
-
- nginx/1.4.7
|
81
|
+
- Sat, 26 Sep 2015 17:37:15 GMT
|
78
82
|
X-Powered-By:
|
79
83
|
- Express
|
84
|
+
X-Ratelimit-Bucket:
|
85
|
+
- bearer
|
86
|
+
X-Ratelimit-Limit:
|
87
|
+
- '1200'
|
88
|
+
X-Ratelimit-Remaining:
|
89
|
+
- '1137'
|
90
|
+
X-Ratelimit-Reset:
|
91
|
+
- '1443289062'
|
80
92
|
Content-Length:
|
81
93
|
- '518'
|
82
94
|
Connection:
|
83
95
|
- keep-alive
|
84
96
|
body:
|
85
|
-
encoding:
|
86
|
-
string:
|
97
|
+
encoding: UTF-8
|
98
|
+
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"}]}'
|
87
99
|
http_version:
|
88
|
-
recorded_at: Sat,
|
100
|
+
recorded_at: Sat, 26 Sep 2015 17:37:16 GMT
|
89
101
|
- request:
|
90
102
|
method: get
|
91
103
|
uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/students
|
@@ -210,7 +222,7 @@ http_interactions:
|
|
210
222
|
string: ''
|
211
223
|
headers:
|
212
224
|
Accept:
|
213
|
-
-
|
225
|
+
- "*/*; q=0.5, application/xml"
|
214
226
|
Accept-Encoding:
|
215
227
|
- gzip, deflate
|
216
228
|
Authorization:
|
@@ -888,17 +900,23 @@ http_interactions:
|
|
888
900
|
Access-Control-Allow-Methods:
|
889
901
|
- GET,PATCH,POST,DELETE
|
890
902
|
Access-Control-Allow-Origin:
|
891
|
-
-
|
903
|
+
- "*"
|
892
904
|
Content-Type:
|
893
905
|
- application/json; charset=utf-8
|
894
906
|
Date:
|
895
|
-
- Sat,
|
907
|
+
- Sat, 26 Sep 2015 17:37:16 GMT
|
896
908
|
Etag:
|
897
|
-
-
|
898
|
-
Server:
|
899
|
-
- nginx/1.4.7
|
909
|
+
- '"-1500687349"'
|
900
910
|
X-Powered-By:
|
901
911
|
- Express
|
912
|
+
X-Ratelimit-Bucket:
|
913
|
+
- bearer
|
914
|
+
X-Ratelimit-Limit:
|
915
|
+
- '1200'
|
916
|
+
X-Ratelimit-Remaining:
|
917
|
+
- '1136'
|
918
|
+
X-Ratelimit-Reset:
|
919
|
+
- '1443289062'
|
902
920
|
Content-Length:
|
903
921
|
- '66382'
|
904
922
|
Connection:
|
@@ -1001,17 +1019,23 @@ http_interactions:
|
|
1001
1019
|
Access-Control-Allow-Methods:
|
1002
1020
|
- GET,PATCH,POST,DELETE
|
1003
1021
|
Access-Control-Allow-Origin:
|
1004
|
-
-
|
1022
|
+
- "*"
|
1005
1023
|
Content-Type:
|
1006
1024
|
- application/json; charset=utf-8
|
1007
1025
|
Date:
|
1008
|
-
- Sat,
|
1026
|
+
- Sat, 26 Sep 2015 17:37:16 GMT
|
1009
1027
|
Etag:
|
1010
|
-
-
|
1011
|
-
Server:
|
1012
|
-
- nginx/1.4.7
|
1028
|
+
- '"-1500687349"'
|
1013
1029
|
X-Powered-By:
|
1014
1030
|
- Express
|
1031
|
+
X-Ratelimit-Bucket:
|
1032
|
+
- bearer
|
1033
|
+
X-Ratelimit-Limit:
|
1034
|
+
- '1200'
|
1035
|
+
X-Ratelimit-Remaining:
|
1036
|
+
- '1135'
|
1037
|
+
X-Ratelimit-Reset:
|
1038
|
+
- '1443289062'
|
1015
1039
|
Content-Length:
|
1016
1040
|
- '66347'
|
1017
1041
|
Connection:
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Authorization:
|
@@ -25,24 +25,30 @@ http_interactions:
|
|
25
25
|
Access-Control-Allow-Methods:
|
26
26
|
- GET,PATCH,POST,DELETE
|
27
27
|
Access-Control-Allow-Origin:
|
28
|
-
-
|
28
|
+
- "*"
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
- Sat,
|
33
|
-
Server:
|
34
|
-
- nginx/1.4.7
|
32
|
+
- Sat, 26 Sep 2015 17:37:27 GMT
|
35
33
|
X-Powered-By:
|
36
34
|
- Express
|
35
|
+
X-Ratelimit-Bucket:
|
36
|
+
- bearer
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '1200'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '1108'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1443289062'
|
37
43
|
Content-Length:
|
38
44
|
- '217'
|
39
45
|
Connection:
|
40
46
|
- keep-alive
|
41
47
|
body:
|
42
|
-
encoding:
|
43
|
-
string:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"paging":{"current":1,"total":1,"count":1},"links":[{"rel":"self","uri":"/v1.1/districts"}]}'
|
44
50
|
http_version:
|
45
|
-
recorded_at: Sat,
|
51
|
+
recorded_at: Sat, 26 Sep 2015 17:37:28 GMT
|
46
52
|
- request:
|
47
53
|
method: get
|
48
54
|
uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
|
@@ -51,7 +57,7 @@ http_interactions:
|
|
51
57
|
string: ''
|
52
58
|
headers:
|
53
59
|
Accept:
|
54
|
-
-
|
60
|
+
- "*/*; q=0.5, application/xml"
|
55
61
|
Accept-Encoding:
|
56
62
|
- gzip, deflate
|
57
63
|
Authorization:
|
@@ -68,24 +74,30 @@ http_interactions:
|
|
68
74
|
Access-Control-Allow-Methods:
|
69
75
|
- GET,PATCH,POST,DELETE
|
70
76
|
Access-Control-Allow-Origin:
|
71
|
-
-
|
77
|
+
- "*"
|
72
78
|
Content-Type:
|
73
79
|
- application/json; charset=utf-8
|
74
80
|
Date:
|
75
|
-
- Sat,
|
76
|
-
Server:
|
77
|
-
- nginx/1.4.7
|
81
|
+
- Sat, 26 Sep 2015 17:37:28 GMT
|
78
82
|
X-Powered-By:
|
79
83
|
- Express
|
84
|
+
X-Ratelimit-Bucket:
|
85
|
+
- bearer
|
86
|
+
X-Ratelimit-Limit:
|
87
|
+
- '1200'
|
88
|
+
X-Ratelimit-Remaining:
|
89
|
+
- '1107'
|
90
|
+
X-Ratelimit-Reset:
|
91
|
+
- '1443289062'
|
80
92
|
Content-Length:
|
81
93
|
- '518'
|
82
94
|
Connection:
|
83
95
|
- keep-alive
|
84
96
|
body:
|
85
|
-
encoding:
|
86
|
-
string:
|
97
|
+
encoding: UTF-8
|
98
|
+
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"}]}'
|
87
99
|
http_version:
|
88
|
-
recorded_at: Sat,
|
100
|
+
recorded_at: Sat, 26 Sep 2015 17:37:28 GMT
|
89
101
|
- request:
|
90
102
|
method: get
|
91
103
|
uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/teachers
|
@@ -94,7 +106,7 @@ http_interactions:
|
|
94
106
|
string: ''
|
95
107
|
headers:
|
96
108
|
Accept:
|
97
|
-
-
|
109
|
+
- "*/*; q=0.5, application/xml"
|
98
110
|
Accept-Encoding:
|
99
111
|
- gzip, deflate
|
100
112
|
Authorization:
|
@@ -111,17 +123,21 @@ http_interactions:
|
|
111
123
|
Access-Control-Allow-Methods:
|
112
124
|
- GET,PATCH,POST,DELETE
|
113
125
|
Access-Control-Allow-Origin:
|
114
|
-
-
|
126
|
+
- "*"
|
115
127
|
Content-Type:
|
116
128
|
- application/json; charset=utf-8
|
117
129
|
Date:
|
118
|
-
- Sat,
|
119
|
-
Etag:
|
120
|
-
- ! '"-1659229539"'
|
121
|
-
Server:
|
122
|
-
- nginx/1.4.7
|
130
|
+
- Sat, 26 Sep 2015 17:37:28 GMT
|
123
131
|
X-Powered-By:
|
124
132
|
- Express
|
133
|
+
X-Ratelimit-Bucket:
|
134
|
+
- bearer
|
135
|
+
X-Ratelimit-Limit:
|
136
|
+
- '1200'
|
137
|
+
X-Ratelimit-Remaining:
|
138
|
+
- '1106'
|
139
|
+
X-Ratelimit-Reset:
|
140
|
+
- '1443289062'
|
125
141
|
Content-Length:
|
126
142
|
- '44652'
|
127
143
|
Connection:
|
@@ -228,7 +244,7 @@ http_interactions:
|
|
228
244
|
string: ''
|
229
245
|
headers:
|
230
246
|
Accept:
|
231
|
-
-
|
247
|
+
- "*/*; q=0.5, application/xml"
|
232
248
|
Accept-Encoding:
|
233
249
|
- gzip, deflate
|
234
250
|
Authorization:
|
@@ -245,17 +261,21 @@ http_interactions:
|
|
245
261
|
Access-Control-Allow-Methods:
|
246
262
|
- GET,PATCH,POST,DELETE
|
247
263
|
Access-Control-Allow-Origin:
|
248
|
-
-
|
264
|
+
- "*"
|
249
265
|
Content-Type:
|
250
266
|
- application/json; charset=utf-8
|
251
267
|
Date:
|
252
|
-
- Sat,
|
253
|
-
Etag:
|
254
|
-
- ! '"-1659229539"'
|
255
|
-
Server:
|
256
|
-
- nginx/1.4.7
|
268
|
+
- Sat, 26 Sep 2015 17:37:28 GMT
|
257
269
|
X-Powered-By:
|
258
270
|
- Express
|
271
|
+
X-Ratelimit-Bucket:
|
272
|
+
- bearer
|
273
|
+
X-Ratelimit-Limit:
|
274
|
+
- '1200'
|
275
|
+
X-Ratelimit-Remaining:
|
276
|
+
- '1105'
|
277
|
+
X-Ratelimit-Reset:
|
278
|
+
- '1443289062'
|
259
279
|
Content-Length:
|
260
280
|
- '44652'
|
261
281
|
Connection:
|