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,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/course_modules/11329.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:13:34 GMT
34
+ Etag:
35
+ - '"a99d48f01a6a7d903f66712d0395decd"'
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
+ - a860ceeb-efb9-43b9-9cac-0d601879970c
48
+ X-Runtime:
49
+ - '0.049795'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '250'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: ASCII-8BIT
58
+ string: !binary |-
59
+ eyJpZCI6MTEzMjksIm5hbWUiOiJOb21lIGRvIG3Ds2R1bG8iLCJkZXNjcmlw
60
+ dGlvbiI6bnVsbCwib3JkZXIiOjEsImF2YWlsYWJsZSI6bnVsbCwiY291cnNl
61
+ X2NvbnRlbnRfaWRzIjpbNTE2NTgsNTE2NTcsNDkwMjBdLCJjcmVhdGVkX2F0
62
+ IjoiMjAxNS0wNi0xNyAxNjozMDoxMCBVVEMiLCJ1cGRhdGVkX2F0IjoiMjAx
63
+ NS0wNi0xNyAxNjozMDoxMCBVVEMiLCJwYXJlbnRfY291cnNlX21vZHVsZSI6
64
+ bnVsbCwiY291cnNlX21vZHVsZXMiOltdfQ==
65
+ http_version:
66
+ recorded_at: Mon, 06 Jul 2015 19:13:34 GMT
67
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,123 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/course_modules/11329.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:13:35 GMT
34
+ Etag:
35
+ - '"a99d48f01a6a7d903f66712d0395decd"'
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
+ - 9181b82e-b78e-42f7-be02-2b4772f5108b
48
+ X-Runtime:
49
+ - '0.040851'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '250'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: ASCII-8BIT
58
+ string: !binary |-
59
+ eyJpZCI6MTEzMjksIm5hbWUiOiJOb21lIGRvIG3Ds2R1bG8iLCJkZXNjcmlw
60
+ dGlvbiI6bnVsbCwib3JkZXIiOjEsImF2YWlsYWJsZSI6bnVsbCwiY291cnNl
61
+ X2NvbnRlbnRfaWRzIjpbNTE2NTgsNTE2NTcsNDkwMjBdLCJjcmVhdGVkX2F0
62
+ IjoiMjAxNS0wNi0xNyAxNjozMDoxMCBVVEMiLCJ1cGRhdGVkX2F0IjoiMjAx
63
+ NS0wNi0xNyAxNjozMDoxMCBVVEMiLCJwYXJlbnRfY291cnNlX21vZHVsZSI6
64
+ bnVsbCwiY291cnNlX21vZHVsZXMiOltdfQ==
65
+ http_version:
66
+ recorded_at: Mon, 06 Jul 2015 19:13:35 GMT
67
+ - request:
68
+ method: put
69
+ uri: https://core.edools.com/course_modules/11329.json
70
+ body:
71
+ encoding: UTF-8
72
+ string: '{"course_module":{"id":11329,"name":"Nome do módulo","description":"Edools
73
+ API TEST","order":1,"available":null,"course_content_ids":[51658,51657,49020],"created_at":"2015-06-17
74
+ 16:30:10 UTC","updated_at":"2015-06-17 16:30:10 UTC","parent_course_module":null,"course_modules":[]}}'
75
+ headers:
76
+ Content-Type:
77
+ - application/json
78
+ Authorization:
79
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
80
+ Accept:
81
+ - application/vnd.edools.core.v1+json
82
+ Accept-Encoding:
83
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
84
+ User-Agent:
85
+ - Ruby
86
+ response:
87
+ status:
88
+ code: 204
89
+ message: No Content
90
+ headers:
91
+ Cache-Control:
92
+ - no-cache
93
+ Content-Security-Policy-Report-Only:
94
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
95
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
96
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
97
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
98
+ Date:
99
+ - Mon, 06 Jul 2015 19:13:36 GMT
100
+ Server:
101
+ - nginx/1.4.7
102
+ Status:
103
+ - 204 No Content
104
+ Strict-Transport-Security:
105
+ - max-age=631152000; includeSubdomains
106
+ X-Content-Type-Options:
107
+ - nosniff
108
+ X-Frame-Options:
109
+ - DENY
110
+ X-Request-Id:
111
+ - fffb7c51-917c-45a9-b08a-6282a2658d1f
112
+ X-Runtime:
113
+ - '0.052414'
114
+ X-Xss-Protection:
115
+ - 1; mode=block
116
+ Connection:
117
+ - keep-alive
118
+ body:
119
+ encoding: UTF-8
120
+ string: ''
121
+ http_version:
122
+ recorded_at: Mon, 06 Jul 2015 19:13:36 GMT
123
+ 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/lessons.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"lesson":{"title":"Edools API Test","type":"ContentLesson"}}'
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:26:40 GMT
36
+ Etag:
37
+ - '"e7458d3cba9e730e536d6616100deee7"'
38
+ Location:
39
+ - https://core.edools.com/lessons/52232
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
+ - 04c10ed5-5c3d-4d99-8b6f-ac57554a87be
52
+ X-Runtime:
53
+ - '0.135766'
54
+ X-Xss-Protection:
55
+ - 1; mode=block
56
+ Content-Length:
57
+ - '310'
58
+ Connection:
59
+ - keep-alive
60
+ body:
61
+ encoding: UTF-8
62
+ string: '{"id":52232,"title":"Edools API Test","type":"ContentLesson","available":null,"description":null,"release_at":null,"release_after":null,"created_at":"2015-07-06
63
+ 19:26:40 UTC","updated_at":"2015-07-06 19:26:40 UTC","media":null,"library_resource":{"id":121418,"library":{"id":2},"library_tags":[]},"courses":[]}'
64
+ http_version:
65
+ recorded_at: Mon, 06 Jul 2015 19:26:40 GMT
66
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,115 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/lessons/52232.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:27:28 GMT
34
+ Etag:
35
+ - '"6a13eee7bace67168f0568ccb3eecd91"'
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
+ - c0259d56-8546-46f3-b2a2-03415c4cbd68
48
+ X-Runtime:
49
+ - '0.115628'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '323'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":52232,"title":"Edools API Test","type":"ContentLesson","available":null,"description":"Edools
59
+ API Test","release_at":null,"release_after":null,"created_at":"2015-07-06
60
+ 19:26:40 UTC","updated_at":"2015-07-06 19:27:20 UTC","media":null,"library_resource":{"id":121418,"library":{"id":2},"library_tags":[]},"courses":[]}'
61
+ http_version:
62
+ recorded_at: Mon, 06 Jul 2015 19:27:28 GMT
63
+ - request:
64
+ method: delete
65
+ uri: https://core.edools.com/lessons/52232.json
66
+ body:
67
+ encoding: US-ASCII
68
+ string: ''
69
+ headers:
70
+ Accept:
71
+ - application/vnd.edools.core.v1+json
72
+ Authorization:
73
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
74
+ Accept-Encoding:
75
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
76
+ User-Agent:
77
+ - Ruby
78
+ response:
79
+ status:
80
+ code: 204
81
+ message: No Content
82
+ headers:
83
+ Cache-Control:
84
+ - no-cache
85
+ Content-Security-Policy-Report-Only:
86
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
87
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
88
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
89
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
90
+ Date:
91
+ - Mon, 06 Jul 2015 19:27:29 GMT
92
+ Server:
93
+ - nginx/1.4.7
94
+ Status:
95
+ - 204 No Content
96
+ Strict-Transport-Security:
97
+ - max-age=631152000; includeSubdomains
98
+ X-Content-Type-Options:
99
+ - nosniff
100
+ X-Frame-Options:
101
+ - DENY
102
+ X-Request-Id:
103
+ - 018d66bd-1b64-4140-92d0-b19a50b9a89e
104
+ X-Runtime:
105
+ - '0.219500'
106
+ X-Xss-Protection:
107
+ - 1; mode=block
108
+ Connection:
109
+ - keep-alive
110
+ body:
111
+ encoding: UTF-8
112
+ string: ''
113
+ http_version:
114
+ recorded_at: Mon, 06 Jul 2015 19:27:29 GMT
115
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,154 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/lessons.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:25:08 GMT
34
+ Etag:
35
+ - '"ed1453b2a32387bcf5a6000b1020084d"'
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
+ - 968c6cce-46f1-413f-ae78-d74980995715
48
+ X-Runtime:
49
+ - '0.477303'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '4160'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: ASCII-8BIT
58
+ string: !binary |-
59
+ eyJsZXNzb25zIjpbeyJpZCI6MzI5NjIsInRpdGxlIjoiU0NPUk0iLCJ0eXBl
60
+ IjoiQ29udGVudExlc3NvbiIsImF2YWlsYWJsZSI6bnVsbCwiZGVzY3JpcHRp
61
+ b24iOm51bGwsInJlbGVhc2VfYXQiOm51bGwsInJlbGVhc2VfYWZ0ZXIiOm51
62
+ bGwsImNyZWF0ZWRfYXQiOiIyMDE1LTAyLTExIDE2OjU5OjAxIFVUQyIsInVw
63
+ ZGF0ZWRfYXQiOiIyMDE1LTAyLTExIDE3OjAxOjUxIFVUQyIsIm1lZGlhIjp7
64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145
+ bC0yMjQvc2Nvcm0tcGFja2FnZXMvNTcwNjgxODAyMjUwOGY3ZjFjOWRjYTNh
146
+ NGRkZjBkNzIvUHJvZ3JhbWHDp8OjbytkYStQcm9kdcOnw6NvLnppcCIsInR5
147
+ cGUiOiJTY29ybVBhY2thZ2UifSwibGlicmFyeV9yZXNvdXJjZSI6eyJpZCI6
148
+ NTgyNiwibGlicmFyeSI6eyJpZCI6Mn0sImxpYnJhcnlfdGFncyI6W119LCJj
149
+ b3Vyc2VzIjpbeyJpZCI6ODA3LCJuYW1lIjoiVGVzdGUgU0NPUk0ifV19XSwi
150
+ Y3VycmVudF9wYWdlIjoxLCJwZXJfcGFnZSI6MTAsInRvdGFsX3BhZ2VzIjoz
151
+ OSwidG90YWxfY291bnQiOjM4MX0=
152
+ http_version:
153
+ recorded_at: Mon, 06 Jul 2015 19:25:08 GMT
154
+ recorded_with: VCR 2.9.2