clever-ruby 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/clever-ruby.gemspec +2 -1
- data/lib/clever-ruby/api_operations/list.rb +71 -0
- data/lib/clever-ruby/api_operations/nested_list.rb +49 -0
- data/lib/clever-ruby/api_operations/page.rb +16 -8
- data/lib/clever-ruby/version.rb +1 -1
- data/test/data/vcr_cassettes/{district_count.yml → Clever_APIOperations_List/counts_district_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{event_count.yml → Clever_APIOperations_List/counts_event_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{school_count.yml → Clever_APIOperations_List/counts_school_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{section_count.yml → Clever_APIOperations_List/counts_section_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{student_count.yml → Clever_APIOperations_List/counts_student_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{teacher_count.yml → Clever_APIOperations_List/counts_teacher_properly.yml} +6 -4
- data/test/data/vcr_cassettes/{district_find_one.yml → Clever_APIOperations_List/finds_a_single_district.yml} +11 -7
- data/test/data/vcr_cassettes/{event_find_one.yml → Clever_APIOperations_List/finds_a_single_event.yml} +11 -7
- data/test/data/vcr_cassettes/{school_find_one.yml → Clever_APIOperations_List/finds_a_single_school.yml} +11 -7
- data/test/data/vcr_cassettes/{section_find_one.yml → Clever_APIOperations_List/finds_a_single_section.yml} +11 -7
- data/test/data/vcr_cassettes/{student_find_one.yml → Clever_APIOperations_List/finds_a_single_student.yml} +11 -7
- data/test/data/vcr_cassettes/{teacher_find_one.yml → Clever_APIOperations_List/finds_a_single_teacher.yml} +11 -7
- data/test/data/vcr_cassettes/{districts.yml → Clever_APIOperations_List/finds_districts_by_page.yml} +11 -7
- data/test/data/vcr_cassettes/{district_find_multiple.yml → Clever_APIOperations_List/finds_districts_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{events.yml → Clever_APIOperations_List/finds_events_by_page.yml} +11 -7
- data/test/data/vcr_cassettes/{event_find_multiple.yml → Clever_APIOperations_List/finds_events_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{schools.yml → Clever_APIOperations_List/finds_schools_by_page.yml} +11 -7
- data/test/data/vcr_cassettes/{school_find_multiple.yml → Clever_APIOperations_List/finds_schools_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{section_find_by_page.yml → Clever_APIOperations_List/finds_sections_by_page.yml} +26 -16
- data/test/data/vcr_cassettes/{section_find_multiple.yml → Clever_APIOperations_List/finds_sections_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{students.yml → Clever_APIOperations_List/finds_students_by_page.yml} +61 -37
- data/test/data/vcr_cassettes/{student_find_multiple.yml → Clever_APIOperations_List/finds_students_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{teachers.yml → Clever_APIOperations_List/finds_teachers_by_page.yml} +11 -7
- data/test/data/vcr_cassettes/{teacher_find_multiple.yml → Clever_APIOperations_List/finds_teachers_with_multiple_ids.yml} +11 -7
- data/test/data/vcr_cassettes/{district_find_by_page.yml → Clever_APIOperations_List/retrieves_all_district.yml} +11 -7
- data/test/data/vcr_cassettes/{event_find_by_page.yml → Clever_APIOperations_List/retrieves_all_event.yml} +11 -7
- data/test/data/vcr_cassettes/{school_find_by_page.yml → Clever_APIOperations_List/retrieves_all_school.yml} +11 -7
- data/test/data/vcr_cassettes/{sections.yml → Clever_APIOperations_List/retrieves_all_section.yml} +26 -16
- data/test/data/vcr_cassettes/{student_find_by_page.yml → Clever_APIOperations_List/retrieves_all_student.yml} +61 -37
- data/test/data/vcr_cassettes/{teacher_find_by_page.yml → Clever_APIOperations_List/retrieves_all_teacher.yml} +11 -7
- data/test/data/vcr_cassettes/{districts_event_pages.yml → Clever_District/pages_methods/pages_a_district_s_events.yml} +56 -34
- data/test/data/vcr_cassettes/{districts_school_pages.yml → Clever_District/pages_methods/pages_a_district_s_schools.yml} +26 -16
- data/test/data/vcr_cassettes/{districts_section_pages.yml → Clever_District/pages_methods/pages_a_district_s_sections.yml} +206 -124
- data/test/data/vcr_cassettes/{districts_student_pages.yml → Clever_District/pages_methods/pages_a_district_s_students.yml} +121 -73
- data/test/data/vcr_cassettes/{districts_teacher_pages.yml → Clever_District/pages_methods/pages_a_district_s_teachers.yml} +61 -37
- data/test/data/vcr_cassettes/{district_events.yml → Clever_NestedResource/retrieves_a_district_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{district_schools.yml → Clever_NestedResource/retrieves_a_district_s_schools.yml} +21 -13
- data/test/data/vcr_cassettes/{district_sections.yml → Clever_NestedResource/retrieves_a_district_s_sections.yml} +51 -31
- data/test/data/vcr_cassettes/{district_students.yml → Clever_NestedResource/retrieves_a_district_s_students.yml} +121 -73
- data/test/data/vcr_cassettes/{district_teachers.yml → Clever_NestedResource/retrieves_a_district_s_teachers.yml} +21 -13
- data/test/data/vcr_cassettes/{school_district.yml → Clever_NestedResource/retrieves_a_school_s_district.yml} +16 -10
- data/test/data/vcr_cassettes/{school_events.yml → Clever_NestedResource/retrieves_a_school_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{school_sections.yml → Clever_NestedResource/retrieves_a_school_s_sections.yml} +31 -19
- data/test/data/vcr_cassettes/{school_students.yml → Clever_NestedResource/retrieves_a_school_s_students.yml} +61 -37
- data/test/data/vcr_cassettes/{school_teachers.yml → Clever_NestedResource/retrieves_a_school_s_teachers.yml} +21 -13
- data/test/data/vcr_cassettes/{section_district.yml → Clever_NestedResource/retrieves_a_section_s_district.yml} +16 -10
- data/test/data/vcr_cassettes/{section_events.yml → Clever_NestedResource/retrieves_a_section_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{section_school.yml → Clever_NestedResource/retrieves_a_section_s_school.yml} +16 -10
- data/test/data/vcr_cassettes/{section_students.yml → Clever_NestedResource/retrieves_a_section_s_students.yml} +21 -13
- data/test/data/vcr_cassettes/{section_teacher.yml → Clever_NestedResource/retrieves_a_section_s_teacher.yml} +16 -10
- data/test/data/vcr_cassettes/{student_district.yml → Clever_NestedResource/retrieves_a_student_s_district.yml} +16 -10
- data/test/data/vcr_cassettes/{student_events.yml → Clever_NestedResource/retrieves_a_student_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{student_school.yml → Clever_NestedResource/retrieves_a_student_s_school.yml} +16 -10
- data/test/data/vcr_cassettes/{student_sections.yml → Clever_NestedResource/retrieves_a_student_s_sections.yml} +21 -13
- data/test/data/vcr_cassettes/{student_teachers.yml → Clever_NestedResource/retrieves_a_student_s_teachers.yml} +21 -13
- data/test/data/vcr_cassettes/{teacher_district.yml → Clever_NestedResource/retrieves_a_teacher_s_district.yml} +16 -10
- data/test/data/vcr_cassettes/{teacher_events.yml → Clever_NestedResource/retrieves_a_teacher_s_events.yml} +21 -13
- data/test/data/vcr_cassettes/{teacher_school.yml → Clever_NestedResource/retrieves_a_teacher_s_school.yml} +16 -10
- data/test/data/vcr_cassettes/{teacher_sections.yml → Clever_NestedResource/retrieves_a_teacher_s_sections.yml} +21 -13
- data/test/data/vcr_cassettes/{teacher_students.yml → Clever_NestedResource/retrieves_a_teacher_s_students.yml} +21 -13
- data/test/data/vcr_cassettes/{error_handling.yml → Error_handling/raises_an_InvalidRequestError_when_given_a_bad_created_since.yml} +16 -10
- data/test/data/vcr_cassettes/Optional_attributes/has_the_expected_value_for_an_optional_attribute_that_is_present.yml +49 -0
- data/test/data/vcr_cassettes/last_method/page/has_working_first_and_last_methods.yml +719 -0
- data/test/data/vcr_cassettes/last_method/resource/has_working_first_and_last_methods.yml +648 -0
- data/test/integration/api_operations/list_test.rb +40 -50
- data/test/integration/district_test.rb +13 -15
- data/test/integration/error_handling_test.rb +6 -8
- data/test/integration/last_test.rb +70 -0
- data/test/integration/nested_resource_test.rb +7 -9
- data/test/test_helper.rb +3 -0
- data/test/unit/clever_test.rb +1 -1
- data/test/unit/configuration_test.rb +6 -0
- data/test/unit/optional_attributes_test.rb +4 -10
- metadata +147 -129
- data/test/data/vcr_cassettes/schools_optional_attributes.yml +0 -55
- data/test/data/vcr_cassettes/student_teacher.yml +0 -161
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/sections
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:07:36 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1525695678"'
|
33
35
|
Server:
|
@@ -304,10 +306,10 @@ http_interactions:
|
|
304
306
|
I","course_number":"101","created":"2014-02-26T21:15:38.354Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.356Z","name":"French
|
305
307
|
I - 101 - G. Gorczany (Section 1)","period":"9","school":"530e595026403103360ff9fd","sis_id":"681","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cff7a","530e5961049e75a9262cfffb","530e5961049e75a9262d005d","530e5961049e75a9262d0070","530e5962049e75a9262d00e8","530e5962049e75a9262d00ff","530e5962049e75a9262d015f","530e5963049e75a9262d0211","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02c3","530e5965049e75a9262d0325","530e5965049e75a9262d033f","530e5965049e75a9262d036c","530e5965049e75a9262d038f","530e5966049e75a9262d03f8","530e5966049e75a9262d0468","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d0496","530e5967049e75a9262d057e","530e5967049e75a9262d0590","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d1","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"language","teacher":"530e5955d50c310f36112bf9","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b55"},"uri":"/v1.1/sections/530e597a049e75a9262d0b55"}],"paging":{"current":1,"total":4,"count":379},"links":[{"rel":"self","uri":"/v1.1/sections"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0b55"}]}'
|
306
308
|
http_version:
|
307
|
-
recorded_at:
|
309
|
+
recorded_at: Sat, 13 Sep 2014 00:07:37 GMT
|
308
310
|
- request:
|
309
311
|
method: get
|
310
|
-
uri: https://
|
312
|
+
uri: https://api.clever.com/v1.1/sections/530e5979049e75a9262d0af2
|
311
313
|
body:
|
312
314
|
encoding: US-ASCII
|
313
315
|
string: ''
|
@@ -316,6 +318,8 @@ http_interactions:
|
|
316
318
|
- ! '*/*; q=0.5, application/xml'
|
317
319
|
Accept-Encoding:
|
318
320
|
- gzip, deflate
|
321
|
+
Authorization:
|
322
|
+
- Bearer DEMO_TOKEN
|
319
323
|
User-Agent:
|
320
324
|
- Ruby
|
321
325
|
response:
|
@@ -332,7 +336,7 @@ http_interactions:
|
|
332
336
|
Content-Type:
|
333
337
|
- application/json; charset=utf-8
|
334
338
|
Date:
|
335
|
-
-
|
339
|
+
- Sat, 13 Sep 2014 00:07:37 GMT
|
336
340
|
Etag:
|
337
341
|
- ! '"-1019123713"'
|
338
342
|
Server:
|
@@ -348,10 +352,10 @@ http_interactions:
|
|
348
352
|
string: ! '{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
349
353
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"rel":"district","uri":"/v1.1/sections/530e5979049e75a9262d0af2/district"},{"rel":"teacher","uri":"/v1.1/sections/530e5979049e75a9262d0af2/teacher"},{"rel":"students","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"},{"rel":"school","uri":"/v1.1/sections/530e5979049e75a9262d0af2/school"},{"rel":"events","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
350
354
|
http_version:
|
351
|
-
recorded_at:
|
355
|
+
recorded_at: Sat, 13 Sep 2014 00:07:37 GMT
|
352
356
|
- request:
|
353
357
|
method: get
|
354
|
-
uri: https://
|
358
|
+
uri: https://api.clever.com//v1.1/sections/530e5979049e75a9262d0af2/district
|
355
359
|
body:
|
356
360
|
encoding: US-ASCII
|
357
361
|
string: ''
|
@@ -360,6 +364,8 @@ http_interactions:
|
|
360
364
|
- ! '*/*; q=0.5, application/xml'
|
361
365
|
Accept-Encoding:
|
362
366
|
- gzip, deflate
|
367
|
+
Authorization:
|
368
|
+
- Bearer DEMO_TOKEN
|
363
369
|
User-Agent:
|
364
370
|
- Ruby
|
365
371
|
response:
|
@@ -376,7 +382,7 @@ http_interactions:
|
|
376
382
|
Content-Type:
|
377
383
|
- application/json; charset=utf-8
|
378
384
|
Date:
|
379
|
-
-
|
385
|
+
- Sat, 13 Sep 2014 00:07:37 GMT
|
380
386
|
Server:
|
381
387
|
- nginx/1.4.7
|
382
388
|
X-Powered-By:
|
@@ -389,5 +395,5 @@ http_interactions:
|
|
389
395
|
encoding: US-ASCII
|
390
396
|
string: ! '{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"links":[{"rel":"self","uri":"/v1.1/districts/4fd43cc56d11340000000005"}]}'
|
391
397
|
http_version:
|
392
|
-
recorded_at:
|
393
|
-
recorded_with: VCR 2.
|
398
|
+
recorded_at: Sat, 13 Sep 2014 00:07:37 GMT
|
399
|
+
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/sections
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:06:24 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1525695678"'
|
33
35
|
Server:
|
@@ -304,10 +306,10 @@ http_interactions:
|
|
304
306
|
I","course_number":"101","created":"2014-02-26T21:15:38.354Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.356Z","name":"French
|
305
307
|
I - 101 - G. Gorczany (Section 1)","period":"9","school":"530e595026403103360ff9fd","sis_id":"681","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cff7a","530e5961049e75a9262cfffb","530e5961049e75a9262d005d","530e5961049e75a9262d0070","530e5962049e75a9262d00e8","530e5962049e75a9262d00ff","530e5962049e75a9262d015f","530e5963049e75a9262d0211","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02c3","530e5965049e75a9262d0325","530e5965049e75a9262d033f","530e5965049e75a9262d036c","530e5965049e75a9262d038f","530e5966049e75a9262d03f8","530e5966049e75a9262d0468","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d0496","530e5967049e75a9262d057e","530e5967049e75a9262d0590","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d1","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"language","teacher":"530e5955d50c310f36112bf9","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b55"},"uri":"/v1.1/sections/530e597a049e75a9262d0b55"}],"paging":{"current":1,"total":4,"count":379},"links":[{"rel":"self","uri":"/v1.1/sections"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0b55"}]}'
|
306
308
|
http_version:
|
307
|
-
recorded_at:
|
309
|
+
recorded_at: Sat, 13 Sep 2014 00:06:24 GMT
|
308
310
|
- request:
|
309
311
|
method: get
|
310
|
-
uri: https://
|
312
|
+
uri: https://api.clever.com/v1.1/sections/530e5979049e75a9262d0af2
|
311
313
|
body:
|
312
314
|
encoding: US-ASCII
|
313
315
|
string: ''
|
@@ -316,6 +318,8 @@ http_interactions:
|
|
316
318
|
- ! '*/*; q=0.5, application/xml'
|
317
319
|
Accept-Encoding:
|
318
320
|
- gzip, deflate
|
321
|
+
Authorization:
|
322
|
+
- Bearer DEMO_TOKEN
|
319
323
|
User-Agent:
|
320
324
|
- Ruby
|
321
325
|
response:
|
@@ -332,7 +336,7 @@ http_interactions:
|
|
332
336
|
Content-Type:
|
333
337
|
- application/json; charset=utf-8
|
334
338
|
Date:
|
335
|
-
-
|
339
|
+
- Sat, 13 Sep 2014 00:06:24 GMT
|
336
340
|
Etag:
|
337
341
|
- ! '"-1019123713"'
|
338
342
|
Server:
|
@@ -348,10 +352,10 @@ http_interactions:
|
|
348
352
|
string: ! '{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
349
353
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"rel":"district","uri":"/v1.1/sections/530e5979049e75a9262d0af2/district"},{"rel":"teacher","uri":"/v1.1/sections/530e5979049e75a9262d0af2/teacher"},{"rel":"students","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"},{"rel":"school","uri":"/v1.1/sections/530e5979049e75a9262d0af2/school"},{"rel":"events","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
350
354
|
http_version:
|
351
|
-
recorded_at:
|
355
|
+
recorded_at: Sat, 13 Sep 2014 00:06:24 GMT
|
352
356
|
- request:
|
353
357
|
method: get
|
354
|
-
uri: https://
|
358
|
+
uri: https://api.clever.com//v1.1/sections/530e5979049e75a9262d0af2/events
|
355
359
|
body:
|
356
360
|
encoding: US-ASCII
|
357
361
|
string: ''
|
@@ -360,6 +364,8 @@ http_interactions:
|
|
360
364
|
- ! '*/*; q=0.5, application/xml'
|
361
365
|
Accept-Encoding:
|
362
366
|
- gzip, deflate
|
367
|
+
Authorization:
|
368
|
+
- Bearer DEMO_TOKEN
|
363
369
|
User-Agent:
|
364
370
|
- Ruby
|
365
371
|
response:
|
@@ -376,7 +382,7 @@ http_interactions:
|
|
376
382
|
Content-Type:
|
377
383
|
- application/json; charset=utf-8
|
378
384
|
Date:
|
379
|
-
-
|
385
|
+
- Sat, 13 Sep 2014 00:06:24 GMT
|
380
386
|
Server:
|
381
387
|
- nginx/1.4.7
|
382
388
|
X-Powered-By:
|
@@ -389,10 +395,10 @@ http_interactions:
|
|
389
395
|
encoding: US-ASCII
|
390
396
|
string: ! '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
391
397
|
http_version:
|
392
|
-
recorded_at:
|
398
|
+
recorded_at: Sat, 13 Sep 2014 00:06:24 GMT
|
393
399
|
- request:
|
394
400
|
method: get
|
395
|
-
uri: https://
|
401
|
+
uri: https://api.clever.com//v1.1/sections/530e5979049e75a9262d0af2/events
|
396
402
|
body:
|
397
403
|
encoding: US-ASCII
|
398
404
|
string: ''
|
@@ -401,6 +407,8 @@ http_interactions:
|
|
401
407
|
- ! '*/*; q=0.5, application/xml'
|
402
408
|
Accept-Encoding:
|
403
409
|
- gzip, deflate
|
410
|
+
Authorization:
|
411
|
+
- Bearer DEMO_TOKEN
|
404
412
|
User-Agent:
|
405
413
|
- Ruby
|
406
414
|
response:
|
@@ -417,7 +425,7 @@ http_interactions:
|
|
417
425
|
Content-Type:
|
418
426
|
- application/json; charset=utf-8
|
419
427
|
Date:
|
420
|
-
-
|
428
|
+
- Sat, 13 Sep 2014 00:06:24 GMT
|
421
429
|
Server:
|
422
430
|
- nginx/1.4.7
|
423
431
|
X-Powered-By:
|
@@ -430,5 +438,5 @@ http_interactions:
|
|
430
438
|
encoding: US-ASCII
|
431
439
|
string: ! '{"data":[],"paging":{"current":0,"total":0,"count":0},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
432
440
|
http_version:
|
433
|
-
recorded_at:
|
434
|
-
recorded_with: VCR 2.
|
441
|
+
recorded_at: Sat, 13 Sep 2014 00:06:24 GMT
|
442
|
+
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/sections
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:07:45 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1525695678"'
|
33
35
|
Server:
|
@@ -304,10 +306,10 @@ http_interactions:
|
|
304
306
|
I","course_number":"101","created":"2014-02-26T21:15:38.354Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.356Z","name":"French
|
305
307
|
I - 101 - G. Gorczany (Section 1)","period":"9","school":"530e595026403103360ff9fd","sis_id":"681","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cff7a","530e5961049e75a9262cfffb","530e5961049e75a9262d005d","530e5961049e75a9262d0070","530e5962049e75a9262d00e8","530e5962049e75a9262d00ff","530e5962049e75a9262d015f","530e5963049e75a9262d0211","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02c3","530e5965049e75a9262d0325","530e5965049e75a9262d033f","530e5965049e75a9262d036c","530e5965049e75a9262d038f","530e5966049e75a9262d03f8","530e5966049e75a9262d0468","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d0496","530e5967049e75a9262d057e","530e5967049e75a9262d0590","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d1","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"language","teacher":"530e5955d50c310f36112bf9","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b55"},"uri":"/v1.1/sections/530e597a049e75a9262d0b55"}],"paging":{"current":1,"total":4,"count":379},"links":[{"rel":"self","uri":"/v1.1/sections"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0b55"}]}'
|
306
308
|
http_version:
|
307
|
-
recorded_at:
|
309
|
+
recorded_at: Sat, 13 Sep 2014 00:07:45 GMT
|
308
310
|
- request:
|
309
311
|
method: get
|
310
|
-
uri: https://
|
312
|
+
uri: https://api.clever.com/v1.1/sections/530e5979049e75a9262d0af2
|
311
313
|
body:
|
312
314
|
encoding: US-ASCII
|
313
315
|
string: ''
|
@@ -316,6 +318,8 @@ http_interactions:
|
|
316
318
|
- ! '*/*; q=0.5, application/xml'
|
317
319
|
Accept-Encoding:
|
318
320
|
- gzip, deflate
|
321
|
+
Authorization:
|
322
|
+
- Bearer DEMO_TOKEN
|
319
323
|
User-Agent:
|
320
324
|
- Ruby
|
321
325
|
response:
|
@@ -332,7 +336,7 @@ http_interactions:
|
|
332
336
|
Content-Type:
|
333
337
|
- application/json; charset=utf-8
|
334
338
|
Date:
|
335
|
-
-
|
339
|
+
- Sat, 13 Sep 2014 00:07:45 GMT
|
336
340
|
Etag:
|
337
341
|
- ! '"-1019123713"'
|
338
342
|
Server:
|
@@ -348,10 +352,10 @@ http_interactions:
|
|
348
352
|
string: ! '{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
349
353
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"rel":"district","uri":"/v1.1/sections/530e5979049e75a9262d0af2/district"},{"rel":"teacher","uri":"/v1.1/sections/530e5979049e75a9262d0af2/teacher"},{"rel":"students","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"},{"rel":"school","uri":"/v1.1/sections/530e5979049e75a9262d0af2/school"},{"rel":"events","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
350
354
|
http_version:
|
351
|
-
recorded_at:
|
355
|
+
recorded_at: Sat, 13 Sep 2014 00:07:45 GMT
|
352
356
|
- request:
|
353
357
|
method: get
|
354
|
-
uri: https://
|
358
|
+
uri: https://api.clever.com//v1.1/sections/530e5979049e75a9262d0af2/school
|
355
359
|
body:
|
356
360
|
encoding: US-ASCII
|
357
361
|
string: ''
|
@@ -360,6 +364,8 @@ http_interactions:
|
|
360
364
|
- ! '*/*; q=0.5, application/xml'
|
361
365
|
Accept-Encoding:
|
362
366
|
- gzip, deflate
|
367
|
+
Authorization:
|
368
|
+
- Bearer DEMO_TOKEN
|
363
369
|
User-Agent:
|
364
370
|
- Ruby
|
365
371
|
response:
|
@@ -376,7 +382,7 @@ http_interactions:
|
|
376
382
|
Content-Type:
|
377
383
|
- application/json; charset=utf-8
|
378
384
|
Date:
|
379
|
-
-
|
385
|
+
- Sat, 13 Sep 2014 00:07:46 GMT
|
380
386
|
Server:
|
381
387
|
- nginx/1.4.7
|
382
388
|
X-Powered-By:
|
@@ -392,5 +398,5 @@ http_interactions:
|
|
392
398
|
High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
|
393
399
|
Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9fd"}]}'
|
394
400
|
http_version:
|
395
|
-
recorded_at:
|
396
|
-
recorded_with: VCR 2.
|
401
|
+
recorded_at: Sat, 13 Sep 2014 00:07:46 GMT
|
402
|
+
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/sections
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:07:49 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1525695678"'
|
33
35
|
Server:
|
@@ -304,10 +306,10 @@ http_interactions:
|
|
304
306
|
I","course_number":"101","created":"2014-02-26T21:15:38.354Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.356Z","name":"French
|
305
307
|
I - 101 - G. Gorczany (Section 1)","period":"9","school":"530e595026403103360ff9fd","sis_id":"681","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cff7a","530e5961049e75a9262cfffb","530e5961049e75a9262d005d","530e5961049e75a9262d0070","530e5962049e75a9262d00e8","530e5962049e75a9262d00ff","530e5962049e75a9262d015f","530e5963049e75a9262d0211","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02c3","530e5965049e75a9262d0325","530e5965049e75a9262d033f","530e5965049e75a9262d036c","530e5965049e75a9262d038f","530e5966049e75a9262d03f8","530e5966049e75a9262d0468","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d0496","530e5967049e75a9262d057e","530e5967049e75a9262d0590","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d1","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"language","teacher":"530e5955d50c310f36112bf9","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b55"},"uri":"/v1.1/sections/530e597a049e75a9262d0b55"}],"paging":{"current":1,"total":4,"count":379},"links":[{"rel":"self","uri":"/v1.1/sections"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0b55"}]}'
|
306
308
|
http_version:
|
307
|
-
recorded_at:
|
309
|
+
recorded_at: Sat, 13 Sep 2014 00:07:49 GMT
|
308
310
|
- request:
|
309
311
|
method: get
|
310
|
-
uri: https://
|
312
|
+
uri: https://api.clever.com/v1.1/sections/530e5979049e75a9262d0af2
|
311
313
|
body:
|
312
314
|
encoding: US-ASCII
|
313
315
|
string: ''
|
@@ -316,6 +318,8 @@ http_interactions:
|
|
316
318
|
- ! '*/*; q=0.5, application/xml'
|
317
319
|
Accept-Encoding:
|
318
320
|
- gzip, deflate
|
321
|
+
Authorization:
|
322
|
+
- Bearer DEMO_TOKEN
|
319
323
|
User-Agent:
|
320
324
|
- Ruby
|
321
325
|
response:
|
@@ -332,7 +336,7 @@ http_interactions:
|
|
332
336
|
Content-Type:
|
333
337
|
- application/json; charset=utf-8
|
334
338
|
Date:
|
335
|
-
-
|
339
|
+
- Sat, 13 Sep 2014 00:07:49 GMT
|
336
340
|
Etag:
|
337
341
|
- ! '"-1019123713"'
|
338
342
|
Server:
|
@@ -348,10 +352,10 @@ http_interactions:
|
|
348
352
|
string: ! '{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
349
353
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"rel":"district","uri":"/v1.1/sections/530e5979049e75a9262d0af2/district"},{"rel":"teacher","uri":"/v1.1/sections/530e5979049e75a9262d0af2/teacher"},{"rel":"students","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"},{"rel":"school","uri":"/v1.1/sections/530e5979049e75a9262d0af2/school"},{"rel":"events","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
350
354
|
http_version:
|
351
|
-
recorded_at:
|
355
|
+
recorded_at: Sat, 13 Sep 2014 00:07:49 GMT
|
352
356
|
- request:
|
353
357
|
method: get
|
354
|
-
uri: https://
|
358
|
+
uri: https://api.clever.com//v1.1/sections/530e5979049e75a9262d0af2/students
|
355
359
|
body:
|
356
360
|
encoding: US-ASCII
|
357
361
|
string: ''
|
@@ -360,6 +364,8 @@ http_interactions:
|
|
360
364
|
- ! '*/*; q=0.5, application/xml'
|
361
365
|
Accept-Encoding:
|
362
366
|
- gzip, deflate
|
367
|
+
Authorization:
|
368
|
+
- Bearer DEMO_TOKEN
|
363
369
|
User-Agent:
|
364
370
|
- Ruby
|
365
371
|
response:
|
@@ -376,7 +382,7 @@ http_interactions:
|
|
376
382
|
Content-Type:
|
377
383
|
- application/json; charset=utf-8
|
378
384
|
Date:
|
379
|
-
-
|
385
|
+
- Sat, 13 Sep 2014 00:07:50 GMT
|
380
386
|
Etag:
|
381
387
|
- ! '"1856985347"'
|
382
388
|
Server:
|
@@ -400,10 +406,10 @@ http_interactions:
|
|
400
406
|
or More Races","school":"530e595026403103360ff9fd","sis_id":"963516059","state_id":"486760319","student_number":"963516059","id":"530e5968049e75a9262d061f"},"uri":"/v1.1/students/530e5968049e75a9262d061f"},{"data":{"created":"2014-02-26T21:15:20.514Z","credentials":{"district_username":"robertb90","district_password":"ahNgae4oquah"},"district":"4fd43cc56d11340000000005","dob":"5/27/1997","ell_status":"N","email":"b.robert@example.net","frl_status":"Paid","gender":"M","grade":"10","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:44.656Z","location":{"zip":"11106"},"name":{"first":"Robert","middle":"A","last":"Berge"},"race":"Black
|
401
407
|
or African American","school":"530e595026403103360ff9fd","sis_id":"976092290","state_id":"849712711","student_number":"976092290","id":"530e5968049e75a9262d0632"},"uri":"/v1.1/students/530e5968049e75a9262d0632"},{"data":{"created":"2014-02-26T21:15:20.611Z","credentials":{"district_username":"marjoriel40","district_password":"iushoo1It"},"district":"4fd43cc56d11340000000005","dob":"11/4/1997","ell_status":"N","email":"marjorie_l@example.org","frl_status":"Paid","gender":"F","grade":"10","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:44.735Z","location":{"zip":"10016"},"name":{"first":"Marjorie","middle":"L","last":"Lesch"},"race":"Caucasian","school":"530e595026403103360ff9fd","sis_id":"994397040","state_id":"828598322","student_number":"994397040","id":"530e5968049e75a9262d0647"},"uri":"/v1.1/students/530e5968049e75a9262d0647"}],"paging":{"current":1,"total":1,"count":15},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"}]}'
|
402
408
|
http_version:
|
403
|
-
recorded_at:
|
409
|
+
recorded_at: Sat, 13 Sep 2014 00:07:50 GMT
|
404
410
|
- request:
|
405
411
|
method: get
|
406
|
-
uri: https://
|
412
|
+
uri: https://api.clever.com//v1.1/sections/530e5979049e75a9262d0af2/students
|
407
413
|
body:
|
408
414
|
encoding: US-ASCII
|
409
415
|
string: ''
|
@@ -412,6 +418,8 @@ http_interactions:
|
|
412
418
|
- ! '*/*; q=0.5, application/xml'
|
413
419
|
Accept-Encoding:
|
414
420
|
- gzip, deflate
|
421
|
+
Authorization:
|
422
|
+
- Bearer DEMO_TOKEN
|
415
423
|
User-Agent:
|
416
424
|
- Ruby
|
417
425
|
response:
|
@@ -428,7 +436,7 @@ http_interactions:
|
|
428
436
|
Content-Type:
|
429
437
|
- application/json; charset=utf-8
|
430
438
|
Date:
|
431
|
-
-
|
439
|
+
- Sat, 13 Sep 2014 00:07:50 GMT
|
432
440
|
Etag:
|
433
441
|
- ! '"1856985347"'
|
434
442
|
Server:
|
@@ -452,5 +460,5 @@ http_interactions:
|
|
452
460
|
or More Races","school":"530e595026403103360ff9fd","sis_id":"963516059","state_id":"486760319","student_number":"963516059","id":"530e5968049e75a9262d061f"},"uri":"/v1.1/students/530e5968049e75a9262d061f"},{"data":{"created":"2014-02-26T21:15:20.514Z","credentials":{"district_username":"robertb90","district_password":"ahNgae4oquah"},"district":"4fd43cc56d11340000000005","dob":"5/27/1997","ell_status":"N","email":"b.robert@example.net","frl_status":"Paid","gender":"M","grade":"10","hispanic_ethnicity":"Y","iep_status":"","last_modified":"2014-06-04T14:10:44.656Z","location":{"zip":"11106"},"name":{"first":"Robert","middle":"A","last":"Berge"},"race":"Black
|
453
461
|
or African American","school":"530e595026403103360ff9fd","sis_id":"976092290","state_id":"849712711","student_number":"976092290","id":"530e5968049e75a9262d0632"},"uri":"/v1.1/students/530e5968049e75a9262d0632"},{"data":{"created":"2014-02-26T21:15:20.611Z","credentials":{"district_username":"marjoriel40","district_password":"iushoo1It"},"district":"4fd43cc56d11340000000005","dob":"11/4/1997","ell_status":"N","email":"marjorie_l@example.org","frl_status":"Paid","gender":"F","grade":"10","hispanic_ethnicity":"N","iep_status":"","last_modified":"2014-06-04T14:10:44.735Z","location":{"zip":"10016"},"name":{"first":"Marjorie","middle":"L","last":"Lesch"},"race":"Caucasian","school":"530e595026403103360ff9fd","sis_id":"994397040","state_id":"828598322","student_number":"994397040","id":"530e5968049e75a9262d0647"},"uri":"/v1.1/students/530e5968049e75a9262d0647"}],"paging":{"current":1,"total":1,"count":15},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"}]}'
|
454
462
|
http_version:
|
455
|
-
recorded_at:
|
456
|
-
recorded_with: VCR 2.
|
463
|
+
recorded_at: Sat, 13 Sep 2014 00:07:50 GMT
|
464
|
+
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.clever.com/v1.1/sections
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Authorization:
|
15
|
+
- Bearer DEMO_TOKEN
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -27,7 +29,7 @@ http_interactions:
|
|
27
29
|
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
Date:
|
30
|
-
-
|
32
|
+
- Sat, 13 Sep 2014 00:06:25 GMT
|
31
33
|
Etag:
|
32
34
|
- ! '"1525695678"'
|
33
35
|
Server:
|
@@ -304,10 +306,10 @@ http_interactions:
|
|
304
306
|
I","course_number":"101","created":"2014-02-26T21:15:38.354Z","district":"4fd43cc56d11340000000005","grade":"9","last_modified":"2014-02-26T21:15:38.356Z","name":"French
|
305
307
|
I - 101 - G. Gorczany (Section 1)","period":"9","school":"530e595026403103360ff9fd","sis_id":"681","students":["530e5960049e75a9262cff1e","530e5960049e75a9262cff4b","530e5960049e75a9262cff5b","530e5960049e75a9262cff7a","530e5961049e75a9262cfffb","530e5961049e75a9262d005d","530e5961049e75a9262d0070","530e5962049e75a9262d00e8","530e5962049e75a9262d00ff","530e5962049e75a9262d015f","530e5963049e75a9262d0211","530e5963049e75a9262d022f","530e5964049e75a9262d0284","530e5964049e75a9262d02a9","530e5964049e75a9262d02c3","530e5965049e75a9262d0325","530e5965049e75a9262d033f","530e5965049e75a9262d036c","530e5965049e75a9262d038f","530e5966049e75a9262d03f8","530e5966049e75a9262d0468","530e5966049e75a9262d046c","530e5966049e75a9262d0471","530e5966049e75a9262d0496","530e5967049e75a9262d057e","530e5967049e75a9262d0590","530e5967049e75a9262d05b5","530e5968049e75a9262d05cb","530e5968049e75a9262d05d1","530e5968049e75a9262d05e3","530e5968049e75a9262d0605","530e5968049e75a9262d061c","530e5968049e75a9262d063c"],"subject":"language","teacher":"530e5955d50c310f36112bf9","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e597a049e75a9262d0b55"},"uri":"/v1.1/sections/530e597a049e75a9262d0b55"}],"paging":{"current":1,"total":4,"count":379},"links":[{"rel":"self","uri":"/v1.1/sections"},{"rel":"next","uri":"/v1.1/sections?starting_after=530e597a049e75a9262d0b55"}]}'
|
306
308
|
http_version:
|
307
|
-
recorded_at:
|
309
|
+
recorded_at: Sat, 13 Sep 2014 00:06:25 GMT
|
308
310
|
- request:
|
309
311
|
method: get
|
310
|
-
uri: https://
|
312
|
+
uri: https://api.clever.com/v1.1/sections/530e5979049e75a9262d0af2
|
311
313
|
body:
|
312
314
|
encoding: US-ASCII
|
313
315
|
string: ''
|
@@ -316,6 +318,8 @@ http_interactions:
|
|
316
318
|
- ! '*/*; q=0.5, application/xml'
|
317
319
|
Accept-Encoding:
|
318
320
|
- gzip, deflate
|
321
|
+
Authorization:
|
322
|
+
- Bearer DEMO_TOKEN
|
319
323
|
User-Agent:
|
320
324
|
- Ruby
|
321
325
|
response:
|
@@ -332,7 +336,7 @@ http_interactions:
|
|
332
336
|
Content-Type:
|
333
337
|
- application/json; charset=utf-8
|
334
338
|
Date:
|
335
|
-
-
|
339
|
+
- Sat, 13 Sep 2014 00:06:26 GMT
|
336
340
|
Etag:
|
337
341
|
- ! '"-1019123713"'
|
338
342
|
Server:
|
@@ -348,10 +352,10 @@ http_interactions:
|
|
348
352
|
string: ! '{"data":{"course_name":"Group Guidance","course_number":"101","created":"2014-02-26T21:15:37.927Z","district":"4fd43cc56d11340000000005","grade":"10","last_modified":"2014-08-11T18:35:06.714Z","name":"Group
|
349
353
|
Guidance - 101 - B. Greene (Section 1)","period":"0","school":"530e595026403103360ff9fd","sis_id":"581","students":["530e5961049e75a9262cffd9","530e5961049e75a9262d0010","530e5961049e75a9262d004e","530e5961049e75a9262d0080","530e5962049e75a9262d0156","530e5963049e75a9262d01b7","530e5963049e75a9262d0253","530e5966049e75a9262d0418","530e5966049e75a9262d0475","530e5966049e75a9262d04b4","530e5967049e75a9262d0503","530e5968049e75a9262d05e9","530e5968049e75a9262d061f","530e5968049e75a9262d0632","530e5968049e75a9262d0647"],"subject":"homeroom/advisory","teacher":"530e5955d50c310f36112c11","term":{"name":"Y1","start_date":"2012-08-01","end_date":"2013-06-01"},"id":"530e5979049e75a9262d0af2"},"links":[{"rel":"self","uri":"/v1.1/sections/530e5979049e75a9262d0af2"},{"rel":"district","uri":"/v1.1/sections/530e5979049e75a9262d0af2/district"},{"rel":"teacher","uri":"/v1.1/sections/530e5979049e75a9262d0af2/teacher"},{"rel":"students","uri":"/v1.1/sections/530e5979049e75a9262d0af2/students"},{"rel":"school","uri":"/v1.1/sections/530e5979049e75a9262d0af2/school"},{"rel":"events","uri":"/v1.1/sections/530e5979049e75a9262d0af2/events"}]}'
|
350
354
|
http_version:
|
351
|
-
recorded_at:
|
355
|
+
recorded_at: Sat, 13 Sep 2014 00:06:26 GMT
|
352
356
|
- request:
|
353
357
|
method: get
|
354
|
-
uri: https://
|
358
|
+
uri: https://api.clever.com//v1.1/sections/530e5979049e75a9262d0af2/teacher
|
355
359
|
body:
|
356
360
|
encoding: US-ASCII
|
357
361
|
string: ''
|
@@ -360,6 +364,8 @@ http_interactions:
|
|
360
364
|
- ! '*/*; q=0.5, application/xml'
|
361
365
|
Accept-Encoding:
|
362
366
|
- gzip, deflate
|
367
|
+
Authorization:
|
368
|
+
- Bearer DEMO_TOKEN
|
363
369
|
User-Agent:
|
364
370
|
- Ruby
|
365
371
|
response:
|
@@ -376,7 +382,7 @@ http_interactions:
|
|
376
382
|
Content-Type:
|
377
383
|
- application/json; charset=utf-8
|
378
384
|
Date:
|
379
|
-
-
|
385
|
+
- Sat, 13 Sep 2014 00:06:26 GMT
|
380
386
|
Server:
|
381
387
|
- nginx/1.4.7
|
382
388
|
X-Powered-By:
|
@@ -390,5 +396,5 @@ http_interactions:
|
|
390
396
|
string: ! '{"data":{"created":"2014-02-26T21:15:01.541Z","credentials":{"district_username":"brianna.greene","district_password":"878fddh"},"district":"4fd43cc56d11340000000005","email":"brianna.greene@example.org","last_modified":"2014-02-26T21:15:01.542Z","name":{"first":"Brianna","middle":"P","last":"Greene"},"school":"530e595026403103360ff9fd","sis_id":"86","teacher_number":"595853","title":"High
|
391
397
|
School Guidance Counselor","id":"530e5955d50c310f36112c11"},"links":[{"rel":"self","uri":"/v1.1/teachers/530e5955d50c310f36112c11"}]}'
|
392
398
|
http_version:
|
393
|
-
recorded_at:
|
394
|
-
recorded_with: VCR 2.
|
399
|
+
recorded_at: Sat, 13 Sep 2014 00:06:26 GMT
|
400
|
+
recorded_with: VCR 2.9.3
|