contentful-management 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/contentful/management/content_type.rb +1 -1
- data/lib/contentful/management/dynamic_entry.rb +4 -1
- data/lib/contentful/management/entry.rb +1 -1
- data/lib/contentful/management/resource.rb +1 -1
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/entry/find-with-null-symbols.yml +329 -0
- data/spec/fixtures/vcr_cassettes/entry/locales/simple_assignments_use_default_locale.yml +324 -0
- data/spec/fixtures/vcr_cassettes/entry/locales/simple_assignments_use_specified_locale.yml +324 -0
- data/spec/fixtures/vcr_cassettes/entry/update_bool_field.yml +728 -0
- data/spec/lib/contentful/management/entry_spec.rb +49 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24bb75aa07523683bbef6c810f411422deea4140
|
4
|
+
data.tar.gz: c72ae53c5d8505ff32d23f2f5788da180b36945e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ad8b03581cabe9b0e6d084682f0e58b07dad11f3827f87e9c0b9ed08ab197755fddc7f6e02bb196c858833007bdc4638e44cf4e69b1d51f0157404e9318b340
|
7
|
+
data.tar.gz: aacc23cf94ed71c318aa4a9302ee399382f77a0964145833a292d0c094c0d3781c53f5c9612cb67cf1f485c9b04a72cd6385c673d6b496391c79e90a0de1c23d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
=======
|
3
3
|
|
4
|
+
## 0.7.1
|
5
|
+
### Fixed
|
6
|
+
* `fields_for_query` should only skip `nil` values [#63](https://github.com/contentful/contentful-management.rb/issues/63), [#64](https://github.com/contentful/contentful-management.rb/pull/64)
|
7
|
+
* Reinstate support for simple assignments to fields [#61](https://github.com/contentful/contentful-management.rb/issues/61), [#62](https://github.com/contentful/contentful-management.rb/pull/62)
|
8
|
+
* Fix NULL/nil handling for entries [#65](https://github.com/contentful/contentful-management.rb/pull/65)
|
9
|
+
|
10
|
+
|
4
11
|
## 0.7.0
|
5
12
|
### Added
|
6
13
|
* Add disable property to fields [#50](https://github.com/contentful/contentful-management.rb/pull/50), [#55](https://github.com/contentful/contentful-management.rb/pull/55)
|
@@ -119,7 +119,7 @@ module Contentful
|
|
119
119
|
end
|
120
120
|
|
121
121
|
def display_field_value(attributes)
|
122
|
-
if attributes[:displayField].nil? && display_field.empty?
|
122
|
+
if attributes[:displayField].nil? && (display_field.nil? || display_field.empty?)
|
123
123
|
nil
|
124
124
|
else
|
125
125
|
attributes[:displayField] || display_field
|
@@ -37,7 +37,10 @@ module Contentful
|
|
37
37
|
fields_for_query[field.id.to_sym]
|
38
38
|
end
|
39
39
|
define_method "#{ accessor_name }=" do |value|
|
40
|
-
|
40
|
+
if localized_or_default_locale(field, locale)
|
41
|
+
@fields[locale] = {} unless @fields[locale]
|
42
|
+
@fields[locale][field.id.to_sym] = value
|
43
|
+
end
|
41
44
|
end
|
42
45
|
define_method "#{ accessor_name }_with_locales=" do |values|
|
43
46
|
values.each do |locale, value|
|
@@ -195,7 +195,7 @@ module Contentful
|
|
195
195
|
fields_names = raw_fields.first[1].keys
|
196
196
|
fields_names.each_with_object({}) do |field_name, results|
|
197
197
|
results[field_name] = raw_fields.each_with_object({}) do |(locale, fields), field_results|
|
198
|
-
field_results[locale] = parse_update_attribute(fields[field_name])
|
198
|
+
field_results[locale] = parse_update_attribute(fields[field_name])
|
199
199
|
end
|
200
200
|
end
|
201
201
|
end
|
@@ -14,7 +14,7 @@ module Contentful
|
|
14
14
|
# by the client by default
|
15
15
|
module Resource
|
16
16
|
COERCIONS = {
|
17
|
-
string: ->(value) { value.to_s },
|
17
|
+
string: ->(value) { !value.nil? ? value.to_s : nil },
|
18
18
|
integer: ->(value) { value.to_i },
|
19
19
|
float: ->(value) { value.to_f },
|
20
20
|
boolean: ->(value) { !!value },
|
@@ -0,0 +1,329 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulManagementGem/0.7.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- api.contentful.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
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
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.management.v1+json
|
43
|
+
Date:
|
44
|
+
- Thu, 11 Jun 2015 13:20:30 GMT
|
45
|
+
Etag:
|
46
|
+
- '"32c90c77146689c6ee9228c16bb40c29"'
|
47
|
+
Server:
|
48
|
+
- nginx
|
49
|
+
Status:
|
50
|
+
- 200 OK
|
51
|
+
Strict-Transport-Security:
|
52
|
+
- max-age=15768000
|
53
|
+
X-Contentful-Request-Id:
|
54
|
+
- 9f3-2134559521
|
55
|
+
Content-Length:
|
56
|
+
- '460'
|
57
|
+
Connection:
|
58
|
+
- Close
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: |+
|
62
|
+
{
|
63
|
+
"sys":{
|
64
|
+
"type":"Space",
|
65
|
+
"id":"yr5m0jky5hsh",
|
66
|
+
"version":1,
|
67
|
+
"createdBy":{
|
68
|
+
"sys":{
|
69
|
+
"type":"Link",
|
70
|
+
"linkType":"User",
|
71
|
+
"id":"2v0GtVL6ueN06baMKLK3Cp"
|
72
|
+
}
|
73
|
+
},
|
74
|
+
"createdAt":"2015-06-11T12:20:54Z",
|
75
|
+
"updatedBy":{
|
76
|
+
"sys":{
|
77
|
+
"type":"Link",
|
78
|
+
"linkType":"User",
|
79
|
+
"id":"2v0GtVL6ueN06baMKLK3Cp"
|
80
|
+
}
|
81
|
+
},
|
82
|
+
"updatedAt":"2015-06-11T12:20:55Z"
|
83
|
+
},
|
84
|
+
"name":"test-3385"
|
85
|
+
}
|
86
|
+
|
87
|
+
http_version:
|
88
|
+
recorded_at: Thu, 11 Jun 2015 13:20:35 GMT
|
89
|
+
- request:
|
90
|
+
method: get
|
91
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types
|
92
|
+
body:
|
93
|
+
encoding: US-ASCII
|
94
|
+
string: ''
|
95
|
+
headers:
|
96
|
+
User-Agent:
|
97
|
+
- RubyContentfulManagementGem/0.7.0
|
98
|
+
Authorization:
|
99
|
+
- Bearer 733588104fa52e1fc98c9aea4f9e95970816f4119380b6e7c7c855def20acedf
|
100
|
+
Content-Type:
|
101
|
+
- application/vnd.contentful.management.v1+json
|
102
|
+
Content-Length:
|
103
|
+
- '0'
|
104
|
+
Connection:
|
105
|
+
- close
|
106
|
+
Host:
|
107
|
+
- api.contentful.com
|
108
|
+
response:
|
109
|
+
status:
|
110
|
+
code: 200
|
111
|
+
message: OK
|
112
|
+
headers:
|
113
|
+
Access-Control-Allow-Headers:
|
114
|
+
- 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
|
115
|
+
Access-Control-Allow-Methods:
|
116
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
117
|
+
Access-Control-Allow-Origin:
|
118
|
+
- "*"
|
119
|
+
Access-Control-Expose-Headers:
|
120
|
+
- Etag
|
121
|
+
Access-Control-Max-Age:
|
122
|
+
- '1728000'
|
123
|
+
Cf-Space-Id:
|
124
|
+
- yr5m0jky5hsh
|
125
|
+
Content-Type:
|
126
|
+
- application/vnd.contentful.management.v1+json
|
127
|
+
Date:
|
128
|
+
- Thu, 11 Jun 2015 13:20:35 GMT
|
129
|
+
Etag:
|
130
|
+
- '"34b1b7ec192db4b6b53522c5386d3d80"'
|
131
|
+
Server:
|
132
|
+
- nginx
|
133
|
+
Strict-Transport-Security:
|
134
|
+
- max-age=15768000
|
135
|
+
X-Contentful-Request-Id:
|
136
|
+
- content-api:5n6lElDqcEIaCOoQca0q0g
|
137
|
+
X-Powered-By:
|
138
|
+
- Express
|
139
|
+
Content-Length:
|
140
|
+
- '1474'
|
141
|
+
Connection:
|
142
|
+
- Close
|
143
|
+
body:
|
144
|
+
encoding: UTF-8
|
145
|
+
string: |
|
146
|
+
{
|
147
|
+
"sys": {
|
148
|
+
"type": "Array"
|
149
|
+
},
|
150
|
+
"total": 1,
|
151
|
+
"skip": 0,
|
152
|
+
"limit": 100,
|
153
|
+
"items": [
|
154
|
+
{
|
155
|
+
"name": "symbol type",
|
156
|
+
"fields": [
|
157
|
+
{
|
158
|
+
"name": "dings",
|
159
|
+
"id": "dings",
|
160
|
+
"type": "Text"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"name": "videoid",
|
164
|
+
"id": "videoid",
|
165
|
+
"type": "Symbol"
|
166
|
+
}
|
167
|
+
],
|
168
|
+
"description": "lalala",
|
169
|
+
"displayField": "dings",
|
170
|
+
"sys": {
|
171
|
+
"id": "2YGtsI1JOgQK2uQqWqySWw",
|
172
|
+
"type": "ContentType",
|
173
|
+
"createdAt": "2015-06-11T12:21:39.769Z",
|
174
|
+
"createdBy": {
|
175
|
+
"sys": {
|
176
|
+
"type": "Link",
|
177
|
+
"linkType": "User",
|
178
|
+
"id": "2v0GtVL6ueN06baMKLK3Cp"
|
179
|
+
}
|
180
|
+
},
|
181
|
+
"space": {
|
182
|
+
"sys": {
|
183
|
+
"type": "Link",
|
184
|
+
"linkType": "Space",
|
185
|
+
"id": "yr5m0jky5hsh"
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"firstPublishedAt": "2015-06-11T12:26:30.349Z",
|
189
|
+
"publishedCounter": 1,
|
190
|
+
"publishedAt": "2015-06-11T12:26:30.349Z",
|
191
|
+
"publishedBy": {
|
192
|
+
"sys": {
|
193
|
+
"type": "Link",
|
194
|
+
"linkType": "User",
|
195
|
+
"id": "2v0GtVL6ueN06baMKLK3Cp"
|
196
|
+
}
|
197
|
+
},
|
198
|
+
"publishedVersion": 2,
|
199
|
+
"version": 3,
|
200
|
+
"updatedAt": "2015-06-11T12:26:30.394Z",
|
201
|
+
"updatedBy": {
|
202
|
+
"sys": {
|
203
|
+
"type": "Link",
|
204
|
+
"linkType": "User",
|
205
|
+
"id": "2v0GtVL6ueN06baMKLK3Cp"
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
]
|
211
|
+
}
|
212
|
+
http_version:
|
213
|
+
recorded_at: Thu, 11 Jun 2015 13:20:39 GMT
|
214
|
+
- request:
|
215
|
+
method: get
|
216
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4Rouux8SoUCKwkyCq2I0E0
|
217
|
+
body:
|
218
|
+
encoding: US-ASCII
|
219
|
+
string: ''
|
220
|
+
headers:
|
221
|
+
User-Agent:
|
222
|
+
- RubyContentfulManagementGem/0.7.0
|
223
|
+
Authorization:
|
224
|
+
- Bearer 733588104fa52e1fc98c9aea4f9e95970816f4119380b6e7c7c855def20acedf
|
225
|
+
Content-Type:
|
226
|
+
- application/vnd.contentful.management.v1+json
|
227
|
+
Content-Length:
|
228
|
+
- '0'
|
229
|
+
Connection:
|
230
|
+
- close
|
231
|
+
Host:
|
232
|
+
- api.contentful.com
|
233
|
+
response:
|
234
|
+
status:
|
235
|
+
code: 200
|
236
|
+
message: OK
|
237
|
+
headers:
|
238
|
+
Access-Control-Allow-Headers:
|
239
|
+
- 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
|
240
|
+
Access-Control-Allow-Methods:
|
241
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
242
|
+
Access-Control-Allow-Origin:
|
243
|
+
- "*"
|
244
|
+
Access-Control-Expose-Headers:
|
245
|
+
- Etag
|
246
|
+
Access-Control-Max-Age:
|
247
|
+
- '1728000'
|
248
|
+
Cf-Space-Id:
|
249
|
+
- yr5m0jky5hsh
|
250
|
+
Content-Type:
|
251
|
+
- application/vnd.contentful.management.v1+json
|
252
|
+
Date:
|
253
|
+
- Thu, 11 Jun 2015 13:20:37 GMT
|
254
|
+
Etag:
|
255
|
+
- '"004dcd92882533575407fe66a0d258ff"'
|
256
|
+
Server:
|
257
|
+
- nginx
|
258
|
+
Strict-Transport-Security:
|
259
|
+
- max-age=15768000
|
260
|
+
X-Contentful-Request-Id:
|
261
|
+
- content-api:pg0F35sAlagw606mAGoCi
|
262
|
+
X-Powered-By:
|
263
|
+
- Express
|
264
|
+
Content-Length:
|
265
|
+
- '1141'
|
266
|
+
Connection:
|
267
|
+
- Close
|
268
|
+
body:
|
269
|
+
encoding: UTF-8
|
270
|
+
string: |
|
271
|
+
{
|
272
|
+
"fields": {
|
273
|
+
"dings": {
|
274
|
+
"en-US": "mah"
|
275
|
+
},
|
276
|
+
"videoid": {
|
277
|
+
"en-US": null
|
278
|
+
}
|
279
|
+
},
|
280
|
+
"sys": {
|
281
|
+
"id": "4Rouux8SoUCKwkyCq2I0E0",
|
282
|
+
"type": "Entry",
|
283
|
+
"createdAt": "2015-06-11T12:27:16.269Z",
|
284
|
+
"createdBy": {
|
285
|
+
"sys": {
|
286
|
+
"type": "Link",
|
287
|
+
"linkType": "User",
|
288
|
+
"id": "2v0GtVL6ueN06baMKLK3Cp"
|
289
|
+
}
|
290
|
+
},
|
291
|
+
"space": {
|
292
|
+
"sys": {
|
293
|
+
"type": "Link",
|
294
|
+
"linkType": "Space",
|
295
|
+
"id": "yr5m0jky5hsh"
|
296
|
+
}
|
297
|
+
},
|
298
|
+
"contentType": {
|
299
|
+
"sys": {
|
300
|
+
"type": "Link",
|
301
|
+
"linkType": "ContentType",
|
302
|
+
"id": "2YGtsI1JOgQK2uQqWqySWw"
|
303
|
+
}
|
304
|
+
},
|
305
|
+
"firstPublishedAt": "2015-06-11T12:27:29.807Z",
|
306
|
+
"publishedCounter": 4,
|
307
|
+
"publishedAt": "2015-06-11T12:49:08.923Z",
|
308
|
+
"publishedBy": {
|
309
|
+
"sys": {
|
310
|
+
"type": "Link",
|
311
|
+
"linkType": "User",
|
312
|
+
"id": "2v0GtVL6ueN06baMKLK3Cp"
|
313
|
+
}
|
314
|
+
},
|
315
|
+
"publishedVersion": 23,
|
316
|
+
"version": 25,
|
317
|
+
"updatedAt": "2015-06-11T12:49:09.104Z",
|
318
|
+
"updatedBy": {
|
319
|
+
"sys": {
|
320
|
+
"type": "Link",
|
321
|
+
"linkType": "User",
|
322
|
+
"id": "2v0GtVL6ueN06baMKLK3Cp"
|
323
|
+
}
|
324
|
+
}
|
325
|
+
}
|
326
|
+
}
|
327
|
+
http_version:
|
328
|
+
recorded_at: Thu, 11 Jun 2015 13:20:41 GMT
|
329
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,324 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/0agypmo1waov
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulManagementGem/0.7.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- api.contentful.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
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
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- '*'
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.management.v1+json
|
43
|
+
Date:
|
44
|
+
- Wed, 03 Jun 2015 08:52:33 GMT
|
45
|
+
Etag:
|
46
|
+
- '"52487c7acbb13bc23d9868ed9a4cf707"'
|
47
|
+
Server:
|
48
|
+
- nginx
|
49
|
+
Status:
|
50
|
+
- 200 OK
|
51
|
+
X-Contentful-Request-Id:
|
52
|
+
- 9f3-1509367163
|
53
|
+
Content-Length:
|
54
|
+
- '447'
|
55
|
+
Connection:
|
56
|
+
- Close
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: |+
|
60
|
+
{
|
61
|
+
"sys":{
|
62
|
+
"type":"Space",
|
63
|
+
"id":"0agypmo1waov",
|
64
|
+
"version":1,
|
65
|
+
"createdBy":{
|
66
|
+
"sys":{
|
67
|
+
"type":"Link",
|
68
|
+
"linkType":"User",
|
69
|
+
"id":"4FLrUHftHW3v2BLi9fzfjU"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"createdAt":"2015-05-11T09:32:08Z",
|
73
|
+
"updatedBy":{
|
74
|
+
"sys":{
|
75
|
+
"type":"Link",
|
76
|
+
"linkType":"User",
|
77
|
+
"id":"4FLrUHftHW3v2BLi9fzfjU"
|
78
|
+
}
|
79
|
+
},
|
80
|
+
"updatedAt":"2015-05-11T09:32:08Z"
|
81
|
+
},
|
82
|
+
"name":"yolo"
|
83
|
+
}
|
84
|
+
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 03 Jun 2015 08:52:33 GMT
|
87
|
+
- request:
|
88
|
+
method: get
|
89
|
+
uri: https://api.contentful.com/spaces/0agypmo1waov/content_types
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ''
|
93
|
+
headers:
|
94
|
+
User-Agent:
|
95
|
+
- RubyContentfulManagementGem/0.7.0
|
96
|
+
Authorization:
|
97
|
+
- Bearer <ACCESS_TOKEN>
|
98
|
+
Content-Type:
|
99
|
+
- application/vnd.contentful.management.v1+json
|
100
|
+
Content-Length:
|
101
|
+
- '0'
|
102
|
+
Connection:
|
103
|
+
- close
|
104
|
+
Host:
|
105
|
+
- api.contentful.com
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 200
|
109
|
+
message: OK
|
110
|
+
headers:
|
111
|
+
Access-Control-Allow-Headers:
|
112
|
+
- 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
|
113
|
+
Access-Control-Allow-Methods:
|
114
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
115
|
+
Access-Control-Allow-Origin:
|
116
|
+
- '*'
|
117
|
+
Access-Control-Expose-Headers:
|
118
|
+
- Etag
|
119
|
+
Access-Control-Max-Age:
|
120
|
+
- '1728000'
|
121
|
+
Cf-Space-Id:
|
122
|
+
- 0agypmo1waov
|
123
|
+
Content-Type:
|
124
|
+
- application/vnd.contentful.management.v1+json
|
125
|
+
Date:
|
126
|
+
- Wed, 03 Jun 2015 08:52:33 GMT
|
127
|
+
Etag:
|
128
|
+
- '"fb29adcfd8a4e48f0e0e5d6b262d5429"'
|
129
|
+
Server:
|
130
|
+
- nginx
|
131
|
+
X-Contentful-Request-Id:
|
132
|
+
- content-api:1k6pkFRMt8G4Ikyuo8eGac
|
133
|
+
X-Powered-By:
|
134
|
+
- Express
|
135
|
+
Content-Length:
|
136
|
+
- '1485'
|
137
|
+
Connection:
|
138
|
+
- Close
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: |
|
142
|
+
{
|
143
|
+
"sys": {
|
144
|
+
"type": "Array"
|
145
|
+
},
|
146
|
+
"total": 1,
|
147
|
+
"skip": 0,
|
148
|
+
"limit": 100,
|
149
|
+
"items": [
|
150
|
+
{
|
151
|
+
"name": "YOLO",
|
152
|
+
"fields": [
|
153
|
+
{
|
154
|
+
"name": "Name",
|
155
|
+
"id": "name",
|
156
|
+
"type": "Symbol",
|
157
|
+
"localized": true
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"name": "YOLO",
|
161
|
+
"id": "yolo",
|
162
|
+
"type": "Text",
|
163
|
+
"localized": true
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"displayField": "name",
|
167
|
+
"sys": {
|
168
|
+
"id": "5U4xpaLDQ4S8MCGMCC6yCa",
|
169
|
+
"type": "ContentType",
|
170
|
+
"createdAt": "2015-05-11T09:33:00.154Z",
|
171
|
+
"createdBy": {
|
172
|
+
"sys": {
|
173
|
+
"type": "Link",
|
174
|
+
"linkType": "User",
|
175
|
+
"id": "4FLrUHftHW3v2BLi9fzfjU"
|
176
|
+
}
|
177
|
+
},
|
178
|
+
"space": {
|
179
|
+
"sys": {
|
180
|
+
"type": "Link",
|
181
|
+
"linkType": "Space",
|
182
|
+
"id": "0agypmo1waov"
|
183
|
+
}
|
184
|
+
},
|
185
|
+
"firstPublishedAt": "2015-05-11T09:33:58.032Z",
|
186
|
+
"publishedCounter": 2,
|
187
|
+
"publishedAt": "2015-05-11T09:35:45.788Z",
|
188
|
+
"publishedBy": {
|
189
|
+
"sys": {
|
190
|
+
"type": "Link",
|
191
|
+
"linkType": "User",
|
192
|
+
"id": "4FLrUHftHW3v2BLi9fzfjU"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
"publishedVersion": 4,
|
196
|
+
"version": 5,
|
197
|
+
"updatedAt": "2015-05-11T09:35:45.841Z",
|
198
|
+
"updatedBy": {
|
199
|
+
"sys": {
|
200
|
+
"type": "Link",
|
201
|
+
"linkType": "User",
|
202
|
+
"id": "4FLrUHftHW3v2BLi9fzfjU"
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
]
|
208
|
+
}
|
209
|
+
http_version:
|
210
|
+
recorded_at: Wed, 03 Jun 2015 08:52:34 GMT
|
211
|
+
- request:
|
212
|
+
method: get
|
213
|
+
uri: https://api.contentful.com/spaces/0agypmo1waov/entries/4epXENbO8wsaOukgqquYcI
|
214
|
+
body:
|
215
|
+
encoding: US-ASCII
|
216
|
+
string: ''
|
217
|
+
headers:
|
218
|
+
User-Agent:
|
219
|
+
- RubyContentfulManagementGem/0.7.0
|
220
|
+
Authorization:
|
221
|
+
- Bearer <ACCESS_TOKEN>
|
222
|
+
Content-Type:
|
223
|
+
- application/vnd.contentful.management.v1+json
|
224
|
+
Content-Length:
|
225
|
+
- '0'
|
226
|
+
Connection:
|
227
|
+
- close
|
228
|
+
Host:
|
229
|
+
- api.contentful.com
|
230
|
+
response:
|
231
|
+
status:
|
232
|
+
code: 200
|
233
|
+
message: OK
|
234
|
+
headers:
|
235
|
+
Access-Control-Allow-Headers:
|
236
|
+
- 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
|
237
|
+
Access-Control-Allow-Methods:
|
238
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
239
|
+
Access-Control-Allow-Origin:
|
240
|
+
- '*'
|
241
|
+
Access-Control-Expose-Headers:
|
242
|
+
- Etag
|
243
|
+
Access-Control-Max-Age:
|
244
|
+
- '1728000'
|
245
|
+
Cf-Space-Id:
|
246
|
+
- 0agypmo1waov
|
247
|
+
Content-Type:
|
248
|
+
- application/vnd.contentful.management.v1+json
|
249
|
+
Date:
|
250
|
+
- Wed, 03 Jun 2015 08:52:34 GMT
|
251
|
+
Etag:
|
252
|
+
- '"e17d82f46ddbbadc241012daf9d2bfd1"'
|
253
|
+
Server:
|
254
|
+
- nginx
|
255
|
+
X-Contentful-Request-Id:
|
256
|
+
- content-api:6R5YWaDb3yG60uyEaYsm40
|
257
|
+
X-Powered-By:
|
258
|
+
- Express
|
259
|
+
Content-Length:
|
260
|
+
- '1140'
|
261
|
+
Connection:
|
262
|
+
- Close
|
263
|
+
body:
|
264
|
+
encoding: UTF-8
|
265
|
+
string: |
|
266
|
+
{
|
267
|
+
"fields": {
|
268
|
+
"name": {
|
269
|
+
"en-US": "test2"
|
270
|
+
},
|
271
|
+
"yolo": {
|
272
|
+
"en-US": "test"
|
273
|
+
}
|
274
|
+
},
|
275
|
+
"sys": {
|
276
|
+
"id": "4epXENbO8wsaOukgqquYcI",
|
277
|
+
"type": "Entry",
|
278
|
+
"createdAt": "2015-05-11T09:36:57.750Z",
|
279
|
+
"createdBy": {
|
280
|
+
"sys": {
|
281
|
+
"type": "Link",
|
282
|
+
"linkType": "User",
|
283
|
+
"id": "4FLrUHftHW3v2BLi9fzfjU"
|
284
|
+
}
|
285
|
+
},
|
286
|
+
"space": {
|
287
|
+
"sys": {
|
288
|
+
"type": "Link",
|
289
|
+
"linkType": "Space",
|
290
|
+
"id": "0agypmo1waov"
|
291
|
+
}
|
292
|
+
},
|
293
|
+
"contentType": {
|
294
|
+
"sys": {
|
295
|
+
"type": "Link",
|
296
|
+
"linkType": "ContentType",
|
297
|
+
"id": "5U4xpaLDQ4S8MCGMCC6yCa"
|
298
|
+
}
|
299
|
+
},
|
300
|
+
"firstPublishedAt": "2015-05-11T09:37:09.215Z",
|
301
|
+
"publishedCounter": 1,
|
302
|
+
"publishedAt": "2015-05-11T09:37:09.215Z",
|
303
|
+
"publishedBy": {
|
304
|
+
"sys": {
|
305
|
+
"type": "Link",
|
306
|
+
"linkType": "User",
|
307
|
+
"id": "4FLrUHftHW3v2BLi9fzfjU"
|
308
|
+
}
|
309
|
+
},
|
310
|
+
"publishedVersion": 7,
|
311
|
+
"version": 11,
|
312
|
+
"updatedAt": "2015-06-03T08:33:56.334Z",
|
313
|
+
"updatedBy": {
|
314
|
+
"sys": {
|
315
|
+
"type": "Link",
|
316
|
+
"linkType": "User",
|
317
|
+
"id": "4FLrUHftHW3v2BLi9fzfjU"
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
http_version:
|
323
|
+
recorded_at: Wed, 03 Jun 2015 08:52:35 GMT
|
324
|
+
recorded_with: VCR 2.9.3
|