storageroom-to-contentful 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +41 -0
- data/.rubocop.yml +40 -0
- data/.travis.yml +6 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +77 -0
- data/LICENSE.txt +21 -0
- data/README.md +208 -0
- data/Rakefile +7 -0
- data/bin/storageroom-to-contentful +27 -0
- data/contenftul_fields_types.yml +24 -0
- data/credentials.yml +7 -0
- data/lib/contentful_importer.rb +262 -0
- data/lib/migrator.rb +46 -0
- data/lib/mime_content_type.rb +562 -0
- data/lib/storage_room_exporter.rb +96 -0
- data/lib/version.rb +3 -0
- data/spec/fixtures/vcr_cassettes/collection/export_collections.yml +53 -0
- data/spec/fixtures/vcr_cassettes/collection/get_request.yml +53 -0
- data/spec/fixtures/vcr_cassettes/entries/entries.yml +48 -0
- data/spec/fixtures/vcr_cassettes/entries/export_entries.yml +351 -0
- data/spec/fixtures/vcr_cassettes/import/content_types.yml +2612 -0
- data/spec/fixtures/vcr_cassettes/import/crate_space.yml +85 -0
- data/spec/fixtures/vcr_cassettes/import/create_entry.yml +564 -0
- data/spec/fixtures/vcr_cassettes/import/entries.yml +2212 -0
- data/spec/fixtures/vcr_cassettes/import/publish_entries.yml +601 -0
- data/spec/lib/contentful_importer_spec.rb +98 -0
- data/spec/lib/storage_room_exporter_spec.rb +152 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/support/credentials_spec.yaml +7 -0
- data/spec/support/vcr.rb +16 -0
- data/storageroom-to-contentful.gemspec +29 -0
- metadata +189 -0
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.contentful.com/spaces
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"test"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContenfulManagementGem/0.2.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
X-Contentful-Organization:
|
17
|
+
- <ORGANIZATION_ID>
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
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
|
+
- Wed, 17 Sep 2014 09:56:46 GMT
|
43
|
+
Etag:
|
44
|
+
- '"55933ea9af171dcbed0b69d60dfbf632"'
|
45
|
+
Location:
|
46
|
+
- https://api.contentful.com/spaces/fv2hfbgc3gf8
|
47
|
+
Server:
|
48
|
+
- nginx
|
49
|
+
Status:
|
50
|
+
- 201 Created
|
51
|
+
X-Contentful-Request-Id:
|
52
|
+
- 71a-918354904
|
53
|
+
Content-Length:
|
54
|
+
- '445'
|
55
|
+
Connection:
|
56
|
+
- keep-alive
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: |
|
60
|
+
{
|
61
|
+
"sys":{
|
62
|
+
"type":"Space",
|
63
|
+
"id":"fv2hfbgc3gf8",
|
64
|
+
"version":1,
|
65
|
+
"createdBy":{
|
66
|
+
"sys":{
|
67
|
+
"type":"Link",
|
68
|
+
"linkType":"User",
|
69
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"createdAt":"2014-09-17T09:56:43Z",
|
73
|
+
"updatedBy":{
|
74
|
+
"sys":{
|
75
|
+
"type":"Link",
|
76
|
+
"linkType":"User",
|
77
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
78
|
+
}
|
79
|
+
},
|
80
|
+
"updatedAt":"2014-09-17T09:56:43Z"
|
81
|
+
},
|
82
|
+
"name":"test"}
|
83
|
+
http_version:
|
84
|
+
recorded_at: Wed, 17 Sep 2014 09:57:57 GMT
|
85
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,564 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/jsdhlmknq7i6/content_types/6x5iZOCWreIA4scme2sKwI
|
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
|
+
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
|
29
|
+
Access-Control-Allow-Methods:
|
30
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Max-Age:
|
34
|
+
- '1728000'
|
35
|
+
Cf-Space-Id:
|
36
|
+
- jsdhlmknq7i6
|
37
|
+
Content-Type:
|
38
|
+
- application/vnd.contentful.management.v1+json
|
39
|
+
Date:
|
40
|
+
- Mon, 22 Sep 2014 09:51:05 GMT
|
41
|
+
Etag:
|
42
|
+
- '"27cee00ffd5ee6bcb040eabc6c1b8040"'
|
43
|
+
Server:
|
44
|
+
- nginx
|
45
|
+
X-Powered-By:
|
46
|
+
- Express
|
47
|
+
Content-Length:
|
48
|
+
- '2621'
|
49
|
+
Connection:
|
50
|
+
- keep-alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |
|
54
|
+
{
|
55
|
+
"name": "Codequest",
|
56
|
+
"description": "Testing",
|
57
|
+
"fields": [
|
58
|
+
{
|
59
|
+
"id": "name",
|
60
|
+
"name": "Name",
|
61
|
+
"type": "Text",
|
62
|
+
"uiid": "31p7bdx22v4"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"id": "number",
|
66
|
+
"name": "Number",
|
67
|
+
"type": "Integer",
|
68
|
+
"uiid": "2q9feb4f6rk"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"id": "float1",
|
72
|
+
"name": "Float",
|
73
|
+
"type": "Number",
|
74
|
+
"uiid": "3m0mqawy70g"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"id": "boolean",
|
78
|
+
"name": "Boolean",
|
79
|
+
"type": "Boolean",
|
80
|
+
"uiid": "2ji3lyfnhmo"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"id": "date",
|
84
|
+
"name": "Date",
|
85
|
+
"type": "Date",
|
86
|
+
"uiid": "4g23x5mcum8"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"id": "time",
|
90
|
+
"name": "Time",
|
91
|
+
"type": "Date",
|
92
|
+
"uiid": "3zs208icpvk"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"id": "location",
|
96
|
+
"name": "Location",
|
97
|
+
"type": "Location",
|
98
|
+
"uiid": "4ld8mrfp4w0"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"id": "file",
|
102
|
+
"name": "File",
|
103
|
+
"type": "Link",
|
104
|
+
"linkType": "Asset",
|
105
|
+
"uiid": "3yx5va536dc"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"id": "image",
|
109
|
+
"name": "Image",
|
110
|
+
"type": "Link",
|
111
|
+
"linkType": "Asset",
|
112
|
+
"uiid": "2q6930dwum8"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"id": "array",
|
116
|
+
"name": "Array",
|
117
|
+
"type": "Array",
|
118
|
+
"items": {
|
119
|
+
"type": "Symbol"
|
120
|
+
},
|
121
|
+
"uiid": "3kbn0ol55hc"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"id": "entry",
|
125
|
+
"name": "Entry",
|
126
|
+
"type": "Link",
|
127
|
+
"linkType": "Entry",
|
128
|
+
"uiid": "4seqcxy5xq8"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"name": "Entries",
|
132
|
+
"id": "entries",
|
133
|
+
"uiid": "3ujv3wllkhs",
|
134
|
+
"type": "Array",
|
135
|
+
"items": {
|
136
|
+
"type": "Link",
|
137
|
+
"linkType": "Entry"
|
138
|
+
}
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"id": "object_json",
|
142
|
+
"name": "Object",
|
143
|
+
"type": "Object",
|
144
|
+
"uiid": "4g8zucvwkqo"
|
145
|
+
}
|
146
|
+
],
|
147
|
+
"sys": {
|
148
|
+
"id": "6x5iZOCWreIA4scme2sKwI",
|
149
|
+
"type": "ContentType",
|
150
|
+
"createdAt": "2014-09-16T06:32:57.980Z",
|
151
|
+
"createdBy": {
|
152
|
+
"sys": {
|
153
|
+
"type": "Link",
|
154
|
+
"linkType": "User",
|
155
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"space": {
|
159
|
+
"sys": {
|
160
|
+
"type": "Link",
|
161
|
+
"linkType": "Space",
|
162
|
+
"id": "jsdhlmknq7i6"
|
163
|
+
}
|
164
|
+
},
|
165
|
+
"firstPublishedAt": "2014-09-16T06:34:03.018Z",
|
166
|
+
"publishedCounter": 1,
|
167
|
+
"publishedAt": "2014-09-16T06:34:03.018Z",
|
168
|
+
"publishedBy": {
|
169
|
+
"sys": {
|
170
|
+
"type": "Link",
|
171
|
+
"linkType": "User",
|
172
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
173
|
+
}
|
174
|
+
},
|
175
|
+
"publishedVersion": 17,
|
176
|
+
"version": 18,
|
177
|
+
"updatedAt": "2014-09-16T06:34:03.027Z",
|
178
|
+
"updatedBy": {
|
179
|
+
"sys": {
|
180
|
+
"type": "Link",
|
181
|
+
"linkType": "User",
|
182
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
183
|
+
}
|
184
|
+
}
|
185
|
+
},
|
186
|
+
"displayField": "name"
|
187
|
+
}
|
188
|
+
http_version:
|
189
|
+
recorded_at: Mon, 22 Sep 2014 09:52:28 GMT
|
190
|
+
- request:
|
191
|
+
method: get
|
192
|
+
uri: https://api.contentful.com/spaces/jsdhlmknq7i6/content_types/6x5iZOCWreIA4scme2sKwI
|
193
|
+
body:
|
194
|
+
encoding: US-ASCII
|
195
|
+
string: ''
|
196
|
+
headers:
|
197
|
+
User-Agent:
|
198
|
+
- RubyContenfulManagementGem/0.2.1
|
199
|
+
Authorization:
|
200
|
+
- Bearer <ACCESS_TOKEN>
|
201
|
+
Content-Type:
|
202
|
+
- application/vnd.contentful.management.v1+json
|
203
|
+
Content-Length:
|
204
|
+
- '0'
|
205
|
+
Host:
|
206
|
+
- api.contentful.com
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 200
|
210
|
+
message: OK
|
211
|
+
headers:
|
212
|
+
"^access-Control-Expose-Headers":
|
213
|
+
- Etag
|
214
|
+
Access-Control-Allow-Headers:
|
215
|
+
- 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
|
216
|
+
Access-Control-Allow-Methods:
|
217
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
218
|
+
Access-Control-Allow-Origin:
|
219
|
+
- "*"
|
220
|
+
Access-Control-Max-Age:
|
221
|
+
- '1728000'
|
222
|
+
Cf-Space-Id:
|
223
|
+
- jsdhlmknq7i6
|
224
|
+
Content-Type:
|
225
|
+
- application/vnd.contentful.management.v1+json
|
226
|
+
Date:
|
227
|
+
- Mon, 22 Sep 2014 09:51:16 GMT
|
228
|
+
Etag:
|
229
|
+
- '"27cee00ffd5ee6bcb040eabc6c1b8040"'
|
230
|
+
Server:
|
231
|
+
- nginx
|
232
|
+
X-Powered-By:
|
233
|
+
- Express
|
234
|
+
Content-Length:
|
235
|
+
- '2621'
|
236
|
+
Connection:
|
237
|
+
- keep-alive
|
238
|
+
body:
|
239
|
+
encoding: UTF-8
|
240
|
+
string: |
|
241
|
+
{
|
242
|
+
"name": "Codequest",
|
243
|
+
"description": "Testing",
|
244
|
+
"fields": [
|
245
|
+
{
|
246
|
+
"id": "name",
|
247
|
+
"name": "Name",
|
248
|
+
"type": "Text",
|
249
|
+
"uiid": "31p7bdx22v4"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"id": "number",
|
253
|
+
"name": "Number",
|
254
|
+
"type": "Integer",
|
255
|
+
"uiid": "2q9feb4f6rk"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"id": "float1",
|
259
|
+
"name": "Float",
|
260
|
+
"type": "Number",
|
261
|
+
"uiid": "3m0mqawy70g"
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"id": "boolean",
|
265
|
+
"name": "Boolean",
|
266
|
+
"type": "Boolean",
|
267
|
+
"uiid": "2ji3lyfnhmo"
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"id": "date",
|
271
|
+
"name": "Date",
|
272
|
+
"type": "Date",
|
273
|
+
"uiid": "4g23x5mcum8"
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"id": "time",
|
277
|
+
"name": "Time",
|
278
|
+
"type": "Date",
|
279
|
+
"uiid": "3zs208icpvk"
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"id": "location",
|
283
|
+
"name": "Location",
|
284
|
+
"type": "Location",
|
285
|
+
"uiid": "4ld8mrfp4w0"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"id": "file",
|
289
|
+
"name": "File",
|
290
|
+
"type": "Link",
|
291
|
+
"linkType": "Asset",
|
292
|
+
"uiid": "3yx5va536dc"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"id": "image",
|
296
|
+
"name": "Image",
|
297
|
+
"type": "Link",
|
298
|
+
"linkType": "Asset",
|
299
|
+
"uiid": "2q6930dwum8"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"id": "array",
|
303
|
+
"name": "Array",
|
304
|
+
"type": "Array",
|
305
|
+
"items": {
|
306
|
+
"type": "Symbol"
|
307
|
+
},
|
308
|
+
"uiid": "3kbn0ol55hc"
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"id": "entry",
|
312
|
+
"name": "Entry",
|
313
|
+
"type": "Link",
|
314
|
+
"linkType": "Entry",
|
315
|
+
"uiid": "4seqcxy5xq8"
|
316
|
+
},
|
317
|
+
{
|
318
|
+
"name": "Entries",
|
319
|
+
"id": "entries",
|
320
|
+
"uiid": "3ujv3wllkhs",
|
321
|
+
"type": "Array",
|
322
|
+
"items": {
|
323
|
+
"type": "Link",
|
324
|
+
"linkType": "Entry"
|
325
|
+
}
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"id": "object_json",
|
329
|
+
"name": "Object",
|
330
|
+
"type": "Object",
|
331
|
+
"uiid": "4g8zucvwkqo"
|
332
|
+
}
|
333
|
+
],
|
334
|
+
"sys": {
|
335
|
+
"id": "6x5iZOCWreIA4scme2sKwI",
|
336
|
+
"type": "ContentType",
|
337
|
+
"createdAt": "2014-09-16T06:32:57.980Z",
|
338
|
+
"createdBy": {
|
339
|
+
"sys": {
|
340
|
+
"type": "Link",
|
341
|
+
"linkType": "User",
|
342
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
343
|
+
}
|
344
|
+
},
|
345
|
+
"space": {
|
346
|
+
"sys": {
|
347
|
+
"type": "Link",
|
348
|
+
"linkType": "Space",
|
349
|
+
"id": "jsdhlmknq7i6"
|
350
|
+
}
|
351
|
+
},
|
352
|
+
"firstPublishedAt": "2014-09-16T06:34:03.018Z",
|
353
|
+
"publishedCounter": 1,
|
354
|
+
"publishedAt": "2014-09-16T06:34:03.018Z",
|
355
|
+
"publishedBy": {
|
356
|
+
"sys": {
|
357
|
+
"type": "Link",
|
358
|
+
"linkType": "User",
|
359
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
360
|
+
}
|
361
|
+
},
|
362
|
+
"publishedVersion": 17,
|
363
|
+
"version": 18,
|
364
|
+
"updatedAt": "2014-09-16T06:34:03.027Z",
|
365
|
+
"updatedBy": {
|
366
|
+
"sys": {
|
367
|
+
"type": "Link",
|
368
|
+
"linkType": "User",
|
369
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
370
|
+
}
|
371
|
+
}
|
372
|
+
},
|
373
|
+
"displayField": "name"
|
374
|
+
}
|
375
|
+
http_version:
|
376
|
+
recorded_at: Mon, 22 Sep 2014 09:52:40 GMT
|
377
|
+
- request:
|
378
|
+
method: get
|
379
|
+
uri: https://api.contentful.com/spaces/jsdhlmknq7i6/content_types/6x5iZOCWreIA4scme2sKwI
|
380
|
+
body:
|
381
|
+
encoding: US-ASCII
|
382
|
+
string: ''
|
383
|
+
headers:
|
384
|
+
User-Agent:
|
385
|
+
- RubyContenfulManagementGem/0.2.1
|
386
|
+
Authorization:
|
387
|
+
- Bearer <ACCESS_TOKEN>
|
388
|
+
Content-Type:
|
389
|
+
- application/vnd.contentful.management.v1+json
|
390
|
+
Content-Length:
|
391
|
+
- '0'
|
392
|
+
Host:
|
393
|
+
- api.contentful.com
|
394
|
+
response:
|
395
|
+
status:
|
396
|
+
code: 200
|
397
|
+
message: OK
|
398
|
+
headers:
|
399
|
+
"^access-Control-Expose-Headers":
|
400
|
+
- Etag
|
401
|
+
Access-Control-Allow-Headers:
|
402
|
+
- 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
|
403
|
+
Access-Control-Allow-Methods:
|
404
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
405
|
+
Access-Control-Allow-Origin:
|
406
|
+
- "*"
|
407
|
+
Access-Control-Max-Age:
|
408
|
+
- '1728000'
|
409
|
+
Cf-Space-Id:
|
410
|
+
- jsdhlmknq7i6
|
411
|
+
Content-Type:
|
412
|
+
- application/vnd.contentful.management.v1+json
|
413
|
+
Date:
|
414
|
+
- Mon, 22 Sep 2014 09:51:18 GMT
|
415
|
+
Etag:
|
416
|
+
- '"27cee00ffd5ee6bcb040eabc6c1b8040"'
|
417
|
+
Server:
|
418
|
+
- nginx
|
419
|
+
X-Powered-By:
|
420
|
+
- Express
|
421
|
+
Content-Length:
|
422
|
+
- '2621'
|
423
|
+
Connection:
|
424
|
+
- keep-alive
|
425
|
+
body:
|
426
|
+
encoding: UTF-8
|
427
|
+
string: |
|
428
|
+
{
|
429
|
+
"name": "Codequest",
|
430
|
+
"description": "Testing",
|
431
|
+
"fields": [
|
432
|
+
{
|
433
|
+
"id": "name",
|
434
|
+
"name": "Name",
|
435
|
+
"type": "Text",
|
436
|
+
"uiid": "31p7bdx22v4"
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"id": "number",
|
440
|
+
"name": "Number",
|
441
|
+
"type": "Integer",
|
442
|
+
"uiid": "2q9feb4f6rk"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"id": "float1",
|
446
|
+
"name": "Float",
|
447
|
+
"type": "Number",
|
448
|
+
"uiid": "3m0mqawy70g"
|
449
|
+
},
|
450
|
+
{
|
451
|
+
"id": "boolean",
|
452
|
+
"name": "Boolean",
|
453
|
+
"type": "Boolean",
|
454
|
+
"uiid": "2ji3lyfnhmo"
|
455
|
+
},
|
456
|
+
{
|
457
|
+
"id": "date",
|
458
|
+
"name": "Date",
|
459
|
+
"type": "Date",
|
460
|
+
"uiid": "4g23x5mcum8"
|
461
|
+
},
|
462
|
+
{
|
463
|
+
"id": "time",
|
464
|
+
"name": "Time",
|
465
|
+
"type": "Date",
|
466
|
+
"uiid": "3zs208icpvk"
|
467
|
+
},
|
468
|
+
{
|
469
|
+
"id": "location",
|
470
|
+
"name": "Location",
|
471
|
+
"type": "Location",
|
472
|
+
"uiid": "4ld8mrfp4w0"
|
473
|
+
},
|
474
|
+
{
|
475
|
+
"id": "file",
|
476
|
+
"name": "File",
|
477
|
+
"type": "Link",
|
478
|
+
"linkType": "Asset",
|
479
|
+
"uiid": "3yx5va536dc"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"id": "image",
|
483
|
+
"name": "Image",
|
484
|
+
"type": "Link",
|
485
|
+
"linkType": "Asset",
|
486
|
+
"uiid": "2q6930dwum8"
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"id": "array",
|
490
|
+
"name": "Array",
|
491
|
+
"type": "Array",
|
492
|
+
"items": {
|
493
|
+
"type": "Symbol"
|
494
|
+
},
|
495
|
+
"uiid": "3kbn0ol55hc"
|
496
|
+
},
|
497
|
+
{
|
498
|
+
"id": "entry",
|
499
|
+
"name": "Entry",
|
500
|
+
"type": "Link",
|
501
|
+
"linkType": "Entry",
|
502
|
+
"uiid": "4seqcxy5xq8"
|
503
|
+
},
|
504
|
+
{
|
505
|
+
"name": "Entries",
|
506
|
+
"id": "entries",
|
507
|
+
"uiid": "3ujv3wllkhs",
|
508
|
+
"type": "Array",
|
509
|
+
"items": {
|
510
|
+
"type": "Link",
|
511
|
+
"linkType": "Entry"
|
512
|
+
}
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"id": "object_json",
|
516
|
+
"name": "Object",
|
517
|
+
"type": "Object",
|
518
|
+
"uiid": "4g8zucvwkqo"
|
519
|
+
}
|
520
|
+
],
|
521
|
+
"sys": {
|
522
|
+
"id": "6x5iZOCWreIA4scme2sKwI",
|
523
|
+
"type": "ContentType",
|
524
|
+
"createdAt": "2014-09-16T06:32:57.980Z",
|
525
|
+
"createdBy": {
|
526
|
+
"sys": {
|
527
|
+
"type": "Link",
|
528
|
+
"linkType": "User",
|
529
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
530
|
+
}
|
531
|
+
},
|
532
|
+
"space": {
|
533
|
+
"sys": {
|
534
|
+
"type": "Link",
|
535
|
+
"linkType": "Space",
|
536
|
+
"id": "jsdhlmknq7i6"
|
537
|
+
}
|
538
|
+
},
|
539
|
+
"firstPublishedAt": "2014-09-16T06:34:03.018Z",
|
540
|
+
"publishedCounter": 1,
|
541
|
+
"publishedAt": "2014-09-16T06:34:03.018Z",
|
542
|
+
"publishedBy": {
|
543
|
+
"sys": {
|
544
|
+
"type": "Link",
|
545
|
+
"linkType": "User",
|
546
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
547
|
+
}
|
548
|
+
},
|
549
|
+
"publishedVersion": 17,
|
550
|
+
"version": 18,
|
551
|
+
"updatedAt": "2014-09-16T06:34:03.027Z",
|
552
|
+
"updatedBy": {
|
553
|
+
"sys": {
|
554
|
+
"type": "Link",
|
555
|
+
"linkType": "User",
|
556
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
557
|
+
}
|
558
|
+
}
|
559
|
+
},
|
560
|
+
"displayField": "name"
|
561
|
+
}
|
562
|
+
http_version:
|
563
|
+
recorded_at: Mon, 22 Sep 2014 09:52:42 GMT
|
564
|
+
recorded_with: VCR 2.9.3
|