contentful 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -4
- data/CHANGELOG.md +5 -0
- data/README.md +41 -1
- data/TAGS +312 -0
- data/lib/contentful/array.rb +2 -15
- data/lib/contentful/client.rb +24 -4
- data/lib/contentful/deleted_asset.rb +10 -0
- data/lib/contentful/deleted_entry.rb +10 -0
- data/lib/contentful/request.rb +7 -0
- data/lib/contentful/resource.rb +14 -2
- data/lib/contentful/resource/array_like.rb +32 -0
- data/lib/contentful/resource/fields.rb +23 -4
- data/lib/contentful/resource_builder.rb +24 -5
- data/lib/contentful/sync.rb +72 -0
- data/lib/contentful/sync_page.rb +33 -0
- data/lib/contentful/version.rb +1 -1
- data/spec/client_class_spec.rb +6 -0
- data/spec/deleted_asset_spec.rb +29 -0
- data/spec/deleted_entry_spec.rb +29 -0
- data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +174 -0
- data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +89 -0
- data/spec/fixtures/vcr_cassettes/sync_deletion.yml +191 -0
- data/spec/fixtures/vcr_cassettes/sync_page.yml +637 -0
- data/spec/fixtures/vcr_cassettes/sync_page_2.yml +71 -0
- data/spec/spec_helper.rb +0 -3
- data/spec/sync_page_spec.rb +109 -0
- data/spec/sync_spec.rb +86 -0
- metadata +89 -39
- checksums.yaml +0 -7
@@ -0,0 +1,89 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/sync?initial=true&type=DeletedEntry
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulGem/0.1.3
|
12
|
+
Authorization:
|
13
|
+
- Bearer b4c0n73n7fu1
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.delivery.v1+json
|
16
|
+
Host:
|
17
|
+
- cdn.contentful.com
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Mon, 28 Apr 2014 20:05:35 GMT
|
25
|
+
Server:
|
26
|
+
- nginx/1.1.19
|
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
|
+
- GET,HEAD,OPTIONS
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Max-Age:
|
34
|
+
- '86400'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0
|
37
|
+
Content-Type:
|
38
|
+
- application/vnd.contentful.delivery.v1+json
|
39
|
+
Etag:
|
40
|
+
- '"607d9bfac89f4ae4dadf0bb320de2058"'
|
41
|
+
X-Contentful-Request-Id:
|
42
|
+
- 85f-650106849
|
43
|
+
Content-Length:
|
44
|
+
- '233'
|
45
|
+
Accept-Ranges:
|
46
|
+
- bytes
|
47
|
+
Via:
|
48
|
+
- 1.1 varnish
|
49
|
+
Age:
|
50
|
+
- '9941'
|
51
|
+
X-Served-By:
|
52
|
+
- cache-fra1220-FRA
|
53
|
+
X-Cache:
|
54
|
+
- HIT
|
55
|
+
X-Cache-Hits:
|
56
|
+
- '1'
|
57
|
+
Vary:
|
58
|
+
- Accept-Encoding
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: |
|
62
|
+
{
|
63
|
+
"sys": {
|
64
|
+
"type": "Array"
|
65
|
+
},
|
66
|
+
"items": [
|
67
|
+
{
|
68
|
+
"sys": {
|
69
|
+
"type": "DeletedEntry",
|
70
|
+
"id": "CVebBDcQsSsu6yKKIayy",
|
71
|
+
"space": {
|
72
|
+
"sys": {
|
73
|
+
"type": "Link",
|
74
|
+
"linkType": "Space",
|
75
|
+
"id": "cfexampleapi"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"revision": 1,
|
79
|
+
"createdAt": "2013-06-23T19:21:38.254Z",
|
80
|
+
"updatedAt": "2013-06-23T19:21:38.254Z",
|
81
|
+
"deletedAt": "2013-06-23T19:21:38.254Z"
|
82
|
+
}
|
83
|
+
}
|
84
|
+
],
|
85
|
+
"nextSyncUrl": "https://cdn.contentful.com/spaces/cfexampleapi/sync?sync_token=wonDrcKnRgcSOF4-wrDCgcKefWzCgsOxwpIjw6fCr8OKUUphKXnCrE1xw7EXSgzDhcKIXMKfw4XDnAZGw5E7wqAkw6sIwpg"
|
86
|
+
}
|
87
|
+
http_version:
|
88
|
+
recorded_at: Mon, 28 Apr 2014 20:05:35 GMT
|
89
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,191 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/sync?initial=true&type=Deletion
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulGem/0.1.3
|
12
|
+
Authorization:
|
13
|
+
- Bearer b4c0n73n7fu1
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.delivery.v1+json
|
16
|
+
Host:
|
17
|
+
- cdn.contentful.com
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Mon, 21 Apr 2014 20:31:40 GMT
|
25
|
+
Server:
|
26
|
+
- nginx/1.1.19
|
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
|
+
- GET,HEAD,OPTIONS
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Max-Age:
|
34
|
+
- '86400'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0
|
37
|
+
Content-Type:
|
38
|
+
- application/vnd.contentful.delivery.v1+json
|
39
|
+
Etag:
|
40
|
+
- '"25cc3a29b1aa5b99d6d0f385ea9d2180"'
|
41
|
+
X-Contentful-Request-Id:
|
42
|
+
- 71a-635737281
|
43
|
+
Content-Length:
|
44
|
+
- '3311'
|
45
|
+
Accept-Ranges:
|
46
|
+
- bytes
|
47
|
+
Via:
|
48
|
+
- 1.1 varnish
|
49
|
+
Age:
|
50
|
+
- '0'
|
51
|
+
X-Served-By:
|
52
|
+
- cache-fra1225-FRA
|
53
|
+
X-Cache:
|
54
|
+
- MISS
|
55
|
+
X-Cache-Hits:
|
56
|
+
- '0'
|
57
|
+
Vary:
|
58
|
+
- Accept-Encoding
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: |
|
62
|
+
{
|
63
|
+
"sys": {
|
64
|
+
"type": "Array"
|
65
|
+
},
|
66
|
+
"items": [
|
67
|
+
{
|
68
|
+
"sys": {
|
69
|
+
"type": "DeletedAsset",
|
70
|
+
"id": "5c6VY0gWg0gwaIeYkUUiqG",
|
71
|
+
"space": {
|
72
|
+
"sys": {
|
73
|
+
"type": "Link",
|
74
|
+
"linkType": "Space",
|
75
|
+
"id": "cfexampleapi"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"revision": 1,
|
79
|
+
"createdAt": "2013-09-09T16:17:12.596Z",
|
80
|
+
"updatedAt": "2013-09-09T16:17:12.596Z",
|
81
|
+
"deletedAt": "2013-09-09T16:17:12.596Z"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"sys": {
|
86
|
+
"type": "DeletedAsset",
|
87
|
+
"id": "finn",
|
88
|
+
"space": {
|
89
|
+
"sys": {
|
90
|
+
"type": "Link",
|
91
|
+
"linkType": "Space",
|
92
|
+
"id": "cfexampleapi"
|
93
|
+
}
|
94
|
+
},
|
95
|
+
"revision": 1,
|
96
|
+
"createdAt": "2013-09-02T15:10:33.746Z",
|
97
|
+
"updatedAt": "2013-09-02T15:10:33.746Z",
|
98
|
+
"deletedAt": "2013-09-02T15:10:33.746Z"
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"sys": {
|
103
|
+
"type": "DeletedAsset",
|
104
|
+
"id": "3MZPnjZTIskAIIkuuosCss",
|
105
|
+
"space": {
|
106
|
+
"sys": {
|
107
|
+
"type": "Link",
|
108
|
+
"linkType": "Space",
|
109
|
+
"id": "cfexampleapi"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"revision": 1,
|
113
|
+
"createdAt": "2013-09-02T14:55:34.643Z",
|
114
|
+
"updatedAt": "2013-09-02T14:55:34.643Z",
|
115
|
+
"deletedAt": "2013-09-02T14:55:34.643Z"
|
116
|
+
}
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"sys": {
|
120
|
+
"type": "DeletedAsset",
|
121
|
+
"id": "4gp6taAwW4CmSgumq2ekUm",
|
122
|
+
"space": {
|
123
|
+
"sys": {
|
124
|
+
"type": "Link",
|
125
|
+
"linkType": "Space",
|
126
|
+
"id": "cfexampleapi"
|
127
|
+
}
|
128
|
+
},
|
129
|
+
"revision": 2,
|
130
|
+
"createdAt": "2013-09-02T14:55:34.620Z",
|
131
|
+
"updatedAt": "2013-09-02T14:55:34.620Z",
|
132
|
+
"deletedAt": "2013-09-02T14:55:34.620Z"
|
133
|
+
}
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"sys": {
|
137
|
+
"type": "DeletedAsset",
|
138
|
+
"id": "1uf1qqyZuEuiwmigoUYkeu",
|
139
|
+
"space": {
|
140
|
+
"sys": {
|
141
|
+
"type": "Link",
|
142
|
+
"linkType": "Space",
|
143
|
+
"id": "cfexampleapi"
|
144
|
+
}
|
145
|
+
},
|
146
|
+
"revision": 1,
|
147
|
+
"createdAt": "2013-09-02T14:55:34.307Z",
|
148
|
+
"updatedAt": "2013-09-02T14:55:34.307Z",
|
149
|
+
"deletedAt": "2013-09-02T14:55:34.307Z"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"sys": {
|
154
|
+
"type": "DeletedAsset",
|
155
|
+
"id": "4hlteQAXS8iS0YCMU6QMWg",
|
156
|
+
"space": {
|
157
|
+
"sys": {
|
158
|
+
"type": "Link",
|
159
|
+
"linkType": "Space",
|
160
|
+
"id": "cfexampleapi"
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"revision": 1,
|
164
|
+
"createdAt": "2013-09-02T14:55:34.278Z",
|
165
|
+
"updatedAt": "2013-09-02T14:55:34.278Z",
|
166
|
+
"deletedAt": "2013-09-02T14:55:34.278Z"
|
167
|
+
}
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"sys": {
|
171
|
+
"type": "DeletedEntry",
|
172
|
+
"id": "CVebBDcQsSsu6yKKIayy",
|
173
|
+
"space": {
|
174
|
+
"sys": {
|
175
|
+
"type": "Link",
|
176
|
+
"linkType": "Space",
|
177
|
+
"id": "cfexampleapi"
|
178
|
+
}
|
179
|
+
},
|
180
|
+
"revision": 1,
|
181
|
+
"createdAt": "2013-06-23T19:21:38.254Z",
|
182
|
+
"updatedAt": "2013-06-23T19:21:38.254Z",
|
183
|
+
"deletedAt": "2013-06-23T19:21:38.254Z"
|
184
|
+
}
|
185
|
+
}
|
186
|
+
],
|
187
|
+
"nextSyncUrl": "https://cdn.contentful.com/spaces/cfexampleapi/sync?sync_token=w5ZGw6JFwqZmVcKsE8Kow4grw45QdybDscOqw6vDvUcbEzolwqs8UsKNIsOuwow-w7IXwrfDncOgWsKOwpDDg8Kjw6zDvxDDusKqccOMwrV_wp9ywoRlfsKVAsOnHcOAwpLCocO0wrHClzpqwrUAw5_DiyHCoznCmRVHw6A"
|
188
|
+
}
|
189
|
+
http_version:
|
190
|
+
recorded_at: Mon, 21 Apr 2014 20:31:40 GMT
|
191
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,637 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/sync?initial=true
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulGem/0.1.3
|
12
|
+
Authorization:
|
13
|
+
- Bearer b4c0n73n7fu1
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.delivery.v1+json
|
16
|
+
Host:
|
17
|
+
- cdn.contentful.com
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Mon, 21 Apr 2014 19:52:28 GMT
|
25
|
+
Server:
|
26
|
+
- nginx/1.1.19
|
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
|
+
- GET,HEAD,OPTIONS
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Max-Age:
|
34
|
+
- '86400'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0
|
37
|
+
Content-Type:
|
38
|
+
- application/vnd.contentful.delivery.v1+json
|
39
|
+
Etag:
|
40
|
+
- '"8cc03113b9eb6da94926dd27dda2f601"'
|
41
|
+
X-Contentful-Request-Id:
|
42
|
+
- 85f-649737436
|
43
|
+
Content-Length:
|
44
|
+
- '13208'
|
45
|
+
Accept-Ranges:
|
46
|
+
- bytes
|
47
|
+
Via:
|
48
|
+
- 1.1 varnish
|
49
|
+
Age:
|
50
|
+
- '0'
|
51
|
+
X-Served-By:
|
52
|
+
- cache-fra1225-FRA
|
53
|
+
X-Cache:
|
54
|
+
- MISS
|
55
|
+
X-Cache-Hits:
|
56
|
+
- '0'
|
57
|
+
Vary:
|
58
|
+
- Accept-Encoding
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: |
|
62
|
+
{
|
63
|
+
"sys": {
|
64
|
+
"type": "Array"
|
65
|
+
},
|
66
|
+
"items": [
|
67
|
+
{
|
68
|
+
"sys": {
|
69
|
+
"space": {
|
70
|
+
"sys": {
|
71
|
+
"type": "Link",
|
72
|
+
"linkType": "Space",
|
73
|
+
"id": "cfexampleapi"
|
74
|
+
}
|
75
|
+
},
|
76
|
+
"type": "Entry",
|
77
|
+
"contentType": {
|
78
|
+
"sys": {
|
79
|
+
"type": "Link",
|
80
|
+
"linkType": "ContentType",
|
81
|
+
"id": "1t9IbcfdCk6m04uISSsaIK"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"id": "5ETMRzkl9KM4omyMwKAOki",
|
85
|
+
"revision": 2,
|
86
|
+
"createdAt": "2014-02-21T13:42:57.752Z",
|
87
|
+
"updatedAt": "2014-04-16T12:44:02.691Z"
|
88
|
+
},
|
89
|
+
"fields": {
|
90
|
+
"name": {
|
91
|
+
"en-US": "London"
|
92
|
+
},
|
93
|
+
"center": {
|
94
|
+
"en-US": {
|
95
|
+
"lat": 51.508515,
|
96
|
+
"lon": -0.12548719999995228
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"sys": {
|
103
|
+
"space": {
|
104
|
+
"sys": {
|
105
|
+
"type": "Link",
|
106
|
+
"linkType": "Space",
|
107
|
+
"id": "cfexampleapi"
|
108
|
+
}
|
109
|
+
},
|
110
|
+
"type": "Entry",
|
111
|
+
"contentType": {
|
112
|
+
"sys": {
|
113
|
+
"type": "Link",
|
114
|
+
"linkType": "ContentType",
|
115
|
+
"id": "1t9IbcfdCk6m04uISSsaIK"
|
116
|
+
}
|
117
|
+
},
|
118
|
+
"id": "7qVBlCjpWE86Oseo40gAEY",
|
119
|
+
"revision": 2,
|
120
|
+
"createdAt": "2014-02-21T13:43:38.258Z",
|
121
|
+
"updatedAt": "2014-04-15T08:22:22.010Z"
|
122
|
+
},
|
123
|
+
"fields": {
|
124
|
+
"name": {
|
125
|
+
"en-US": "San Francisco"
|
126
|
+
},
|
127
|
+
"center": {
|
128
|
+
"en-US": {
|
129
|
+
"lat": 37.7749295,
|
130
|
+
"lon": -122.41941550000001
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"sys": {
|
137
|
+
"space": {
|
138
|
+
"sys": {
|
139
|
+
"type": "Link",
|
140
|
+
"linkType": "Space",
|
141
|
+
"id": "cfexampleapi"
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"type": "Entry",
|
145
|
+
"contentType": {
|
146
|
+
"sys": {
|
147
|
+
"type": "Link",
|
148
|
+
"linkType": "ContentType",
|
149
|
+
"id": "1t9IbcfdCk6m04uISSsaIK"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"id": "ge1xHyH3QOWucKWCCAgIG",
|
153
|
+
"revision": 1,
|
154
|
+
"createdAt": "2014-02-21T13:43:23.210Z",
|
155
|
+
"updatedAt": "2014-02-21T13:43:23.210Z"
|
156
|
+
},
|
157
|
+
"fields": {
|
158
|
+
"name": {
|
159
|
+
"en-US": "Paris"
|
160
|
+
},
|
161
|
+
"center": {
|
162
|
+
"en-US": {
|
163
|
+
"lat": 48.856614,
|
164
|
+
"lon": 2.3522219000000177
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"sys": {
|
171
|
+
"space": {
|
172
|
+
"sys": {
|
173
|
+
"type": "Link",
|
174
|
+
"linkType": "Space",
|
175
|
+
"id": "cfexampleapi"
|
176
|
+
}
|
177
|
+
},
|
178
|
+
"type": "Entry",
|
179
|
+
"contentType": {
|
180
|
+
"sys": {
|
181
|
+
"type": "Link",
|
182
|
+
"linkType": "ContentType",
|
183
|
+
"id": "1t9IbcfdCk6m04uISSsaIK"
|
184
|
+
}
|
185
|
+
},
|
186
|
+
"id": "4MU1s3potiUEM2G4okYOqw",
|
187
|
+
"revision": 1,
|
188
|
+
"createdAt": "2014-02-21T13:42:45.926Z",
|
189
|
+
"updatedAt": "2014-02-21T13:42:45.926Z"
|
190
|
+
},
|
191
|
+
"fields": {
|
192
|
+
"name": {
|
193
|
+
"en-US": "Berlin"
|
194
|
+
},
|
195
|
+
"center": {
|
196
|
+
"en-US": {
|
197
|
+
"lat": 52.52000659999999,
|
198
|
+
"lon": 13.404953999999975
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"sys": {
|
205
|
+
"space": {
|
206
|
+
"sys": {
|
207
|
+
"type": "Link",
|
208
|
+
"linkType": "Space",
|
209
|
+
"id": "cfexampleapi"
|
210
|
+
}
|
211
|
+
},
|
212
|
+
"type": "Asset",
|
213
|
+
"id": "1x0xpXu4pSGS4OukSyWGUK",
|
214
|
+
"revision": 6,
|
215
|
+
"createdAt": "2013-11-06T09:45:10.000Z",
|
216
|
+
"updatedAt": "2013-12-18T13:27:14.917Z"
|
217
|
+
},
|
218
|
+
"fields": {
|
219
|
+
"title": {
|
220
|
+
"en-US": "Doge"
|
221
|
+
},
|
222
|
+
"file": {
|
223
|
+
"en-US": {
|
224
|
+
"fileName": "doge.jpg",
|
225
|
+
"contentType": "image/jpeg",
|
226
|
+
"details": {
|
227
|
+
"image": {
|
228
|
+
"width": 5800,
|
229
|
+
"height": 4350
|
230
|
+
},
|
231
|
+
"size": 522943
|
232
|
+
},
|
233
|
+
"url": "//images.contentful.com/cfexampleapi/1x0xpXu4pSGS4OukSyWGUK/cc1239c6385428ef26f4180190532818/doge.jpg"
|
234
|
+
}
|
235
|
+
},
|
236
|
+
"description": {
|
237
|
+
"en-US": "nice picture"
|
238
|
+
}
|
239
|
+
}
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"fields": {
|
243
|
+
"name": {
|
244
|
+
"en-US": "Jake"
|
245
|
+
},
|
246
|
+
"description": {
|
247
|
+
"en-US": "Bacon pancakes, makin' bacon pancakes!"
|
248
|
+
},
|
249
|
+
"image": {
|
250
|
+
"en-US": {
|
251
|
+
"sys": {
|
252
|
+
"type": "Link",
|
253
|
+
"linkType": "Asset",
|
254
|
+
"id": "jake"
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}
|
258
|
+
},
|
259
|
+
"sys": {
|
260
|
+
"space": {
|
261
|
+
"sys": {
|
262
|
+
"type": "Link",
|
263
|
+
"linkType": "Space",
|
264
|
+
"id": "cfexampleapi"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
"type": "Entry",
|
268
|
+
"contentType": {
|
269
|
+
"sys": {
|
270
|
+
"type": "Link",
|
271
|
+
"linkType": "ContentType",
|
272
|
+
"id": "dog"
|
273
|
+
}
|
274
|
+
},
|
275
|
+
"id": "jake",
|
276
|
+
"revision": 5,
|
277
|
+
"createdAt": "2013-06-27T22:46:22.096Z",
|
278
|
+
"updatedAt": "2013-12-18T13:10:26.212Z"
|
279
|
+
}
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"fields": {
|
283
|
+
"name": {
|
284
|
+
"en-US": "Happy Cat",
|
285
|
+
"tlh": "Quch vIghro'"
|
286
|
+
},
|
287
|
+
"bestFriend": {
|
288
|
+
"en-US": {
|
289
|
+
"sys": {
|
290
|
+
"type": "Link",
|
291
|
+
"linkType": "Entry",
|
292
|
+
"id": "nyancat"
|
293
|
+
}
|
294
|
+
}
|
295
|
+
},
|
296
|
+
"likes": {
|
297
|
+
"en-US": [
|
298
|
+
"cheezburger"
|
299
|
+
]
|
300
|
+
},
|
301
|
+
"color": {
|
302
|
+
"en-US": "gray"
|
303
|
+
},
|
304
|
+
"birthday": {
|
305
|
+
"en-US": "2003-10-28T23:00:00+00:00"
|
306
|
+
},
|
307
|
+
"lives": {
|
308
|
+
"en-US": 1
|
309
|
+
},
|
310
|
+
"image": {
|
311
|
+
"en-US": {
|
312
|
+
"sys": {
|
313
|
+
"type": "Link",
|
314
|
+
"linkType": "Asset",
|
315
|
+
"id": "happycat"
|
316
|
+
}
|
317
|
+
}
|
318
|
+
}
|
319
|
+
},
|
320
|
+
"sys": {
|
321
|
+
"space": {
|
322
|
+
"sys": {
|
323
|
+
"type": "Link",
|
324
|
+
"linkType": "Space",
|
325
|
+
"id": "cfexampleapi"
|
326
|
+
}
|
327
|
+
},
|
328
|
+
"type": "Entry",
|
329
|
+
"contentType": {
|
330
|
+
"sys": {
|
331
|
+
"type": "Link",
|
332
|
+
"linkType": "ContentType",
|
333
|
+
"id": "cat"
|
334
|
+
}
|
335
|
+
},
|
336
|
+
"id": "happycat",
|
337
|
+
"revision": 8,
|
338
|
+
"createdAt": "2013-06-27T22:46:20.171Z",
|
339
|
+
"updatedAt": "2013-11-18T15:58:02.018Z"
|
340
|
+
}
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"sys": {
|
344
|
+
"space": {
|
345
|
+
"sys": {
|
346
|
+
"type": "Link",
|
347
|
+
"linkType": "Space",
|
348
|
+
"id": "cfexampleapi"
|
349
|
+
}
|
350
|
+
},
|
351
|
+
"type": "Entry",
|
352
|
+
"contentType": {
|
353
|
+
"sys": {
|
354
|
+
"type": "Link",
|
355
|
+
"linkType": "ContentType",
|
356
|
+
"id": "dog"
|
357
|
+
}
|
358
|
+
},
|
359
|
+
"id": "6KntaYXaHSyIw8M6eo26OK",
|
360
|
+
"revision": 2,
|
361
|
+
"createdAt": "2013-11-06T09:45:27.475Z",
|
362
|
+
"updatedAt": "2013-11-18T09:13:37.808Z"
|
363
|
+
},
|
364
|
+
"fields": {
|
365
|
+
"name": {
|
366
|
+
"en-US": "Doge"
|
367
|
+
},
|
368
|
+
"image": {
|
369
|
+
"en-US": {
|
370
|
+
"sys": {
|
371
|
+
"type": "Link",
|
372
|
+
"linkType": "Asset",
|
373
|
+
"id": "1x0xpXu4pSGS4OukSyWGUK"
|
374
|
+
}
|
375
|
+
}
|
376
|
+
},
|
377
|
+
"description": {
|
378
|
+
"en-US": "such json\nwow"
|
379
|
+
}
|
380
|
+
}
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"fields": {
|
384
|
+
"name": {
|
385
|
+
"en-US": "Finn"
|
386
|
+
},
|
387
|
+
"description": {
|
388
|
+
"en-US": "Fearless adventurer! Defender of pancakes."
|
389
|
+
},
|
390
|
+
"likes": {
|
391
|
+
"en-US": [
|
392
|
+
"adventure"
|
393
|
+
]
|
394
|
+
},
|
395
|
+
"image": {}
|
396
|
+
},
|
397
|
+
"sys": {
|
398
|
+
"space": {
|
399
|
+
"sys": {
|
400
|
+
"type": "Link",
|
401
|
+
"linkType": "Space",
|
402
|
+
"id": "cfexampleapi"
|
403
|
+
}
|
404
|
+
},
|
405
|
+
"type": "Entry",
|
406
|
+
"contentType": {
|
407
|
+
"sys": {
|
408
|
+
"type": "Link",
|
409
|
+
"linkType": "ContentType",
|
410
|
+
"id": "human"
|
411
|
+
}
|
412
|
+
},
|
413
|
+
"id": "finn",
|
414
|
+
"revision": 6,
|
415
|
+
"createdAt": "2013-06-27T22:46:21.450Z",
|
416
|
+
"updatedAt": "2013-09-09T16:15:01.297Z"
|
417
|
+
}
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"fields": {
|
421
|
+
"name": {
|
422
|
+
"en-US": "Nyan Cat",
|
423
|
+
"tlh": "Nyan vIghro'"
|
424
|
+
},
|
425
|
+
"likes": {
|
426
|
+
"en-US": [
|
427
|
+
"rainbows",
|
428
|
+
"fish"
|
429
|
+
]
|
430
|
+
},
|
431
|
+
"color": {
|
432
|
+
"en-US": "rainbow"
|
433
|
+
},
|
434
|
+
"bestFriend": {
|
435
|
+
"en-US": {
|
436
|
+
"sys": {
|
437
|
+
"type": "Link",
|
438
|
+
"linkType": "Entry",
|
439
|
+
"id": "happycat"
|
440
|
+
}
|
441
|
+
}
|
442
|
+
},
|
443
|
+
"birthday": {
|
444
|
+
"en-US": "2011-04-04T22:00:00+00:00"
|
445
|
+
},
|
446
|
+
"lives": {
|
447
|
+
"en-US": 1337
|
448
|
+
},
|
449
|
+
"image": {
|
450
|
+
"en-US": {
|
451
|
+
"sys": {
|
452
|
+
"type": "Link",
|
453
|
+
"linkType": "Asset",
|
454
|
+
"id": "nyancat"
|
455
|
+
}
|
456
|
+
}
|
457
|
+
}
|
458
|
+
},
|
459
|
+
"sys": {
|
460
|
+
"space": {
|
461
|
+
"sys": {
|
462
|
+
"type": "Link",
|
463
|
+
"linkType": "Space",
|
464
|
+
"id": "cfexampleapi"
|
465
|
+
}
|
466
|
+
},
|
467
|
+
"type": "Entry",
|
468
|
+
"contentType": {
|
469
|
+
"sys": {
|
470
|
+
"type": "Link",
|
471
|
+
"linkType": "ContentType",
|
472
|
+
"id": "cat"
|
473
|
+
}
|
474
|
+
},
|
475
|
+
"id": "nyancat",
|
476
|
+
"revision": 5,
|
477
|
+
"createdAt": "2013-06-27T22:46:19.513Z",
|
478
|
+
"updatedAt": "2013-09-04T09:19:39.027Z"
|
479
|
+
}
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"fields": {
|
483
|
+
"title": {
|
484
|
+
"en-US": "Jake"
|
485
|
+
},
|
486
|
+
"file": {
|
487
|
+
"en-US": {
|
488
|
+
"fileName": "jake.png",
|
489
|
+
"contentType": "image/png",
|
490
|
+
"details": {
|
491
|
+
"image": {
|
492
|
+
"width": 100,
|
493
|
+
"height": 161
|
494
|
+
},
|
495
|
+
"size": 20480
|
496
|
+
},
|
497
|
+
"url": "//images.contentful.com/cfexampleapi/4hlteQAXS8iS0YCMU6QMWg/2a4d826144f014109364ccf5c891d2dd/jake.png"
|
498
|
+
}
|
499
|
+
}
|
500
|
+
},
|
501
|
+
"sys": {
|
502
|
+
"space": {
|
503
|
+
"sys": {
|
504
|
+
"type": "Link",
|
505
|
+
"linkType": "Space",
|
506
|
+
"id": "cfexampleapi"
|
507
|
+
}
|
508
|
+
},
|
509
|
+
"type": "Asset",
|
510
|
+
"id": "jake",
|
511
|
+
"revision": 2,
|
512
|
+
"createdAt": "2013-09-02T14:56:34.260Z",
|
513
|
+
"updatedAt": "2013-09-02T15:22:39.466Z"
|
514
|
+
}
|
515
|
+
},
|
516
|
+
{
|
517
|
+
"fields": {
|
518
|
+
"file": {
|
519
|
+
"en-US": {
|
520
|
+
"fileName": "happycatw.jpg",
|
521
|
+
"contentType": "image/jpeg",
|
522
|
+
"details": {
|
523
|
+
"image": {
|
524
|
+
"width": 273,
|
525
|
+
"height": 397
|
526
|
+
},
|
527
|
+
"size": 59939
|
528
|
+
},
|
529
|
+
"url": "//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg"
|
530
|
+
}
|
531
|
+
},
|
532
|
+
"title": {
|
533
|
+
"en-US": "Happy Cat"
|
534
|
+
}
|
535
|
+
},
|
536
|
+
"sys": {
|
537
|
+
"space": {
|
538
|
+
"sys": {
|
539
|
+
"type": "Link",
|
540
|
+
"linkType": "Space",
|
541
|
+
"id": "cfexampleapi"
|
542
|
+
}
|
543
|
+
},
|
544
|
+
"type": "Asset",
|
545
|
+
"id": "happycat",
|
546
|
+
"revision": 2,
|
547
|
+
"createdAt": "2013-09-02T14:56:34.267Z",
|
548
|
+
"updatedAt": "2013-09-02T15:11:24.361Z"
|
549
|
+
}
|
550
|
+
},
|
551
|
+
{
|
552
|
+
"fields": {
|
553
|
+
"title": {
|
554
|
+
"en-US": "Nyan Cat"
|
555
|
+
},
|
556
|
+
"file": {
|
557
|
+
"en-US": {
|
558
|
+
"fileName": "Nyan_cat_250px_frame.png",
|
559
|
+
"contentType": "image/png",
|
560
|
+
"details": {
|
561
|
+
"image": {
|
562
|
+
"width": 250,
|
563
|
+
"height": 250
|
564
|
+
},
|
565
|
+
"size": 12273
|
566
|
+
},
|
567
|
+
"url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png"
|
568
|
+
}
|
569
|
+
}
|
570
|
+
},
|
571
|
+
"sys": {
|
572
|
+
"space": {
|
573
|
+
"sys": {
|
574
|
+
"type": "Link",
|
575
|
+
"linkType": "Space",
|
576
|
+
"id": "cfexampleapi"
|
577
|
+
}
|
578
|
+
},
|
579
|
+
"type": "Asset",
|
580
|
+
"id": "nyancat",
|
581
|
+
"revision": 1,
|
582
|
+
"createdAt": "2013-09-02T14:56:34.240Z",
|
583
|
+
"updatedAt": "2013-09-02T14:56:34.240Z"
|
584
|
+
}
|
585
|
+
},
|
586
|
+
{
|
587
|
+
"fields": {
|
588
|
+
"name": {
|
589
|
+
"en-US": "Garfield",
|
590
|
+
"tlh": "Garfield"
|
591
|
+
},
|
592
|
+
"likes": {
|
593
|
+
"en-US": [
|
594
|
+
"lasagna"
|
595
|
+
]
|
596
|
+
},
|
597
|
+
"color": {
|
598
|
+
"en-US": "orange"
|
599
|
+
},
|
600
|
+
"lifes": {
|
601
|
+
"en-US": null
|
602
|
+
},
|
603
|
+
"lives": {
|
604
|
+
"en-US": 9
|
605
|
+
},
|
606
|
+
"birthday": {
|
607
|
+
"en-US": "1979-06-18T23:00:00+00:00"
|
608
|
+
}
|
609
|
+
},
|
610
|
+
"sys": {
|
611
|
+
"space": {
|
612
|
+
"sys": {
|
613
|
+
"type": "Link",
|
614
|
+
"linkType": "Space",
|
615
|
+
"id": "cfexampleapi"
|
616
|
+
}
|
617
|
+
},
|
618
|
+
"type": "Entry",
|
619
|
+
"contentType": {
|
620
|
+
"sys": {
|
621
|
+
"type": "Link",
|
622
|
+
"linkType": "ContentType",
|
623
|
+
"id": "cat"
|
624
|
+
}
|
625
|
+
},
|
626
|
+
"id": "garfield",
|
627
|
+
"revision": 2,
|
628
|
+
"createdAt": "2013-06-27T22:46:20.821Z",
|
629
|
+
"updatedAt": "2013-08-27T10:09:07.929Z"
|
630
|
+
}
|
631
|
+
}
|
632
|
+
],
|
633
|
+
"nextPageUrl": "https://cdn.contentful.com/spaces/cfexampleapi/sync?sync_token=w5ZGw6JFwqZmVcKsE8Kow4grw45QdybCr8Okw6AYwqbDksO3ehvDpUPCgcKsKXbCiAwPC8K2w4LDvsOkw6nCjhPDpcOQADElWsOoU8KGR3HCtsOAwqd6wp_Dulp8w6LDsF_CtsK7Kk05wrMvwrLClMOgG2_Dn2sGPg"
|
634
|
+
}
|
635
|
+
http_version:
|
636
|
+
recorded_at: Mon, 21 Apr 2014 19:52:28 GMT
|
637
|
+
recorded_with: VCR 2.9.0
|