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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +15 -1
  4. data/clever-ruby.gemspec +0 -1
  5. data/lib/clever-ruby.rb +1 -1
  6. data/lib/clever-ruby/api_resource.rb +43 -7
  7. data/lib/clever-ruby/district.rb +14 -0
  8. data/lib/clever-ruby/event.rb +2 -0
  9. data/lib/clever-ruby/school.rb +2 -0
  10. data/lib/clever-ruby/school_admin.rb +17 -0
  11. data/lib/clever-ruby/section.rb +2 -0
  12. data/lib/clever-ruby/student.rb +2 -0
  13. data/lib/clever-ruby/teacher.rb +2 -0
  14. data/lib/clever-ruby/util.rb +1 -9
  15. data/lib/clever-ruby/version.rb +1 -1
  16. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_district_properly.yml +14 -8
  17. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_event_properly.yml +14 -8
  18. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_admin_properly.yml +52 -0
  19. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_school_properly.yml +14 -8
  20. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_section_properly.yml +14 -8
  21. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_student_properly.yml +14 -8
  22. data/test/data/vcr_cassettes/Clever_APIOperations_List/counts_teacher_properly.yml +14 -8
  23. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_district.yml +28 -16
  24. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_event.yml +28 -16
  25. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school.yml +28 -18
  26. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_school_admin.yml +101 -0
  27. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_section.yml +30 -18
  28. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_student.yml +30 -18
  29. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_a_single_teacher.yml +28 -18
  30. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_by_page.yml +28 -16
  31. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_districts_with_multiple_ids.yml +28 -16
  32. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_by_page.yml +24 -10
  33. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_events_with_multiple_ids.yml +30 -18
  34. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_by_page.yml +101 -0
  35. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_school_admins_with_multiple_ids.yml +101 -0
  36. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_by_page.yml +28 -18
  37. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_schools_with_multiple_ids.yml +28 -20
  38. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_by_page.yml +34 -22
  39. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_sections_with_multiple_ids.yml +30 -18
  40. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_by_page.yml +48 -36
  41. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_students_with_multiple_ids.yml +30 -18
  42. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_by_page.yml +27 -17
  43. data/test/data/vcr_cassettes/Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml +28 -20
  44. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_district.yml +28 -16
  45. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_event.yml +28 -14
  46. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school.yml +28 -18
  47. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_school_admin.yml +101 -0
  48. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_section.yml +34 -22
  49. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_student.yml +48 -36
  50. data/test/data/vcr_cassettes/Clever_APIOperations_List/retrieves_all_teacher.yml +30 -20
  51. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_events.yml +39 -19
  52. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_schools.yml +36 -22
  53. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_sections.yml +37 -19
  54. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_students.yml +37 -19
  55. data/test/data/vcr_cassettes/Clever_District_without_global_token/pages_methods/pages_a_district_s_teachers.yml +34 -20
  56. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_school_admins.yml +101 -0
  57. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_schools.yml +25 -15
  58. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_sections.yml +26 -14
  59. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_students.yml +26 -14
  60. data/test/data/vcr_cassettes/Clever_District_without_global_token/retrieves_a_district_s_teachers.yml +25 -15
  61. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_events.yml +54 -30
  62. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_schools.yml +50 -30
  63. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_sections.yml +51 -27
  64. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_students.yml +51 -27
  65. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_district_s_teachers.yml +50 -30
  66. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_admin_s_schools.yml +205 -0
  67. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_district.yml +43 -27
  68. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_events.yml +56 -30
  69. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_sections.yml +58 -36
  70. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_students.yml +69 -45
  71. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_school_s_teachers.yml +52 -34
  72. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_district.yml +42 -24
  73. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_events.yml +58 -30
  74. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_school.yml +41 -23
  75. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_students.yml +45 -27
  76. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_section_s_teacher.yml +41 -23
  77. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_district.yml +42 -24
  78. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_events.yml +58 -30
  79. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_school.yml +41 -23
  80. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_sections.yml +56 -32
  81. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_student_s_teachers.yml +54 -30
  82. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_district.yml +40 -24
  83. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_events.yml +56 -30
  84. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_school.yml +39 -23
  85. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_sections.yml +54 -32
  86. data/test/data/vcr_cassettes/Clever_NestedResource/retrieves_a_teacher_s_students.yml +54 -32
  87. data/test/data/vcr_cassettes/Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml +42 -24
  88. data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +13 -7
  89. data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +142 -61
  90. data/test/integration/api_operations/list_test.rb +5 -3
  91. data/test/integration/district_with_non_global_token_test.rb +7 -0
  92. data/test/integration/last_test.rb +3 -2
  93. data/test/integration/nested_resource_test.rb +3 -2
  94. data/test/unit/api_resource_test.rb +29 -14
  95. data/test/unit/clever_test.rb +1 -0
  96. metadata +17 -16
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005?
5
+ uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Authorization:
@@ -25,15 +25,21 @@ 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
- - Tue, 30 Sep 2014 19:54:16 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:40: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
+ - '1087'
41
+ X-Ratelimit-Reset:
42
+ - '1443289242'
37
43
  Content-Length:
38
44
  - '518'
39
45
  Connection:
@@ -42,7 +48,7 @@ http_interactions:
42
48
  encoding: UTF-8
43
49
  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"}]}'
44
50
  http_version:
45
- recorded_at: Tue, 30 Sep 2014 19:54:16 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:40:28 GMT
46
52
  - request:
47
53
  method: get
48
54
  uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/students?limit=100000
@@ -51,7 +57,7 @@ http_interactions:
51
57
  string: ''
52
58
  headers:
53
59
  Accept:
54
- - '*/*; q=0.5, application/xml'
60
+ - "*/*; q=0.5, application/xml"
55
61
  Accept-Encoding:
56
62
  - gzip, deflate
57
63
  Authorization:
@@ -68,17 +74,23 @@ 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
- - Tue, 30 Sep 2014 19:54:16 GMT
81
+ - Sat, 26 Sep 2015 17:40:28 GMT
76
82
  Etag:
77
- - '"-1260498667"'
78
- Server:
79
- - nginx/1.4.7
83
+ - '"-1180153542"'
80
84
  X-Powered-By:
81
85
  - Express
86
+ X-Ratelimit-Bucket:
87
+ - bearer
88
+ X-Ratelimit-Limit:
89
+ - '1200'
90
+ X-Ratelimit-Remaining:
91
+ - '1086'
92
+ X-Ratelimit-Reset:
93
+ - '1443289242'
82
94
  Content-Length:
83
95
  - '663224'
84
96
  Connection:
@@ -750,7 +762,7 @@ http_interactions:
750
762
  string: ''
751
763
  headers:
752
764
  Accept:
753
- - '*/*; q=0.5, application/xml'
765
+ - "*/*; q=0.5, application/xml"
754
766
  Accept-Encoding:
755
767
  - gzip, deflate
756
768
  Authorization:
@@ -767,17 +779,23 @@ http_interactions:
767
779
  Access-Control-Allow-Methods:
768
780
  - GET,PATCH,POST,DELETE
769
781
  Access-Control-Allow-Origin:
770
- - '*'
782
+ - "*"
771
783
  Content-Type:
772
784
  - application/json; charset=utf-8
773
785
  Date:
774
- - Tue, 30 Sep 2014 19:54:19 GMT
786
+ - Sat, 26 Sep 2015 17:40:28 GMT
775
787
  Etag:
776
- - '"-222331548"'
777
- Server:
778
- - nginx/1.4.7
788
+ - '"-613146498"'
779
789
  X-Powered-By:
780
790
  - Express
791
+ X-Ratelimit-Bucket:
792
+ - bearer
793
+ X-Ratelimit-Limit:
794
+ - '1200'
795
+ X-Ratelimit-Remaining:
796
+ - '1085'
797
+ X-Ratelimit-Reset:
798
+ - '1443289242'
781
799
  Content-Length:
782
800
  - '33248'
783
801
  Connection:
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005?
5
+ uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Authorization:
@@ -25,15 +25,21 @@ 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
- - Tue, 30 Sep 2014 19:54:10 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:37:52 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
+ - '1175'
41
+ X-Ratelimit-Reset:
42
+ - '1443289122'
37
43
  Content-Length:
38
44
  - '518'
39
45
  Connection:
@@ -51,7 +57,7 @@ http_interactions:
51
57
  string: ''
52
58
  headers:
53
59
  Accept:
54
- - '*/*; q=0.5, application/xml'
60
+ - "*/*; q=0.5, application/xml"
55
61
  Accept-Encoding:
56
62
  - gzip, deflate
57
63
  Authorization:
@@ -68,17 +74,21 @@ 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
- - Tue, 30 Sep 2014 19:54:10 GMT
76
- Etag:
77
- - '"-1604003112"'
78
- Server:
79
- - nginx/1.4.7
81
+ - Sat, 26 Sep 2015 17:37:52 GMT
80
82
  X-Powered-By:
81
83
  - Express
84
+ X-Ratelimit-Bucket:
85
+ - bearer
86
+ X-Ratelimit-Limit:
87
+ - '1200'
88
+ X-Ratelimit-Remaining:
89
+ - '1174'
90
+ X-Ratelimit-Reset:
91
+ - '1443289122'
82
92
  Content-Length:
83
93
  - '44665'
84
94
  Connection:
@@ -185,7 +195,7 @@ http_interactions:
185
195
  string: ''
186
196
  headers:
187
197
  Accept:
188
- - '*/*; q=0.5, application/xml'
198
+ - "*/*; q=0.5, application/xml"
189
199
  Accept-Encoding:
190
200
  - gzip, deflate
191
201
  Authorization:
@@ -202,17 +212,21 @@ http_interactions:
202
212
  Access-Control-Allow-Methods:
203
213
  - GET,PATCH,POST,DELETE
204
214
  Access-Control-Allow-Origin:
205
- - '*'
215
+ - "*"
206
216
  Content-Type:
207
217
  - application/json; charset=utf-8
208
218
  Date:
209
- - Tue, 30 Sep 2014 19:54:11 GMT
210
- Etag:
211
- - '"1331950855"'
212
- Server:
213
- - nginx/1.4.7
219
+ - Sat, 26 Sep 2015 17:37:52 GMT
214
220
  X-Powered-By:
215
221
  - Express
222
+ X-Ratelimit-Bucket:
223
+ - bearer
224
+ X-Ratelimit-Limit:
225
+ - '1200'
226
+ X-Ratelimit-Remaining:
227
+ - '1173'
228
+ X-Ratelimit-Reset:
229
+ - '1443289122'
216
230
  Content-Length:
217
231
  - '5210'
218
232
  Connection:
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Authorization:
15
+ - Bearer DEMO_TOKEN
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Access-Control-Allow-Headers:
24
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
25
+ Access-Control-Allow-Methods:
26
+ - GET,PATCH,POST,DELETE
27
+ Access-Control-Allow-Origin:
28
+ - "*"
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Date:
32
+ - Sat, 26 Sep 2015 17:41:31 GMT
33
+ X-Powered-By:
34
+ - Express
35
+ X-Ratelimit-Bucket:
36
+ - bearer
37
+ X-Ratelimit-Limit:
38
+ - '1200'
39
+ X-Ratelimit-Remaining:
40
+ - '1105'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
43
+ Content-Length:
44
+ - '518'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ 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"}]}'
50
+ http_version:
51
+ recorded_at: Sat, 26 Sep 2015 17:41:31 GMT
52
+ - request:
53
+ method: get
54
+ uri: https://api.clever.com//v1.1/school_admins
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ''
58
+ headers:
59
+ Accept:
60
+ - "*/*; q=0.5, application/xml"
61
+ Accept-Encoding:
62
+ - gzip, deflate
63
+ Authorization:
64
+ - Bearer DEMO_TOKEN
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Access-Control-Allow-Headers:
73
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
74
+ Access-Control-Allow-Methods:
75
+ - GET,PATCH,POST,DELETE
76
+ Access-Control-Allow-Origin:
77
+ - "*"
78
+ Content-Type:
79
+ - application/json; charset=utf-8
80
+ Date:
81
+ - Sat, 26 Sep 2015 17:41:30 GMT
82
+ X-Powered-By:
83
+ - Express
84
+ X-Ratelimit-Bucket:
85
+ - bearer
86
+ X-Ratelimit-Limit:
87
+ - '1200'
88
+ X-Ratelimit-Remaining:
89
+ - '1109'
90
+ X-Ratelimit-Reset:
91
+ - '1443289303'
92
+ Content-Length:
93
+ - '352'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: UTF-8
98
+ string: '{"data":[{"data":{"district":"4fd43cc56d11340000000005","email":"thinkerton@example.com","name":{"first":"Think","last":"Thinkerton"},"schools":["530e595026403103360ff9fd"],"staff_id":"1212","title":"Principal","id":"5601b814141fd30001000017"},"uri":"/v1.1/school_admins/5601b814141fd30001000017"}],"links":[{"rel":"self","uri":"/v1.1/school_admins"}]}'
99
+ http_version:
100
+ recorded_at: Sat, 26 Sep 2015 17:41:30 GMT
101
+ recorded_with: VCR 2.9.3
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005?
5
+ uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Authorization:
@@ -25,15 +25,21 @@ 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
- - Tue, 30 Sep 2014 19:54:08 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:41:31 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
+ - '1105'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
37
43
  Content-Length:
38
44
  - '518'
39
45
  Connection:
@@ -42,16 +48,16 @@ http_interactions:
42
48
  encoding: UTF-8
43
49
  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"}]}'
44
50
  http_version:
45
- recorded_at: Tue, 30 Sep 2014 19:54:08 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:41:31 GMT
46
52
  - request:
47
53
  method: get
48
- uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/schools?
54
+ uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/schools
49
55
  body:
50
56
  encoding: US-ASCII
51
57
  string: ''
52
58
  headers:
53
59
  Accept:
54
- - '*/*; q=0.5, application/xml'
60
+ - "*/*; q=0.5, application/xml"
55
61
  Accept-Encoding:
56
62
  - gzip, deflate
57
63
  Authorization:
@@ -68,17 +74,21 @@ 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
- - Tue, 30 Sep 2014 19:54:08 GMT
76
- Etag:
77
- - '"1657555549"'
78
- Server:
79
- - nginx/1.4.7
81
+ - Sat, 26 Sep 2015 17:41:31 GMT
80
82
  X-Powered-By:
81
83
  - Express
84
+ X-Ratelimit-Bucket:
85
+ - bearer
86
+ X-Ratelimit-Limit:
87
+ - '1200'
88
+ X-Ratelimit-Remaining:
89
+ - '1104'
90
+ X-Ratelimit-Reset:
91
+ - '1443289303'
82
92
  Content-Length:
83
93
  - '1799'
84
94
  Connection:
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005?
5
+ uri: https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Authorization:
@@ -25,15 +25,21 @@ 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
- - Tue, 30 Sep 2014 19:54:02 GMT
33
- Server:
34
- - nginx/1.4.7
32
+ - Sat, 26 Sep 2015 17:41:33 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
+ - '1101'
41
+ X-Ratelimit-Reset:
42
+ - '1443289303'
37
43
  Content-Length:
38
44
  - '518'
39
45
  Connection:
@@ -42,16 +48,16 @@ http_interactions:
42
48
  encoding: UTF-8
43
49
  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"}]}'
44
50
  http_version:
45
- recorded_at: Tue, 30 Sep 2014 19:54:02 GMT
51
+ recorded_at: Sat, 26 Sep 2015 17:41:33 GMT
46
52
  - request:
47
53
  method: get
48
- uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/sections?
54
+ uri: https://api.clever.com//v1.1/districts/4fd43cc56d11340000000005/sections
49
55
  body:
50
56
  encoding: US-ASCII
51
57
  string: ''
52
58
  headers:
53
59
  Accept:
54
- - '*/*; q=0.5, application/xml'
60
+ - "*/*; q=0.5, application/xml"
55
61
  Accept-Encoding:
56
62
  - gzip, deflate
57
63
  Authorization:
@@ -68,17 +74,23 @@ 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
- - Tue, 30 Sep 2014 19:54:03 GMT
81
+ - Sat, 26 Sep 2015 17:41:33 GMT
76
82
  Etag:
77
- - '"967737503"'
78
- Server:
79
- - nginx/1.4.7
83
+ - '"-696284929"'
80
84
  X-Powered-By:
81
85
  - Express
86
+ X-Ratelimit-Bucket:
87
+ - bearer
88
+ X-Ratelimit-Limit:
89
+ - '1200'
90
+ X-Ratelimit-Remaining:
91
+ - '1100'
92
+ X-Ratelimit-Reset:
93
+ - '1443289303'
82
94
  Content-Length:
83
95
  - '116608'
84
96
  Connection: