contentful 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.README.md.swp +0 -0
- data/.gitignore +2 -0
- data/.rspec +1 -0
- data/.travis.yml +10 -0
- data/ChangeLog.md +3 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +193 -0
- data/Rakefile +30 -0
- data/contentful.gemspec +31 -0
- data/do_request.sh +5 -0
- data/doc/Contentful.html +131 -0
- data/doc/Contentful/AccessDenied.html +158 -0
- data/doc/Contentful/Array.html +346 -0
- data/doc/Contentful/Asset.html +315 -0
- data/doc/Contentful/BadRequest.html +158 -0
- data/doc/Contentful/Client.html +1407 -0
- data/doc/Contentful/ContentType.html +183 -0
- data/doc/Contentful/DynamicEntry.html +333 -0
- data/doc/Contentful/Entry.html +198 -0
- data/doc/Contentful/Error.html +413 -0
- data/doc/Contentful/Field.html +161 -0
- data/doc/Contentful/File.html +160 -0
- data/doc/Contentful/Link.html +275 -0
- data/doc/Contentful/Locale.html +161 -0
- data/doc/Contentful/NotFound.html +158 -0
- data/doc/Contentful/Request.html +669 -0
- data/doc/Contentful/Resource.html +606 -0
- data/doc/Contentful/Resource/AssetFields.html +413 -0
- data/doc/Contentful/Resource/AssetFields/ClassMethods.html +174 -0
- data/doc/Contentful/Resource/ClassMethods.html +271 -0
- data/doc/Contentful/Resource/Fields.html +398 -0
- data/doc/Contentful/Resource/Fields/ClassMethods.html +187 -0
- data/doc/Contentful/Resource/SystemProperties.html +444 -0
- data/doc/Contentful/Resource/SystemProperties/ClassMethods.html +174 -0
- data/doc/Contentful/ResourceBuilder.html +1400 -0
- data/doc/Contentful/Response.html +546 -0
- data/doc/Contentful/ServerError.html +158 -0
- data/doc/Contentful/Space.html +183 -0
- data/doc/Contentful/Support.html +198 -0
- data/doc/Contentful/Unauthorized.html +158 -0
- data/doc/Contentful/UnparsableJson.html +158 -0
- data/doc/Contentful/UnparsableResource.html +158 -0
- data/doc/_index.html +410 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +214 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +214 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +533 -0
- data/doc/top-level-namespace.html +112 -0
- data/examples/custom_classes.rb +43 -0
- data/examples/dynamic_entries.rb +126 -0
- data/examples/example_queries.rb +27 -0
- data/examples/raise_errors.rb +22 -0
- data/examples/raw_mode.rb +15 -0
- data/examples/resource_mapping.rb +33 -0
- data/lib/contentful.rb +3 -0
- data/lib/contentful/array.rb +47 -0
- data/lib/contentful/asset.rb +34 -0
- data/lib/contentful/client.rb +193 -0
- data/lib/contentful/content_type.rb +16 -0
- data/lib/contentful/dynamic_entry.rb +54 -0
- data/lib/contentful/entry.rb +12 -0
- data/lib/contentful/error.rb +52 -0
- data/lib/contentful/field.rb +16 -0
- data/lib/contentful/file.rb +13 -0
- data/lib/contentful/link.rb +20 -0
- data/lib/contentful/locale.rb +12 -0
- data/lib/contentful/location.rb +12 -0
- data/lib/contentful/request.rb +37 -0
- data/lib/contentful/resource.rb +146 -0
- data/lib/contentful/resource/asset_fields.rb +50 -0
- data/lib/contentful/resource/fields.rb +39 -0
- data/lib/contentful/resource/system_properties.rb +48 -0
- data/lib/contentful/resource_builder.rb +197 -0
- data/lib/contentful/response.rb +64 -0
- data/lib/contentful/space.rb +14 -0
- data/lib/contentful/support.rb +18 -0
- data/lib/contentful/version.rb +3 -0
- data/spec/array_spec.rb +69 -0
- data/spec/asset_spec.rb +62 -0
- data/spec/auto_includes_spec.rb +12 -0
- data/spec/client_class_spec.rb +59 -0
- data/spec/client_configuration_spec.rb +197 -0
- data/spec/coercions_spec.rb +10 -0
- data/spec/content_type_spec.rb +44 -0
- data/spec/dynamic_entry_spec.rb +34 -0
- data/spec/entry_spec.rb +53 -0
- data/spec/error_class_spec.rb +60 -0
- data/spec/error_requests_spec.rb +32 -0
- data/spec/field_spec.rb +36 -0
- data/spec/file_spec.rb +28 -0
- data/spec/fixtures/json_responses/content_type.json +83 -0
- data/spec/fixtures/json_responses/not_found.json +13 -0
- data/spec/fixtures/json_responses/nyancat.json +48 -0
- data/spec/fixtures/json_responses/unparsable.json +13 -0
- data/spec/fixtures/vcr_cassettes/array.yml +288 -0
- data/spec/fixtures/vcr_cassettes/array_page_1.yml +106 -0
- data/spec/fixtures/vcr_cassettes/array_page_2.yml +73 -0
- data/spec/fixtures/vcr_cassettes/asset.yml +96 -0
- data/spec/fixtures/vcr_cassettes/bad_request.yml +76 -0
- data/spec/fixtures/vcr_cassettes/content_type.yml +147 -0
- data/spec/fixtures/vcr_cassettes/entries.yml +561 -0
- data/spec/fixtures/vcr_cassettes/entry.yml +112 -0
- data/spec/fixtures/vcr_cassettes/entry_cache.yml +288 -0
- data/spec/fixtures/vcr_cassettes/field.yml +147 -0
- data/spec/fixtures/vcr_cassettes/locale.yml +81 -0
- data/spec/fixtures/vcr_cassettes/location.yml +305 -0
- data/spec/fixtures/vcr_cassettes/not_found.yml +71 -0
- data/spec/fixtures/vcr_cassettes/nyancat.yml +112 -0
- data/spec/fixtures/vcr_cassettes/nyancat_include.yml +112 -0
- data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +112 -0
- data/spec/fixtures/vcr_cassettes/space.yml +81 -0
- data/spec/fixtures/vcr_cassettes/unauthorized.yml +64 -0
- data/spec/link_spec.rb +40 -0
- data/spec/locale_spec.rb +20 -0
- data/spec/location_spec.rb +30 -0
- data/spec/request_spec.rb +48 -0
- data/spec/resource_spec.rb +52 -0
- data/spec/response_spec.rb +50 -0
- data/spec/space_spec.rb +36 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/support/client.rb +6 -0
- data/spec/support/json_responses.rb +11 -0
- data/spec/support/vcr.rb +16 -0
- metadata +374 -0
@@ -0,0 +1,96 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/assets/nyancat
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulGem/0.1.0
|
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
|
+
- Wed, 05 Mar 2014 21:16:37 GMT
|
25
|
+
Server:
|
26
|
+
- nginx/1.1.19
|
27
|
+
Content-Type:
|
28
|
+
- application/vnd.contentful.delivery.v1+json
|
29
|
+
X-Contentful-Request-Id:
|
30
|
+
- 85f-830796626
|
31
|
+
Etag:
|
32
|
+
- "\"7a92346b83c581d30e36cad903578c5a\""
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Allow-Headers:
|
36
|
+
- 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
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET,HEAD,OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '86400'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0
|
43
|
+
Content-Length:
|
44
|
+
- '724'
|
45
|
+
Accept-Ranges:
|
46
|
+
- bytes
|
47
|
+
Via:
|
48
|
+
- 1.1 varnish
|
49
|
+
Age:
|
50
|
+
- '117342'
|
51
|
+
X-Served-By:
|
52
|
+
- cache-fra1223-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
|
+
"fields": {
|
64
|
+
"title": "Nyan Cat",
|
65
|
+
"file": {
|
66
|
+
"fileName": "Nyan_cat_250px_frame.png",
|
67
|
+
"contentType": "image/png",
|
68
|
+
"details": {
|
69
|
+
"image": {
|
70
|
+
"width": 250,
|
71
|
+
"height": 250
|
72
|
+
},
|
73
|
+
"size": 12273
|
74
|
+
},
|
75
|
+
"url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"sys": {
|
79
|
+
"space": {
|
80
|
+
"sys": {
|
81
|
+
"type": "Link",
|
82
|
+
"linkType": "Space",
|
83
|
+
"id": "cfexampleapi"
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"type": "Asset",
|
87
|
+
"id": "nyancat",
|
88
|
+
"revision": 1,
|
89
|
+
"createdAt": "2013-09-02T14:56:34.240Z",
|
90
|
+
"updatedAt": "2013-09-02T14:56:34.240Z",
|
91
|
+
"locale": "en-US"
|
92
|
+
}
|
93
|
+
}
|
94
|
+
http_version:
|
95
|
+
recorded_at: Wed, 05 Mar 2014 21:16:37 GMT
|
96
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?some=parameter
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulGem/0.1.0
|
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: 400
|
21
|
+
message: Bad Request
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Sat, 08 Mar 2014 17:32:47 GMT
|
25
|
+
Server:
|
26
|
+
- nginx/1.1.19
|
27
|
+
Content-Type:
|
28
|
+
- application/vnd.contentful.delivery.v1+json
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Headers:
|
32
|
+
- 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
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET,HEAD,OPTIONS
|
35
|
+
Access-Control-Max-Age:
|
36
|
+
- '86400'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0
|
39
|
+
Content-Length:
|
40
|
+
- '361'
|
41
|
+
Accept-Ranges:
|
42
|
+
- bytes
|
43
|
+
Via:
|
44
|
+
- 1.1 varnish
|
45
|
+
X-Served-By:
|
46
|
+
- cache-fra1223-FRA
|
47
|
+
X-Cache:
|
48
|
+
- MISS
|
49
|
+
X-Cache-Hits:
|
50
|
+
- '0'
|
51
|
+
Connection:
|
52
|
+
- close
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |
|
56
|
+
{
|
57
|
+
"sys": {
|
58
|
+
"type": "Error",
|
59
|
+
"id": "InvalidQuery"
|
60
|
+
},
|
61
|
+
"message": "The query you sent was invalid. Probably a filter or ordering specification is not applicable to the type of a field.",
|
62
|
+
"details": {
|
63
|
+
"errors": [
|
64
|
+
{
|
65
|
+
"name": "unknown",
|
66
|
+
"path": [
|
67
|
+
"some"
|
68
|
+
]
|
69
|
+
}
|
70
|
+
]
|
71
|
+
},
|
72
|
+
"requestId": "85f-830893118"
|
73
|
+
}
|
74
|
+
http_version:
|
75
|
+
recorded_at: Sat, 08 Mar 2014 17:32:47 GMT
|
76
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,147 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/content_types/cat
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulGem/0.1.0
|
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
|
+
- Wed, 05 Mar 2014 21:16:38 GMT
|
25
|
+
Server:
|
26
|
+
- nginx/1.1.19
|
27
|
+
Content-Type:
|
28
|
+
- application/vnd.contentful.delivery.v1+json
|
29
|
+
X-Contentful-Request-Id:
|
30
|
+
- 85f-351084865
|
31
|
+
Etag:
|
32
|
+
- "\"311dab6ef7fafc9f223a427ddd896e3e\""
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Allow-Headers:
|
36
|
+
- 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
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET,HEAD,OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '86400'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0
|
43
|
+
Content-Length:
|
44
|
+
- '1578'
|
45
|
+
Accept-Ranges:
|
46
|
+
- bytes
|
47
|
+
Via:
|
48
|
+
- 1.1 varnish
|
49
|
+
Age:
|
50
|
+
- '255677'
|
51
|
+
X-Served-By:
|
52
|
+
- cache-fra1224-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
|
+
"fields": [
|
64
|
+
{
|
65
|
+
"id": "name",
|
66
|
+
"name": "Name",
|
67
|
+
"type": "Text",
|
68
|
+
"required": true,
|
69
|
+
"localized": true
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"id": "likes",
|
73
|
+
"name": "Likes",
|
74
|
+
"type": "Array",
|
75
|
+
"required": false,
|
76
|
+
"localized": false,
|
77
|
+
"items": {
|
78
|
+
"type": "Symbol"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"id": "color",
|
83
|
+
"name": "Color",
|
84
|
+
"type": "Symbol",
|
85
|
+
"required": false,
|
86
|
+
"localized": false
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"id": "bestFriend",
|
90
|
+
"name": "Best Friend",
|
91
|
+
"type": "Link",
|
92
|
+
"required": false,
|
93
|
+
"localized": false,
|
94
|
+
"linkType": "Entry"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"id": "birthday",
|
98
|
+
"name": "Birthday",
|
99
|
+
"type": "Date",
|
100
|
+
"required": false,
|
101
|
+
"localized": false
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"id": "lifes",
|
105
|
+
"name": "Lifes left",
|
106
|
+
"type": "Integer",
|
107
|
+
"required": false,
|
108
|
+
"localized": false,
|
109
|
+
"disabled": true
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"id": "lives",
|
113
|
+
"name": "Lives left",
|
114
|
+
"type": "Integer",
|
115
|
+
"required": false,
|
116
|
+
"localized": false
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"id": "image",
|
120
|
+
"name": "Image",
|
121
|
+
"required": false,
|
122
|
+
"localized": false,
|
123
|
+
"type": "Link",
|
124
|
+
"linkType": "Asset"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
"name": "Cat",
|
128
|
+
"displayField": "name",
|
129
|
+
"description": "Meow.",
|
130
|
+
"sys": {
|
131
|
+
"space": {
|
132
|
+
"sys": {
|
133
|
+
"type": "Link",
|
134
|
+
"linkType": "Space",
|
135
|
+
"id": "cfexampleapi"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"type": "ContentType",
|
139
|
+
"id": "cat",
|
140
|
+
"revision": 2,
|
141
|
+
"createdAt": "2013-06-27T22:46:12.852Z",
|
142
|
+
"updatedAt": "2013-09-02T13:14:47.863Z"
|
143
|
+
}
|
144
|
+
}
|
145
|
+
http_version:
|
146
|
+
recorded_at: Wed, 05 Mar 2014 21:16:38 GMT
|
147
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,561 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/cfexampleapi/entries
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulGem/0.1.0
|
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
|
+
- Wed, 05 Mar 2014 23:36:42 GMT
|
25
|
+
Server:
|
26
|
+
- nginx/1.1.19
|
27
|
+
Content-Type:
|
28
|
+
- application/vnd.contentful.delivery.v1+json
|
29
|
+
X-Contentful-Request-Id:
|
30
|
+
- 85f-830835761
|
31
|
+
Etag:
|
32
|
+
- "\"969d4a23d1c51238e2fe52facedac400\""
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Allow-Headers:
|
36
|
+
- 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
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET,HEAD,OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '86400'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0
|
43
|
+
Content-Length:
|
44
|
+
- '11939'
|
45
|
+
Accept-Ranges:
|
46
|
+
- bytes
|
47
|
+
Via:
|
48
|
+
- 1.1 varnish
|
49
|
+
Age:
|
50
|
+
- '3758'
|
51
|
+
X-Served-By:
|
52
|
+
- cache-fra1234-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
|
+
"total": 10,
|
67
|
+
"skip": 0,
|
68
|
+
"limit": 100,
|
69
|
+
"items": [
|
70
|
+
{
|
71
|
+
"fields": {
|
72
|
+
"name": "Garfield",
|
73
|
+
"likes": [
|
74
|
+
"lasagna"
|
75
|
+
],
|
76
|
+
"color": "orange",
|
77
|
+
"lifes": null,
|
78
|
+
"lives": 9,
|
79
|
+
"birthday": "1979-06-18T23:00:00+00:00"
|
80
|
+
},
|
81
|
+
"sys": {
|
82
|
+
"space": {
|
83
|
+
"sys": {
|
84
|
+
"type": "Link",
|
85
|
+
"linkType": "Space",
|
86
|
+
"id": "cfexampleapi"
|
87
|
+
}
|
88
|
+
},
|
89
|
+
"type": "Entry",
|
90
|
+
"contentType": {
|
91
|
+
"sys": {
|
92
|
+
"type": "Link",
|
93
|
+
"linkType": "ContentType",
|
94
|
+
"id": "cat"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"id": "garfield",
|
98
|
+
"revision": 2,
|
99
|
+
"createdAt": "2013-06-27T22:46:20.821Z",
|
100
|
+
"updatedAt": "2013-08-27T10:09:07.929Z",
|
101
|
+
"locale": "en-US"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"fields": {
|
106
|
+
"name": "Nyan Cat",
|
107
|
+
"likes": [
|
108
|
+
"rainbows",
|
109
|
+
"fish"
|
110
|
+
],
|
111
|
+
"color": "rainbow",
|
112
|
+
"bestFriend": {
|
113
|
+
"sys": {
|
114
|
+
"type": "Link",
|
115
|
+
"linkType": "Entry",
|
116
|
+
"id": "happycat"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"birthday": "2011-04-04T22:00:00+00:00",
|
120
|
+
"lives": 1337,
|
121
|
+
"image": {
|
122
|
+
"sys": {
|
123
|
+
"type": "Link",
|
124
|
+
"linkType": "Asset",
|
125
|
+
"id": "nyancat"
|
126
|
+
}
|
127
|
+
}
|
128
|
+
},
|
129
|
+
"sys": {
|
130
|
+
"space": {
|
131
|
+
"sys": {
|
132
|
+
"type": "Link",
|
133
|
+
"linkType": "Space",
|
134
|
+
"id": "cfexampleapi"
|
135
|
+
}
|
136
|
+
},
|
137
|
+
"type": "Entry",
|
138
|
+
"contentType": {
|
139
|
+
"sys": {
|
140
|
+
"type": "Link",
|
141
|
+
"linkType": "ContentType",
|
142
|
+
"id": "cat"
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"id": "nyancat",
|
146
|
+
"revision": 5,
|
147
|
+
"createdAt": "2013-06-27T22:46:19.513Z",
|
148
|
+
"updatedAt": "2013-09-04T09:19:39.027Z",
|
149
|
+
"locale": "en-US"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"fields": {
|
154
|
+
"name": "Finn",
|
155
|
+
"description": "Fearless adventurer! Defender of pancakes.",
|
156
|
+
"likes": [
|
157
|
+
"adventure"
|
158
|
+
]
|
159
|
+
},
|
160
|
+
"sys": {
|
161
|
+
"space": {
|
162
|
+
"sys": {
|
163
|
+
"type": "Link",
|
164
|
+
"linkType": "Space",
|
165
|
+
"id": "cfexampleapi"
|
166
|
+
}
|
167
|
+
},
|
168
|
+
"type": "Entry",
|
169
|
+
"contentType": {
|
170
|
+
"sys": {
|
171
|
+
"type": "Link",
|
172
|
+
"linkType": "ContentType",
|
173
|
+
"id": "human"
|
174
|
+
}
|
175
|
+
},
|
176
|
+
"id": "finn",
|
177
|
+
"revision": 6,
|
178
|
+
"createdAt": "2013-06-27T22:46:21.450Z",
|
179
|
+
"updatedAt": "2013-09-09T16:15:01.297Z",
|
180
|
+
"locale": "en-US"
|
181
|
+
}
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"sys": {
|
185
|
+
"space": {
|
186
|
+
"sys": {
|
187
|
+
"type": "Link",
|
188
|
+
"linkType": "Space",
|
189
|
+
"id": "cfexampleapi"
|
190
|
+
}
|
191
|
+
},
|
192
|
+
"type": "Entry",
|
193
|
+
"contentType": {
|
194
|
+
"sys": {
|
195
|
+
"type": "Link",
|
196
|
+
"linkType": "ContentType",
|
197
|
+
"id": "dog"
|
198
|
+
}
|
199
|
+
},
|
200
|
+
"id": "6KntaYXaHSyIw8M6eo26OK",
|
201
|
+
"revision": 2,
|
202
|
+
"createdAt": "2013-11-06T09:45:27.475Z",
|
203
|
+
"updatedAt": "2013-11-18T09:13:37.808Z",
|
204
|
+
"locale": "en-US"
|
205
|
+
},
|
206
|
+
"fields": {
|
207
|
+
"name": "Doge",
|
208
|
+
"image": {
|
209
|
+
"sys": {
|
210
|
+
"type": "Link",
|
211
|
+
"linkType": "Asset",
|
212
|
+
"id": "1x0xpXu4pSGS4OukSyWGUK"
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"description": "such json\nwow"
|
216
|
+
}
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"fields": {
|
220
|
+
"name": "Happy Cat",
|
221
|
+
"bestFriend": {
|
222
|
+
"sys": {
|
223
|
+
"type": "Link",
|
224
|
+
"linkType": "Entry",
|
225
|
+
"id": "nyancat"
|
226
|
+
}
|
227
|
+
},
|
228
|
+
"likes": [
|
229
|
+
"cheezburger"
|
230
|
+
],
|
231
|
+
"color": "gray",
|
232
|
+
"birthday": "2003-10-28T23:00:00+00:00",
|
233
|
+
"lives": 1,
|
234
|
+
"image": {
|
235
|
+
"sys": {
|
236
|
+
"type": "Link",
|
237
|
+
"linkType": "Asset",
|
238
|
+
"id": "happycat"
|
239
|
+
}
|
240
|
+
}
|
241
|
+
},
|
242
|
+
"sys": {
|
243
|
+
"space": {
|
244
|
+
"sys": {
|
245
|
+
"type": "Link",
|
246
|
+
"linkType": "Space",
|
247
|
+
"id": "cfexampleapi"
|
248
|
+
}
|
249
|
+
},
|
250
|
+
"type": "Entry",
|
251
|
+
"contentType": {
|
252
|
+
"sys": {
|
253
|
+
"type": "Link",
|
254
|
+
"linkType": "ContentType",
|
255
|
+
"id": "cat"
|
256
|
+
}
|
257
|
+
},
|
258
|
+
"id": "happycat",
|
259
|
+
"revision": 8,
|
260
|
+
"createdAt": "2013-06-27T22:46:20.171Z",
|
261
|
+
"updatedAt": "2013-11-18T15:58:02.018Z",
|
262
|
+
"locale": "en-US"
|
263
|
+
}
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"fields": {
|
267
|
+
"name": "Jake",
|
268
|
+
"description": "Bacon pancakes, makin' bacon pancakes!",
|
269
|
+
"image": {
|
270
|
+
"sys": {
|
271
|
+
"type": "Link",
|
272
|
+
"linkType": "Asset",
|
273
|
+
"id": "jake"
|
274
|
+
}
|
275
|
+
}
|
276
|
+
},
|
277
|
+
"sys": {
|
278
|
+
"space": {
|
279
|
+
"sys": {
|
280
|
+
"type": "Link",
|
281
|
+
"linkType": "Space",
|
282
|
+
"id": "cfexampleapi"
|
283
|
+
}
|
284
|
+
},
|
285
|
+
"type": "Entry",
|
286
|
+
"contentType": {
|
287
|
+
"sys": {
|
288
|
+
"type": "Link",
|
289
|
+
"linkType": "ContentType",
|
290
|
+
"id": "dog"
|
291
|
+
}
|
292
|
+
},
|
293
|
+
"id": "jake",
|
294
|
+
"revision": 5,
|
295
|
+
"createdAt": "2013-06-27T22:46:22.096Z",
|
296
|
+
"updatedAt": "2013-12-18T13:10:26.212Z",
|
297
|
+
"locale": "en-US"
|
298
|
+
}
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"sys": {
|
302
|
+
"space": {
|
303
|
+
"sys": {
|
304
|
+
"type": "Link",
|
305
|
+
"linkType": "Space",
|
306
|
+
"id": "cfexampleapi"
|
307
|
+
}
|
308
|
+
},
|
309
|
+
"type": "Entry",
|
310
|
+
"contentType": {
|
311
|
+
"sys": {
|
312
|
+
"type": "Link",
|
313
|
+
"linkType": "ContentType",
|
314
|
+
"id": "1t9IbcfdCk6m04uISSsaIK"
|
315
|
+
}
|
316
|
+
},
|
317
|
+
"id": "7qVBlCjpWE86Oseo40gAEY",
|
318
|
+
"revision": 1,
|
319
|
+
"createdAt": "2014-02-21T13:43:38.258Z",
|
320
|
+
"updatedAt": "2014-02-21T13:43:38.258Z",
|
321
|
+
"locale": "en-US"
|
322
|
+
},
|
323
|
+
"fields": {
|
324
|
+
"name": "San Francisco",
|
325
|
+
"center": {
|
326
|
+
"lat": 37.7749295,
|
327
|
+
"lon": -122.41941550000001
|
328
|
+
}
|
329
|
+
}
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"sys": {
|
333
|
+
"space": {
|
334
|
+
"sys": {
|
335
|
+
"type": "Link",
|
336
|
+
"linkType": "Space",
|
337
|
+
"id": "cfexampleapi"
|
338
|
+
}
|
339
|
+
},
|
340
|
+
"type": "Entry",
|
341
|
+
"contentType": {
|
342
|
+
"sys": {
|
343
|
+
"type": "Link",
|
344
|
+
"linkType": "ContentType",
|
345
|
+
"id": "1t9IbcfdCk6m04uISSsaIK"
|
346
|
+
}
|
347
|
+
},
|
348
|
+
"id": "4MU1s3potiUEM2G4okYOqw",
|
349
|
+
"revision": 1,
|
350
|
+
"createdAt": "2014-02-21T13:42:45.926Z",
|
351
|
+
"updatedAt": "2014-02-21T13:42:45.926Z",
|
352
|
+
"locale": "en-US"
|
353
|
+
},
|
354
|
+
"fields": {
|
355
|
+
"name": "Berlin",
|
356
|
+
"center": {
|
357
|
+
"lat": 52.52000659999999,
|
358
|
+
"lon": 13.404953999999975
|
359
|
+
}
|
360
|
+
}
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"sys": {
|
364
|
+
"space": {
|
365
|
+
"sys": {
|
366
|
+
"type": "Link",
|
367
|
+
"linkType": "Space",
|
368
|
+
"id": "cfexampleapi"
|
369
|
+
}
|
370
|
+
},
|
371
|
+
"type": "Entry",
|
372
|
+
"contentType": {
|
373
|
+
"sys": {
|
374
|
+
"type": "Link",
|
375
|
+
"linkType": "ContentType",
|
376
|
+
"id": "1t9IbcfdCk6m04uISSsaIK"
|
377
|
+
}
|
378
|
+
},
|
379
|
+
"id": "5ETMRzkl9KM4omyMwKAOki",
|
380
|
+
"revision": 1,
|
381
|
+
"createdAt": "2014-02-21T13:42:57.752Z",
|
382
|
+
"updatedAt": "2014-02-21T13:42:57.752Z",
|
383
|
+
"locale": "en-US"
|
384
|
+
},
|
385
|
+
"fields": {
|
386
|
+
"name": "London",
|
387
|
+
"center": {
|
388
|
+
"lat": 51.508515,
|
389
|
+
"lon": -0.12548719999995228
|
390
|
+
}
|
391
|
+
}
|
392
|
+
},
|
393
|
+
{
|
394
|
+
"sys": {
|
395
|
+
"space": {
|
396
|
+
"sys": {
|
397
|
+
"type": "Link",
|
398
|
+
"linkType": "Space",
|
399
|
+
"id": "cfexampleapi"
|
400
|
+
}
|
401
|
+
},
|
402
|
+
"type": "Entry",
|
403
|
+
"contentType": {
|
404
|
+
"sys": {
|
405
|
+
"type": "Link",
|
406
|
+
"linkType": "ContentType",
|
407
|
+
"id": "1t9IbcfdCk6m04uISSsaIK"
|
408
|
+
}
|
409
|
+
},
|
410
|
+
"id": "ge1xHyH3QOWucKWCCAgIG",
|
411
|
+
"revision": 1,
|
412
|
+
"createdAt": "2014-02-21T13:43:23.210Z",
|
413
|
+
"updatedAt": "2014-02-21T13:43:23.210Z",
|
414
|
+
"locale": "en-US"
|
415
|
+
},
|
416
|
+
"fields": {
|
417
|
+
"name": "Paris",
|
418
|
+
"center": {
|
419
|
+
"lat": 48.856614,
|
420
|
+
"lon": 2.3522219000000177
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
],
|
425
|
+
"includes": {
|
426
|
+
"Asset": [
|
427
|
+
{
|
428
|
+
"fields": {
|
429
|
+
"file": {
|
430
|
+
"fileName": "happycatw.jpg",
|
431
|
+
"contentType": "image/jpeg",
|
432
|
+
"details": {
|
433
|
+
"image": {
|
434
|
+
"width": 273,
|
435
|
+
"height": 397
|
436
|
+
},
|
437
|
+
"size": 59939
|
438
|
+
},
|
439
|
+
"url": "//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg"
|
440
|
+
},
|
441
|
+
"title": "Happy Cat"
|
442
|
+
},
|
443
|
+
"sys": {
|
444
|
+
"space": {
|
445
|
+
"sys": {
|
446
|
+
"type": "Link",
|
447
|
+
"linkType": "Space",
|
448
|
+
"id": "cfexampleapi"
|
449
|
+
}
|
450
|
+
},
|
451
|
+
"type": "Asset",
|
452
|
+
"id": "happycat",
|
453
|
+
"revision": 2,
|
454
|
+
"createdAt": "2013-09-02T14:56:34.267Z",
|
455
|
+
"updatedAt": "2013-09-02T15:11:24.361Z",
|
456
|
+
"locale": "en-US"
|
457
|
+
}
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"fields": {
|
461
|
+
"title": "Nyan Cat",
|
462
|
+
"file": {
|
463
|
+
"fileName": "Nyan_cat_250px_frame.png",
|
464
|
+
"contentType": "image/png",
|
465
|
+
"details": {
|
466
|
+
"image": {
|
467
|
+
"width": 250,
|
468
|
+
"height": 250
|
469
|
+
},
|
470
|
+
"size": 12273
|
471
|
+
},
|
472
|
+
"url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png"
|
473
|
+
}
|
474
|
+
},
|
475
|
+
"sys": {
|
476
|
+
"space": {
|
477
|
+
"sys": {
|
478
|
+
"type": "Link",
|
479
|
+
"linkType": "Space",
|
480
|
+
"id": "cfexampleapi"
|
481
|
+
}
|
482
|
+
},
|
483
|
+
"type": "Asset",
|
484
|
+
"id": "nyancat",
|
485
|
+
"revision": 1,
|
486
|
+
"createdAt": "2013-09-02T14:56:34.240Z",
|
487
|
+
"updatedAt": "2013-09-02T14:56:34.240Z",
|
488
|
+
"locale": "en-US"
|
489
|
+
}
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"fields": {
|
493
|
+
"title": "Jake",
|
494
|
+
"file": {
|
495
|
+
"fileName": "jake.png",
|
496
|
+
"contentType": "image/png",
|
497
|
+
"details": {
|
498
|
+
"image": {
|
499
|
+
"width": 100,
|
500
|
+
"height": 161
|
501
|
+
},
|
502
|
+
"size": 20480
|
503
|
+
},
|
504
|
+
"url": "//images.contentful.com/cfexampleapi/4hlteQAXS8iS0YCMU6QMWg/2a4d826144f014109364ccf5c891d2dd/jake.png"
|
505
|
+
}
|
506
|
+
},
|
507
|
+
"sys": {
|
508
|
+
"space": {
|
509
|
+
"sys": {
|
510
|
+
"type": "Link",
|
511
|
+
"linkType": "Space",
|
512
|
+
"id": "cfexampleapi"
|
513
|
+
}
|
514
|
+
},
|
515
|
+
"type": "Asset",
|
516
|
+
"id": "jake",
|
517
|
+
"revision": 2,
|
518
|
+
"createdAt": "2013-09-02T14:56:34.260Z",
|
519
|
+
"updatedAt": "2013-09-02T15:22:39.466Z",
|
520
|
+
"locale": "en-US"
|
521
|
+
}
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"sys": {
|
525
|
+
"space": {
|
526
|
+
"sys": {
|
527
|
+
"type": "Link",
|
528
|
+
"linkType": "Space",
|
529
|
+
"id": "cfexampleapi"
|
530
|
+
}
|
531
|
+
},
|
532
|
+
"type": "Asset",
|
533
|
+
"id": "1x0xpXu4pSGS4OukSyWGUK",
|
534
|
+
"revision": 6,
|
535
|
+
"createdAt": "2013-11-06T09:45:10.000Z",
|
536
|
+
"updatedAt": "2013-12-18T13:27:14.917Z",
|
537
|
+
"locale": "en-US"
|
538
|
+
},
|
539
|
+
"fields": {
|
540
|
+
"title": "Doge",
|
541
|
+
"file": {
|
542
|
+
"fileName": "doge.jpg",
|
543
|
+
"contentType": "image/jpeg",
|
544
|
+
"details": {
|
545
|
+
"image": {
|
546
|
+
"width": 5800,
|
547
|
+
"height": 4350
|
548
|
+
},
|
549
|
+
"size": 522943
|
550
|
+
},
|
551
|
+
"url": "//images.contentful.com/cfexampleapi/1x0xpXu4pSGS4OukSyWGUK/cc1239c6385428ef26f4180190532818/doge.jpg"
|
552
|
+
},
|
553
|
+
"description": "nice picture"
|
554
|
+
}
|
555
|
+
}
|
556
|
+
]
|
557
|
+
}
|
558
|
+
}
|
559
|
+
http_version:
|
560
|
+
recorded_at: Wed, 05 Mar 2014 23:36:42 GMT
|
561
|
+
recorded_with: VCR 2.8.0
|