contentful_bootstrap 3.10.0 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +9 -5
- data/.rubocop_todo.yml +34 -76
- data/CHANGELOG.md +7 -0
- data/Guardfile +20 -4
- data/README.md +6 -6
- data/bin/contentful_bootstrap +46 -42
- data/contentful_bootstrap.gemspec +6 -3
- data/lib/contentful/bootstrap/command_runner.rb +3 -1
- data/lib/contentful/bootstrap/commands/base.rb +15 -15
- data/lib/contentful/bootstrap/commands/create_space.rb +5 -6
- data/lib/contentful/bootstrap/commands/generate_json.rb +13 -2
- data/lib/contentful/bootstrap/commands/generate_token.rb +6 -6
- data/lib/contentful/bootstrap/commands/update_space.rb +2 -2
- data/lib/contentful/bootstrap/generator.rb +5 -4
- data/lib/contentful/bootstrap/support.rb +1 -1
- data/lib/contentful/bootstrap/templates/base.rb +22 -25
- data/lib/contentful/bootstrap/templates/json_template.rb +49 -56
- data/lib/contentful/bootstrap/templates/links/base.rb +1 -1
- data/lib/contentful/bootstrap/token.rb +1 -1
- data/lib/contentful/bootstrap/version.rb +1 -1
- data/spec/contentful/bootstrap/command_runner_spec.rb +2 -2
- data/spec/contentful/bootstrap/commands/base_spec.rb +3 -15
- data/spec/contentful/bootstrap/commands/create_space_spec.rb +2 -2
- data/spec/contentful/bootstrap/commands/generate_json_spec.rb +1 -1
- data/spec/contentful/bootstrap/commands/generate_token_spec.rb +1 -1
- data/spec/contentful/bootstrap/commands/update_space_spec.rb +36 -8
- data/spec/contentful/bootstrap/generator_spec.rb +17 -2
- data/spec/contentful/bootstrap/templates/base_spec.rb +10 -8
- data/spec/contentful/bootstrap/templates/blog_spec.rb +9 -1
- data/spec/contentful/bootstrap/templates/catalogue_spec.rb +9 -1
- data/spec/contentful/bootstrap/templates/gallery_spec.rb +9 -1
- data/spec/contentful/bootstrap/templates/json_template_spec.rb +17 -9
- data/spec/fixtures/json_fixtures/environment_template.json +47 -0
- data/spec/fixtures/vcr_fixtures/asset_no_transform.yml +119 -4
- data/spec/fixtures/vcr_fixtures/check_created_space.yml +1 -1
- data/spec/fixtures/vcr_fixtures/check_original_staging_environment_status.yml +201 -0
- data/spec/fixtures/vcr_fixtures/check_staging_environment_status.yml +81 -0
- data/spec/fixtures/vcr_fixtures/check_update_space_localized.yml +2 -2
- data/spec/fixtures/vcr_fixtures/check_update_space_with_draft_content.yml +4 -4
- data/spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml +153 -38
- data/spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml +196 -81
- data/spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml +165 -50
- data/spec/fixtures/vcr_fixtures/generate_json.yml +5 -5
- data/spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml +1 -1
- data/spec/fixtures/vcr_fixtures/generate_json_environments.yml +447 -0
- data/spec/fixtures/vcr_fixtures/generate_json_multi_ct.yml +5 -5
- data/spec/fixtures/vcr_fixtures/generate_json_preview.yml +5 -5
- data/spec/fixtures/vcr_fixtures/generate_json_single_ct.yml +5 -5
- data/spec/fixtures/vcr_fixtures/issue_22.yml +142 -27
- data/spec/fixtures/vcr_fixtures/no_ids.yml +126 -11
- data/spec/fixtures/vcr_fixtures/update_existing_asset.yml +130 -15
- data/spec/fixtures/vcr_fixtures/update_space_localized.yml +134 -19
- data/spec/fixtures/vcr_fixtures/update_with_environment.yml +2531 -0
- metadata +55 -17
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/content_types
|
5
|
+
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/environments/master/content_types
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -81,7 +81,7 @@ http_interactions:
|
|
81
81
|
recorded_at: Thu, 09 Nov 2017 14:52:42 GMT
|
82
82
|
- request:
|
83
83
|
method: get
|
84
|
-
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/assets?limit=1
|
84
|
+
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/environments/master/assets?limit=1
|
85
85
|
body:
|
86
86
|
encoding: US-ASCII
|
87
87
|
string: ''
|
@@ -160,7 +160,7 @@ http_interactions:
|
|
160
160
|
recorded_at: Thu, 09 Nov 2017 14:52:42 GMT
|
161
161
|
- request:
|
162
162
|
method: get
|
163
|
-
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/assets?limit=1000&order=sys.createdAt&skip=0
|
163
|
+
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/environments/master/assets?limit=1000&order=sys.createdAt&skip=0
|
164
164
|
body:
|
165
165
|
encoding: US-ASCII
|
166
166
|
string: ''
|
@@ -239,7 +239,7 @@ http_interactions:
|
|
239
239
|
recorded_at: Thu, 09 Nov 2017 14:52:42 GMT
|
240
240
|
- request:
|
241
241
|
method: get
|
242
|
-
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/entries?limit=1
|
242
|
+
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/environments/master/entries?limit=1
|
243
243
|
body:
|
244
244
|
encoding: US-ASCII
|
245
245
|
string: ''
|
@@ -318,7 +318,7 @@ http_interactions:
|
|
318
318
|
recorded_at: Thu, 09 Nov 2017 14:52:42 GMT
|
319
319
|
- request:
|
320
320
|
method: get
|
321
|
-
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/entries?limit=1000&order=sys.createdAt&skip=0
|
321
|
+
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/environments/master/entries?limit=1000&order=sys.createdAt&skip=0
|
322
322
|
body:
|
323
323
|
encoding: US-ASCII
|
324
324
|
string: ''
|
@@ -0,0 +1,447 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/9utsm1g0t7f5/environments/staging/content_types
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful.rb/2.6.0; app bootstrap/3.10.0; platform ruby/2.5.1; os macOS/16;
|
12
|
+
Authorization:
|
13
|
+
- Bearer a67d4d9011f6d6c1dfe4169d838114d3d3849ab6df6fb1d322cf3ee91690fae4
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.delivery.v1+json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- cdn.contentful.com
|
22
|
+
User-Agent:
|
23
|
+
- http.rb/2.2.2
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- 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
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- GET,HEAD,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '86400'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Content-Encoding:
|
42
|
+
- gzip
|
43
|
+
Content-Type:
|
44
|
+
- application/vnd.contentful.delivery.v1+json
|
45
|
+
Etag:
|
46
|
+
- W/"395876a4470adf88b79f6abf79f0ffdb"
|
47
|
+
Server:
|
48
|
+
- Contentful
|
49
|
+
X-Content-Type-Options:
|
50
|
+
- nosniff
|
51
|
+
X-Contentful-Request-Id:
|
52
|
+
- 2e92ce2c1e7771c7af8264d16177f187
|
53
|
+
Content-Length:
|
54
|
+
- '397'
|
55
|
+
Accept-Ranges:
|
56
|
+
- bytes
|
57
|
+
Date:
|
58
|
+
- Wed, 18 Apr 2018 12:21:32 GMT
|
59
|
+
Via:
|
60
|
+
- 1.1 varnish
|
61
|
+
Age:
|
62
|
+
- '0'
|
63
|
+
Connection:
|
64
|
+
- close
|
65
|
+
X-Served-By:
|
66
|
+
- cache-hhn1531-HHN
|
67
|
+
X-Cache:
|
68
|
+
- MISS
|
69
|
+
X-Cache-Hits:
|
70
|
+
- '0'
|
71
|
+
X-Timer:
|
72
|
+
- S1524054093.628429,VS0,VE292
|
73
|
+
Vary:
|
74
|
+
- Accept-Encoding
|
75
|
+
body:
|
76
|
+
encoding: ASCII-8BIT
|
77
|
+
string: !binary |-
|
78
|
+
H4sIAAAAAAAAA8VTPW/CMBDd+RXIc6kSoC2woapMVReYWjGYxEEnHDu1DWqK+O/12UlwIlDpVC/Jfb57z+djr98nutRk1j/aX2uYsmDWInOlaEms73SHOUYayq0/dpbeQWGNyBkccjAYirwNhuXY8MM19G07KA5JFzRBqDrDO4NZ0OGc9UyvIHYEMc/Hoovdqpp56Tp2EiBFOtO90Xm8jcxT9oCs6nNq/h1Pf4ivyaQMmjVTPEthmDAONKhJFKOGpXOUggyjeDKIxoN4sorj2XA6Gz3eR6Pxe1iwL9K/FTBxACVFbsFvks2z0IZuQWy7styq6UsA+qtuih1AgxS4DVVyIytJQReclgtg3F2JoPlZQG9Z7yIQnaRMJwoK41uShgPJsMl5yfDaWmvkqbcQMKdBeQuxXaTWY1nmG8lbahEuE8rhm+HYGeWahStGFPvcg7oStKTphl8JSvtw7MrUXS+t4gVWid+/9oiOqpWvWs52sOa2Yl/mn5lVHNfui49v3Tv1fgB+Ym1HhgQAAA==
|
79
|
+
http_version:
|
80
|
+
recorded_at: Wed, 18 Apr 2018 12:21:32 GMT
|
81
|
+
- request:
|
82
|
+
method: get
|
83
|
+
uri: https://cdn.contentful.com/spaces/9utsm1g0t7f5/environments/staging/assets?limit=1
|
84
|
+
body:
|
85
|
+
encoding: US-ASCII
|
86
|
+
string: ''
|
87
|
+
headers:
|
88
|
+
X-Contentful-User-Agent:
|
89
|
+
- sdk contentful.rb/2.6.0; app bootstrap/3.10.0; platform ruby/2.5.1; os macOS/16;
|
90
|
+
Authorization:
|
91
|
+
- Bearer a67d4d9011f6d6c1dfe4169d838114d3d3849ab6df6fb1d322cf3ee91690fae4
|
92
|
+
Content-Type:
|
93
|
+
- application/vnd.contentful.delivery.v1+json
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip
|
96
|
+
Connection:
|
97
|
+
- close
|
98
|
+
Host:
|
99
|
+
- cdn.contentful.com
|
100
|
+
User-Agent:
|
101
|
+
- http.rb/2.2.2
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message: OK
|
106
|
+
headers:
|
107
|
+
Access-Control-Allow-Headers:
|
108
|
+
- 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
|
109
|
+
Access-Control-Allow-Methods:
|
110
|
+
- GET,HEAD,OPTIONS
|
111
|
+
Access-Control-Allow-Origin:
|
112
|
+
- "*"
|
113
|
+
Access-Control-Expose-Headers:
|
114
|
+
- Etag
|
115
|
+
Access-Control-Max-Age:
|
116
|
+
- '86400'
|
117
|
+
Cache-Control:
|
118
|
+
- max-age=0
|
119
|
+
Content-Type:
|
120
|
+
- application/vnd.contentful.delivery.v1+json
|
121
|
+
Etag:
|
122
|
+
- '"7811d6aca5f5ee099a7c2f1c18ad8a76"'
|
123
|
+
Server:
|
124
|
+
- Contentful
|
125
|
+
X-Content-Type-Options:
|
126
|
+
- nosniff
|
127
|
+
X-Contentful-Request-Id:
|
128
|
+
- f2719d2a94bb529c34bf47fd609d2f17
|
129
|
+
Content-Length:
|
130
|
+
- '95'
|
131
|
+
Accept-Ranges:
|
132
|
+
- bytes
|
133
|
+
Date:
|
134
|
+
- Wed, 18 Apr 2018 12:21:33 GMT
|
135
|
+
Via:
|
136
|
+
- 1.1 varnish
|
137
|
+
Age:
|
138
|
+
- '0'
|
139
|
+
Connection:
|
140
|
+
- close
|
141
|
+
X-Served-By:
|
142
|
+
- cache-hhn1548-HHN
|
143
|
+
X-Cache:
|
144
|
+
- MISS
|
145
|
+
X-Cache-Hits:
|
146
|
+
- '0'
|
147
|
+
X-Timer:
|
148
|
+
- S1524054093.043173,VS0,VE293
|
149
|
+
Vary:
|
150
|
+
- Accept-Encoding
|
151
|
+
body:
|
152
|
+
encoding: ASCII-8BIT
|
153
|
+
string: |
|
154
|
+
{
|
155
|
+
"sys": {
|
156
|
+
"type": "Array"
|
157
|
+
},
|
158
|
+
"total": 0,
|
159
|
+
"skip": 0,
|
160
|
+
"limit": 1,
|
161
|
+
"items": []
|
162
|
+
}
|
163
|
+
http_version:
|
164
|
+
recorded_at: Wed, 18 Apr 2018 12:21:33 GMT
|
165
|
+
- request:
|
166
|
+
method: get
|
167
|
+
uri: https://cdn.contentful.com/spaces/9utsm1g0t7f5/environments/staging/assets?limit=1000&order=sys.createdAt&skip=0
|
168
|
+
body:
|
169
|
+
encoding: US-ASCII
|
170
|
+
string: ''
|
171
|
+
headers:
|
172
|
+
X-Contentful-User-Agent:
|
173
|
+
- sdk contentful.rb/2.6.0; app bootstrap/3.10.0; platform ruby/2.5.1; os macOS/16;
|
174
|
+
Authorization:
|
175
|
+
- Bearer a67d4d9011f6d6c1dfe4169d838114d3d3849ab6df6fb1d322cf3ee91690fae4
|
176
|
+
Content-Type:
|
177
|
+
- application/vnd.contentful.delivery.v1+json
|
178
|
+
Accept-Encoding:
|
179
|
+
- gzip
|
180
|
+
Connection:
|
181
|
+
- close
|
182
|
+
Host:
|
183
|
+
- cdn.contentful.com
|
184
|
+
User-Agent:
|
185
|
+
- http.rb/2.2.2
|
186
|
+
response:
|
187
|
+
status:
|
188
|
+
code: 200
|
189
|
+
message: OK
|
190
|
+
headers:
|
191
|
+
Access-Control-Allow-Headers:
|
192
|
+
- 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
|
193
|
+
Access-Control-Allow-Methods:
|
194
|
+
- GET,HEAD,OPTIONS
|
195
|
+
Access-Control-Allow-Origin:
|
196
|
+
- "*"
|
197
|
+
Access-Control-Expose-Headers:
|
198
|
+
- Etag
|
199
|
+
Access-Control-Max-Age:
|
200
|
+
- '86400'
|
201
|
+
Cache-Control:
|
202
|
+
- max-age=0
|
203
|
+
Content-Type:
|
204
|
+
- application/vnd.contentful.delivery.v1+json
|
205
|
+
Etag:
|
206
|
+
- '"c283f5e14b648b925eac46aa3ee07ca3"'
|
207
|
+
Server:
|
208
|
+
- Contentful
|
209
|
+
X-Content-Type-Options:
|
210
|
+
- nosniff
|
211
|
+
X-Contentful-Request-Id:
|
212
|
+
- adfb326544e601f02938f3bbb3f0de77
|
213
|
+
Content-Length:
|
214
|
+
- '98'
|
215
|
+
Accept-Ranges:
|
216
|
+
- bytes
|
217
|
+
Date:
|
218
|
+
- Wed, 18 Apr 2018 12:21:33 GMT
|
219
|
+
Via:
|
220
|
+
- 1.1 varnish
|
221
|
+
Age:
|
222
|
+
- '0'
|
223
|
+
Connection:
|
224
|
+
- close
|
225
|
+
X-Served-By:
|
226
|
+
- cache-hhn1546-HHN
|
227
|
+
X-Cache:
|
228
|
+
- MISS
|
229
|
+
X-Cache-Hits:
|
230
|
+
- '0'
|
231
|
+
X-Timer:
|
232
|
+
- S1524054093.443134,VS0,VE131
|
233
|
+
Vary:
|
234
|
+
- Accept-Encoding
|
235
|
+
body:
|
236
|
+
encoding: ASCII-8BIT
|
237
|
+
string: |
|
238
|
+
{
|
239
|
+
"sys": {
|
240
|
+
"type": "Array"
|
241
|
+
},
|
242
|
+
"total": 0,
|
243
|
+
"skip": 0,
|
244
|
+
"limit": 1000,
|
245
|
+
"items": []
|
246
|
+
}
|
247
|
+
http_version:
|
248
|
+
recorded_at: Wed, 18 Apr 2018 12:21:33 GMT
|
249
|
+
- request:
|
250
|
+
method: get
|
251
|
+
uri: https://cdn.contentful.com/spaces/9utsm1g0t7f5/environments/staging/entries?limit=1
|
252
|
+
body:
|
253
|
+
encoding: US-ASCII
|
254
|
+
string: ''
|
255
|
+
headers:
|
256
|
+
X-Contentful-User-Agent:
|
257
|
+
- sdk contentful.rb/2.6.0; app bootstrap/3.10.0; platform ruby/2.5.1; os macOS/16;
|
258
|
+
Authorization:
|
259
|
+
- Bearer a67d4d9011f6d6c1dfe4169d838114d3d3849ab6df6fb1d322cf3ee91690fae4
|
260
|
+
Content-Type:
|
261
|
+
- application/vnd.contentful.delivery.v1+json
|
262
|
+
Accept-Encoding:
|
263
|
+
- gzip
|
264
|
+
Connection:
|
265
|
+
- close
|
266
|
+
Host:
|
267
|
+
- cdn.contentful.com
|
268
|
+
User-Agent:
|
269
|
+
- http.rb/2.2.2
|
270
|
+
response:
|
271
|
+
status:
|
272
|
+
code: 200
|
273
|
+
message: OK
|
274
|
+
headers:
|
275
|
+
Access-Control-Allow-Headers:
|
276
|
+
- 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
|
277
|
+
Access-Control-Allow-Methods:
|
278
|
+
- GET,HEAD,OPTIONS
|
279
|
+
Access-Control-Allow-Origin:
|
280
|
+
- "*"
|
281
|
+
Access-Control-Expose-Headers:
|
282
|
+
- Etag
|
283
|
+
Access-Control-Max-Age:
|
284
|
+
- '86400'
|
285
|
+
Cache-Control:
|
286
|
+
- max-age=0
|
287
|
+
Content-Type:
|
288
|
+
- application/vnd.contentful.delivery.v1+json
|
289
|
+
Etag:
|
290
|
+
- '"1c1d9262a35e291957e4dbd3529e7128"'
|
291
|
+
Server:
|
292
|
+
- Contentful
|
293
|
+
X-Content-Type-Options:
|
294
|
+
- nosniff
|
295
|
+
X-Contentful-Request-Id:
|
296
|
+
- b49c39b6a14bcce7ac78fa649aee2eb6
|
297
|
+
Content-Length:
|
298
|
+
- '901'
|
299
|
+
Accept-Ranges:
|
300
|
+
- bytes
|
301
|
+
Date:
|
302
|
+
- Wed, 18 Apr 2018 12:21:33 GMT
|
303
|
+
Via:
|
304
|
+
- 1.1 varnish
|
305
|
+
Age:
|
306
|
+
- '0'
|
307
|
+
Connection:
|
308
|
+
- close
|
309
|
+
X-Served-By:
|
310
|
+
- cache-hhn1524-HHN
|
311
|
+
X-Cache:
|
312
|
+
- MISS
|
313
|
+
X-Cache-Hits:
|
314
|
+
- '0'
|
315
|
+
X-Timer:
|
316
|
+
- S1524054094.662319,VS0,VE330
|
317
|
+
Vary:
|
318
|
+
- Accept-Encoding
|
319
|
+
body:
|
320
|
+
encoding: ASCII-8BIT
|
321
|
+
string: |
|
322
|
+
{
|
323
|
+
"sys": {
|
324
|
+
"type": "Array"
|
325
|
+
},
|
326
|
+
"total": 2,
|
327
|
+
"skip": 0,
|
328
|
+
"limit": 1,
|
329
|
+
"items": [
|
330
|
+
{
|
331
|
+
"sys": {
|
332
|
+
"space": {
|
333
|
+
"sys": {
|
334
|
+
"type": "Link",
|
335
|
+
"linkType": "Space",
|
336
|
+
"id": "9utsm1g0t7f5"
|
337
|
+
}
|
338
|
+
},
|
339
|
+
"id": "foo_update",
|
340
|
+
"type": "Entry",
|
341
|
+
"createdAt": "2018-04-18T11:46:51.265Z",
|
342
|
+
"updatedAt": "2018-04-18T11:46:51.265Z",
|
343
|
+
"environment": {
|
344
|
+
"sys": {
|
345
|
+
"id": "staging",
|
346
|
+
"type": "Link",
|
347
|
+
"linkType": "Environment"
|
348
|
+
}
|
349
|
+
},
|
350
|
+
"revision": 1,
|
351
|
+
"contentType": {
|
352
|
+
"sys": {
|
353
|
+
"type": "Link",
|
354
|
+
"linkType": "ContentType",
|
355
|
+
"id": "foo"
|
356
|
+
}
|
357
|
+
},
|
358
|
+
"locale": "en-US"
|
359
|
+
},
|
360
|
+
"fields": {
|
361
|
+
"name": "Test updated",
|
362
|
+
"content": "Some content"
|
363
|
+
}
|
364
|
+
}
|
365
|
+
]
|
366
|
+
}
|
367
|
+
http_version:
|
368
|
+
recorded_at: Wed, 18 Apr 2018 12:21:34 GMT
|
369
|
+
- request:
|
370
|
+
method: get
|
371
|
+
uri: https://cdn.contentful.com/spaces/9utsm1g0t7f5/environments/staging/entries?limit=1000&order=sys.createdAt&skip=0
|
372
|
+
body:
|
373
|
+
encoding: US-ASCII
|
374
|
+
string: ''
|
375
|
+
headers:
|
376
|
+
X-Contentful-User-Agent:
|
377
|
+
- sdk contentful.rb/2.6.0; app bootstrap/3.10.0; platform ruby/2.5.1; os macOS/16;
|
378
|
+
Authorization:
|
379
|
+
- Bearer a67d4d9011f6d6c1dfe4169d838114d3d3849ab6df6fb1d322cf3ee91690fae4
|
380
|
+
Content-Type:
|
381
|
+
- application/vnd.contentful.delivery.v1+json
|
382
|
+
Accept-Encoding:
|
383
|
+
- gzip
|
384
|
+
Connection:
|
385
|
+
- close
|
386
|
+
Host:
|
387
|
+
- cdn.contentful.com
|
388
|
+
User-Agent:
|
389
|
+
- http.rb/2.2.2
|
390
|
+
response:
|
391
|
+
status:
|
392
|
+
code: 200
|
393
|
+
message: OK
|
394
|
+
headers:
|
395
|
+
Access-Control-Allow-Headers:
|
396
|
+
- 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
|
397
|
+
Access-Control-Allow-Methods:
|
398
|
+
- GET,HEAD,OPTIONS
|
399
|
+
Access-Control-Allow-Origin:
|
400
|
+
- "*"
|
401
|
+
Access-Control-Expose-Headers:
|
402
|
+
- Etag
|
403
|
+
Access-Control-Max-Age:
|
404
|
+
- '86400'
|
405
|
+
Cache-Control:
|
406
|
+
- max-age=0
|
407
|
+
Content-Encoding:
|
408
|
+
- gzip
|
409
|
+
Content-Type:
|
410
|
+
- application/vnd.contentful.delivery.v1+json
|
411
|
+
Etag:
|
412
|
+
- W/"31d9eb28e8c62bf85b32b2b56742b2d5"
|
413
|
+
Server:
|
414
|
+
- Contentful
|
415
|
+
X-Content-Type-Options:
|
416
|
+
- nosniff
|
417
|
+
X-Contentful-Request-Id:
|
418
|
+
- 96a3e492b0404d02385352c0e86619ff
|
419
|
+
Content-Length:
|
420
|
+
- '407'
|
421
|
+
Accept-Ranges:
|
422
|
+
- bytes
|
423
|
+
Date:
|
424
|
+
- Wed, 18 Apr 2018 12:21:34 GMT
|
425
|
+
Via:
|
426
|
+
- 1.1 varnish
|
427
|
+
Age:
|
428
|
+
- '0'
|
429
|
+
Connection:
|
430
|
+
- close
|
431
|
+
X-Served-By:
|
432
|
+
- cache-hhn1522-HHN
|
433
|
+
X-Cache:
|
434
|
+
- MISS
|
435
|
+
X-Cache-Hits:
|
436
|
+
- '0'
|
437
|
+
X-Timer:
|
438
|
+
- S1524054094.121063,VS0,VE146
|
439
|
+
Vary:
|
440
|
+
- Accept-Encoding
|
441
|
+
body:
|
442
|
+
encoding: ASCII-8BIT
|
443
|
+
string: !binary |-
|
444
|
+
H4sIAAAAAAAAA91Uy27CMBC88xWRzwXZbsIjN4RQD1RCbWgPRVUVJQZZJHYaG6QI8e/1IwmBtgqoJ+qTd+2dnV3veN9xHCAKAXxnr7bKkEVGlAXGeR4WQPkOd/qO5DJMlB8bS2xopgxojISmVCoLQWgdVJJUIy4NosU9S2NSiSyMdK7qhnU2yGiHcVakHinbAJ30uFR6tlmUpAODeHaBxrqe0VaKFK2hHKw8XVa1DvXeFGoXsDH94jXOt8/ug5jNMZ3NP58CPAka+DWxKZN50TyIchJKEo91YwCGaNiFbhcNFwj5eOR79z04wG/NgG0W/xbg9n0P9qALTwII29Gcs5QwnaO9h7YkIcM1ZevzHl3a4GkjaWsTc7KjgnJWjU3Z24gzqUiXb9ZO/FJukwbujyOw4rz95RMehYlRAGHdl6AKqIcDrChJ4qNgdFGAhakJWRAhT6bAUtJHAU+JU5Zeg5oWltA3rBPV2A87v3/Vhh511MN97xptfA+4KW2gxr/zz7XhlL/c9RpRSnnvHDpf1bXSIbAGAAA=
|
445
|
+
http_version:
|
446
|
+
recorded_at: Wed, 18 Apr 2018 12:21:34 GMT
|
447
|
+
recorded_with: VCR 2.9.3
|