contentful_model 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/contentful_model.rb +17 -13
- data/lib/contentful_model/asset.rb +30 -0
- data/lib/contentful_model/asset_dimension_query.rb +70 -0
- data/lib/contentful_model/asset_dimensions.rb +54 -0
- data/lib/contentful_model/associations/associations.rb +10 -4
- data/lib/contentful_model/associations/belongs_to.rb +9 -4
- data/lib/contentful_model/associations/belongs_to_many.rb +22 -45
- data/lib/contentful_model/associations/has_many.rb +15 -13
- data/lib/contentful_model/associations/has_many_nested.rb +39 -37
- data/lib/contentful_model/associations/has_one.rb +22 -14
- data/lib/contentful_model/base.rb +115 -74
- data/lib/contentful_model/client.rb +14 -3
- data/lib/contentful_model/errors.rb +0 -1
- data/lib/contentful_model/manageable.rb +49 -21
- data/lib/contentful_model/management.rb +1 -0
- data/lib/contentful_model/migrations/content_type.rb +24 -24
- data/lib/contentful_model/migrations/content_type_factory.rb +9 -6
- data/lib/contentful_model/migrations/migration.rb +9 -4
- data/lib/contentful_model/queries.rb +60 -9
- data/lib/contentful_model/query.rb +148 -5
- data/lib/contentful_model/validations/lambda_validation.rb +17 -0
- data/lib/contentful_model/validations/validates_presence_of.rb +4 -1
- data/lib/contentful_model/validations/validations.rb +56 -8
- data/lib/contentful_model/version.rb +1 -1
- data/spec/asset_spec.rb +141 -0
- data/spec/associations/belongs_to_many_spec.rb +38 -0
- data/spec/associations/belongs_to_spec.rb +22 -0
- data/spec/associations/has_many_nested_spec.rb +321 -0
- data/spec/associations/has_many_spec.rb +33 -0
- data/spec/associations/has_one_spec.rb +32 -0
- data/spec/base_spec.rb +199 -0
- data/spec/chainable_queries_spec.rb +199 -0
- data/spec/client_spec.rb +11 -0
- data/spec/contentful_model_spec.rb +25 -0
- data/spec/fixtures/vcr_cassettes/asset/all.yml +161 -0
- data/spec/fixtures/vcr_cassettes/asset/find.yml +118 -0
- data/spec/fixtures/vcr_cassettes/association/belongs_to_many.yml +439 -0
- data/spec/fixtures/vcr_cassettes/association/has_many.yml +161 -0
- data/spec/fixtures/vcr_cassettes/association/has_one.yml +161 -0
- data/spec/fixtures/vcr_cassettes/association/nested_with_root_root.yml +240 -0
- data/spec/fixtures/vcr_cassettes/association/nested_without_root_child_higher_include.yml +123 -0
- data/spec/fixtures/vcr_cassettes/association/nested_without_root_child_parent.yml +609 -0
- data/spec/fixtures/vcr_cassettes/association/nested_without_root_childless.yml +688 -0
- data/spec/fixtures/vcr_cassettes/association/nested_without_root_middle.yml +319 -0
- data/spec/fixtures/vcr_cassettes/association/nested_without_root_middle_higher_include.yml +161 -0
- data/spec/fixtures/vcr_cassettes/association/nested_without_root_middle_parent.yml +489 -0
- data/spec/fixtures/vcr_cassettes/association/nested_without_root_parentless.yml +331 -0
- data/spec/fixtures/vcr_cassettes/association/nested_without_root_parentless_higher_include.yml +82 -0
- data/spec/fixtures/vcr_cassettes/associations/nested_without_root_middle.yml +161 -0
- data/spec/fixtures/vcr_cassettes/associations/nested_without_root_middle_higher_include.yml +82 -0
- data/spec/fixtures/vcr_cassettes/base/content_type.yml +185 -0
- data/spec/fixtures/vcr_cassettes/base/return_nil_for_empty.yml +202 -0
- data/spec/fixtures/vcr_cassettes/base/return_nil_for_empty_with_value.yml +124 -0
- data/spec/fixtures/vcr_cassettes/client.yml +98 -0
- data/spec/fixtures/vcr_cassettes/dog.yml +161 -0
- data/spec/fixtures/vcr_cassettes/human.yml +199 -0
- data/spec/fixtures/vcr_cassettes/management/client.yml +1362 -0
- data/spec/fixtures/vcr_cassettes/management/nyancat.yml +1449 -0
- data/spec/fixtures/vcr_cassettes/management/nyancat_2.yml +1449 -0
- data/spec/fixtures/vcr_cassettes/management/nyancat_publish.yml +481 -0
- data/spec/fixtures/vcr_cassettes/management/nyancat_refetch_and_fail.yml +558 -0
- data/spec/fixtures/vcr_cassettes/management/nyancat_refetch_and_save.yml +620 -0
- data/spec/fixtures/vcr_cassettes/management/nyancat_save.yml +479 -0
- data/spec/fixtures/vcr_cassettes/management/nyancat_save_2.yml +479 -0
- data/spec/fixtures/vcr_cassettes/nyancat.yml +196 -0
- data/spec/fixtures/vcr_cassettes/playground/nyancat.yml +177 -0
- data/spec/fixtures/vcr_cassettes/query/each_entry.yml +319 -0
- data/spec/fixtures/vcr_cassettes/query/each_page.yml +319 -0
- data/spec/fixtures/vcr_cassettes/query/empty.yml +180 -0
- data/spec/fixtures/vcr_cassettes/query/load.yml +197 -0
- data/spec/fixtures/vcr_cassettes/query/manual_pagination.yml +161 -0
- data/spec/fixtures/vcr_cassettes/query/nyancat_invalid_elements.yml +247 -0
- data/spec/manageable_spec.rb +186 -0
- data/spec/management_spec.rb +17 -0
- data/spec/migrations/content_type_factory_spec.rb +41 -0
- data/spec/migrations/content_type_spec.rb +176 -0
- data/spec/migrations/migration_spec.rb +75 -0
- data/spec/queries_spec.rb +85 -0
- data/spec/query_spec.rb +126 -0
- data/spec/spec_helper.rb +58 -0
- data/spec/validations/validations_spec.rb +182 -0
- metadata +213 -19
- data/lib/contentful_model/chainable_queries.rb +0 -104
@@ -0,0 +1,123 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/a22o2qgm356c/environments/master/entries?content_type=nested&include=2&sys.id=2pFubMJuVqMSisGeCmoqem
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful.rb/2.6.0; integration contentful_model/0.2.0; platform ruby/2.5.1;
|
12
|
+
os macOS/16;
|
13
|
+
Authorization:
|
14
|
+
- Bearer 60229df5876f14f499870d0d26f37b1323764ed637289353a5f74a5ea190c214
|
15
|
+
Content-Type:
|
16
|
+
- application/vnd.contentful.delivery.v1+json
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip
|
19
|
+
Connection:
|
20
|
+
- close
|
21
|
+
Host:
|
22
|
+
- cdn.contentful.com
|
23
|
+
User-Agent:
|
24
|
+
- http.rb/2.2.2
|
25
|
+
response:
|
26
|
+
status:
|
27
|
+
code: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Access-Control-Allow-Headers:
|
31
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
32
|
+
Access-Control-Allow-Methods:
|
33
|
+
- GET,HEAD,OPTIONS
|
34
|
+
Access-Control-Allow-Origin:
|
35
|
+
- "*"
|
36
|
+
Access-Control-Expose-Headers:
|
37
|
+
- Etag
|
38
|
+
Access-Control-Max-Age:
|
39
|
+
- '86400'
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0
|
42
|
+
Content-Type:
|
43
|
+
- application/vnd.contentful.delivery.v1+json
|
44
|
+
Etag:
|
45
|
+
- '"6254facb7b3bbdd2ddd6c9457df7f7eb"'
|
46
|
+
Server:
|
47
|
+
- Contentful
|
48
|
+
X-Content-Type-Options:
|
49
|
+
- nosniff
|
50
|
+
X-Contentful-Request-Id:
|
51
|
+
- 39d5adf831ae63847c80a79ee3c933e6
|
52
|
+
Content-Length:
|
53
|
+
- '878'
|
54
|
+
Accept-Ranges:
|
55
|
+
- bytes
|
56
|
+
Date:
|
57
|
+
- Wed, 25 Apr 2018 14:06:42 GMT
|
58
|
+
Via:
|
59
|
+
- 1.1 varnish
|
60
|
+
Age:
|
61
|
+
- '0'
|
62
|
+
Connection:
|
63
|
+
- close
|
64
|
+
X-Served-By:
|
65
|
+
- cache-hhn1543-HHN
|
66
|
+
X-Cache:
|
67
|
+
- MISS
|
68
|
+
X-Cache-Hits:
|
69
|
+
- '0'
|
70
|
+
X-Timer:
|
71
|
+
- S1524665202.441190,VS0,VE279
|
72
|
+
Vary:
|
73
|
+
- Accept-Encoding
|
74
|
+
body:
|
75
|
+
encoding: ASCII-8BIT
|
76
|
+
string: |
|
77
|
+
{
|
78
|
+
"sys": {
|
79
|
+
"type": "Array"
|
80
|
+
},
|
81
|
+
"total": 1,
|
82
|
+
"skip": 0,
|
83
|
+
"limit": 100,
|
84
|
+
"items": [
|
85
|
+
{
|
86
|
+
"sys": {
|
87
|
+
"space": {
|
88
|
+
"sys": {
|
89
|
+
"type": "Link",
|
90
|
+
"linkType": "Space",
|
91
|
+
"id": "a22o2qgm356c"
|
92
|
+
}
|
93
|
+
},
|
94
|
+
"id": "2pFubMJuVqMSisGeCmoqem",
|
95
|
+
"type": "Entry",
|
96
|
+
"createdAt": "2018-04-25T11:54:46.442Z",
|
97
|
+
"updatedAt": "2018-04-25T11:54:46.442Z",
|
98
|
+
"environment": {
|
99
|
+
"sys": {
|
100
|
+
"id": "master",
|
101
|
+
"type": "Link",
|
102
|
+
"linkType": "Environment"
|
103
|
+
}
|
104
|
+
},
|
105
|
+
"revision": 1,
|
106
|
+
"contentType": {
|
107
|
+
"sys": {
|
108
|
+
"type": "Link",
|
109
|
+
"linkType": "ContentType",
|
110
|
+
"id": "nested"
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"locale": "en-US"
|
114
|
+
},
|
115
|
+
"fields": {
|
116
|
+
"name": "Nested 3"
|
117
|
+
}
|
118
|
+
}
|
119
|
+
]
|
120
|
+
}
|
121
|
+
http_version:
|
122
|
+
recorded_at: Wed, 25 Apr 2018 14:06:42 GMT
|
123
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,609 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/a22o2qgm356c/environments/master/entries?content_type=nested&include=2&sys.id=2pFubMJuVqMSisGeCmoqem
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful.rb/2.6.0; integration contentful_model/0.2.0; platform ruby/2.5.1;
|
12
|
+
os macOS/16;
|
13
|
+
Authorization:
|
14
|
+
- Bearer 60229df5876f14f499870d0d26f37b1323764ed637289353a5f74a5ea190c214
|
15
|
+
Content-Type:
|
16
|
+
- application/vnd.contentful.delivery.v1+json
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip
|
19
|
+
Connection:
|
20
|
+
- close
|
21
|
+
Host:
|
22
|
+
- cdn.contentful.com
|
23
|
+
User-Agent:
|
24
|
+
- http.rb/2.2.2
|
25
|
+
response:
|
26
|
+
status:
|
27
|
+
code: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Access-Control-Allow-Headers:
|
31
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
32
|
+
Access-Control-Allow-Methods:
|
33
|
+
- GET,HEAD,OPTIONS
|
34
|
+
Access-Control-Allow-Origin:
|
35
|
+
- "*"
|
36
|
+
Access-Control-Expose-Headers:
|
37
|
+
- Etag
|
38
|
+
Access-Control-Max-Age:
|
39
|
+
- '86400'
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0
|
42
|
+
Content-Type:
|
43
|
+
- application/vnd.contentful.delivery.v1+json
|
44
|
+
Etag:
|
45
|
+
- '"6254facb7b3bbdd2ddd6c9457df7f7eb"'
|
46
|
+
Server:
|
47
|
+
- Contentful
|
48
|
+
X-Content-Type-Options:
|
49
|
+
- nosniff
|
50
|
+
X-Contentful-Request-Id:
|
51
|
+
- 39ee74e8e9ba64e91b5a94d0777c798f
|
52
|
+
Content-Length:
|
53
|
+
- '878'
|
54
|
+
Accept-Ranges:
|
55
|
+
- bytes
|
56
|
+
Date:
|
57
|
+
- Wed, 25 Apr 2018 14:07:02 GMT
|
58
|
+
Via:
|
59
|
+
- 1.1 varnish
|
60
|
+
Age:
|
61
|
+
- '0'
|
62
|
+
Connection:
|
63
|
+
- close
|
64
|
+
X-Served-By:
|
65
|
+
- cache-hhn1532-HHN
|
66
|
+
X-Cache:
|
67
|
+
- MISS
|
68
|
+
X-Cache-Hits:
|
69
|
+
- '0'
|
70
|
+
X-Timer:
|
71
|
+
- S1524665223.652513,VS0,VE97
|
72
|
+
Vary:
|
73
|
+
- Accept-Encoding
|
74
|
+
body:
|
75
|
+
encoding: ASCII-8BIT
|
76
|
+
string: |
|
77
|
+
{
|
78
|
+
"sys": {
|
79
|
+
"type": "Array"
|
80
|
+
},
|
81
|
+
"total": 1,
|
82
|
+
"skip": 0,
|
83
|
+
"limit": 100,
|
84
|
+
"items": [
|
85
|
+
{
|
86
|
+
"sys": {
|
87
|
+
"space": {
|
88
|
+
"sys": {
|
89
|
+
"type": "Link",
|
90
|
+
"linkType": "Space",
|
91
|
+
"id": "a22o2qgm356c"
|
92
|
+
}
|
93
|
+
},
|
94
|
+
"id": "2pFubMJuVqMSisGeCmoqem",
|
95
|
+
"type": "Entry",
|
96
|
+
"createdAt": "2018-04-25T11:54:46.442Z",
|
97
|
+
"updatedAt": "2018-04-25T11:54:46.442Z",
|
98
|
+
"environment": {
|
99
|
+
"sys": {
|
100
|
+
"id": "master",
|
101
|
+
"type": "Link",
|
102
|
+
"linkType": "Environment"
|
103
|
+
}
|
104
|
+
},
|
105
|
+
"revision": 1,
|
106
|
+
"contentType": {
|
107
|
+
"sys": {
|
108
|
+
"type": "Link",
|
109
|
+
"linkType": "ContentType",
|
110
|
+
"id": "nested"
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"locale": "en-US"
|
114
|
+
},
|
115
|
+
"fields": {
|
116
|
+
"name": "Nested 3"
|
117
|
+
}
|
118
|
+
}
|
119
|
+
]
|
120
|
+
}
|
121
|
+
http_version:
|
122
|
+
recorded_at: Wed, 25 Apr 2018 14:07:02 GMT
|
123
|
+
- request:
|
124
|
+
method: get
|
125
|
+
uri: https://cdn.contentful.com/spaces/a22o2qgm356c/environments/master/entries?content_type=nested&include=0&limit=1&links_to_entry=2pFubMJuVqMSisGeCmoqem
|
126
|
+
body:
|
127
|
+
encoding: US-ASCII
|
128
|
+
string: ''
|
129
|
+
headers:
|
130
|
+
X-Contentful-User-Agent:
|
131
|
+
- sdk contentful.rb/2.6.0; integration contentful_model/0.2.0; platform ruby/2.5.1;
|
132
|
+
os macOS/16;
|
133
|
+
Authorization:
|
134
|
+
- Bearer 60229df5876f14f499870d0d26f37b1323764ed637289353a5f74a5ea190c214
|
135
|
+
Content-Type:
|
136
|
+
- application/vnd.contentful.delivery.v1+json
|
137
|
+
Accept-Encoding:
|
138
|
+
- gzip
|
139
|
+
Connection:
|
140
|
+
- close
|
141
|
+
Host:
|
142
|
+
- cdn.contentful.com
|
143
|
+
User-Agent:
|
144
|
+
- http.rb/2.2.2
|
145
|
+
response:
|
146
|
+
status:
|
147
|
+
code: 200
|
148
|
+
message: OK
|
149
|
+
headers:
|
150
|
+
Access-Control-Allow-Headers:
|
151
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
152
|
+
Access-Control-Allow-Methods:
|
153
|
+
- GET,HEAD,OPTIONS
|
154
|
+
Access-Control-Allow-Origin:
|
155
|
+
- "*"
|
156
|
+
Access-Control-Expose-Headers:
|
157
|
+
- Etag
|
158
|
+
Access-Control-Max-Age:
|
159
|
+
- '86400'
|
160
|
+
Cache-Control:
|
161
|
+
- max-age=0
|
162
|
+
Content-Encoding:
|
163
|
+
- gzip
|
164
|
+
Content-Type:
|
165
|
+
- application/vnd.contentful.delivery.v1+json
|
166
|
+
Etag:
|
167
|
+
- W/"7d976c136de10579cd2a4eff91820340"
|
168
|
+
Server:
|
169
|
+
- Contentful
|
170
|
+
X-Content-Type-Options:
|
171
|
+
- nosniff
|
172
|
+
X-Contentful-Request-Id:
|
173
|
+
- 508024916b26b4ff0e22a3c0c2c82157
|
174
|
+
Content-Length:
|
175
|
+
- '398'
|
176
|
+
Accept-Ranges:
|
177
|
+
- bytes
|
178
|
+
Date:
|
179
|
+
- Wed, 25 Apr 2018 14:07:03 GMT
|
180
|
+
Via:
|
181
|
+
- 1.1 varnish
|
182
|
+
Age:
|
183
|
+
- '0'
|
184
|
+
Connection:
|
185
|
+
- close
|
186
|
+
X-Served-By:
|
187
|
+
- cache-hhn1534-HHN
|
188
|
+
X-Cache:
|
189
|
+
- MISS
|
190
|
+
X-Cache-Hits:
|
191
|
+
- '0'
|
192
|
+
X-Timer:
|
193
|
+
- S1524665223.828905,VS0,VE509
|
194
|
+
Vary:
|
195
|
+
- Accept-Encoding
|
196
|
+
body:
|
197
|
+
encoding: ASCII-8BIT
|
198
|
+
string: !binary |-
|
199
|
+
H4sIAAAAAAAAA5VTTW/CMAy98yuqnMdEA2WoN1QxpAk2obIdNnHI2gxFbdI2CUwV4r8vST/IKrSyHKraif38nu3TwHGAKAXwnZP6VYYsc6wsMOcclUD5znf6jcwkSpXfNZZISK6MkTFSQolsr4jEVKf7MOmqpB0MgyNyFGmg5kXltCrRDuNsKloRlgCNeDkKmyXbuuLQZOw8ILEmgyDMYLGnY28aaU7NObf/hmV1QBUz3ueLYH0MV+FLMPveJ5vpcgMLK39b2IJJXtoXEcdI4niuVQFw5M6Go8kQelvX9b2J703vHybuux1wyOP/BWB2JDxjFDON0a9hRYkiITHvSnSrvgsLs1dDjo9EkIw1c1FLG2VMqprrlvXXfWttgZX36gQwrKjH/b1PswilZgEwG76GTUA7HuCL4DS+7IvmBRiiJuTZgDjQbi3HqW5tuxGVEDbzK9tRq/UHe7N3l9nvjuCvSYb54+Fz/XR4K9YhEUsc0KzA1NZCbfnVju5qb3Wrv7vBefAD4LIqrDUEAAA=
|
200
|
+
http_version:
|
201
|
+
recorded_at: Wed, 25 Apr 2018 14:07:03 GMT
|
202
|
+
- request:
|
203
|
+
method: get
|
204
|
+
uri: https://cdn.contentful.com/spaces/a22o2qgm356c/environments/master/entries?content_type=nested&include=2&limit=100&links_to_entry=2pFubMJuVqMSisGeCmoqem&order=sys.updatedAt&skip=0
|
205
|
+
body:
|
206
|
+
encoding: US-ASCII
|
207
|
+
string: ''
|
208
|
+
headers:
|
209
|
+
X-Contentful-User-Agent:
|
210
|
+
- sdk contentful.rb/2.6.0; integration contentful_model/0.2.0; platform ruby/2.5.1;
|
211
|
+
os macOS/16;
|
212
|
+
Authorization:
|
213
|
+
- Bearer 60229df5876f14f499870d0d26f37b1323764ed637289353a5f74a5ea190c214
|
214
|
+
Content-Type:
|
215
|
+
- application/vnd.contentful.delivery.v1+json
|
216
|
+
Accept-Encoding:
|
217
|
+
- gzip
|
218
|
+
Connection:
|
219
|
+
- close
|
220
|
+
Host:
|
221
|
+
- cdn.contentful.com
|
222
|
+
User-Agent:
|
223
|
+
- http.rb/2.2.2
|
224
|
+
response:
|
225
|
+
status:
|
226
|
+
code: 200
|
227
|
+
message: OK
|
228
|
+
headers:
|
229
|
+
Access-Control-Allow-Headers:
|
230
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
231
|
+
Access-Control-Allow-Methods:
|
232
|
+
- GET,HEAD,OPTIONS
|
233
|
+
Access-Control-Allow-Origin:
|
234
|
+
- "*"
|
235
|
+
Access-Control-Expose-Headers:
|
236
|
+
- Etag
|
237
|
+
Access-Control-Max-Age:
|
238
|
+
- '86400'
|
239
|
+
Cache-Control:
|
240
|
+
- max-age=0
|
241
|
+
Content-Encoding:
|
242
|
+
- gzip
|
243
|
+
Content-Type:
|
244
|
+
- application/vnd.contentful.delivery.v1+json
|
245
|
+
Etag:
|
246
|
+
- W/"591559b549b4737838de306bbba84c83"
|
247
|
+
Server:
|
248
|
+
- Contentful
|
249
|
+
X-Content-Type-Options:
|
250
|
+
- nosniff
|
251
|
+
X-Contentful-Request-Id:
|
252
|
+
- 6d7c33ca784f5b92d72f41a4260d6fec
|
253
|
+
Content-Length:
|
254
|
+
- '527'
|
255
|
+
Accept-Ranges:
|
256
|
+
- bytes
|
257
|
+
Date:
|
258
|
+
- Wed, 25 Apr 2018 14:07:03 GMT
|
259
|
+
Via:
|
260
|
+
- 1.1 varnish
|
261
|
+
Age:
|
262
|
+
- '0'
|
263
|
+
Connection:
|
264
|
+
- close
|
265
|
+
X-Served-By:
|
266
|
+
- cache-hhn1545-HHN
|
267
|
+
X-Cache:
|
268
|
+
- MISS
|
269
|
+
X-Cache-Hits:
|
270
|
+
- '0'
|
271
|
+
X-Timer:
|
272
|
+
- S1524665223.445166,VS0,VE209
|
273
|
+
Vary:
|
274
|
+
- Accept-Encoding
|
275
|
+
body:
|
276
|
+
encoding: ASCII-8BIT
|
277
|
+
string: !binary |-
|
278
|
+
H4sIAAAAAAAAA5VVW2+CMBh991eYPk8jFZnxzRBnsugWg9vDFh8YdKYRCkJ1Mcb/vl64VCyIPChf2+92+p3DudPtgvSUgkn3zF6ZQU8xYhaYJol7Amzt8sTP0Ii6AVs3hJXucMyMgTACHGLKtwbSxhSFPOC3CCjDVrKITGnsejxVfkIuKrXwBbGY17TAZAd4zvJh2clundXsiIiVA9jn7bgQRnC/DYcjy+Nd5c+leBd9ygdIn+E2ntnLo7Nw3u3x33a3suYruFfiF4XNCE1O6oaXIJcif8pxAXBgjHsDswdHa8OYjMzJyOo/m8aX6nCI/cccEDniJCIhIjzHfQxlS6GbUpRUIWqL70zJeRfDBB1xiiOSD00GrRcRymrOrux+3W1rs5W42gkgiLXu37/7IPLcQFAAkd6HkzsU4wF+MQr8kjG8L0DcULi8iSRdqF5tggJ+tQUjJBBq5xp2ZGg1dC+YV85+dQSvJhnGL4ef5evhc790cDpHdhjtUahiwXiuvdFNtip3+e9GkB4TLzj4SBEOWUBO+5L42ua05NeeFPC2h0EnAbzcRhGoNK+OT+ZZA+DVybzI25sAzXJgWn3ThKocsIqbBUHrUi8J9cg2yMJDuNdIQxOyeoFgWeslor6P9hNSLxTFnNxKRVMfNYKRfTkzHmpEg6WryMawZGTORvnPWXjpXDr/9SbSoK8HAAA=
|
279
|
+
http_version:
|
280
|
+
recorded_at: Wed, 25 Apr 2018 14:07:03 GMT
|
281
|
+
- request:
|
282
|
+
method: get
|
283
|
+
uri: https://cdn.contentful.com/spaces/a22o2qgm356c/environments/master/entries?content_type=nested&include=0&limit=1&links_to_entry=3gpECMvSLSOC8wgkQ6GQ2q
|
284
|
+
body:
|
285
|
+
encoding: US-ASCII
|
286
|
+
string: ''
|
287
|
+
headers:
|
288
|
+
X-Contentful-User-Agent:
|
289
|
+
- sdk contentful.rb/2.6.0; integration contentful_model/0.2.0; platform ruby/2.5.1;
|
290
|
+
os macOS/16;
|
291
|
+
Authorization:
|
292
|
+
- Bearer 60229df5876f14f499870d0d26f37b1323764ed637289353a5f74a5ea190c214
|
293
|
+
Content-Type:
|
294
|
+
- application/vnd.contentful.delivery.v1+json
|
295
|
+
Accept-Encoding:
|
296
|
+
- gzip
|
297
|
+
Connection:
|
298
|
+
- close
|
299
|
+
Host:
|
300
|
+
- cdn.contentful.com
|
301
|
+
User-Agent:
|
302
|
+
- http.rb/2.2.2
|
303
|
+
response:
|
304
|
+
status:
|
305
|
+
code: 200
|
306
|
+
message: OK
|
307
|
+
headers:
|
308
|
+
Access-Control-Allow-Headers:
|
309
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
310
|
+
Access-Control-Allow-Methods:
|
311
|
+
- GET,HEAD,OPTIONS
|
312
|
+
Access-Control-Allow-Origin:
|
313
|
+
- "*"
|
314
|
+
Access-Control-Expose-Headers:
|
315
|
+
- Etag
|
316
|
+
Access-Control-Max-Age:
|
317
|
+
- '86400'
|
318
|
+
Cache-Control:
|
319
|
+
- max-age=0
|
320
|
+
Content-Encoding:
|
321
|
+
- gzip
|
322
|
+
Content-Type:
|
323
|
+
- application/vnd.contentful.delivery.v1+json
|
324
|
+
Etag:
|
325
|
+
- W/"a39ba5818cffd4b2fc7869e54b5b6a95"
|
326
|
+
Server:
|
327
|
+
- Contentful
|
328
|
+
X-Content-Type-Options:
|
329
|
+
- nosniff
|
330
|
+
X-Contentful-Request-Id:
|
331
|
+
- 5f1a3632af41f0792651345561c40388
|
332
|
+
Content-Length:
|
333
|
+
- '407'
|
334
|
+
Accept-Ranges:
|
335
|
+
- bytes
|
336
|
+
Date:
|
337
|
+
- Wed, 25 Apr 2018 14:07:03 GMT
|
338
|
+
Via:
|
339
|
+
- 1.1 varnish
|
340
|
+
Age:
|
341
|
+
- '1120'
|
342
|
+
Connection:
|
343
|
+
- close
|
344
|
+
X-Served-By:
|
345
|
+
- cache-hhn1530-HHN
|
346
|
+
X-Cache:
|
347
|
+
- HIT
|
348
|
+
X-Cache-Hits:
|
349
|
+
- '2'
|
350
|
+
X-Timer:
|
351
|
+
- S1524665224.746518,VS0,VE0
|
352
|
+
Vary:
|
353
|
+
- Accept-Encoding
|
354
|
+
body:
|
355
|
+
encoding: ASCII-8BIT
|
356
|
+
string: !binary |-
|
357
|
+
H4sIAAAAAAAAA41T32+CMBB+968gfZ4GqqDyZohZljiNwWXJFh866EgDFCxVZ4z/+9ryw0rcsA+Eu/bu++7uu3PPMEBxKoBrnMWvMPgpx8ICM8bQCQjf5Um+4RlHifBbyipikgvDVEZCUsKbK8JxKtN9qnRl0haGwilyFEig+kXp1JhIh3LWjBaExkAiXo/ApvGmYuyrjK0HJJTFIAgzuIvSoe0Esqb6XJp/VWV5QBlje8uvnyBA9uoYvTgT7O/fiwxq+Rtic8rZSb8IGEYchzPZFQBNa9I3R31obyzLtUeuPR2YjvmhB+zz8M8A2zWngzEc3wRgeiAsoymmEqO7h2VJKSo4Zu0WPdrfuYbZ2UOGD6QgGRXsoNbaIKNccK5G1s37UW6elveuAigWpYfds0+yACVqATDtv/l1QCMP8E1wEl73RUoGUJSqkKUCMSx9tAwncrTNRpQa0yu/sx2VEP+pXu3dVfttCd4oeRjlc+/14C/8lTc5RvHaeV7Dnd4LseV3J7qtvOWt/G57l94vbzRPFDUEAAA=
|
358
|
+
http_version:
|
359
|
+
recorded_at: Wed, 25 Apr 2018 14:07:03 GMT
|
360
|
+
- request:
|
361
|
+
method: get
|
362
|
+
uri: https://cdn.contentful.com/spaces/a22o2qgm356c/environments/master/entries?content_type=nested&include=2&limit=100&links_to_entry=3gpECMvSLSOC8wgkQ6GQ2q&order=sys.updatedAt&skip=0
|
363
|
+
body:
|
364
|
+
encoding: US-ASCII
|
365
|
+
string: ''
|
366
|
+
headers:
|
367
|
+
X-Contentful-User-Agent:
|
368
|
+
- sdk contentful.rb/2.6.0; integration contentful_model/0.2.0; platform ruby/2.5.1;
|
369
|
+
os macOS/16;
|
370
|
+
Authorization:
|
371
|
+
- Bearer 60229df5876f14f499870d0d26f37b1323764ed637289353a5f74a5ea190c214
|
372
|
+
Content-Type:
|
373
|
+
- application/vnd.contentful.delivery.v1+json
|
374
|
+
Accept-Encoding:
|
375
|
+
- gzip
|
376
|
+
Connection:
|
377
|
+
- close
|
378
|
+
Host:
|
379
|
+
- cdn.contentful.com
|
380
|
+
User-Agent:
|
381
|
+
- http.rb/2.2.2
|
382
|
+
response:
|
383
|
+
status:
|
384
|
+
code: 200
|
385
|
+
message: OK
|
386
|
+
headers:
|
387
|
+
Access-Control-Allow-Headers:
|
388
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
389
|
+
Access-Control-Allow-Methods:
|
390
|
+
- GET,HEAD,OPTIONS
|
391
|
+
Access-Control-Allow-Origin:
|
392
|
+
- "*"
|
393
|
+
Access-Control-Expose-Headers:
|
394
|
+
- Etag
|
395
|
+
Access-Control-Max-Age:
|
396
|
+
- '86400'
|
397
|
+
Cache-Control:
|
398
|
+
- max-age=0
|
399
|
+
Content-Encoding:
|
400
|
+
- gzip
|
401
|
+
Content-Type:
|
402
|
+
- application/vnd.contentful.delivery.v1+json
|
403
|
+
Etag:
|
404
|
+
- W/"6a2176e61669de8bc824a3c32e7afb5f"
|
405
|
+
Server:
|
406
|
+
- Contentful
|
407
|
+
X-Content-Type-Options:
|
408
|
+
- nosniff
|
409
|
+
X-Contentful-Request-Id:
|
410
|
+
- d0ef442cc06c2167a5ef88817a5ca551
|
411
|
+
Content-Length:
|
412
|
+
- '660'
|
413
|
+
Accept-Ranges:
|
414
|
+
- bytes
|
415
|
+
Date:
|
416
|
+
- Wed, 25 Apr 2018 14:07:03 GMT
|
417
|
+
Via:
|
418
|
+
- 1.1 varnish
|
419
|
+
Age:
|
420
|
+
- '1120'
|
421
|
+
Connection:
|
422
|
+
- close
|
423
|
+
X-Served-By:
|
424
|
+
- cache-hhn1523-HHN
|
425
|
+
X-Cache:
|
426
|
+
- HIT
|
427
|
+
X-Cache-Hits:
|
428
|
+
- '1'
|
429
|
+
X-Timer:
|
430
|
+
- S1524665224.828407,VS0,VE0
|
431
|
+
Vary:
|
432
|
+
- Accept-Encoding
|
433
|
+
body:
|
434
|
+
encoding: ASCII-8BIT
|
435
|
+
string: !binary |-
|
436
|
+
H4sIAAAAAAAAA+1WW2+bMBR+z6+I/NxE4ABJeauirNrUtKroNmlVHyh4kRUwBEi6qMp/ny9cDLEhlTZpD/MDwgefq8/3Hd5H4zHIjzlwx+/0lW6KY4roDtxkmX8EVHa6YmeKpPAjKjf5Lt/ilG4MvolwjAv2yRB7XKCYGXzmBoXZjhfuKU/9gLmqTgihFAsTcGEV0x0mW8B8Not6J9unMmaPW+wcwCFLx4cwgbtNPLOdgGVVrVP9zvMUCwgde3n/+isIfPvhbfPZWSBv/z1PoGS/DmxFiuwofwgy5BcovGF1AdAwFxPDmkD7yTRd23Lt66nhGD9khX0aahVs17iezuG8pYDIAWcJiRFhPoZrKFKK/bxAWbdEl9Z3JfkcrGGGDjjHCaHRQam0QUIKGnN5ZcNxXxrbUrKr7ACCaOrh8N1HSeBHHAKITL56lULdHuAnRlHYIIa1DCB+zFXuuZOxKV9thiJ2tTUiRI/JmSvQUTZiT/YceU3vd1uw1cmzTbparg/enfewXLxtto/O7SPcybWgOFfe6EspFV/Z84WDHpMg2odIIg4RQAX7BvjK5JTgV57k5b28DCoKYOH2kkAnebl9Sk2Yftq/rr/sv+3WHs5v0TJOdihu4UhLBtR9Px1YztSyoIxuqtJHCJarVNFTgr6yPbTwobprqKGvshJB8KlSLaCnCH0el3eInijqPjmnir48NIRRTs4ShwrSoO46tDFrEFmhsaadhi9a87o0r5qlf6JYfwlOGj5qdUF1o+fENgAn25nOLfNDcFKq/IfTGCj+uGhbyXPnH4aT/KtGo1bPYXlQVWBS/IMOj6FOXc7btrQuGFczUCQaZMflmdzeVXO5kYqzTH4anUa/AQkdRIrZCwAA
|
437
|
+
http_version:
|
438
|
+
recorded_at: Wed, 25 Apr 2018 14:07:03 GMT
|
439
|
+
- request:
|
440
|
+
method: get
|
441
|
+
uri: https://cdn.contentful.com/spaces/a22o2qgm356c/environments/master/entries?content_type=nested&include=0&limit=1&links_to_entry=5CNbxcca5OwgI68eSuWso2
|
442
|
+
body:
|
443
|
+
encoding: US-ASCII
|
444
|
+
string: ''
|
445
|
+
headers:
|
446
|
+
X-Contentful-User-Agent:
|
447
|
+
- sdk contentful.rb/2.6.0; integration contentful_model/0.2.0; platform ruby/2.5.1;
|
448
|
+
os macOS/16;
|
449
|
+
Authorization:
|
450
|
+
- Bearer 60229df5876f14f499870d0d26f37b1323764ed637289353a5f74a5ea190c214
|
451
|
+
Content-Type:
|
452
|
+
- application/vnd.contentful.delivery.v1+json
|
453
|
+
Accept-Encoding:
|
454
|
+
- gzip
|
455
|
+
Connection:
|
456
|
+
- close
|
457
|
+
Host:
|
458
|
+
- cdn.contentful.com
|
459
|
+
User-Agent:
|
460
|
+
- http.rb/2.2.2
|
461
|
+
response:
|
462
|
+
status:
|
463
|
+
code: 200
|
464
|
+
message: OK
|
465
|
+
headers:
|
466
|
+
Access-Control-Allow-Headers:
|
467
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
468
|
+
Access-Control-Allow-Methods:
|
469
|
+
- GET,HEAD,OPTIONS
|
470
|
+
Access-Control-Allow-Origin:
|
471
|
+
- "*"
|
472
|
+
Access-Control-Expose-Headers:
|
473
|
+
- Etag
|
474
|
+
Access-Control-Max-Age:
|
475
|
+
- '86400'
|
476
|
+
Cache-Control:
|
477
|
+
- max-age=0
|
478
|
+
Content-Type:
|
479
|
+
- application/vnd.contentful.delivery.v1+json
|
480
|
+
Etag:
|
481
|
+
- '"7811d6aca5f5ee099a7c2f1c18ad8a76"'
|
482
|
+
Server:
|
483
|
+
- Contentful
|
484
|
+
X-Content-Type-Options:
|
485
|
+
- nosniff
|
486
|
+
X-Contentful-Request-Id:
|
487
|
+
- '02830672823a216f73bd1529af2419e7'
|
488
|
+
Content-Length:
|
489
|
+
- '95'
|
490
|
+
Accept-Ranges:
|
491
|
+
- bytes
|
492
|
+
Date:
|
493
|
+
- Wed, 25 Apr 2018 14:07:03 GMT
|
494
|
+
Via:
|
495
|
+
- 1.1 varnish
|
496
|
+
Age:
|
497
|
+
- '1028'
|
498
|
+
Connection:
|
499
|
+
- close
|
500
|
+
X-Served-By:
|
501
|
+
- cache-fra19136-FRA
|
502
|
+
X-Cache:
|
503
|
+
- HIT
|
504
|
+
X-Cache-Hits:
|
505
|
+
- '1'
|
506
|
+
X-Timer:
|
507
|
+
- S1524665224.921622,VS0,VE1
|
508
|
+
Vary:
|
509
|
+
- Accept-Encoding
|
510
|
+
body:
|
511
|
+
encoding: ASCII-8BIT
|
512
|
+
string: |
|
513
|
+
{
|
514
|
+
"sys": {
|
515
|
+
"type": "Array"
|
516
|
+
},
|
517
|
+
"total": 0,
|
518
|
+
"skip": 0,
|
519
|
+
"limit": 1,
|
520
|
+
"items": []
|
521
|
+
}
|
522
|
+
http_version:
|
523
|
+
recorded_at: Wed, 25 Apr 2018 14:07:03 GMT
|
524
|
+
- request:
|
525
|
+
method: get
|
526
|
+
uri: https://cdn.contentful.com/spaces/a22o2qgm356c/environments/master/entries?content_type=nested&include=2&limit=100&links_to_entry=5CNbxcca5OwgI68eSuWso2&order=sys.updatedAt&skip=0
|
527
|
+
body:
|
528
|
+
encoding: US-ASCII
|
529
|
+
string: ''
|
530
|
+
headers:
|
531
|
+
X-Contentful-User-Agent:
|
532
|
+
- sdk contentful.rb/2.6.0; integration contentful_model/0.2.0; platform ruby/2.5.1;
|
533
|
+
os macOS/16;
|
534
|
+
Authorization:
|
535
|
+
- Bearer 60229df5876f14f499870d0d26f37b1323764ed637289353a5f74a5ea190c214
|
536
|
+
Content-Type:
|
537
|
+
- application/vnd.contentful.delivery.v1+json
|
538
|
+
Accept-Encoding:
|
539
|
+
- gzip
|
540
|
+
Connection:
|
541
|
+
- close
|
542
|
+
Host:
|
543
|
+
- cdn.contentful.com
|
544
|
+
User-Agent:
|
545
|
+
- http.rb/2.2.2
|
546
|
+
response:
|
547
|
+
status:
|
548
|
+
code: 200
|
549
|
+
message: OK
|
550
|
+
headers:
|
551
|
+
Access-Control-Allow-Headers:
|
552
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
553
|
+
Access-Control-Allow-Methods:
|
554
|
+
- GET,HEAD,OPTIONS
|
555
|
+
Access-Control-Allow-Origin:
|
556
|
+
- "*"
|
557
|
+
Access-Control-Expose-Headers:
|
558
|
+
- Etag
|
559
|
+
Access-Control-Max-Age:
|
560
|
+
- '86400'
|
561
|
+
Cache-Control:
|
562
|
+
- max-age=0
|
563
|
+
Content-Type:
|
564
|
+
- application/vnd.contentful.delivery.v1+json
|
565
|
+
Etag:
|
566
|
+
- '"29f2c21be26360c424f617d8592cf6f9"'
|
567
|
+
Server:
|
568
|
+
- Contentful
|
569
|
+
X-Content-Type-Options:
|
570
|
+
- nosniff
|
571
|
+
X-Contentful-Request-Id:
|
572
|
+
- 14feb76e1906e8500d6a8b5b0b1abaff
|
573
|
+
Content-Length:
|
574
|
+
- '97'
|
575
|
+
Accept-Ranges:
|
576
|
+
- bytes
|
577
|
+
Date:
|
578
|
+
- Wed, 25 Apr 2018 14:07:04 GMT
|
579
|
+
Via:
|
580
|
+
- 1.1 varnish
|
581
|
+
Age:
|
582
|
+
- '87'
|
583
|
+
Connection:
|
584
|
+
- close
|
585
|
+
X-Served-By:
|
586
|
+
- cache-hhn1543-HHN
|
587
|
+
X-Cache:
|
588
|
+
- HIT
|
589
|
+
X-Cache-Hits:
|
590
|
+
- '1'
|
591
|
+
X-Timer:
|
592
|
+
- S1524665224.005612,VS0,VE1
|
593
|
+
Vary:
|
594
|
+
- Accept-Encoding
|
595
|
+
body:
|
596
|
+
encoding: ASCII-8BIT
|
597
|
+
string: |
|
598
|
+
{
|
599
|
+
"sys": {
|
600
|
+
"type": "Array"
|
601
|
+
},
|
602
|
+
"total": 0,
|
603
|
+
"skip": 0,
|
604
|
+
"limit": 100,
|
605
|
+
"items": []
|
606
|
+
}
|
607
|
+
http_version:
|
608
|
+
recorded_at: Wed, 25 Apr 2018 14:07:04 GMT
|
609
|
+
recorded_with: VCR 4.0.0
|