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,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/media/54344.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:32:33 GMT
34
+ Etag:
35
+ - '"76f227162213be1568efbf07be47283e"'
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
+ - 616cdcce-2a4c-4275-920f-70a2e3277230
48
+ X-Runtime:
49
+ - '0.071803'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '472'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":54344,"type":"Text","title":"Edools API Test","description":null,"host":null,"host_key":null,"status":"ready","message":null,"created_at":"2015-07-06
59
+ 19:31:41 UTC","updated_at":"2015-07-06 19:31:41 UTC","samba_player_key":"154f766fe4bdcf7cd6730542a851372b","usage_count":0,"text":"Edools
60
+ API Test Text","lesson_ids":[],"extra_content_ids":[],"library_resource":{"id":121419,"library":{"id":2,"samba_player_key":"154f766fe4bdcf7cd6730542a851372b"},"library_tags":[]}}'
61
+ http_version:
62
+ recorded_at: Mon, 06 Jul 2015 19:32:33 GMT
63
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/media/54344.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:32:34 GMT
34
+ Etag:
35
+ - '"76f227162213be1568efbf07be47283e"'
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
+ - 952cb054-1753-4ea7-bd47-11bf93974d3c
48
+ X-Runtime:
49
+ - '0.108115'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Transfer-Encoding:
53
+ - chunked
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":54344,"type":"Text","title":"Edools API Test","description":null,"host":null,"host_key":null,"status":"ready","message":null,"created_at":"2015-07-06
59
+ 19:31:41 UTC","updated_at":"2015-07-06 19:31:41 UTC","samba_player_key":"154f766fe4bdcf7cd6730542a851372b","usage_count":0,"text":"Edools
60
+ API Test Text","lesson_ids":[],"extra_content_ids":[],"library_resource":{"id":121419,"library":{"id":2,"samba_player_key":"154f766fe4bdcf7cd6730542a851372b"},"library_tags":[]}}'
61
+ http_version:
62
+ recorded_at: Mon, 06 Jul 2015 19:32:34 GMT
63
+ - request:
64
+ method: put
65
+ uri: https://core.edools.com/media/54344.json
66
+ body:
67
+ encoding: UTF-8
68
+ string: '{"media":{"id":54344,"type":"Text","title":"Edools API Test","description":"Edools
69
+ API Test","host":null,"host_key":null,"status":"ready","message":null,"created_at":"2015-07-06
70
+ 19:31:41 UTC","updated_at":"2015-07-06 19:31:41 UTC","samba_player_key":"154f766fe4bdcf7cd6730542a851372b","usage_count":0,"text":"Edools
71
+ API Test Text","lesson_ids":[],"extra_content_ids":[],"library_resource":{"id":121419,"library":{"id":2,"samba_player_key":"154f766fe4bdcf7cd6730542a851372b"},"library_tags":[]}}}'
72
+ headers:
73
+ Content-Type:
74
+ - application/json
75
+ Authorization:
76
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
77
+ Accept:
78
+ - application/vnd.edools.core.v1+json
79
+ Accept-Encoding:
80
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
81
+ User-Agent:
82
+ - Ruby
83
+ response:
84
+ status:
85
+ code: 204
86
+ message: No Content
87
+ headers:
88
+ Cache-Control:
89
+ - no-cache
90
+ Content-Security-Policy-Report-Only:
91
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
92
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
93
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
94
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
95
+ Date:
96
+ - Mon, 06 Jul 2015 19:32:35 GMT
97
+ Server:
98
+ - nginx/1.4.7
99
+ Status:
100
+ - 204 No Content
101
+ Strict-Transport-Security:
102
+ - max-age=631152000; includeSubdomains
103
+ X-Content-Type-Options:
104
+ - nosniff
105
+ X-Frame-Options:
106
+ - DENY
107
+ X-Request-Id:
108
+ - 75715373-77c7-45c8-a831-80da4475d04e
109
+ X-Runtime:
110
+ - '0.124179'
111
+ X-Xss-Protection:
112
+ - 1; mode=block
113
+ Connection:
114
+ - keep-alive
115
+ body:
116
+ encoding: UTF-8
117
+ string: ''
118
+ http_version:
119
+ recorded_at: Mon, 06 Jul 2015 19:32:35 GMT
120
+ 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/paths.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"path":{"name":"Edools API Test"}}'
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 18:34:49 GMT
36
+ Etag:
37
+ - '"260263fa77b9024dfd16f5beb2acd2d5"'
38
+ Location:
39
+ - https://core.edools.com/paths/1757
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
+ - 24082af9-c3bd-44af-bfa6-475b5244733f
52
+ X-Runtime:
53
+ - '0.274379'
54
+ X-Xss-Protection:
55
+ - 1; mode=block
56
+ Content-Length:
57
+ - '276'
58
+ Connection:
59
+ - keep-alive
60
+ body:
61
+ encoding: UTF-8
62
+ string: '{"id":1757,"name":"Edools API Test","description":null,"image_url":null,"created_at":"2015-07-06
63
+ 18:34:49 UTC","updated_at":"2015-07-06 18:34:49 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":121409,"library":{"id":2},"library_tags":[],"school_products":[]}}'
64
+ http_version:
65
+ recorded_at: Mon, 06 Jul 2015 18:34:49 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/paths/1750.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 18:34:50 GMT
34
+ Etag:
35
+ - '"c5ae248e6e86975748d301a05cf5bb2e"'
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
+ - 0e8298bb-5de1-4780-a0ee-de193d90b3c1
48
+ X-Runtime:
49
+ - '0.057499'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '272'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":1750,"name":"Teste feliz","description":null,"image_url":null,"created_at":"2015-06-09
59
+ 13:19:54 UTC","updated_at":"2015-06-09 13:19:54 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":114461,"library":{"id":2},"library_tags":[],"school_products":[]}}'
60
+ http_version:
61
+ recorded_at: Mon, 06 Jul 2015 18:34:50 GMT
62
+ - request:
63
+ method: delete
64
+ uri: https://core.edools.com/paths/1750.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 18:34:51 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
+ - 11e31b27-c256-49d9-9611-252d1338087d
103
+ X-Runtime:
104
+ - '0.094882'
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 18:34:51 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/paths.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 18:24:27 GMT
34
+ Etag:
35
+ - '"c518b30f446922475ff74f5694da3655"'
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
+ - 27656142-9997-447d-b3e7-bac5aa69a682
48
+ X-Runtime:
49
+ - '0.183890'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '2877'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"paths":[{"id":1008,"name":"Teste 123","description":null,"image_url":null,"created_at":"2015-02-06
59
+ 19:03:53 UTC","updated_at":"2015-02-06 19:03:53 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":74776,"library":{"id":2},"library_tags":[],"school_products":[]}},{"id":32,"name":"00001
60
+ TRILHA PARA TESTES E2E","description":null,"image_url":null,"created_at":"2014-12-23
61
+ 18:36:08 UTC","updated_at":"2015-04-24 17:31:44 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":48905,"library":{"id":2},"library_tags":[],"school_products":[{"id":2693,"title":"PATH"},{"id":2641,"title":"Trilha
62
+ embed"}]}},{"id":1045,"name":"qweqweqweqweqweasss","description":null,"image_url":null,"created_at":"2015-02-27
63
+ 14:17:22 UTC","updated_at":"2015-04-24 17:30:52 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":83764,"library":{"id":2},"library_tags":[],"school_products":[]}},{"id":1753,"name":"lalala","description":null,"image_url":null,"created_at":"2015-06-09
64
+ 19:55:45 UTC","updated_at":"2015-06-09 19:55:45 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":114688,"library":{"id":2},"library_tags":[],"school_products":[]}},{"id":28,"name":"Teste
65
+ Vinicius","description":null,"image_url":null,"created_at":"2014-12-23 16:17:53
66
+ UTC","updated_at":"2014-12-23 16:17:53 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":48891,"library":{"id":2},"library_tags":[],"school_products":[]}},{"id":1647,"name":"Uhuuuuuuuuul","description":null,"image_url":null,"created_at":"2015-04-27
67
+ 12:50:56 UTC","updated_at":"2015-05-07 18:34:41 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":105421,"library":{"id":2},"library_tags":[],"school_products":[]}},{"id":1711,"name":"Trilha
68
+ Maurilio","description":null,"image_url":null,"created_at":"2015-05-04 15:08:32
69
+ UTC","updated_at":"2015-05-04 15:08:32 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":108576,"library":{"id":2},"library_tags":[],"school_products":[]}},{"id":1738,"name":"Trilha
70
+ Day","description":null,"image_url":null,"created_at":"2015-05-28 20:54:19
71
+ UTC","updated_at":"2015-05-28 20:54:19 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":112675,"library":{"id":2},"library_tags":[],"school_products":[]}},{"id":31,"name":"Teste
72
+ BK","description":null,"image_url":null,"created_at":"2014-12-23 18:35:40
73
+ UTC","updated_at":"2014-12-23 18:35:40 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":48904,"library":{"id":2},"library_tags":[],"school_products":[]}},{"id":1750,"name":"Teste
74
+ feliz","description":null,"image_url":null,"created_at":"2015-06-09 13:19:54
75
+ UTC","updated_at":"2015-06-09 13:19:54 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":114461,"library":{"id":2},"library_tags":[],"school_products":[]}}],"current_page":1,"per_page":10,"total_pages":2,"total_count":20}'
76
+ http_version:
77
+ recorded_at: Mon, 06 Jul 2015 18:24:27 GMT
78
+ 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_products/156/school_classes.json?school_product_id=156
5
+ uri: https://core.edools.com/paths/1008.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:27:11 GMT
33
+ - Mon, 06 Jul 2015 18:29:14 GMT
34
34
  Etag:
35
- - '"e75ff2e73a21aa209f564d771dd14c22"'
35
+ - '"d9726dd970dcd75cd86ad55e9d58a5fc"'
36
36
  Server:
37
37
  - nginx/1.4.7
38
38
  Status:
@@ -44,18 +44,19 @@ http_interactions:
44
44
  X-Frame-Options:
45
45
  - DENY
46
46
  X-Request-Id:
47
- - 1b1238fa-fa32-4795-9468-a0ca58cc2b27
47
+ - c7ab8ebf-c39d-4ba6-b608-a13030b44c3b
48
48
  X-Runtime:
49
- - '0.032061'
49
+ - '0.067807'
50
50
  X-Xss-Protection:
51
51
  - 1; mode=block
52
- Content-Length:
53
- - '251'
52
+ Transfer-Encoding:
53
+ - chunked
54
54
  Connection:
55
55
  - keep-alive
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"school_classes":[{"id":151,"start_at":null,"end_at":null,"code":null,"school_product_id":156},{"id":151,"start_at":null,"end_at":null,"code":null,"school_product_id":156},{"id":151,"start_at":null,"end_at":null,"code":null,"school_product_id":156}]}'
58
+ string: '{"id":1008,"name":"Teste 123","description":null,"image_url":null,"created_at":"2015-02-06
59
+ 19:03:53 UTC","updated_at":"2015-02-06 19:03:53 UTC","forum_section_ids":[],"code":null,"library_resource":{"id":74776,"library":{"id":2},"library_tags":[],"school_products":[]}}'
59
60
  http_version:
60
- recorded_at: Wed, 30 Jul 2014 18:27:11 GMT
61
+ recorded_at: Mon, 06 Jul 2015 18:29:14 GMT
61
62
  recorded_with: VCR 2.9.2