edools-api 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/edools-api.gemspec +57 -11
  4. data/lib/edools.rb +2 -1
  5. data/lib/edools/base.rb +25 -0
  6. data/lib/edools/config.rb +2 -2
  7. data/lib/edools/core.rb +6 -1
  8. data/lib/edools/core/base.rb +3 -12
  9. data/lib/edools/core/course.rb +10 -0
  10. data/lib/edools/core/course_content.rb +15 -0
  11. data/lib/edools/core/course_module.rb +15 -0
  12. data/lib/edools/core/enrollment.rb +2 -2
  13. data/lib/edools/core/lesson.rb +10 -0
  14. data/lib/edools/core/media.rb +10 -0
  15. data/lib/edools/core/organization.rb +2 -2
  16. data/lib/edools/core/path.rb +10 -0
  17. data/lib/edools/core/registration.rb +2 -2
  18. data/lib/edools/core/school.rb +2 -2
  19. data/lib/edools/core/school_product.rb +2 -2
  20. data/lib/edools/core/session.rb +1 -1
  21. data/lib/edools/core/student.rb +2 -2
  22. data/lib/edools/ecommerce.rb +2 -0
  23. data/lib/edools/ecommerce/base.rb +8 -0
  24. data/lib/edools/ecommerce/product.rb +21 -0
  25. data/lib/edools/initialization.rb +4 -1
  26. data/lib/edools/paginated_collection.rb +37 -0
  27. data/spec/edools/core/course_content_spec.rb +35 -0
  28. data/spec/edools/core/course_module_spec.rb +35 -0
  29. data/spec/edools/core/course_spec.rb +36 -0
  30. data/spec/edools/core/enrollment_spec.rb +1 -3
  31. data/spec/edools/core/lesson_spec.rb +39 -0
  32. data/spec/edools/core/media_spec.rb +40 -0
  33. data/spec/edools/core/path_spec.rb +36 -0
  34. data/spec/edools/core/school_product_spec.rb +10 -6
  35. data/spec/edools/ecommerce/base_spec.rb +9 -0
  36. data/spec/edools/ecommerce/product_spec.rb +38 -0
  37. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/create_the_course.yml +66 -0
  38. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/destroy_the_course.yml +114 -0
  39. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/finds_all_course.yml +146 -0
  40. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/finds_the_course.yml +62 -0
  41. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/update_the_course.yml +118 -0
  42. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/create_the_school_class.yml → Edools_Core_CourseContent/create_the_course_content.yml} +11 -11
  43. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/destroy_the_school_class.yml → Edools_Core_CourseContent/destroy_the_course_content.yml} +14 -14
  44. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseContent/finds_all_course_content.yml +64 -0
  45. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/finds_the_school_class.yml → Edools_Core_CourseContent/finds_the_course_content.yml} +9 -9
  46. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/update_the_school_class.yml → Edools_Core_CourseContent/update_the_course_content.yml} +17 -17
  47. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/create_the_course_module.yml +66 -0
  48. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/destroy_the_course_module.yml +114 -0
  49. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/finds_all_course_module.yml +78 -0
  50. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/finds_the_course_module.yml +67 -0
  51. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/update_the_course_module.yml +123 -0
  52. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/create_the_lesson.yml +66 -0
  53. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/destroy_the_lesson.yml +115 -0
  54. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/finds_all_lesson.yml +154 -0
  55. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/finds_the_lesson.yml +62 -0
  56. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/update_the_lesson.yml +118 -0
  57. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/create_the_media.yml +68 -0
  58. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/destroy_the_media.yml +116 -0
  59. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/finds_all_media.yml +212 -0
  60. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/finds_the_media.yml +63 -0
  61. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/update_the_media.yml +120 -0
  62. data/spec/fixtures/vcr_cassettes/Edools_Core_Path/create_the_path.yml +66 -0
  63. data/spec/fixtures/vcr_cassettes/Edools_Core_Path/destroy_the_path.yml +114 -0
  64. data/spec/fixtures/vcr_cassettes/Edools_Core_Path/finds_all_path.yml +78 -0
  65. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/finds_all_school_class.yml → Edools_Core_Path/finds_the_path.yml} +11 -10
  66. data/spec/fixtures/vcr_cassettes/Edools_Core_Path/update_the_path.yml +117 -0
  67. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/create_the_school_product.yml +11 -11
  68. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/destroy_the_school_product.yml +17 -16
  69. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/finds_all_school_product.yml +173 -125
  70. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/finds_the_school_product.yml +10 -10
  71. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/update_the_school_product.yml +18 -18
  72. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/create_the_product.yml +65 -0
  73. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/destroy_the_product.yml +114 -0
  74. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/finds_all_product.yml +179 -0
  75. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/finds_the_product.yml +62 -0
  76. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/update_the_product.yml +117 -0
  77. metadata +56 -10
  78. data/lib/edools/core/paginated_collection.rb +0 -30
  79. data/lib/edools/core/school_class.rb +0 -14
  80. data/spec/edools/core/school_class_spec.rb +0 -35
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/course_modules/11329/course_contents.json?course_module_id=11329
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.edools.core.v1+json
12
+ Authorization:
13
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - max-age=0, private, must-revalidate
25
+ Content-Security-Policy-Report-Only:
26
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
27
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
28
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
+ Content-Type:
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
+ Date:
33
+ - Mon, 06 Jul 2015 19:21:16 GMT
34
+ Etag:
35
+ - '"0ac05ce776eb6833013ecbd38a3b5286"'
36
+ Server:
37
+ - nginx/1.4.7
38
+ Status:
39
+ - 200 OK
40
+ Strict-Transport-Security:
41
+ - max-age=631152000; includeSubdomains
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - DENY
46
+ X-Request-Id:
47
+ - 510644dc-e072-43ae-854f-2098a806f76c
48
+ X-Runtime:
49
+ - '0.065043'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '770'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"course_contents":[{"id":49020,"content_id":49012,"content_type":"Lesson","order":0,"downloadable":null,"available":null,"lesson":{"id":49012,"title":"Nome
59
+ da atividade","type":"ExamLesson","release_at":null,"release_after":null,"min_grade":0,"activity":{"id":308,"title":"Associativa","type":"Quiz"}}},{"id":51657,"content_id":51650,"content_type":"Lesson","order":1,"downloadable":null,"available":null,"lesson":{"id":51650,"title":"Nome
60
+ da atividade","type":"ExamLesson","release_at":null,"release_after":null,"min_grade":0,"activity":null}},{"id":51658,"content_id":51651,"content_type":"Lesson","order":2,"downloadable":null,"available":null,"lesson":{"id":51651,"title":"Nome
61
+ da aula","type":"ContentLesson","release_at":null,"release_after":null,"media":null}}]}'
62
+ http_version:
63
+ recorded_at: Mon, 06 Jul 2015 19:21:16 GMT
64
+ recorded_with: VCR 2.9.2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://core.edools.com/school_classes/168.json
5
+ uri: https://core.edools.com/course_contents/52239.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -28,11 +28,11 @@ http_interactions:
28
28
  https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
29
  style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
30
  Content-Type:
31
- - application/json; charset=utf-8
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
32
  Date:
33
- - Wed, 30 Jul 2014 18:30:05 GMT
33
+ - Mon, 06 Jul 2015 19:22:34 GMT
34
34
  Etag:
35
- - '"dcb41408a68ae8c04a207735c3183a5b"'
35
+ - '"d7691c93ab409904d622fa7ea094b965"'
36
36
  Server:
37
37
  - nginx/1.4.7
38
38
  Status:
@@ -44,18 +44,18 @@ http_interactions:
44
44
  X-Frame-Options:
45
45
  - DENY
46
46
  X-Request-Id:
47
- - 24e02c79-f040-4232-8e2c-b7f6d1b273e3
47
+ - 7f49c70a-74e2-4751-9834-346bf6b3c4d3
48
48
  X-Runtime:
49
- - '0.027240'
49
+ - '0.046196'
50
50
  X-Xss-Protection:
51
51
  - 1; mode=block
52
52
  Content-Length:
53
- - '76'
53
+ - '114'
54
54
  Connection:
55
55
  - keep-alive
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"id":168,"start_at":null,"end_at":null,"code":null,"school_product_id":156}'
58
+ string: '{"id":52239,"content_id":null,"content_type":null,"order":null,"downloadable":null,"available":null,"lesson":null}'
59
59
  http_version:
60
- recorded_at: Wed, 30 Jul 2014 18:30:05 GMT
60
+ recorded_at: Mon, 06 Jul 2015 19:22:34 GMT
61
61
  recorded_with: VCR 2.9.2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://core.edools.com/school_classes/168.json
5
+ uri: https://core.edools.com/course_contents/52239.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -28,11 +28,11 @@ http_interactions:
28
28
  https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
29
  style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
30
  Content-Type:
31
- - application/json; charset=utf-8
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
32
  Date:
33
- - Wed, 30 Jul 2014 18:30:06 GMT
33
+ - Mon, 06 Jul 2015 19:22:35 GMT
34
34
  Etag:
35
- - '"dcb41408a68ae8c04a207735c3183a5b"'
35
+ - '"d7691c93ab409904d622fa7ea094b965"'
36
36
  Server:
37
37
  - nginx/1.4.7
38
38
  Status:
@@ -44,27 +44,27 @@ http_interactions:
44
44
  X-Frame-Options:
45
45
  - DENY
46
46
  X-Request-Id:
47
- - 4158217a-4913-4b81-83aa-07095826ed23
47
+ - 5468f4b6-dc4c-4839-b681-b98f96a388b8
48
48
  X-Runtime:
49
- - '0.025766'
49
+ - '0.048897'
50
50
  X-Xss-Protection:
51
51
  - 1; mode=block
52
- Transfer-Encoding:
53
- - chunked
52
+ Content-Length:
53
+ - '114'
54
54
  Connection:
55
55
  - keep-alive
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"id":168,"start_at":null,"end_at":null,"code":null,"school_product_id":156}'
58
+ string: '{"id":52239,"content_id":null,"content_type":null,"order":null,"downloadable":null,"available":null,"lesson":null}'
59
59
  http_version:
60
- recorded_at: Wed, 30 Jul 2014 18:30:06 GMT
60
+ recorded_at: Mon, 06 Jul 2015 19:22:35 GMT
61
61
  - request:
62
62
  method: put
63
- uri: https://core.edools.com/school_classes/168.json
63
+ uri: https://core.edools.com/course_contents/52239.json
64
64
  body:
65
65
  encoding: UTF-8
66
- string: '{"school_class":{"id":168,"start_at":null,"end_at":null,"code":null,"school_product_id":156,"description":"test
67
- description"}}'
66
+ string: '{"course_content":{"id":52239,"content_id":null,"content_type":null,"order":null,"downloadable":null,"available":null,"lesson":null,"description":"Edools
67
+ API Test"}}'
68
68
  headers:
69
69
  Content-Type:
70
70
  - application/json
@@ -89,7 +89,7 @@ http_interactions:
89
89
  https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
90
90
  style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
91
91
  Date:
92
- - Wed, 30 Jul 2014 18:30:06 GMT
92
+ - Mon, 06 Jul 2015 19:22:35 GMT
93
93
  Server:
94
94
  - nginx/1.4.7
95
95
  Status:
@@ -101,9 +101,9 @@ http_interactions:
101
101
  X-Frame-Options:
102
102
  - DENY
103
103
  X-Request-Id:
104
- - 81f7e154-1acf-4d28-85ac-af23eca24250
104
+ - 67339ede-a61e-444c-9d2e-d00a5d9a8a01
105
105
  X-Runtime:
106
- - '0.033935'
106
+ - '0.109821'
107
107
  X-Xss-Protection:
108
108
  - 1; mode=block
109
109
  Connection:
@@ -112,5 +112,5 @@ http_interactions:
112
112
  encoding: UTF-8
113
113
  string: ''
114
114
  http_version:
115
- recorded_at: Wed, 30 Jul 2014 18:30:07 GMT
115
+ recorded_at: Mon, 06 Jul 2015 19:22:35 GMT
116
116
  recorded_with: VCR 2.9.2
@@ -0,0 +1,66 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://core.edools.com/courses/1566/course_modules.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"course_module":{"name":"Teste"}}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Authorization:
13
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
14
+ Accept:
15
+ - application/vnd.edools.core.v1+json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Cache-Control:
26
+ - max-age=0, private, must-revalidate
27
+ Content-Security-Policy-Report-Only:
28
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
29
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
30
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
31
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
32
+ Content-Type:
33
+ - application/vnd.edools.core.v1+json; charset=utf-8
34
+ Date:
35
+ - Mon, 06 Jul 2015 19:14:52 GMT
36
+ Etag:
37
+ - '"dd9ffef403ed2f4f747d136a24d5f6af"'
38
+ Location:
39
+ - https://core.edools.com/course_modules/11976
40
+ Server:
41
+ - nginx/1.4.7
42
+ Status:
43
+ - 201 Created
44
+ Strict-Transport-Security:
45
+ - max-age=631152000; includeSubdomains
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ X-Frame-Options:
49
+ - DENY
50
+ X-Request-Id:
51
+ - 233dc3ea-ec18-446d-a73d-60e1045e0bc4
52
+ X-Runtime:
53
+ - '0.067167'
54
+ X-Xss-Protection:
55
+ - 1; mode=block
56
+ Content-Length:
57
+ - '226'
58
+ Connection:
59
+ - keep-alive
60
+ body:
61
+ encoding: UTF-8
62
+ string: '{"id":11976,"name":"Teste","description":null,"order":null,"available":null,"course_content_ids":[],"created_at":"2015-07-06
63
+ 19:14:52 UTC","updated_at":"2015-07-06 19:14:52 UTC","parent_course_module":null,"course_modules":[]}'
64
+ http_version:
65
+ recorded_at: Mon, 06 Jul 2015 19:14:52 GMT
66
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,114 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/course_modules/11976.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.edools.core.v1+json
12
+ Authorization:
13
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - max-age=0, private, must-revalidate
25
+ Content-Security-Policy-Report-Only:
26
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
27
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
28
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
+ Content-Type:
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
+ Date:
33
+ - Mon, 06 Jul 2015 19:15:22 GMT
34
+ Etag:
35
+ - '"dd9ffef403ed2f4f747d136a24d5f6af"'
36
+ Server:
37
+ - nginx/1.4.7
38
+ Status:
39
+ - 200 OK
40
+ Strict-Transport-Security:
41
+ - max-age=631152000; includeSubdomains
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - DENY
46
+ X-Request-Id:
47
+ - 12b4384a-9ceb-40ac-b062-1906d58c7214
48
+ X-Runtime:
49
+ - '0.064985'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '226'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":11976,"name":"Teste","description":null,"order":null,"available":null,"course_content_ids":[],"created_at":"2015-07-06
59
+ 19:14:52 UTC","updated_at":"2015-07-06 19:14:52 UTC","parent_course_module":null,"course_modules":[]}'
60
+ http_version:
61
+ recorded_at: Mon, 06 Jul 2015 19:15:22 GMT
62
+ - request:
63
+ method: delete
64
+ uri: https://core.edools.com/course_modules/11976.json
65
+ body:
66
+ encoding: US-ASCII
67
+ string: ''
68
+ headers:
69
+ Accept:
70
+ - application/vnd.edools.core.v1+json
71
+ Authorization:
72
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
73
+ Accept-Encoding:
74
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
75
+ User-Agent:
76
+ - Ruby
77
+ response:
78
+ status:
79
+ code: 204
80
+ message: No Content
81
+ headers:
82
+ Cache-Control:
83
+ - no-cache
84
+ Content-Security-Policy-Report-Only:
85
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
86
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
87
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
88
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
89
+ Date:
90
+ - Mon, 06 Jul 2015 19:15:23 GMT
91
+ Server:
92
+ - nginx/1.4.7
93
+ Status:
94
+ - 204 No Content
95
+ Strict-Transport-Security:
96
+ - max-age=631152000; includeSubdomains
97
+ X-Content-Type-Options:
98
+ - nosniff
99
+ X-Frame-Options:
100
+ - DENY
101
+ X-Request-Id:
102
+ - 670d806f-2554-42c1-a9c2-de8512264ec4
103
+ X-Runtime:
104
+ - '0.057983'
105
+ X-Xss-Protection:
106
+ - 1; mode=block
107
+ Connection:
108
+ - keep-alive
109
+ body:
110
+ encoding: UTF-8
111
+ string: ''
112
+ http_version:
113
+ recorded_at: Mon, 06 Jul 2015 19:15:23 GMT
114
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/courses/1566/course_modules.json?course_id=1566
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.edools.core.v1+json
12
+ Authorization:
13
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - max-age=0, private, must-revalidate
25
+ Content-Security-Policy-Report-Only:
26
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
27
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
28
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
+ Content-Type:
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
+ Date:
33
+ - Mon, 06 Jul 2015 19:11:45 GMT
34
+ Etag:
35
+ - '"a932068ff74c15008b66a5d577d10135"'
36
+ Server:
37
+ - nginx/1.4.7
38
+ Status:
39
+ - 200 OK
40
+ Strict-Transport-Security:
41
+ - max-age=631152000; includeSubdomains
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - DENY
46
+ X-Request-Id:
47
+ - 7ae17743-6c00-4daa-b245-fa4557ec383b
48
+ X-Runtime:
49
+ - '0.051710'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '755'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: ASCII-8BIT
58
+ string: !binary |-
59
+ eyJjb3Vyc2VfbW9kdWxlcyI6W3siaWQiOjIyNDgsIm5hbWUiOiJOb21lIGRv
60
+ IG3Ds2R1bG8iLCJkZXNjcmlwdGlvbiI6bnVsbCwib3JkZXIiOjAsImF2YWls
61
+ YWJsZSI6bnVsbCwiY291cnNlX2NvbnRlbnRfaWRzIjpbMjU5MDIsNDcxNDYs
62
+ NDgwODJdLCJjcmVhdGVkX2F0IjoiMjAxNS0wMS0wMiAxMzo1Njo1MSBVVEMi
63
+ LCJ1cGRhdGVkX2F0IjoiMjAxNS0wMS0wMiAxMzo1Njo1MSBVVEMiLCJwYXJl
64
+ bnRfY291cnNlX21vZHVsZSI6bnVsbCwiY291cnNlX21vZHVsZXMiOltdfSx7
65
+ ImlkIjoxMTMyOSwibmFtZSI6Ik5vbWUgZG8gbcOzZHVsbyIsImRlc2NyaXB0
66
+ aW9uIjpudWxsLCJvcmRlciI6MSwiYXZhaWxhYmxlIjpudWxsLCJjb3Vyc2Vf
67
+ Y29udGVudF9pZHMiOls1MTY1OCw1MTY1Nyw0OTAyMF0sImNyZWF0ZWRfYXQi
68
+ OiIyMDE1LTA2LTE3IDE2OjMwOjEwIFVUQyIsInVwZGF0ZWRfYXQiOiIyMDE1
69
+ LTA2LTE3IDE2OjMwOjEwIFVUQyIsInBhcmVudF9jb3Vyc2VfbW9kdWxlIjpu
70
+ dWxsLCJjb3Vyc2VfbW9kdWxlcyI6W119LHsiaWQiOjExODYwLCJuYW1lIjoi
71
+ Tm9tZSBkbyBtw7NkdWxvIiwiZGVzY3JpcHRpb24iOm51bGwsIm9yZGVyIjoy
72
+ LCJhdmFpbGFibGUiOm51bGwsImNvdXJzZV9jb250ZW50X2lkcyI6W10sImNy
73
+ ZWF0ZWRfYXQiOiIyMDE1LTA3LTAxIDE5OjQzOjExIFVUQyIsInVwZGF0ZWRf
74
+ YXQiOiIyMDE1LTA3LTAxIDE5OjQzOjExIFVUQyIsInBhcmVudF9jb3Vyc2Vf
75
+ bW9kdWxlIjpudWxsLCJjb3Vyc2VfbW9kdWxlcyI6W119XX0=
76
+ http_version:
77
+ recorded_at: Mon, 06 Jul 2015 19:11:45 GMT
78
+ recorded_with: VCR 2.9.2