storageroom-to-contentful 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,601 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/pwgzawloi92k
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContenfulManagementGem/0.2.1
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ Content-Length:
17
+ - '0'
18
+ Host:
19
+ - api.contentful.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ "^access-Control-Expose-Headers":
26
+ - Etag
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
31
+ Access-Control-Allow-Methods:
32
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Max-Age:
36
+ - '1728000'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.management.v1+json
41
+ Date:
42
+ - Fri, 19 Sep 2014 11:05:33 GMT
43
+ Etag:
44
+ - '"2d227c41bc22e46abed43ffe316cf339"'
45
+ Server:
46
+ - nginx
47
+ Status:
48
+ - 200 OK
49
+ X-Contentful-Request-Id:
50
+ - 85f-941147472
51
+ Content-Length:
52
+ - '463'
53
+ Connection:
54
+ - keep-alive
55
+ body:
56
+ encoding: UTF-8
57
+ string: |
58
+ {
59
+ "sys":{
60
+ "type":"Space",
61
+ "id":"pwgzawloi92k",
62
+ "version":1,
63
+ "createdBy":{
64
+ "sys":{
65
+ "type":"Link",
66
+ "linkType":"User",
67
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
68
+ }
69
+ },
70
+ "createdAt":"2014-09-18T11:29:33Z",
71
+ "updatedBy":{
72
+ "sys":{
73
+ "type":"Link",
74
+ "linkType":"User",
75
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
76
+ }
77
+ },
78
+ "updatedAt":"2014-09-18T11:29:33Z"
79
+ },
80
+ "name":"TestingafterRefactor\n"}
81
+ http_version:
82
+ recorded_at: Fri, 19 Sep 2014 11:06:47 GMT
83
+ - request:
84
+ method: get
85
+ uri: https://api.contentful.com/spaces/pwgzawloi92k/content_types
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ''
89
+ headers:
90
+ User-Agent:
91
+ - RubyContenfulManagementGem/0.2.1
92
+ Authorization:
93
+ - Bearer <ACCESS_TOKEN>
94
+ Content-Type:
95
+ - application/vnd.contentful.management.v1+json
96
+ Content-Length:
97
+ - '0'
98
+ Host:
99
+ - api.contentful.com
100
+ response:
101
+ status:
102
+ code: 200
103
+ message: OK
104
+ headers:
105
+ "^access-Control-Expose-Headers":
106
+ - Etag
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
109
+ Access-Control-Allow-Methods:
110
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
111
+ Access-Control-Allow-Origin:
112
+ - "*"
113
+ Access-Control-Max-Age:
114
+ - '1728000'
115
+ Cf-Space-Id:
116
+ - pwgzawloi92k
117
+ Content-Type:
118
+ - application/vnd.contentful.management.v1+json
119
+ Date:
120
+ - Fri, 19 Sep 2014 11:05:34 GMT
121
+ Etag:
122
+ - '"903d92b076840cec127d05b02ff0aa4c"'
123
+ Server:
124
+ - nginx
125
+ X-Powered-By:
126
+ - Express
127
+ Content-Length:
128
+ - '2798'
129
+ Connection:
130
+ - keep-alive
131
+ body:
132
+ encoding: UTF-8
133
+ string: |
134
+ {
135
+ "sys": {
136
+ "type": "Array"
137
+ },
138
+ "total": 1,
139
+ "skip": 0,
140
+ "limit": 100,
141
+ "items": [
142
+ {
143
+ "name": "Codequest",
144
+ "description": "Testing",
145
+ "fields": [
146
+ {
147
+ "id": "name",
148
+ "name": "Name",
149
+ "type": "Text"
150
+ },
151
+ {
152
+ "id": "number",
153
+ "name": "Number",
154
+ "type": "Integer"
155
+ },
156
+ {
157
+ "id": "float1",
158
+ "name": "Float",
159
+ "type": "Number"
160
+ },
161
+ {
162
+ "id": "boolean",
163
+ "name": "Boolean",
164
+ "type": "Boolean"
165
+ },
166
+ {
167
+ "id": "date",
168
+ "name": "Date",
169
+ "type": "Date"
170
+ },
171
+ {
172
+ "id": "time",
173
+ "name": "Time",
174
+ "type": "Date"
175
+ },
176
+ {
177
+ "id": "location",
178
+ "name": "Location",
179
+ "type": "Location"
180
+ },
181
+ {
182
+ "id": "file",
183
+ "name": "File",
184
+ "type": "Link",
185
+ "linkType": "Asset"
186
+ },
187
+ {
188
+ "id": "image",
189
+ "name": "Image",
190
+ "type": "Link",
191
+ "linkType": "Asset"
192
+ },
193
+ {
194
+ "id": "array",
195
+ "name": "Array",
196
+ "type": "Array",
197
+ "items": {
198
+ "type": "Symbol"
199
+ }
200
+ },
201
+ {
202
+ "id": "entry",
203
+ "name": "Entry",
204
+ "type": "Link",
205
+ "linkType": "Entry"
206
+ },
207
+ {
208
+ "id": "entries",
209
+ "name": "Entries",
210
+ "type": "Array",
211
+ "items": {
212
+ "type": "Link",
213
+ "linkType": "Entry"
214
+ }
215
+ },
216
+ {
217
+ "id": "object_json",
218
+ "name": "Object",
219
+ "type": "Object"
220
+ }
221
+ ],
222
+ "sys": {
223
+ "id": "4I3VZrr0Ewc8mYee6AsGYA",
224
+ "type": "ContentType",
225
+ "createdAt": "2014-09-18T11:29:38.451Z",
226
+ "createdBy": {
227
+ "sys": {
228
+ "type": "Link",
229
+ "linkType": "User",
230
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
231
+ }
232
+ },
233
+ "space": {
234
+ "sys": {
235
+ "type": "Link",
236
+ "linkType": "Space",
237
+ "id": "pwgzawloi92k"
238
+ }
239
+ },
240
+ "firstPublishedAt": "2014-09-18T11:29:50.875Z",
241
+ "publishedCounter": 1,
242
+ "publishedAt": "2014-09-18T11:29:50.875Z",
243
+ "publishedBy": {
244
+ "sys": {
245
+ "type": "Link",
246
+ "linkType": "User",
247
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
248
+ }
249
+ },
250
+ "publishedVersion": 14,
251
+ "version": 15,
252
+ "updatedAt": "2014-09-18T11:29:50.889Z",
253
+ "updatedBy": {
254
+ "sys": {
255
+ "type": "Link",
256
+ "linkType": "User",
257
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
258
+ }
259
+ }
260
+ }
261
+ }
262
+ ]
263
+ }
264
+ http_version:
265
+ recorded_at: Fri, 19 Sep 2014 11:06:48 GMT
266
+ - request:
267
+ method: get
268
+ uri: https://api.contentful.com/spaces/pwgzawloi92k/entries
269
+ body:
270
+ encoding: US-ASCII
271
+ string: ''
272
+ headers:
273
+ User-Agent:
274
+ - RubyContenfulManagementGem/0.2.1
275
+ Authorization:
276
+ - Bearer <ACCESS_TOKEN>
277
+ Content-Type:
278
+ - application/vnd.contentful.management.v1+json
279
+ Content-Length:
280
+ - '0'
281
+ Host:
282
+ - api.contentful.com
283
+ response:
284
+ status:
285
+ code: 200
286
+ message: OK
287
+ headers:
288
+ "^access-Control-Expose-Headers":
289
+ - Etag
290
+ Access-Control-Allow-Headers:
291
+ - 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
292
+ Access-Control-Allow-Methods:
293
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
294
+ Access-Control-Allow-Origin:
295
+ - "*"
296
+ Access-Control-Max-Age:
297
+ - '1728000'
298
+ Cf-Space-Id:
299
+ - pwgzawloi92k
300
+ Content-Type:
301
+ - application/vnd.contentful.management.v1+json
302
+ Date:
303
+ - Fri, 19 Sep 2014 11:05:35 GMT
304
+ Etag:
305
+ - '"8ae36a6632bcf1a31b71a960030a2cb9"'
306
+ Server:
307
+ - nginx
308
+ X-Powered-By:
309
+ - Express
310
+ Content-Length:
311
+ - '2730'
312
+ Connection:
313
+ - keep-alive
314
+ body:
315
+ encoding: UTF-8
316
+ string: |
317
+ {
318
+ "sys": {
319
+ "type": "Array"
320
+ },
321
+ "total": 1,
322
+ "skip": 0,
323
+ "limit": 100,
324
+ "items": [
325
+ {
326
+ "fields": {
327
+ "name": {
328
+ "en-US": "Test z plikiem"
329
+ },
330
+ "number": {
331
+ "en-US": 11
332
+ },
333
+ "float1": {
334
+ "en-US": null
335
+ },
336
+ "boolean": {
337
+ "en-US": null
338
+ },
339
+ "date": {
340
+ "en-US": null
341
+ },
342
+ "time": {
343
+ "en-US": null
344
+ },
345
+ "location": {
346
+ "en-US": null
347
+ },
348
+ "file": {
349
+ "en-US": {
350
+ "sys": {
351
+ "type": "Link",
352
+ "linkType": "Asset",
353
+ "id": "3FEY2ZA4JOEu8IqwCysSYO"
354
+ }
355
+ }
356
+ },
357
+ "image": {
358
+ "en-US": {
359
+ "sys": {
360
+ "type": "Link",
361
+ "linkType": "Asset",
362
+ "id": "1Z3L7KdYhCoe6SA2mK0wmm"
363
+ }
364
+ }
365
+ },
366
+ "array": {
367
+ "en-US": []
368
+ },
369
+ "entry": {
370
+ "en-US": null
371
+ },
372
+ "entries": {
373
+ "en-US": []
374
+ },
375
+ "object_json": {
376
+ "en-US": {
377
+ "entry": {
378
+ "@type": "Codequest",
379
+ "@url": "http://api.storageroomapp.com/accounts/4d13574cba05613d25000004/collections/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d",
380
+ "@collection_url": "http://api.storageroomapp.com/accounts/4d13574cba05613d25000004/collections/540d6d001e29fa3541000d2d",
381
+ "@version": 2,
382
+ "@trash": false,
383
+ "@created_at": "2014-09-08T08:49:26Z",
384
+ "@updated_at": "2014-09-12T08:49:46Z",
385
+ "name": "Test",
386
+ "number": 11
387
+ }
388
+ }
389
+ }
390
+ },
391
+ "sys": {
392
+ "id": "5412e93a1e29fa07dd00178b",
393
+ "type": "Entry",
394
+ "createdAt": "2014-09-18T11:30:12.844Z",
395
+ "createdBy": {
396
+ "sys": {
397
+ "type": "Link",
398
+ "linkType": "User",
399
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
400
+ }
401
+ },
402
+ "space": {
403
+ "sys": {
404
+ "type": "Link",
405
+ "linkType": "Space",
406
+ "id": "pwgzawloi92k"
407
+ }
408
+ },
409
+ "contentType": {
410
+ "sys": {
411
+ "type": "Link",
412
+ "linkType": "ContentType",
413
+ "id": "4I3VZrr0Ewc8mYee6AsGYA"
414
+ }
415
+ },
416
+ "firstPublishedAt": "2014-09-19T06:31:46.059Z",
417
+ "publishedCounter": 1,
418
+ "version": 5,
419
+ "updatedAt": "2014-09-19T06:31:52.183Z",
420
+ "updatedBy": {
421
+ "sys": {
422
+ "type": "Link",
423
+ "linkType": "User",
424
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
425
+ }
426
+ }
427
+ }
428
+ }
429
+ ]
430
+ }
431
+ http_version:
432
+ recorded_at: Fri, 19 Sep 2014 11:06:48 GMT
433
+ - request:
434
+ method: put
435
+ uri: https://api.contentful.com/spaces/pwgzawloi92k/entries/5412e93a1e29fa07dd00178b/published
436
+ body:
437
+ encoding: US-ASCII
438
+ string: ''
439
+ headers:
440
+ User-Agent:
441
+ - RubyContenfulManagementGem/0.2.1
442
+ Authorization:
443
+ - Bearer <ACCESS_TOKEN>
444
+ Content-Type:
445
+ - application/vnd.contentful.management.v1+json
446
+ X-Contentful-Version:
447
+ - '5'
448
+ Content-Length:
449
+ - '0'
450
+ Host:
451
+ - api.contentful.com
452
+ response:
453
+ status:
454
+ code: 200
455
+ message: OK
456
+ headers:
457
+ "^access-Control-Expose-Headers":
458
+ - Etag
459
+ Access-Control-Allow-Headers:
460
+ - 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
461
+ Access-Control-Allow-Methods:
462
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
463
+ Access-Control-Allow-Origin:
464
+ - "*"
465
+ Access-Control-Max-Age:
466
+ - '1728000'
467
+ Cf-Space-Id:
468
+ - pwgzawloi92k
469
+ Content-Type:
470
+ - application/vnd.contentful.management.v1+json
471
+ Date:
472
+ - Fri, 19 Sep 2014 11:05:36 GMT
473
+ Etag:
474
+ - '"b9b3c216d278ab208965c87c5a234ffe"'
475
+ Server:
476
+ - nginx
477
+ X-Powered-By:
478
+ - Express
479
+ Content-Length:
480
+ - '2430'
481
+ Connection:
482
+ - keep-alive
483
+ body:
484
+ encoding: UTF-8
485
+ string: |
486
+ {
487
+ "fields": {
488
+ "name": {
489
+ "en-US": "Test z plikiem"
490
+ },
491
+ "number": {
492
+ "en-US": 11
493
+ },
494
+ "float1": {
495
+ "en-US": null
496
+ },
497
+ "boolean": {
498
+ "en-US": null
499
+ },
500
+ "date": {
501
+ "en-US": null
502
+ },
503
+ "time": {
504
+ "en-US": null
505
+ },
506
+ "location": {
507
+ "en-US": null
508
+ },
509
+ "file": {
510
+ "en-US": {
511
+ "sys": {
512
+ "type": "Link",
513
+ "linkType": "Asset",
514
+ "id": "3FEY2ZA4JOEu8IqwCysSYO"
515
+ }
516
+ }
517
+ },
518
+ "image": {
519
+ "en-US": {
520
+ "sys": {
521
+ "type": "Link",
522
+ "linkType": "Asset",
523
+ "id": "1Z3L7KdYhCoe6SA2mK0wmm"
524
+ }
525
+ }
526
+ },
527
+ "array": {
528
+ "en-US": []
529
+ },
530
+ "entry": {
531
+ "en-US": null
532
+ },
533
+ "entries": {
534
+ "en-US": []
535
+ },
536
+ "object_json": {
537
+ "en-US": {
538
+ "entry": {
539
+ "@type": "Codequest",
540
+ "@url": "http://api.storageroomapp.com/accounts/4d13574cba05613d25000004/collections/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d",
541
+ "@collection_url": "http://api.storageroomapp.com/accounts/4d13574cba05613d25000004/collections/540d6d001e29fa3541000d2d",
542
+ "@version": 2,
543
+ "@trash": false,
544
+ "@created_at": "2014-09-08T08:49:26Z",
545
+ "@updated_at": "2014-09-12T08:49:46Z",
546
+ "name": "Test",
547
+ "number": 11
548
+ }
549
+ }
550
+ }
551
+ },
552
+ "sys": {
553
+ "id": "5412e93a1e29fa07dd00178b",
554
+ "type": "Entry",
555
+ "createdAt": "2014-09-18T11:30:12.844Z",
556
+ "createdBy": {
557
+ "sys": {
558
+ "type": "Link",
559
+ "linkType": "User",
560
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
561
+ }
562
+ },
563
+ "space": {
564
+ "sys": {
565
+ "type": "Link",
566
+ "linkType": "Space",
567
+ "id": "pwgzawloi92k"
568
+ }
569
+ },
570
+ "contentType": {
571
+ "sys": {
572
+ "type": "Link",
573
+ "linkType": "ContentType",
574
+ "id": "4I3VZrr0Ewc8mYee6AsGYA"
575
+ }
576
+ },
577
+ "firstPublishedAt": "2014-09-19T06:31:46.059Z",
578
+ "publishedCounter": 2,
579
+ "version": 6,
580
+ "updatedAt": "2014-09-19T11:05:36.358Z",
581
+ "updatedBy": {
582
+ "sys": {
583
+ "type": "Link",
584
+ "linkType": "User",
585
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
586
+ }
587
+ },
588
+ "publishedAt": "2014-09-19T11:05:36.358Z",
589
+ "publishedBy": {
590
+ "sys": {
591
+ "type": "Link",
592
+ "linkType": "User",
593
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
594
+ }
595
+ },
596
+ "publishedVersion": 5
597
+ }
598
+ }
599
+ http_version:
600
+ recorded_at: Fri, 19 Sep 2014 11:06:50 GMT
601
+ recorded_with: VCR 2.9.3