contentful 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,317 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?include=2&sys.id=nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/0.8.0
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
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
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - 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
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.delivery.v1+json
41
+ Server:
42
+ - nginx
43
+ X-Contentful-Request-Id:
44
+ - c40-593918282
45
+ Content-Length:
46
+ - '1015'
47
+ Accept-Ranges:
48
+ - bytes
49
+ Date:
50
+ - Wed, 09 Dec 2015 22:59:07 GMT
51
+ Via:
52
+ - 1.1 varnish
53
+ Age:
54
+ - '3851'
55
+ Connection:
56
+ - close
57
+ X-Served-By:
58
+ - cache-iad2135-IAD
59
+ X-Cache:
60
+ - HIT
61
+ X-Cache-Hits:
62
+ - '1'
63
+ Vary:
64
+ - Accept-Encoding
65
+ body:
66
+ encoding: UTF-8
67
+ string: |
68
+ {
69
+ "sys":{
70
+ "type":"Array"
71
+ },
72
+ "total":1,
73
+ "skip":0,
74
+ "limit":100,
75
+ "items":[
76
+ {
77
+ "fields":{
78
+ "name":"Nyan Cat",
79
+ "likes":[
80
+ "rainbows",
81
+ "fish"
82
+ ],
83
+ "color":"rainbow",
84
+ "bestFriend":{
85
+ "sys":{
86
+ "type":"Link",
87
+ "linkType":"Entry",
88
+ "id":"happycat"
89
+ }
90
+ },
91
+ "catPack": [
92
+ {
93
+ "sys":{
94
+ "type":"Link",
95
+ "linkType":"Entry",
96
+ "id":"happycat"
97
+ }
98
+ },
99
+ {
100
+ "sys":{
101
+ "type":"Link",
102
+ "linkType":"Entry",
103
+ "id":"worriedcat"
104
+ }
105
+ }
106
+ ],
107
+ "birthday":"2011-04-04T22:00:00+00:00",
108
+ "lives":1337,
109
+ "image":{
110
+ "sys":{
111
+ "type":"Link",
112
+ "linkType":"Asset",
113
+ "id":"nyancat"
114
+ }
115
+ }
116
+ },
117
+ "sys":{
118
+ "space":{
119
+ "sys":{
120
+ "type":"Link",
121
+ "linkType":"Space",
122
+ "id":"cfexampleapi"
123
+ }
124
+ },
125
+ "type":"Entry",
126
+ "contentType":{
127
+ "sys":{
128
+ "type":"Link",
129
+ "linkType":"ContentType",
130
+ "id":"cat"
131
+ }
132
+ },
133
+ "id":"nyancat",
134
+ "revision":5,
135
+ "createdAt":"2013-06-27T22:46:19.513Z",
136
+ "updatedAt":"2013-09-04T09:19:39.027Z",
137
+ "locale":"en-US"
138
+ }
139
+ }
140
+ ],
141
+ "includes":{
142
+ "Entry":[
143
+ {
144
+ "fields":{
145
+ "name":"Happy Cat",
146
+ "bestFriend":{
147
+ "sys":{
148
+ "type":"Link",
149
+ "linkType":"Entry",
150
+ "id":"worriedcat"
151
+ }
152
+ },
153
+ "catPack": [
154
+ {
155
+ "sys":{
156
+ "type":"Link",
157
+ "linkType":"Entry",
158
+ "id":"nyancat"
159
+ }
160
+ },
161
+ {
162
+ "sys":{
163
+ "type":"Link",
164
+ "linkType":"Entry",
165
+ "id":"worriedcat"
166
+ }
167
+ }
168
+ ],
169
+ "likes":[
170
+ "cheezburger"
171
+ ],
172
+ "color":"gray",
173
+ "birthday":"2003-10-28T23:00:00+00:00",
174
+ "lives":1,
175
+ "image":{
176
+ "sys":{
177
+ "type":"Link",
178
+ "linkType":"Asset",
179
+ "id":"happycat"
180
+ }
181
+ }
182
+ },
183
+ "sys":{
184
+ "space":{
185
+ "sys":{
186
+ "type":"Link",
187
+ "linkType":"Space",
188
+ "id":"cfexampleapi"
189
+ }
190
+ },
191
+ "type":"Entry",
192
+ "contentType":{
193
+ "sys":{
194
+ "type":"Link",
195
+ "linkType":"ContentType",
196
+ "id":"cat"
197
+ }
198
+ },
199
+ "id":"happycat",
200
+ "revision":8,
201
+ "createdAt":"2013-06-27T22:46:20.171Z",
202
+ "updatedAt":"2013-11-18T15:58:02.018Z",
203
+ "locale":"en-US"
204
+ }
205
+ },
206
+ {
207
+ "fields":{
208
+ "name":"Worried Cat",
209
+ "bestFriend":{
210
+ "sys":{
211
+ "type":"Link",
212
+ "linkType":"Entry",
213
+ "id":"nyancat"
214
+ }
215
+ },
216
+ "likes":[
217
+ "lasagna"
218
+ ],
219
+ "color":"taupe",
220
+ "birthday":"2003-10-28T23:00:00+00:00",
221
+ "lives":7
222
+ },
223
+ "sys":{
224
+ "space":{
225
+ "sys":{
226
+ "type":"Link",
227
+ "linkType":"Space",
228
+ "id":"cfexampleapi"
229
+ }
230
+ },
231
+ "type":"Entry",
232
+ "contentType":{
233
+ "sys":{
234
+ "type":"Link",
235
+ "linkType":"ContentType",
236
+ "id":"cat"
237
+ }
238
+ },
239
+ "id":"worriedcat",
240
+ "revision":8,
241
+ "createdAt":"2013-06-27T22:46:20.171Z",
242
+ "updatedAt":"2013-11-18T15:58:02.018Z",
243
+ "locale":"en-US"
244
+ }
245
+ }
246
+ ],
247
+ "Asset":[
248
+ {
249
+ "fields":{
250
+ "file":{
251
+ "fileName":"happycatw.jpg",
252
+ "contentType":"image/jpeg",
253
+ "details":{
254
+ "image":{
255
+ "width":273,
256
+ "height":397
257
+ },
258
+ "size":59939
259
+ },
260
+ "url":"//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg"
261
+ },
262
+ "title":"Happy Cat"
263
+ },
264
+ "sys":{
265
+ "space":{
266
+ "sys":{
267
+ "type":"Link",
268
+ "linkType":"Space",
269
+ "id":"cfexampleapi"
270
+ }
271
+ },
272
+ "type":"Asset",
273
+ "id":"happycat",
274
+ "revision":2,
275
+ "createdAt":"2013-09-02T14:56:34.267Z",
276
+ "updatedAt":"2013-09-02T15:11:24.361Z",
277
+ "locale":"en-US"
278
+ }
279
+ },
280
+ {
281
+ "fields":{
282
+ "title":"Nyan Cat",
283
+ "file":{
284
+ "fileName":"Nyan_cat_250px_frame.png",
285
+ "contentType":"image/png",
286
+ "details":{
287
+ "image":{
288
+ "width":250,
289
+ "height":250
290
+ },
291
+ "size":12273
292
+ },
293
+ "url":"//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png"
294
+ }
295
+ },
296
+ "sys":{
297
+ "space":{
298
+ "sys":{
299
+ "type":"Link",
300
+ "linkType":"Space",
301
+ "id":"cfexampleapi"
302
+ }
303
+ },
304
+ "type":"Asset",
305
+ "id":"nyancat",
306
+ "revision":1,
307
+ "createdAt":"2013-09-02T14:56:34.240Z",
308
+ "updatedAt":"2013-09-02T14:56:34.240Z",
309
+ "locale":"en-US"
310
+ }
311
+ }
312
+ ]
313
+ }
314
+ }
315
+ http_version:
316
+ recorded_at: Wed, 09 Dec 2015 22:59:06 GMT
317
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,237 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries/nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/0.8.0
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
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
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - 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
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.delivery.v1+json
41
+ Etag:
42
+ - '"a9e11c59bf73598894bf05d4db7700cb"'
43
+ Server:
44
+ - nginx
45
+ X-Contentful-Request-Id:
46
+ - 405-1394043095
47
+ Content-Length:
48
+ - '882'
49
+ Accept-Ranges:
50
+ - bytes
51
+ Date:
52
+ - Wed, 09 Dec 2015 21:48:10 GMT
53
+ Via:
54
+ - 1.1 varnish
55
+ Age:
56
+ - '2558'
57
+ Connection:
58
+ - close
59
+ X-Served-By:
60
+ - cache-iad2136-IAD
61
+ X-Cache:
62
+ - HIT
63
+ X-Cache-Hits:
64
+ - '1'
65
+ Vary:
66
+ - Accept-Encoding
67
+ body:
68
+ encoding: UTF-8
69
+ string: |
70
+ {
71
+ "fields": {
72
+ "name": "Nyan Cat",
73
+ "likes": [
74
+ "rainbows",
75
+ "fish"
76
+ ],
77
+ "color": "rainbow",
78
+ "bestFriend": {
79
+ "sys": {
80
+ "type": "Link",
81
+ "linkType": "Entry",
82
+ "id": "happycat"
83
+ }
84
+ },
85
+ "birthday": "2011-04-04T22:00:00+00:00",
86
+ "lives": 1337,
87
+ "image": {
88
+ "sys": {
89
+ "type": "Link",
90
+ "linkType": "Asset",
91
+ "id": "nyancat"
92
+ }
93
+ }
94
+ },
95
+ "sys": {
96
+ "space": {
97
+ "sys": {
98
+ "type": "Link",
99
+ "linkType": "Space",
100
+ "id": "cfexampleapi"
101
+ }
102
+ },
103
+ "type": "Entry",
104
+ "contentType": {
105
+ "sys": {
106
+ "type": "Link",
107
+ "linkType": "ContentType",
108
+ "id": "cat"
109
+ }
110
+ },
111
+ "id": "nyancat",
112
+ "revision": 5,
113
+ "createdAt": "2013-06-27T22:46:19.513Z",
114
+ "updatedAt": "2013-09-04T09:19:39.027Z",
115
+ "locale": "en-US"
116
+ }
117
+ }
118
+ http_version:
119
+ recorded_at: Wed, 09 Dec 2015 21:48:08 GMT
120
+ - request:
121
+ method: get
122
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries/nyancat
123
+ body:
124
+ encoding: US-ASCII
125
+ string: ''
126
+ headers:
127
+ User-Agent:
128
+ - RubyContentfulGem/0.8.0
129
+ Authorization:
130
+ - Bearer b4c0n73n7fu1
131
+ Content-Type:
132
+ - application/vnd.contentful.delivery.v1+json
133
+ Accept-Encoding:
134
+ - gzip
135
+ Connection:
136
+ - close
137
+ Host:
138
+ - cdn.contentful.com
139
+ response:
140
+ status:
141
+ code: 200
142
+ message: OK
143
+ headers:
144
+ Access-Control-Allow-Headers:
145
+ - 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
146
+ Access-Control-Allow-Methods:
147
+ - GET,HEAD,OPTIONS
148
+ Access-Control-Allow-Origin:
149
+ - "*"
150
+ Access-Control-Expose-Headers:
151
+ - Etag
152
+ Access-Control-Max-Age:
153
+ - '86400'
154
+ Cache-Control:
155
+ - max-age=0
156
+ Content-Type:
157
+ - application/vnd.contentful.delivery.v1+json
158
+ Etag:
159
+ - '"a9e11c59bf73598894bf05d4db7700cb"'
160
+ Server:
161
+ - nginx
162
+ X-Contentful-Request-Id:
163
+ - 90a-2092510095
164
+ Content-Length:
165
+ - '882'
166
+ Accept-Ranges:
167
+ - bytes
168
+ Date:
169
+ - Wed, 09 Dec 2015 21:48:11 GMT
170
+ Via:
171
+ - 1.1 varnish
172
+ Age:
173
+ - '1818'
174
+ Connection:
175
+ - close
176
+ X-Served-By:
177
+ - cache-jfk1022-JFK
178
+ X-Cache:
179
+ - HIT
180
+ X-Cache-Hits:
181
+ - '2'
182
+ Vary:
183
+ - Accept-Encoding
184
+ body:
185
+ encoding: UTF-8
186
+ string: |
187
+ {
188
+ "fields": {
189
+ "name": "Nyan Cat",
190
+ "likes": [
191
+ "rainbows",
192
+ "fish"
193
+ ],
194
+ "color": "rainbow",
195
+ "bestFriend": {
196
+ "sys": {
197
+ "type": "Link",
198
+ "linkType": "Entry",
199
+ "id": "happycat"
200
+ }
201
+ },
202
+ "birthday": "2011-04-04T22:00:00+00:00",
203
+ "lives": 1337,
204
+ "image": {
205
+ "sys": {
206
+ "type": "Link",
207
+ "linkType": "Asset",
208
+ "id": "nyancat"
209
+ }
210
+ }
211
+ },
212
+ "sys": {
213
+ "space": {
214
+ "sys": {
215
+ "type": "Link",
216
+ "linkType": "Space",
217
+ "id": "cfexampleapi"
218
+ }
219
+ },
220
+ "type": "Entry",
221
+ "contentType": {
222
+ "sys": {
223
+ "type": "Link",
224
+ "linkType": "ContentType",
225
+ "id": "cat"
226
+ }
227
+ },
228
+ "id": "nyancat",
229
+ "revision": 5,
230
+ "createdAt": "2013-06-27T22:46:19.513Z",
231
+ "updatedAt": "2013-09-04T09:19:39.027Z",
232
+ "locale": "en-US"
233
+ }
234
+ }
235
+ http_version:
236
+ recorded_at: Wed, 09 Dec 2015 21:48:10 GMT
237
+ recorded_with: VCR 2.9.3