edools-api 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +21 -0
- data/VERSION +1 -1
- data/edools-api.gemspec +121 -0
- data/lib/edools/core.rb +1 -0
- data/lib/edools/core/enrollment.rb +10 -0
- data/lib/edools/core/organization.rb +1 -1
- data/lib/edools/core/registration.rb +1 -1
- data/lib/edools/core/school.rb +1 -1
- data/lib/edools/core/school_class.rb +14 -0
- data/lib/edools/core/school_product.rb +7 -1
- data/lib/edools/core/student.rb +3 -0
- data/spec/edools/core/enrollment_spec.rb +19 -16
- data/spec/edools/core/school_class_spec.rb +35 -0
- data/spec/edools/core/school_product_spec.rb +18 -16
- data/spec/edools/core/school_spec.rb +17 -12
- data/spec/fixtures/vcr_cassettes/Edools_Core_Enrollment/create_the_enrollment.yml +183 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_Enrollment/finds_all_enrollment.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_Enrollment/finds_the_enrollment.yml +63 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_Enrollment/update_the_enrollment.yml +119 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_School/create_the_school.yml +61 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_School/finds_all_school.yml +61 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_School/finds_the_school.yml +61 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_School/update_the_school.yml +115 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolClass/create_the_school_class.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolClass/destroy_the_school_class.yml +113 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolClass/finds_all_school_class.yml +61 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolClass/finds_the_school_class.yml +61 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolClass/update_the_school_class.yml +116 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/create_the_school_product.yml +66 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/destroy_the_school_product.yml +114 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/finds_all_school_product.yml +186 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/finds_the_school_product.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/update_the_school_product.yml +118 -0
- metadata +24 -2
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://core.edools.com/schools.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/json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Wed, 30 Jul 2014 15:24:33 GMT
|
34
|
+
Etag:
|
35
|
+
- '"572a80c956f5eb0e1fc9cdd9643b6394"'
|
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
|
+
- 5af8a16f-2516-4337-9ab1-ca030e2f8944
|
48
|
+
X-Runtime:
|
49
|
+
- '0.022208'
|
50
|
+
X-Xss-Protection:
|
51
|
+
- 1; mode=block
|
52
|
+
Content-Length:
|
53
|
+
- '231'
|
54
|
+
Connection:
|
55
|
+
- keep-alive
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"schools":[{"id":224,"name":"Demo","subdomain":"demo","domains":["www.example.com"],"email":"contato@edools.com","phone":null,"cnpj":null,"status":"public","logo":"https://cdn.edools.com/assets/images/logos/marca-sem-fundo.png"}]}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 30 Jul 2014 15:24:33 GMT
|
61
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://core.edools.com/schools/224.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/json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Wed, 30 Jul 2014 15:25:09 GMT
|
34
|
+
Etag:
|
35
|
+
- '"d72a1e19e5964ff903611e9af5c73e33"'
|
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
|
+
- 926791ac-56c6-4f90-aabe-0cf2f1a0d3ad
|
48
|
+
X-Runtime:
|
49
|
+
- '0.014945'
|
50
|
+
X-Xss-Protection:
|
51
|
+
- 1; mode=block
|
52
|
+
Content-Length:
|
53
|
+
- '217'
|
54
|
+
Connection:
|
55
|
+
- keep-alive
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"id":224,"name":"Demo","subdomain":"demo","domains":["www.example.com"],"email":"contato@edools.com","phone":null,"cnpj":null,"status":"public","logo":"https://cdn.edools.com/assets/images/logos/marca-sem-fundo.png"}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 30 Jul 2014 15:25:09 GMT
|
61
|
+
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/schools/224.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/json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Wed, 30 Jul 2014 16:51:26 GMT
|
34
|
+
Etag:
|
35
|
+
- '"d72a1e19e5964ff903611e9af5c73e33"'
|
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
|
+
- 5aef4066-58d0-4252-b7d0-04030790a8c1
|
48
|
+
X-Runtime:
|
49
|
+
- '0.026025'
|
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":224,"name":"Demo","subdomain":"demo","domains":["www.example.com"],"email":"contato@edools.com","phone":null,"cnpj":null,"status":"public","logo":"https://cdn.edools.com/assets/images/logos/marca-sem-fundo.png"}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 30 Jul 2014 16:51:26 GMT
|
61
|
+
- request:
|
62
|
+
method: put
|
63
|
+
uri: https://core.edools.com/schools/224.json
|
64
|
+
body:
|
65
|
+
encoding: UTF-8
|
66
|
+
string: '{"school":{"id":224,"name":"Demo","subdomain":"demo","domains":["www.example.com"],"email":"contato@edools.com","phone":"12345678","cnpj":null,"status":"public","logo":"https://cdn.edools.com/assets/images/logos/marca-sem-fundo.png"}}'
|
67
|
+
headers:
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Authorization:
|
71
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
72
|
+
Accept:
|
73
|
+
- application/vnd.edools.core.v1+json
|
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
|
+
- Wed, 30 Jul 2014 16:51:27 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
|
+
- 0df93ee8-afbc-454c-baf8-fa292c2e28aa
|
104
|
+
X-Runtime:
|
105
|
+
- '0.129634'
|
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: Wed, 30 Jul 2014 16:51:27 GMT
|
115
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://core.edools.com/school_products/156/school_classes.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"school_class":{"title":"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/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Wed, 30 Jul 2014 18:27:15 GMT
|
36
|
+
Etag:
|
37
|
+
- '"7f8ba527fee3509a84df034216b43e19"'
|
38
|
+
Location:
|
39
|
+
- https://core.edools.com/school_classes/168
|
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
|
+
- 82da9c30-e5c0-47af-9ad0-8142f86b1b0f
|
52
|
+
X-Runtime:
|
53
|
+
- '0.044601'
|
54
|
+
X-Xss-Protection:
|
55
|
+
- 1; mode=block
|
56
|
+
Content-Length:
|
57
|
+
- '180'
|
58
|
+
Connection:
|
59
|
+
- keep-alive
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"id":168,"start_at":null,"end_at":null,"code":null,"school_product_id":156,"created_at":"2014-07-30T18:27:15.159Z","updated_at":"2014-07-30T18:27:15.159Z","forum_section_id":null}'
|
63
|
+
http_version:
|
64
|
+
recorded_at: Wed, 30 Jul 2014 18:27:15 GMT
|
65
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,113 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://core.edools.com/school_classes/168.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/json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Wed, 30 Jul 2014 18:32:35 GMT
|
34
|
+
Etag:
|
35
|
+
- '"dcb41408a68ae8c04a207735c3183a5b"'
|
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
|
+
- 8a5bd4e1-a5c1-403d-a3ad-7df050fbdc3d
|
48
|
+
X-Runtime:
|
49
|
+
- '0.030227'
|
50
|
+
X-Xss-Protection:
|
51
|
+
- 1; mode=block
|
52
|
+
Content-Length:
|
53
|
+
- '76'
|
54
|
+
Connection:
|
55
|
+
- keep-alive
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"id":168,"start_at":null,"end_at":null,"code":null,"school_product_id":156}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 30 Jul 2014 18:32:35 GMT
|
61
|
+
- request:
|
62
|
+
method: delete
|
63
|
+
uri: https://core.edools.com/school_classes/168.json
|
64
|
+
body:
|
65
|
+
encoding: US-ASCII
|
66
|
+
string: ''
|
67
|
+
headers:
|
68
|
+
Accept:
|
69
|
+
- application/vnd.edools.core.v1+json
|
70
|
+
Authorization:
|
71
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
72
|
+
Accept-Encoding:
|
73
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
74
|
+
User-Agent:
|
75
|
+
- Ruby
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 204
|
79
|
+
message: No Content
|
80
|
+
headers:
|
81
|
+
Cache-Control:
|
82
|
+
- no-cache
|
83
|
+
Content-Security-Policy-Report-Only:
|
84
|
+
- default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
|
85
|
+
'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
|
86
|
+
https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
|
87
|
+
style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
|
88
|
+
Date:
|
89
|
+
- Wed, 30 Jul 2014 18:32:35 GMT
|
90
|
+
Server:
|
91
|
+
- nginx/1.4.7
|
92
|
+
Status:
|
93
|
+
- 204 No Content
|
94
|
+
Strict-Transport-Security:
|
95
|
+
- max-age=631152000; includeSubdomains
|
96
|
+
X-Content-Type-Options:
|
97
|
+
- nosniff
|
98
|
+
X-Frame-Options:
|
99
|
+
- DENY
|
100
|
+
X-Request-Id:
|
101
|
+
- da4da47c-52c1-49a2-9374-34e8ef06e3ed
|
102
|
+
X-Runtime:
|
103
|
+
- '0.045663'
|
104
|
+
X-Xss-Protection:
|
105
|
+
- 1; mode=block
|
106
|
+
Connection:
|
107
|
+
- keep-alive
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: ''
|
111
|
+
http_version:
|
112
|
+
recorded_at: Wed, 30 Jul 2014 18:32:36 GMT
|
113
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://core.edools.com/school_products/156/school_classes.json?school_product_id=156
|
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/json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Wed, 30 Jul 2014 18:27:11 GMT
|
34
|
+
Etag:
|
35
|
+
- '"e75ff2e73a21aa209f564d771dd14c22"'
|
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
|
+
- 1b1238fa-fa32-4795-9468-a0ca58cc2b27
|
48
|
+
X-Runtime:
|
49
|
+
- '0.032061'
|
50
|
+
X-Xss-Protection:
|
51
|
+
- 1; mode=block
|
52
|
+
Content-Length:
|
53
|
+
- '251'
|
54
|
+
Connection:
|
55
|
+
- keep-alive
|
56
|
+
body:
|
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}]}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 30 Jul 2014 18:27:11 GMT
|
61
|
+
recorded_with: VCR 2.9.2
|