contentful-management 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/CHANGELOG.md +8 -0
  2. data/README.md +17 -0
  3. data/lib/contentful/management/array.rb +3 -1
  4. data/lib/contentful/management/asset.rb +16 -14
  5. data/lib/contentful/management/client.rb +1 -1
  6. data/lib/contentful/management/content_type.rb +18 -18
  7. data/lib/contentful/management/entry.rb +20 -19
  8. data/lib/contentful/management/locale.rb +4 -4
  9. data/lib/contentful/management/request.rb +4 -2
  10. data/lib/contentful/management/resource.rb +8 -8
  11. data/lib/contentful/management/resource/refresher.rb +8 -1
  12. data/lib/contentful/management/resource_builder.rb +3 -3
  13. data/lib/contentful/management/response.rb +10 -3
  14. data/lib/contentful/management/space.rb +11 -11
  15. data/lib/contentful/management/version.rb +1 -1
  16. data/spec/fixtures/vcr_cassettes/asset/create_with_locale.yml +151 -0
  17. data/spec/fixtures/vcr_cassettes/asset/limited_assets_next_page.yml +123 -0
  18. data/spec/fixtures/vcr_cassettes/asset/reload.yml +406 -0
  19. data/spec/fixtures/vcr_cassettes/content_type/reload.yml +394 -0
  20. data/spec/fixtures/vcr_cassettes/entry/all.yml +231 -36
  21. data/spec/fixtures/vcr_cassettes/entry/content_type_entires.yml +99 -23
  22. data/spec/fixtures/vcr_cassettes/entry/create_with_specified_locale.yml +509 -0
  23. data/spec/fixtures/vcr_cassettes/entry/limited_entries.yml +236 -0
  24. data/spec/fixtures/vcr_cassettes/entry/reload.yml +1027 -0
  25. data/spec/fixtures/vcr_cassettes/locale/reload.yml +279 -0
  26. data/spec/fixtures/vcr_cassettes/space/asset/all_with_skip_and_limit.yml +355 -0
  27. data/spec/fixtures/vcr_cassettes/space/asset/with_skipped_and_limited_assets_next_page.yml +635 -0
  28. data/spec/fixtures/vcr_cassettes/space/entry/with_skipped_and_limited_entires_next_page.yml +648 -0
  29. data/spec/fixtures/vcr_cassettes/space/entry/with_skipped_andlimited_entires.yml +468 -0
  30. data/spec/fixtures/vcr_cassettes/space/reload.yml +739 -0
  31. data/spec/lib/contentful/management/asset_spec.rb +42 -2
  32. data/spec/lib/contentful/management/content_type_spec.rb +16 -1
  33. data/spec/lib/contentful/management/entry_spec.rb +38 -5
  34. data/spec/lib/contentful/management/locale_spec.rb +14 -0
  35. data/spec/lib/contentful/management/space_spec.rb +46 -2
  36. metadata +31 -5
@@ -0,0 +1,739 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContenfulManagementGem/0.0.2
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
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Tue, 19 Aug 2014 13:24:42 GMT
29
+ Content-Type:
30
+ - application/vnd.contentful.management.v1+json
31
+ Content-Length:
32
+ - '459'
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 200 OK
37
+ X-Contentful-Request-Id:
38
+ - 85f-1214639449
39
+ Etag:
40
+ - '"4c0ee33eddaabc719d0b81c1ef79fdc4"'
41
+ Accept-Ranges:
42
+ - bytes
43
+ Cache-Control:
44
+ - max-age=0
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ Access-Control-Allow-Headers:
48
+ - 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
49
+ Access-Control-Allow-Methods:
50
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
51
+ "^access-Control-Expose-Headers":
52
+ - Etag
53
+ Access-Control-Max-Age:
54
+ - '1728000'
55
+ body:
56
+ encoding: UTF-8
57
+ string: |
58
+ {
59
+ "sys":{
60
+ "type":"Space",
61
+ "id":"bfsvtul0c41g",
62
+ "version":1,
63
+ "createdBy":{
64
+ "sys":{
65
+ "type":"Link",
66
+ "linkType":"User",
67
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
68
+ }
69
+ },
70
+ "createdAt":"2014-08-18T06:51:53Z",
71
+ "updatedBy":{
72
+ "sys":{
73
+ "type":"Link",
74
+ "linkType":"User",
75
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
76
+ }
77
+ },
78
+ "updatedAt":"2014-08-18T06:51:53Z"
79
+ },
80
+ "name":"CMA_demo_rails_app"}
81
+ http_version:
82
+ recorded_at: Tue, 19 Aug 2014 13:24:35 GMT
83
+ - request:
84
+ method: get
85
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ''
89
+ headers:
90
+ User-Agent:
91
+ - RubyContenfulManagementGem/0.0.2
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
+ Server:
106
+ - nginx
107
+ Date:
108
+ - Tue, 19 Aug 2014 13:24:42 GMT
109
+ Content-Type:
110
+ - application/vnd.contentful.management.v1+json
111
+ Content-Length:
112
+ - '4628'
113
+ Connection:
114
+ - keep-alive
115
+ X-Powered-By:
116
+ - Express
117
+ Cf-Space-Id:
118
+ - bfsvtul0c41g
119
+ Etag:
120
+ - '"e81522bd619e808c7c099fb199bfb608"'
121
+ Access-Control-Allow-Origin:
122
+ - "*"
123
+ Access-Control-Allow-Headers:
124
+ - 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
125
+ Access-Control-Allow-Methods:
126
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
127
+ "^access-Control-Expose-Headers":
128
+ - Etag
129
+ Access-Control-Max-Age:
130
+ - '1728000'
131
+ body:
132
+ encoding: UTF-8
133
+ string: |
134
+ {
135
+ "sys": {
136
+ "type": "Array"
137
+ },
138
+ "total": 2,
139
+ "skip": 0,
140
+ "limit": 100,
141
+ "items": [
142
+ {
143
+ "name": "Post",
144
+ "description": "",
145
+ "fields": [
146
+ {
147
+ "id": "post_title",
148
+ "name": "Title",
149
+ "type": "Text",
150
+ "localized": true,
151
+ "uiid": "4e20dxdupz4"
152
+ },
153
+ {
154
+ "id": "post_author",
155
+ "name": "Author",
156
+ "type": "Text",
157
+ "localized": true,
158
+ "uiid": "2s5prxyzvgg"
159
+ },
160
+ {
161
+ "id": "post_body",
162
+ "name": "Body",
163
+ "type": "Text",
164
+ "localized": true,
165
+ "uiid": "32vqnqsdreo"
166
+ },
167
+ {
168
+ "id": "post_title_image",
169
+ "name": "Title Image",
170
+ "type": "Link",
171
+ "linkType": "Asset",
172
+ "required": true,
173
+ "localized": true,
174
+ "uiid": "3m8cw01d5vk"
175
+ },
176
+ {
177
+ "id": "post_second_image",
178
+ "name": "Second Image",
179
+ "type": "Link",
180
+ "linkType": "Asset",
181
+ "localized": true,
182
+ "uiid": "3gjxnofhkao"
183
+ },
184
+ {
185
+ "id": "post_category_id",
186
+ "name": "Category",
187
+ "type": "Link",
188
+ "linkType": "Entry",
189
+ "uiid": "3qu5za5cnpc"
190
+ },
191
+ {
192
+ "id": "post_assets",
193
+ "name": "Post Assets",
194
+ "type": "Array",
195
+ "items": {
196
+ "type": "Link",
197
+ "linkType": "Asset"
198
+ },
199
+ "uiid": "35ykvfj4x6o"
200
+ },
201
+ {
202
+ "id": "xxx",
203
+ "name": "xxx",
204
+ "type": "Symbol",
205
+ "uiid": "4onqde99wxs"
206
+ },
207
+ {
208
+ "id": "xxx123",
209
+ "name": "xxx123",
210
+ "type": "Symbol",
211
+ "uiid": "4o64i125l34"
212
+ },
213
+ {
214
+ "id": "ssss",
215
+ "name": "Post ssss",
216
+ "type": "Array",
217
+ "items": {
218
+ "type": "Link",
219
+ "linkType": "Asset"
220
+ },
221
+ "uiid": "2skdkwqvta8"
222
+ },
223
+ {
224
+ "name": "xxasdasd",
225
+ "id": "xxasdasd",
226
+ "type": "Boolean",
227
+ "uiid": "387exwqopa8"
228
+ }
229
+ ],
230
+ "sys": {
231
+ "id": "post_content_type",
232
+ "type": "ContentType",
233
+ "createdAt": "2014-08-18T06:52:03.545Z",
234
+ "createdBy": {
235
+ "sys": {
236
+ "type": "Link",
237
+ "linkType": "User",
238
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
239
+ }
240
+ },
241
+ "space": {
242
+ "sys": {
243
+ "type": "Link",
244
+ "linkType": "Space",
245
+ "id": "bfsvtul0c41g"
246
+ }
247
+ },
248
+ "firstPublishedAt": "2014-08-18T06:52:10.462Z",
249
+ "publishedCounter": 4,
250
+ "publishedAt": "2014-08-18T12:42:39.643Z",
251
+ "publishedBy": {
252
+ "sys": {
253
+ "type": "Link",
254
+ "linkType": "User",
255
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
256
+ }
257
+ },
258
+ "publishedVersion": 33,
259
+ "version": 35,
260
+ "updatedAt": "2014-08-19T10:19:42.592Z",
261
+ "updatedBy": {
262
+ "sys": {
263
+ "type": "Link",
264
+ "linkType": "User",
265
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
266
+ }
267
+ }
268
+ }
269
+ },
270
+ {
271
+ "name": "Updated content type name",
272
+ "description": "",
273
+ "fields": [
274
+ {
275
+ "id": "name",
276
+ "name": "Name",
277
+ "type": "Text",
278
+ "localized": true
279
+ },
280
+ {
281
+ "id": "description",
282
+ "name": "Description",
283
+ "type": "Text",
284
+ "localized": true
285
+ }
286
+ ],
287
+ "sys": {
288
+ "id": "category_content_type",
289
+ "type": "ContentType",
290
+ "createdAt": "2014-08-18T06:51:59.560Z",
291
+ "createdBy": {
292
+ "sys": {
293
+ "type": "Link",
294
+ "linkType": "User",
295
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
296
+ }
297
+ },
298
+ "space": {
299
+ "sys": {
300
+ "type": "Link",
301
+ "linkType": "Space",
302
+ "id": "bfsvtul0c41g"
303
+ }
304
+ },
305
+ "firstPublishedAt": "2014-08-18T06:52:02.517Z",
306
+ "publishedCounter": 6,
307
+ "publishedAt": "2014-08-19T11:42:07.711Z",
308
+ "publishedBy": {
309
+ "sys": {
310
+ "type": "Link",
311
+ "linkType": "User",
312
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
313
+ }
314
+ },
315
+ "publishedVersion": 33,
316
+ "version": 35,
317
+ "updatedAt": "2014-08-19T12:15:30.183Z",
318
+ "updatedBy": {
319
+ "sys": {
320
+ "type": "Link",
321
+ "linkType": "User",
322
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
323
+ }
324
+ }
325
+ }
326
+ }
327
+ ]
328
+ }
329
+ http_version:
330
+ recorded_at: Tue, 19 Aug 2014 13:24:35 GMT
331
+ - request:
332
+ method: get
333
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g
334
+ body:
335
+ encoding: US-ASCII
336
+ string: ''
337
+ headers:
338
+ User-Agent:
339
+ - RubyContenfulManagementGem/0.0.2
340
+ Authorization:
341
+ - Bearer <ACCESS_TOKEN>
342
+ Content-Type:
343
+ - application/vnd.contentful.management.v1+json
344
+ Content-Length:
345
+ - '0'
346
+ Host:
347
+ - api.contentful.com
348
+ response:
349
+ status:
350
+ code: 200
351
+ message: OK
352
+ headers:
353
+ Server:
354
+ - nginx
355
+ Date:
356
+ - Tue, 19 Aug 2014 13:24:43 GMT
357
+ Content-Type:
358
+ - application/vnd.contentful.management.v1+json
359
+ Content-Length:
360
+ - '459'
361
+ Connection:
362
+ - keep-alive
363
+ Status:
364
+ - 200 OK
365
+ X-Contentful-Request-Id:
366
+ - 85f-1214639459
367
+ Etag:
368
+ - '"4c0ee33eddaabc719d0b81c1ef79fdc4"'
369
+ Accept-Ranges:
370
+ - bytes
371
+ Cache-Control:
372
+ - max-age=0
373
+ Access-Control-Allow-Origin:
374
+ - "*"
375
+ Access-Control-Allow-Headers:
376
+ - 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
377
+ Access-Control-Allow-Methods:
378
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
379
+ "^access-Control-Expose-Headers":
380
+ - Etag
381
+ Access-Control-Max-Age:
382
+ - '1728000'
383
+ body:
384
+ encoding: UTF-8
385
+ string: |
386
+ {
387
+ "sys":{
388
+ "type":"Space",
389
+ "id":"bfsvtul0c41g",
390
+ "version":1,
391
+ "createdBy":{
392
+ "sys":{
393
+ "type":"Link",
394
+ "linkType":"User",
395
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
396
+ }
397
+ },
398
+ "createdAt":"2014-08-18T06:51:53Z",
399
+ "updatedBy":{
400
+ "sys":{
401
+ "type":"Link",
402
+ "linkType":"User",
403
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
404
+ }
405
+ },
406
+ "updatedAt":"2014-08-18T06:51:53Z"
407
+ },
408
+ "name":"CMA_demo_rails_app"}
409
+ http_version:
410
+ recorded_at: Tue, 19 Aug 2014 13:24:36 GMT
411
+ - request:
412
+ method: get
413
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
414
+ body:
415
+ encoding: US-ASCII
416
+ string: ''
417
+ headers:
418
+ User-Agent:
419
+ - RubyContenfulManagementGem/0.0.2
420
+ Authorization:
421
+ - Bearer <ACCESS_TOKEN>
422
+ Content-Type:
423
+ - application/vnd.contentful.management.v1+json
424
+ Content-Length:
425
+ - '0'
426
+ Host:
427
+ - api.contentful.com
428
+ response:
429
+ status:
430
+ code: 200
431
+ message: OK
432
+ headers:
433
+ Server:
434
+ - nginx
435
+ Date:
436
+ - Tue, 19 Aug 2014 13:24:44 GMT
437
+ Content-Type:
438
+ - application/vnd.contentful.management.v1+json
439
+ Content-Length:
440
+ - '4628'
441
+ Connection:
442
+ - keep-alive
443
+ X-Powered-By:
444
+ - Express
445
+ Cf-Space-Id:
446
+ - bfsvtul0c41g
447
+ Etag:
448
+ - '"e81522bd619e808c7c099fb199bfb608"'
449
+ Access-Control-Allow-Origin:
450
+ - "*"
451
+ Access-Control-Allow-Headers:
452
+ - 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
453
+ Access-Control-Allow-Methods:
454
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
455
+ "^access-Control-Expose-Headers":
456
+ - Etag
457
+ Access-Control-Max-Age:
458
+ - '1728000'
459
+ body:
460
+ encoding: UTF-8
461
+ string: |
462
+ {
463
+ "sys": {
464
+ "type": "Array"
465
+ },
466
+ "total": 2,
467
+ "skip": 0,
468
+ "limit": 100,
469
+ "items": [
470
+ {
471
+ "name": "Post",
472
+ "description": "",
473
+ "fields": [
474
+ {
475
+ "id": "post_title",
476
+ "name": "Title",
477
+ "type": "Text",
478
+ "localized": true,
479
+ "uiid": "4e20dxdupz4"
480
+ },
481
+ {
482
+ "id": "post_author",
483
+ "name": "Author",
484
+ "type": "Text",
485
+ "localized": true,
486
+ "uiid": "2s5prxyzvgg"
487
+ },
488
+ {
489
+ "id": "post_body",
490
+ "name": "Body",
491
+ "type": "Text",
492
+ "localized": true,
493
+ "uiid": "32vqnqsdreo"
494
+ },
495
+ {
496
+ "id": "post_title_image",
497
+ "name": "Title Image",
498
+ "type": "Link",
499
+ "linkType": "Asset",
500
+ "required": true,
501
+ "localized": true,
502
+ "uiid": "3m8cw01d5vk"
503
+ },
504
+ {
505
+ "id": "post_second_image",
506
+ "name": "Second Image",
507
+ "type": "Link",
508
+ "linkType": "Asset",
509
+ "localized": true,
510
+ "uiid": "3gjxnofhkao"
511
+ },
512
+ {
513
+ "id": "post_category_id",
514
+ "name": "Category",
515
+ "type": "Link",
516
+ "linkType": "Entry",
517
+ "uiid": "3qu5za5cnpc"
518
+ },
519
+ {
520
+ "id": "post_assets",
521
+ "name": "Post Assets",
522
+ "type": "Array",
523
+ "items": {
524
+ "type": "Link",
525
+ "linkType": "Asset"
526
+ },
527
+ "uiid": "35ykvfj4x6o"
528
+ },
529
+ {
530
+ "id": "xxx",
531
+ "name": "xxx",
532
+ "type": "Symbol",
533
+ "uiid": "4onqde99wxs"
534
+ },
535
+ {
536
+ "id": "xxx123",
537
+ "name": "xxx123",
538
+ "type": "Symbol",
539
+ "uiid": "4o64i125l34"
540
+ },
541
+ {
542
+ "id": "ssss",
543
+ "name": "Post ssss",
544
+ "type": "Array",
545
+ "items": {
546
+ "type": "Link",
547
+ "linkType": "Asset"
548
+ },
549
+ "uiid": "2skdkwqvta8"
550
+ },
551
+ {
552
+ "name": "xxasdasd",
553
+ "id": "xxasdasd",
554
+ "type": "Boolean",
555
+ "uiid": "387exwqopa8"
556
+ }
557
+ ],
558
+ "sys": {
559
+ "id": "post_content_type",
560
+ "type": "ContentType",
561
+ "createdAt": "2014-08-18T06:52:03.545Z",
562
+ "createdBy": {
563
+ "sys": {
564
+ "type": "Link",
565
+ "linkType": "User",
566
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
567
+ }
568
+ },
569
+ "space": {
570
+ "sys": {
571
+ "type": "Link",
572
+ "linkType": "Space",
573
+ "id": "bfsvtul0c41g"
574
+ }
575
+ },
576
+ "firstPublishedAt": "2014-08-18T06:52:10.462Z",
577
+ "publishedCounter": 4,
578
+ "publishedAt": "2014-08-18T12:42:39.643Z",
579
+ "publishedBy": {
580
+ "sys": {
581
+ "type": "Link",
582
+ "linkType": "User",
583
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
584
+ }
585
+ },
586
+ "publishedVersion": 33,
587
+ "version": 35,
588
+ "updatedAt": "2014-08-19T10:19:42.592Z",
589
+ "updatedBy": {
590
+ "sys": {
591
+ "type": "Link",
592
+ "linkType": "User",
593
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
594
+ }
595
+ }
596
+ }
597
+ },
598
+ {
599
+ "name": "Updated content type name",
600
+ "description": "",
601
+ "fields": [
602
+ {
603
+ "id": "name",
604
+ "name": "Name",
605
+ "type": "Text",
606
+ "localized": true
607
+ },
608
+ {
609
+ "id": "description",
610
+ "name": "Description",
611
+ "type": "Text",
612
+ "localized": true
613
+ }
614
+ ],
615
+ "sys": {
616
+ "id": "category_content_type",
617
+ "type": "ContentType",
618
+ "createdAt": "2014-08-18T06:51:59.560Z",
619
+ "createdBy": {
620
+ "sys": {
621
+ "type": "Link",
622
+ "linkType": "User",
623
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
624
+ }
625
+ },
626
+ "space": {
627
+ "sys": {
628
+ "type": "Link",
629
+ "linkType": "Space",
630
+ "id": "bfsvtul0c41g"
631
+ }
632
+ },
633
+ "firstPublishedAt": "2014-08-18T06:52:02.517Z",
634
+ "publishedCounter": 6,
635
+ "publishedAt": "2014-08-19T11:42:07.711Z",
636
+ "publishedBy": {
637
+ "sys": {
638
+ "type": "Link",
639
+ "linkType": "User",
640
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
641
+ }
642
+ },
643
+ "publishedVersion": 33,
644
+ "version": 35,
645
+ "updatedAt": "2014-08-19T12:15:30.183Z",
646
+ "updatedBy": {
647
+ "sys": {
648
+ "type": "Link",
649
+ "linkType": "User",
650
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
651
+ }
652
+ }
653
+ }
654
+ }
655
+ ]
656
+ }
657
+ http_version:
658
+ recorded_at: Tue, 19 Aug 2014 13:24:37 GMT
659
+ - request:
660
+ method: put
661
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g
662
+ body:
663
+ encoding: UTF-8
664
+ string: '{"name":"Reload Space Name"}'
665
+ headers:
666
+ User-Agent:
667
+ - RubyContenfulManagementGem/0.0.2
668
+ Authorization:
669
+ - Bearer <ACCESS_TOKEN>
670
+ Content-Type:
671
+ - application/vnd.contentful.management.v1+json
672
+ X-Contentful-Version:
673
+ - '1'
674
+ Host:
675
+ - api.contentful.com
676
+ response:
677
+ status:
678
+ code: 200
679
+ message: OK
680
+ headers:
681
+ Server:
682
+ - nginx
683
+ Date:
684
+ - Tue, 19 Aug 2014 13:24:45 GMT
685
+ Content-Type:
686
+ - application/vnd.contentful.management.v1+json
687
+ Content-Length:
688
+ - '458'
689
+ Connection:
690
+ - keep-alive
691
+ Status:
692
+ - 200 OK
693
+ X-Contentful-Request-Id:
694
+ - 85f-1214639467
695
+ Etag:
696
+ - '"161d006d9bc4d800461b8972358d1543"'
697
+ Accept-Ranges:
698
+ - bytes
699
+ Cache-Control:
700
+ - max-age=0
701
+ Access-Control-Allow-Origin:
702
+ - "*"
703
+ Access-Control-Allow-Headers:
704
+ - 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
705
+ Access-Control-Allow-Methods:
706
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
707
+ "^access-Control-Expose-Headers":
708
+ - Etag
709
+ Access-Control-Max-Age:
710
+ - '1728000'
711
+ body:
712
+ encoding: UTF-8
713
+ string: |
714
+ {
715
+ "sys":{
716
+ "type":"Space",
717
+ "id":"bfsvtul0c41g",
718
+ "version":2,
719
+ "createdBy":{
720
+ "sys":{
721
+ "type":"Link",
722
+ "linkType":"User",
723
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
724
+ }
725
+ },
726
+ "createdAt":"2014-08-18T06:51:53Z",
727
+ "updatedBy":{
728
+ "sys":{
729
+ "type":"Link",
730
+ "linkType":"User",
731
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
732
+ }
733
+ },
734
+ "updatedAt":"2014-08-19T13:24:45Z"
735
+ },
736
+ "name":"Reload Space Name"}
737
+ http_version:
738
+ recorded_at: Tue, 19 Aug 2014 13:24:38 GMT
739
+ recorded_with: VCR 2.9.2