diff --git a/CHANGELOG.md b/CHANGELOG.md index dea48ae8..f55d176c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/contentful/contentful.php/compare/4.0.1...HEAD) +### Fixed + +* Resolving links from an entry using non-default locale caused the SDK to wrongly assume the `locale=*`. Now this is fixed, and the entry will use either its current locale, if set, or the the `locale=*` if no locales are currently configured. + ## [4.0.1](https://github.com/contentful/contentful.php/tree/4.0.1) (2018-11-08) ### Fixed diff --git a/src/Resource/Entry.php b/src/Resource/Entry.php index 31ec4ca2..53ffad0c 100644 --- a/src/Resource/Entry.php +++ b/src/Resource/Entry.php @@ -337,11 +337,12 @@ private function getUnresolvedField(Field $field, string $locale = \null) */ private function resolveFieldLinks($field, string $locale = \null) { - // If there is no locale, it means the current entry - // has been requested using the * locale, so we explicitly set it - // to avoid issues with the resource pool + // If no locale is set, to resolve links we use either the special "*" locale, + // or the default one, depending whether this entry was built using a locale or not if (\null === $locale) { - $locale = '*'; + $locale = \null === $this->sys->getLocale() + ? '*' + : $this->getLocale(); } if ($field instanceof Link) { diff --git a/src/Resource/LocalizedResource.php b/src/Resource/LocalizedResource.php index 0c8727c6..e381fac8 100644 --- a/src/Resource/LocalizedResource.php +++ b/src/Resource/LocalizedResource.php @@ -71,6 +71,8 @@ public function setLocale($locale) /** * The locale code for the currently set locale. + * It will be either the default locale if the resource was fetched using "locale=*", + * or the one that was used in the API request. * * @return string */ diff --git a/tests/E2E/EntryTest.php b/tests/E2E/EntryTest.php index 999ffba4..0a3126c6 100644 --- a/tests/E2E/EntryTest.php +++ b/tests/E2E/EntryTest.php @@ -454,4 +454,397 @@ public function testPartialBuildingWithNonDefaultLocale() $this->assertTrue($entry->has('boolean')); $this->assertTrue($entry->get('boolean')); } + + /** + * @vcr entry_non_default_locale_on_linked_entries.json + */ + public function testNonDefaultLocaleOnLinkedEntries() + { + $client = $this->getClient('88dyiqcr7go8'); + + $entry = $client->getEntry('4SRm6VeGUwGIyEaCekO6es', 'it'); + + $this->assertSame('it', $entry->getLocale()); + $this->assertSame('it', $entry->getSystemProperties()->getLocale()); + + /** @var Entry[] $related */ + $related = $entry->get('related'); + $this->assertCount(2, $related); + + foreach ($related as $relatedEntry) { + $this->assertSame('it', $relatedEntry->getLocale()); + $this->assertSame('it', $relatedEntry->getSystemProperties()->getLocale()); + } + + $entry = $client->getEntry('4SRm6VeGUwGIyEaCekO6es', '*'); + + $this->assertSame('en-US', $entry->getLocale()); + $this->assertNull($entry->getSystemProperties()->getLocale()); + + $this->assertSame('Building', $entry->get('title', 'en-US')); + $this->assertSame('Edificio', $entry->get('title', 'it')); + + // By not specifing the locale, the entry should use its current setting, + // and in this case that "locale=*" + /** @var Entry[] $related */ + $related = $entry->get('related'); + $this->assertCount(2, $related); + + foreach ($related as $relatedEntry) { + $this->assertSame('en-US', $relatedEntry->getLocale()); + $this->assertNull($relatedEntry->getSystemProperties()->getLocale()); + } + + /** @var Entry[] $related */ + $related = $entry->get('related', 'it'); + $this->assertCount(2, $related); + + foreach ($related as $relatedEntry) { + $this->assertSame('it', $relatedEntry->getLocale()); + $this->assertSame('it', $relatedEntry->getSystemProperties()->getLocale()); + } + + // There should be 7 API calls: + // 1) Fetch main entry with locale "it" + // 2) Fetch space + // 3) Fetch locales + // 4) Fetch content type + // 5) Fetch related entries with locale "it" + // 6) Fetch main entry with locale "*" + // 7) Fetch related entries with locale "*" + // + // There should *not* be another call for related entries with locale "it", + // as the resource pool should have those cached already. + $this->assertCount(7, $client->getMessages()); + } + + /** + * @vcr entry_link_resolver_only_fetches_missing_entries_with_default_locale.json + */ + public function testLinkResolverOnlyFetchesMissingEntriesWithDefaultLocale() + { + $client = $this->getClient('88dyiqcr7go8'); + $resourcePool = $client->getResourcePool(); + + $entry = $client->getEntry('4SRm6VeGUwGIyEaCekO6es'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'en-US', + ])); + $this->assertFalse($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'en-US', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'en-US', + ])); + + // This is just to preload the entry + $client->getEntry('2vATHvqCV2e0MoakIk42s'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'en-US', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'en-US', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'en-US', + ])); + + // First entry, space, locales, content type, second entry + $this->assertCount(5, $client->getMessages()); + + // This will trigger the fetching of the missing entry + $entry->get('related'); + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'en-US', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'en-US', + ])); + $this->assertTrue($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'en-US', + ])); + + $message = $client->getMessages()[5]; + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries?sys.id%5Bin%5D=4mJOqrfVEQWCs8iIYU4qkG&locale=en-US', + (string) $message->getRequest()->getUri() + ); + } + + /** + * @vcr entry_link_resolver_does_not_fetch_preloaded_entries_with_default_locale.json + */ + public function testLinkResolverDoesNotFetchPreloadedEntriesWithDefaultLocale() + { + $client = $this->getClient('88dyiqcr7go8'); + $resourcePool = $client->getResourcePool(); + + $entry = $client->getEntry('4SRm6VeGUwGIyEaCekO6es'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'en-US', + ])); + $this->assertFalse($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'en-US', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'en-US', + ])); + + // This is just to preload the entries + $client->getEntry('2vATHvqCV2e0MoakIk42s'); + $client->getEntry('4mJOqrfVEQWCs8iIYU4qkG'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'en-US', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'en-US', + ])); + $this->assertTrue($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'en-US', + ])); + + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + // This should not trigger further API calls + $entry->get('related'); + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries/2vATHvqCV2e0MoakIk42s', + (string) $client->getMessages()[4]->getRequest()->getUri() + ); + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries/4mJOqrfVEQWCs8iIYU4qkG', + (string) $client->getMessages()[5]->getRequest()->getUri() + ); + } + + /** + * @vcr entry_link_resolver_only_fetches_missing_entries_with_non_default_locale.json + */ + public function testLinkResolverOnlyFetchesMissingEntriesWithNonDefaultLocale() + { + $client = $this->getClient('88dyiqcr7go8'); + $resourcePool = $client->getResourcePool(); + + $entry = $client->getEntry('4SRm6VeGUwGIyEaCekO6es', 'it'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'it', + ])); + $this->assertFalse($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'it', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'it', + ])); + + // This is just to preload the entry + $client->getEntry('2vATHvqCV2e0MoakIk42s', 'it'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'it', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'it', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'it', + ])); + + // First entry, space, locales, content type, second entry + $this->assertCount(5, $client->getMessages()); + + // This will trigger the fetching of the missing entry + $entry->get('related', 'it'); + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'it', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'it', + ])); + $this->assertTrue($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'it', + ])); + + $message = $client->getMessages()[5]; + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries?sys.id%5Bin%5D=4mJOqrfVEQWCs8iIYU4qkG&locale=it', + (string) $message->getRequest()->getUri() + ); + } + + /** + * @vcr entry_link_resolver_does_not_fetch_preloaded_entries_with_non_default_locale.json + */ + public function testLinkResolverDoesNotFetchPreloadedEntriesWithNonDefaultLocale() + { + $client = $this->getClient('88dyiqcr7go8'); + $resourcePool = $client->getResourcePool(); + + $entry = $client->getEntry('4SRm6VeGUwGIyEaCekO6es', 'it'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'it', + ])); + $this->assertFalse($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'it', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'it', + ])); + + // This is just to preload the entries + $client->getEntry('2vATHvqCV2e0MoakIk42s', 'it'); + $client->getEntry('4mJOqrfVEQWCs8iIYU4qkG', 'it'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => 'it', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => 'it', + ])); + $this->assertTrue($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => 'it', + ])); + + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + // This should not trigger further API calls + $entry->get('related'); + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries/2vATHvqCV2e0MoakIk42s?locale=it', + (string) $client->getMessages()[4]->getRequest()->getUri() + ); + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries/4mJOqrfVEQWCs8iIYU4qkG?locale=it', + (string) $client->getMessages()[5]->getRequest()->getUri() + ); + } + + /** + * @vcr entry_link_resolver_only_fetches_missing_entries_with_all_locales.json + */ + public function testLinkResolverOnlyFetchesMissingEntriesWithAllLocales() + { + $client = $this->getClient('88dyiqcr7go8'); + $resourcePool = $client->getResourcePool(); + + $entry = $client->getEntry('4SRm6VeGUwGIyEaCekO6es', '*'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => '*', + ])); + $this->assertFalse($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => '*', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => '*', + ])); + + // This is just to preload the entry + $client->getEntry('2vATHvqCV2e0MoakIk42s', '*'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => '*', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => '*', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => '*', + ])); + + // First entry, space, locales, content type, second entry + $this->assertCount(5, $client->getMessages()); + + // This will trigger the fetching of the missing entry + $entry->get('related'); + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => '*', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => '*', + ])); + $this->assertTrue($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => '*', + ])); + + $message = $client->getMessages()[5]; + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries?sys.id%5Bin%5D=4mJOqrfVEQWCs8iIYU4qkG&locale=%2A', + (string) $message->getRequest()->getUri() + ); + } + + /** + * @vcr entry_link_resolver_does_not_fetch_preloaded_entries_with_all_locales.json + */ + public function testLinkResolverDoesNotFetchPreloadedEntriesWithAllLocales() + { + $client = $this->getClient('88dyiqcr7go8'); + $resourcePool = $client->getResourcePool(); + + $entry = $client->getEntry('4SRm6VeGUwGIyEaCekO6es', '*'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => '*', + ])); + $this->assertFalse($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => '*', + ])); + $this->assertFalse($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => '*', + ])); + + // This is just to preload the entries + $client->getEntry('2vATHvqCV2e0MoakIk42s', '*'); + $client->getEntry('4mJOqrfVEQWCs8iIYU4qkG', '*'); + + $this->assertTrue($resourcePool->has('Entry', '4SRm6VeGUwGIyEaCekO6es', [ + 'locale' => '*', + ])); + $this->assertTrue($resourcePool->has('Entry', '2vATHvqCV2e0MoakIk42s', [ + 'locale' => '*', + ])); + $this->assertTrue($resourcePool->has('Entry', '4mJOqrfVEQWCs8iIYU4qkG', [ + 'locale' => '*', + ])); + + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + // This should not trigger further API calls + $entry->get('related'); + // First entry, space, locales, content type, second entry, third entry + $this->assertCount(6, $client->getMessages()); + + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries/2vATHvqCV2e0MoakIk42s?locale=%2A', + (string) $client->getMessages()[4]->getRequest()->getUri() + ); + $this->assertSame( + 'https://cdn.contentful.com/spaces/88dyiqcr7go8/environments/master/entries/4mJOqrfVEQWCs8iIYU4qkG?locale=%2A', + (string) $client->getMessages()[5]->getRequest()->getUri() + ); + } } diff --git a/tests/Recordings/entry_filter_all.json b/tests/Recordings/entry_filter_all.json index b7ba6cbd..6991df09 100644 --- a/tests/Recordings/entry_filter_all.json +++ b/tests/Recordings/entry_filter_all.json @@ -5,7 +5,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -34,14 +34,13 @@ "X-Contentful-Request-Id": "8da5978dac2c23fa9446d5726a0e2313", "Content-Length": "1200", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:03 GMT", + "Date": "Fri, 09 Nov 2018 09:32:30 GMT", "Via": "1.1 varnish", - "Age": "1588", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1534-HHN", + "X-Served-By": "cache-hhn1548-HHN", "X-Cache": "HIT", "X-Cache-Hits": "1", - "X-Timer": "S1541425504.578821,VS0,VE1", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 2,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"garfield\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.821Z\",\n \"updatedAt\": \"2013-08-27T10:09:07.929Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Garfield\",\n \"likes\": [\n \"lasagna\"\n ],\n \"color\": \"orange\",\n \"birthday\": \"1979-06-18T23:00:00+00:00\",\n \"lifes\": null,\n \"lives\": 9\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Entry\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n }\n ],\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" @@ -53,7 +52,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -79,17 +78,16 @@ "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "7183375315411e171ed827b5ad467109", + "X-Contentful-Request-Id": "5b698483d8811093c8d709e104380ca7", "Content-Length": "614", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:03 GMT", + "Date": "Fri, 09 Nov 2018 09:32:31 GMT", "Via": "1.1 varnish", - "Age": "1588", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1543-HHN", - "X-Cache": "HIT", - "X-Cache-Hits": "1", - "X-Timer": "S1541425504.873142,VS0,VE1", + "X-Served-By": "cache-hhn1538-HHN", + "X-Cache": "MISS", + "X-Cache-Hits": "0", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 1,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"cat\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2013-06-27T22:46:12.852Z\",\n \"updatedAt\": \"2017-07-06T09:58:52.691Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8\n },\n \"displayField\": \"name\",\n \"name\": \"Cat\",\n \"description\": \"Meow.\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"name\": \"Name\",\n \"type\": \"Text\",\n \"localized\": true,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"likes\",\n \"name\": \"Likes\",\n \"type\": \"Array\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Symbol\",\n \"validations\": []\n }\n },\n {\n \"id\": \"color\",\n \"name\": \"Color\",\n \"type\": \"Symbol\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"bestFriend\",\n \"name\": \"Best Friend\",\n \"type\": \"Link\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"linkType\": \"Entry\"\n },\n {\n \"id\": \"birthday\",\n \"name\": \"Birthday\",\n \"type\": \"Date\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"lifes\",\n \"name\": \"Lifes left\",\n \"type\": \"Integer\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": true,\n \"omitted\": false\n },\n {\n \"id\": \"lives\",\n \"name\": \"Lives left\",\n \"type\": \"Integer\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"image\",\n \"name\": \"Image\",\n \"type\": \"Link\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"linkType\": \"Asset\"\n }\n ]\n }\n ]\n}\n" @@ -101,7 +99,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -129,14 +127,13 @@ "X-Contentful-Request-Id": "31e54ff63aeb2a8298f1ab14b9e58d20", "Content-Length": "344", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:04 GMT", + "Date": "Fri, 09 Nov 2018 09:32:31 GMT", "Via": "1.1 varnish", - "Age": "6603", + "Age": "1846", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1533-HHN", + "X-Served-By": "cache-hhn1539-HHN", "X-Cache": "HIT", "X-Cache-Hits": "1", - "X-Timer": "S1541425504.414917,VS0,VE1", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Space\",\n \"id\": \"cfexampleapi\"\n },\n \"name\": \"Contentful Example API\",\n \"locales\": [\n {\n \"code\": \"en-US\",\n \"default\": true,\n \"name\": \"English\",\n \"fallbackCode\": null\n },\n {\n \"code\": \"tlh\",\n \"default\": false,\n \"name\": \"Klingon\",\n \"fallbackCode\": \"en-US\"\n }\n ]\n}\n" @@ -148,7 +145,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -176,14 +173,13 @@ "X-Contentful-Request-Id": "9afd67ebb5944c627847eae86ac8e055", "Content-Length": "546", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:05 GMT", + "Date": "Fri, 09 Nov 2018 09:32:31 GMT", "Via": "1.1 varnish", - "Age": "6991", + "Age": "1846", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1531-HHN", + "X-Served-By": "cache-hhn1549-HHN", "X-Cache": "HIT", - "X-Cache-Hits": "3", - "X-Timer": "S1541425505.229666,VS0,VE0", + "X-Cache-Hits": "1", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 2,\n \"skip\": 0,\n \"limit\": 1000,\n \"items\": [\n {\n \"code\": \"en-US\",\n \"name\": \"English\",\n \"default\": true,\n \"fallbackCode\": null,\n \"sys\": {\n \"id\": \"2oQPjMCL9bQkylziydLh57\",\n \"type\": \"Locale\",\n \"version\": 1\n }\n },\n {\n \"code\": \"tlh\",\n \"name\": \"Klingon\",\n \"default\": false,\n \"fallbackCode\": \"en-US\",\n \"sys\": {\n \"id\": \"3zpZmkZrHTIekHmXgflXaV\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n }\n ]\n}\n" @@ -195,7 +191,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -217,24 +213,23 @@ "Content-Encoding": "gzip", "Content-Type": "application\/vnd.contentful.delivery.v1+json", "Contentful-Api": "cda_cached", - "ETag": "W\/\"d12956cb5dc8246833e9b753648cf37c\"", + "ETag": "W\/\"659ee27a8da2132b545f624c1ff7e0b5\"", "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "d7705d78333e72ebf7bd2ca8d08a75aa", - "Content-Length": "1113", + "X-Contentful-Request-Id": "b287d2e7fa97c70445ff4bacaaa357a8", + "Content-Length": "1121", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:06 GMT", + "Date": "Fri, 09 Nov 2018 09:32:31 GMT", "Via": "1.1 varnish", - "Age": "1588", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1536-HHN", - "X-Cache": "HIT", - "X-Cache-Hits": "1", - "X-Timer": "S1541425506.415334,VS0,VE1", + "X-Served-By": "cache-hhn1529-HHN", + "X-Cache": "MISS", + "X-Cache-Hits": "0", "Vary": "Accept-Encoding" }, - "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"garfield\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.821Z\",\n \"updatedAt\": \"2013-08-27T10:09:07.929Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Garfield\",\n \"likes\": [\n \"lasagna\"\n ],\n \"color\": \"orange\",\n \"birthday\": \"1979-06-18T23:00:00+00:00\",\n \"lifes\": null,\n \"lives\": 9\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"garfield\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.821Z\",\n \"updatedAt\": \"2013-08-27T10:09:07.929Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Garfield\",\n \"likes\": [\n \"lasagna\"\n ],\n \"color\": \"orange\",\n \"birthday\": \"1979-06-18T23:00:00+00:00\",\n \"lifes\": null,\n \"lives\": 9\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" } },{ "request": { @@ -243,7 +238,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -269,17 +264,16 @@ "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "38ce5e15a5eda9128fbd5ed8de7e6797", + "X-Contentful-Request-Id": "49b6232c7c6612aa2c884ac6b986f6da", "Content-Length": "1088", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:07 GMT", + "Date": "Fri, 09 Nov 2018 09:32:32 GMT", "Via": "1.1 varnish", - "Age": "1588", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1536-HHN", - "X-Cache": "HIT", - "X-Cache-Hits": "1", - "X-Timer": "S1541425508.569178,VS0,VE1", + "X-Served-By": "cache-hhn1524-HHN", + "X-Cache": "MISS", + "X-Cache-Hits": "0", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 1,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Entry\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n }\n ],\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" @@ -291,7 +285,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -313,24 +307,23 @@ "Content-Encoding": "gzip", "Content-Type": "application\/vnd.contentful.delivery.v1+json", "Contentful-Api": "cda_cached", - "ETag": "W\/\"67b07d2459096832c19259f197834cbf\"", + "ETag": "W\/\"dfbf63a13bfcbd0c4a7b720ac7096ff1\"", "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "60afcc9eb3a40c29a11437e0993a4ea3", - "Content-Length": "1034", + "X-Contentful-Request-Id": "fefec4b5f33a02d127f62240ed8c63e2", + "Content-Length": "1032", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:08 GMT", + "Date": "Fri, 09 Nov 2018 09:32:32 GMT", "Via": "1.1 varnish", - "Age": "1589", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1541-HHN", - "X-Cache": "HIT", - "X-Cache-Hits": "1", - "X-Timer": "S1541425509.888282,VS0,VE1", + "X-Served-By": "cache-hhn1545-HHN", + "X-Cache": "MISS", + "X-Cache-Hits": "0", "Vary": "Accept-Encoding" }, - "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 2,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 2,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" } },{ "request": { @@ -339,7 +332,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -368,14 +361,13 @@ "X-Contentful-Request-Id": "7bf750ee095364bf5296210e2d041e9e", "Content-Length": "655", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:10 GMT", + "Date": "Fri, 09 Nov 2018 09:32:32 GMT", "Via": "1.1 varnish", - "Age": "1589", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1534-HHN", + "X-Served-By": "cache-hhn1520-HHN", "X-Cache": "HIT", "X-Cache-Hits": "1", - "X-Timer": "S1541425511.588837,VS0,VE1", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 4,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"5ETMRzkl9KM4omyMwKAOki\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:57.752Z\",\n \"updatedAt\": \"2014-08-23T14:42:35.207Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"London\",\n \"center\": {\n \"lon\": -0.12548719999995228,\n \"lat\": 51.508515\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"ge1xHyH3QOWucKWCCAgIG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:23.210Z\",\n \"updatedAt\": \"2014-02-21T13:43:23.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Paris\",\n \"center\": {\n \"lon\": 2.3522219000000177,\n \"lat\": 48.856614\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"4MU1s3potiUEM2G4okYOqw\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:45.926Z\",\n \"updatedAt\": \"2014-02-21T13:42:45.926Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Berlin\",\n \"center\": {\n \"lon\": 13.404953999999975,\n \"lat\": 52.52000659999999\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"7qVBlCjpWE86Oseo40gAEY\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:38.258Z\",\n \"updatedAt\": \"2014-04-15T08:22:22.010Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"San Francisco\",\n \"center\": {\n \"lon\": -122.41941550000001,\n \"lat\": 37.7749295\n }\n }\n }\n ]\n}\n" @@ -387,7 +379,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -413,17 +405,16 @@ "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "7e2a9843ac8262eeae1030ed42778811", + "X-Contentful-Request-Id": "dfbdb4ad532e7ab0c23601b329091557", "Content-Length": "417", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:12 GMT", + "Date": "Fri, 09 Nov 2018 09:32:33 GMT", "Via": "1.1 varnish", - "Age": "1589", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1526-HHN", - "X-Cache": "HIT", - "X-Cache-Hits": "1", - "X-Timer": "S1541425513.805063,VS0,VE1", + "X-Served-By": "cache-hhn1529-HHN", + "X-Cache": "MISS", + "X-Cache-Hits": "0", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 1,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2014-02-21T13:42:33.009Z\",\n \"updatedAt\": \"2014-02-21T13:42:33.009Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1\n },\n \"displayField\": \"name\",\n \"name\": \"City\",\n \"description\": null,\n \"fields\": [\n {\n \"id\": \"name\",\n \"name\": \"Name\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"center\",\n \"name\": \"Center\",\n \"type\": \"Location\",\n \"localized\": false,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n }\n ]\n }\n ]\n}\n" @@ -435,7 +426,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -463,14 +454,13 @@ "X-Contentful-Request-Id": "fbcaf1792f545ccb154c5ca7f7b23249", "Content-Length": "989", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:14 GMT", + "Date": "Fri, 09 Nov 2018 09:32:33 GMT", "Via": "1.1 varnish", - "Age": "1590", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1533-HHN", + "X-Served-By": "cache-hhn1550-HHN", "X-Cache": "HIT", "X-Cache-Hits": "1", - "X-Timer": "S1541425515.974452,VS0,VE1", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 1,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"5ETMRzkl9KM4omyMwKAOki\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:57.752Z\",\n \"updatedAt\": \"2014-08-23T14:42:35.207Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"London\",\n \"center\": {\n \"lon\": -0.12548719999995228,\n \"lat\": 51.508515\n }\n }\n }\n ]\n}\n" @@ -482,7 +472,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -508,17 +498,16 @@ "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "a97dc5bc6ea906786c4e03ef0e6cbf4d", + "X-Contentful-Request-Id": "68f442cc8335e15867551cc9ca33fdd1", "Content-Length": "2047", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:17 GMT", + "Date": "Fri, 09 Nov 2018 09:32:33 GMT", "Via": "1.1 varnish", - "Age": "1590", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1529-HHN", - "X-Cache": "HIT", - "X-Cache-Hits": "1", - "X-Timer": "S1541425517.014206,VS0,VE1", + "X-Served-By": "cache-hhn1551-HHN", + "X-Cache": "MISS", + "X-Cache-Hits": "0", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 10,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"garfield\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.821Z\",\n \"updatedAt\": \"2013-08-27T10:09:07.929Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Garfield\",\n \"likes\": [\n \"lasagna\"\n ],\n \"color\": \"orange\",\n \"birthday\": \"1979-06-18T23:00:00+00:00\",\n \"lifes\": null,\n \"lives\": 9\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"finn\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:21.450Z\",\n \"updatedAt\": \"2013-09-09T16:15:01.297Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"human\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Finn\",\n \"description\": \"Fearless adventurer! Defender of pancakes.\",\n \"likes\": [\n \"adventure\"\n ]\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:22.096Z\",\n \"updatedAt\": \"2013-12-18T13:10:26.212Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Jake\",\n \"description\": \"Bacon pancakes, makin' bacon pancakes!\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"jake\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"6KntaYXaHSyIw8M6eo26OK\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-11-06T09:45:27.475Z\",\n \"updatedAt\": \"2013-11-18T09:13:37.808Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Doge\",\n \"description\": \"such json\\nwow\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"4MU1s3potiUEM2G4okYOqw\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:45.926Z\",\n \"updatedAt\": \"2014-02-21T13:42:45.926Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Berlin\",\n \"center\": {\n \"lon\": 13.404953999999975,\n \"lat\": 52.52000659999999\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"5ETMRzkl9KM4omyMwKAOki\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:57.752Z\",\n \"updatedAt\": \"2014-08-23T14:42:35.207Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"London\",\n \"center\": {\n \"lon\": -0.12548719999995228,\n \"lat\": 51.508515\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"ge1xHyH3QOWucKWCCAgIG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:23.210Z\",\n \"updatedAt\": \"2014-02-21T13:43:23.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Paris\",\n \"center\": {\n \"lon\": 2.3522219000000177,\n \"lat\": 48.856614\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"7qVBlCjpWE86Oseo40gAEY\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:38.258Z\",\n \"updatedAt\": \"2014-04-15T08:22:22.010Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"San Francisco\",\n \"center\": {\n \"lon\": -122.41941550000001,\n \"lat\": 37.7749295\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-11-06T09:45:10.000Z\",\n \"updatedAt\": \"2013-12-18T13:27:14.917Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Doge\",\n \"description\": \"nice picture\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/1x0xpXu4pSGS4OukSyWGUK\/cc1239c6385428ef26f4180190532818\/doge.jpg\",\n \"details\": {\n \"size\": 522943,\n \"image\": {\n \"width\": 5800,\n \"height\": 4350\n }\n },\n \"fileName\": \"doge.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.260Z\",\n \"updatedAt\": \"2013-09-02T15:22:39.466Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Jake\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4hlteQAXS8iS0YCMU6QMWg\/2a4d826144f014109364ccf5c891d2dd\/jake.png\",\n \"details\": {\n \"size\": 20480,\n \"image\": {\n \"width\": 100,\n \"height\": 161\n }\n },\n \"fileName\": \"jake.png\",\n \"contentType\": \"image\/png\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" @@ -530,7 +519,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -556,17 +545,16 @@ "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "430e1c70d3c1b0f5365c55ce8c609e3e", + "X-Contentful-Request-Id": "8a19f16d79652a3711b61b4a389c0a05", "Content-Length": "597", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:20 GMT", + "Date": "Fri, 09 Nov 2018 09:32:34 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1522-HHN", + "X-Served-By": "cache-hhn1542-HHN", "X-Cache": "MISS", "X-Cache-Hits": "0", - "X-Timer": "S1541425520.821990,VS0,VE267", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 2,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"human\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2013-06-27T22:46:14.133Z\",\n \"updatedAt\": \"2013-09-02T15:10:26.818Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3\n },\n \"displayField\": \"name\",\n \"name\": \"Human\",\n \"description\": null,\n \"fields\": [\n {\n \"id\": \"name\",\n \"name\": \"Name\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"description\",\n \"name\": \"Description\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"likes\",\n \"name\": \"Likes\",\n \"type\": \"Array\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Symbol\",\n \"validations\": []\n }\n },\n {\n \"id\": \"image\",\n \"name\": \"Image\",\n \"type\": \"Array\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": true,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [],\n \"linkType\": \"Asset\"\n }\n }\n ]\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"dog\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2013-06-27T22:46:13.498Z\",\n \"updatedAt\": \"2013-09-02T14:32:11.837Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2\n },\n \"displayField\": \"name\",\n \"name\": \"Dog\",\n \"description\": \"Bark!\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"name\": \"Name\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"description\",\n \"name\": \"Description\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"image\",\n \"name\": \"Image\",\n \"type\": \"Link\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"linkType\": \"Asset\"\n }\n ]\n }\n ]\n}\n" @@ -578,7 +566,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -604,17 +592,16 @@ "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "8edacdf4f14c358c030deba682115ba3", + "X-Contentful-Request-Id": "896e0ba91645f24eff6604d492d917e6", "Content-Length": "2059", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:23 GMT", + "Date": "Fri, 09 Nov 2018 09:32:34 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", "X-Served-By": "cache-hhn1520-HHN", "X-Cache": "MISS", "X-Cache-Hits": "0", - "X-Timer": "S1541425523.878721,VS0,VE457", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 10,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"7qVBlCjpWE86Oseo40gAEY\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:38.258Z\",\n \"updatedAt\": \"2014-04-15T08:22:22.010Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"San Francisco\",\n \"center\": {\n \"lon\": -122.41941550000001,\n \"lat\": 37.7749295\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"ge1xHyH3QOWucKWCCAgIG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:23.210Z\",\n \"updatedAt\": \"2014-02-21T13:43:23.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Paris\",\n \"center\": {\n \"lon\": 2.3522219000000177,\n \"lat\": 48.856614\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"5ETMRzkl9KM4omyMwKAOki\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:57.752Z\",\n \"updatedAt\": \"2014-08-23T14:42:35.207Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"London\",\n \"center\": {\n \"lon\": -0.12548719999995228,\n \"lat\": 51.508515\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"4MU1s3potiUEM2G4okYOqw\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:45.926Z\",\n \"updatedAt\": \"2014-02-21T13:42:45.926Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Berlin\",\n \"center\": {\n \"lon\": 13.404953999999975,\n \"lat\": 52.52000659999999\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"6KntaYXaHSyIw8M6eo26OK\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-11-06T09:45:27.475Z\",\n \"updatedAt\": \"2013-11-18T09:13:37.808Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Doge\",\n \"description\": \"such json\\nwow\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:22.096Z\",\n \"updatedAt\": \"2013-12-18T13:10:26.212Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Jake\",\n \"description\": \"Bacon pancakes, makin' bacon pancakes!\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"jake\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"finn\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:21.450Z\",\n \"updatedAt\": \"2013-09-09T16:15:01.297Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"human\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Finn\",\n \"description\": \"Fearless adventurer! Defender of pancakes.\",\n \"likes\": [\n \"adventure\"\n ]\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"garfield\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.821Z\",\n \"updatedAt\": \"2013-08-27T10:09:07.929Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Garfield\",\n \"likes\": [\n \"lasagna\"\n ],\n \"color\": \"orange\",\n \"birthday\": \"1979-06-18T23:00:00+00:00\",\n \"lifes\": null,\n \"lives\": 9\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-11-06T09:45:10.000Z\",\n \"updatedAt\": \"2013-12-18T13:27:14.917Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Doge\",\n \"description\": \"nice picture\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/1x0xpXu4pSGS4OukSyWGUK\/cc1239c6385428ef26f4180190532818\/doge.jpg\",\n \"details\": {\n \"size\": 522943,\n \"image\": {\n \"width\": 5800,\n \"height\": 4350\n }\n },\n \"fileName\": \"doge.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.260Z\",\n \"updatedAt\": \"2013-09-02T15:22:39.466Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Jake\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4hlteQAXS8iS0YCMU6QMWg\/2a4d826144f014109364ccf5c891d2dd\/jake.png\",\n \"details\": {\n \"size\": 20480,\n \"image\": {\n \"width\": 100,\n \"height\": 161\n }\n },\n \"fileName\": \"jake.png\",\n \"contentType\": \"image\/png\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" @@ -626,7 +613,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -652,17 +639,16 @@ "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "16e71e9c4c73760fec990172b3ee7568", + "X-Contentful-Request-Id": "51cb98d968640c7743b936e7fd7d1523", "Content-Length": "2047", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:26 GMT", + "Date": "Fri, 09 Nov 2018 09:32:34 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1548-HHN", + "X-Served-By": "cache-hhn1526-HHN", "X-Cache": "MISS", "X-Cache-Hits": "0", - "X-Timer": "S1541425527.540229,VS0,VE180", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 10,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"garfield\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.821Z\",\n \"updatedAt\": \"2013-08-27T10:09:07.929Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Garfield\",\n \"likes\": [\n \"lasagna\"\n ],\n \"color\": \"orange\",\n \"birthday\": \"1979-06-18T23:00:00+00:00\",\n \"lifes\": null,\n \"lives\": 9\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"finn\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:21.450Z\",\n \"updatedAt\": \"2013-09-09T16:15:01.297Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"human\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Finn\",\n \"description\": \"Fearless adventurer! Defender of pancakes.\",\n \"likes\": [\n \"adventure\"\n ]\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:22.096Z\",\n \"updatedAt\": \"2013-12-18T13:10:26.212Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Jake\",\n \"description\": \"Bacon pancakes, makin' bacon pancakes!\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"jake\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"6KntaYXaHSyIw8M6eo26OK\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-11-06T09:45:27.475Z\",\n \"updatedAt\": \"2013-11-18T09:13:37.808Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Doge\",\n \"description\": \"such json\\nwow\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"4MU1s3potiUEM2G4okYOqw\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:45.926Z\",\n \"updatedAt\": \"2014-02-21T13:42:45.926Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Berlin\",\n \"center\": {\n \"lon\": 13.404953999999975,\n \"lat\": 52.52000659999999\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"5ETMRzkl9KM4omyMwKAOki\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:57.752Z\",\n \"updatedAt\": \"2014-08-23T14:42:35.207Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"London\",\n \"center\": {\n \"lon\": -0.12548719999995228,\n \"lat\": 51.508515\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"ge1xHyH3QOWucKWCCAgIG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:23.210Z\",\n \"updatedAt\": \"2014-02-21T13:43:23.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Paris\",\n \"center\": {\n \"lon\": 2.3522219000000177,\n \"lat\": 48.856614\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"7qVBlCjpWE86Oseo40gAEY\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:38.258Z\",\n \"updatedAt\": \"2014-04-15T08:22:22.010Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"San Francisco\",\n \"center\": {\n \"lon\": -122.41941550000001,\n \"lat\": 37.7749295\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-11-06T09:45:10.000Z\",\n \"updatedAt\": \"2013-12-18T13:27:14.917Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Doge\",\n \"description\": \"nice picture\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/1x0xpXu4pSGS4OukSyWGUK\/cc1239c6385428ef26f4180190532818\/doge.jpg\",\n \"details\": {\n \"size\": 522943,\n \"image\": {\n \"width\": 5800,\n \"height\": 4350\n }\n },\n \"fileName\": \"doge.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.260Z\",\n \"updatedAt\": \"2013-09-02T15:22:39.466Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Jake\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4hlteQAXS8iS0YCMU6QMWg\/2a4d826144f014109364ccf5c891d2dd\/jake.png\",\n \"details\": {\n \"size\": 20480,\n \"image\": {\n \"width\": 100,\n \"height\": 161\n }\n },\n \"fileName\": \"jake.png\",\n \"contentType\": \"image\/png\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" @@ -674,7 +660,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -700,17 +686,16 @@ "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "4b551e182ce1de5763ae06514b41f368", + "X-Contentful-Request-Id": "5a30af9a1d469555d9abb524b37dbb40", "Content-Length": "705", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:30 GMT", + "Date": "Fri, 09 Nov 2018 09:32:35 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1521-HHN", + "X-Served-By": "cache-hhn1523-HHN", "X-Cache": "MISS", "X-Cache-Hits": "0", - "X-Timer": "S1541425530.492317,VS0,VE228", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 10,\n \"skip\": 0,\n \"limit\": 1,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"6KntaYXaHSyIw8M6eo26OK\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-11-06T09:45:27.475Z\",\n \"updatedAt\": \"2013-11-18T09:13:37.808Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Doge\",\n \"description\": \"such json\\nwow\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-11-06T09:45:10.000Z\",\n \"updatedAt\": \"2013-12-18T13:27:14.917Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Doge\",\n \"description\": \"nice picture\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/1x0xpXu4pSGS4OukSyWGUK\/cc1239c6385428ef26f4180190532818\/doge.jpg\",\n \"details\": {\n \"size\": 522943,\n \"image\": {\n \"width\": 5800,\n \"height\": 4350\n }\n },\n \"fileName\": \"doge.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n }\n ]\n }\n}\n" @@ -722,7 +707,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -751,14 +736,13 @@ "X-Contentful-Request-Id": "1a2293bc91643f730f20ad9af995ef2f", "Content-Length": "1977", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:35 GMT", + "Date": "Fri, 09 Nov 2018 09:32:35 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1523-HHN", + "X-Served-By": "cache-hhn1548-HHN", "X-Cache": "MISS", "X-Cache-Hits": "0", - "X-Timer": "S1541425535.888773,VS0,VE182", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 10,\n \"skip\": 1,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"garfield\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.821Z\",\n \"updatedAt\": \"2013-08-27T10:09:07.929Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Garfield\",\n \"likes\": [\n \"lasagna\"\n ],\n \"color\": \"orange\",\n \"birthday\": \"1979-06-18T23:00:00+00:00\",\n \"lifes\": null,\n \"lives\": 9\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"finn\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:21.450Z\",\n \"updatedAt\": \"2013-09-09T16:15:01.297Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"human\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Finn\",\n \"description\": \"Fearless adventurer! Defender of pancakes.\",\n \"likes\": [\n \"adventure\"\n ]\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"4MU1s3potiUEM2G4okYOqw\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:45.926Z\",\n \"updatedAt\": \"2014-02-21T13:42:45.926Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Berlin\",\n \"center\": {\n \"lon\": 13.404953999999975,\n \"lat\": 52.52000659999999\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"7qVBlCjpWE86Oseo40gAEY\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:38.258Z\",\n \"updatedAt\": \"2014-04-15T08:22:22.010Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"San Francisco\",\n \"center\": {\n \"lon\": -122.41941550000001,\n \"lat\": 37.7749295\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"5ETMRzkl9KM4omyMwKAOki\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:57.752Z\",\n \"updatedAt\": \"2014-08-23T14:42:35.207Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"London\",\n \"center\": {\n \"lon\": -0.12548719999995228,\n \"lat\": 51.508515\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"6KntaYXaHSyIw8M6eo26OK\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-11-06T09:45:27.475Z\",\n \"updatedAt\": \"2013-11-18T09:13:37.808Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Doge\",\n \"description\": \"such json\\nwow\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:22.096Z\",\n \"updatedAt\": \"2013-12-18T13:10:26.212Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Jake\",\n \"description\": \"Bacon pancakes, makin' bacon pancakes!\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"jake\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-11-06T09:45:10.000Z\",\n \"updatedAt\": \"2013-12-18T13:27:14.917Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Doge\",\n \"description\": \"nice picture\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/1x0xpXu4pSGS4OukSyWGUK\/cc1239c6385428ef26f4180190532818\/doge.jpg\",\n \"details\": {\n \"size\": 522943,\n \"image\": {\n \"width\": 5800,\n \"height\": 4350\n }\n },\n \"fileName\": \"doge.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.260Z\",\n \"updatedAt\": \"2013-09-02T15:22:39.466Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Jake\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4hlteQAXS8iS0YCMU6QMWg\/2a4d826144f014109364ccf5c891d2dd\/jake.png\",\n \"details\": {\n \"size\": 20480,\n \"image\": {\n \"width\": 100,\n \"height\": 161\n }\n },\n \"fileName\": \"jake.png\",\n \"contentType\": \"image\/png\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" @@ -770,7 +754,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -799,14 +783,13 @@ "X-Contentful-Request-Id": "439ae3c824dedb0e4d994caac7f1ef6a", "Content-Length": "1088", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:40 GMT", + "Date": "Fri, 09 Nov 2018 09:32:35 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1529-HHN", + "X-Served-By": "cache-hhn1548-HHN", "X-Cache": "MISS", "X-Cache-Hits": "0", - "X-Timer": "S1541425540.856562,VS0,VE253", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 1,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n }\n ],\n \"includes\": {\n \"Entry\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n }\n ],\n \"Asset\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n ]\n }\n}\n" @@ -818,7 +801,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -847,14 +830,13 @@ "X-Contentful-Request-Id": "bdc61a5e97d356d3b3a7c89b994b80ce", "Content-Length": "871", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:45 GMT", + "Date": "Fri, 09 Nov 2018 09:32:36 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1551-HHN", + "X-Served-By": "cache-hhn1525-HHN", "X-Cache": "MISS", "X-Cache-Hits": "0", - "X-Timer": "S1541425545.173797,VS0,VE164", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 4,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-11-06T09:45:10.000Z\",\n \"updatedAt\": \"2013-12-18T13:27:14.917Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Doge\",\n \"description\": \"nice picture\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/1x0xpXu4pSGS4OukSyWGUK\/cc1239c6385428ef26f4180190532818\/doge.jpg\",\n \"details\": {\n \"size\": 522943,\n \"image\": {\n \"width\": 5800,\n \"height\": 4350\n }\n },\n \"fileName\": \"doge.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.260Z\",\n \"updatedAt\": \"2013-09-02T15:22:39.466Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Jake\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4hlteQAXS8iS0YCMU6QMWg\/2a4d826144f014109364ccf5c891d2dd\/jake.png\",\n \"details\": {\n \"size\": 20480,\n \"image\": {\n \"width\": 100,\n \"height\": 161\n }\n },\n \"fileName\": \"jake.png\",\n \"contentType\": \"image\/png\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.267Z\",\n \"updatedAt\": \"2013-09-02T15:11:24.361Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Happy Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/3MZPnjZTIskAIIkuuosCss\/382a48dfa2cb16c47aa2c72f7b23bf09\/happycatw.jpg\",\n \"details\": {\n \"size\": 59939,\n \"image\": {\n \"width\": 273,\n \"height\": 397\n }\n },\n \"fileName\": \"happycatw.jpg\",\n \"contentType\": \"image\/jpeg\"\n }\n }\n }\n ]\n}\n" @@ -866,7 +848,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -895,14 +877,13 @@ "X-Contentful-Request-Id": "67297837e6e90e977c6ae0f3b0b7c568", "Content-Length": "1343", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:51 GMT", + "Date": "Fri, 09 Nov 2018 09:32:36 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1540-HHN", + "X-Served-By": "cache-hhn1546-HHN", "X-Cache": "MISS", "X-Cache-Hits": "0", - "X-Timer": "S1541425551.676344,VS0,VE352", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 10,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"garfield\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.821Z\",\n \"updatedAt\": \"2013-08-27T10:09:07.929Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Garfield\",\n \"likes\": [\n \"lasagna\"\n ],\n \"color\": \"orange\",\n \"birthday\": \"1979-06-18T23:00:00+00:00\",\n \"lifes\": null,\n \"lives\": 9\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"ge1xHyH3QOWucKWCCAgIG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:23.210Z\",\n \"updatedAt\": \"2014-02-21T13:43:23.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Paris\",\n \"center\": {\n \"lon\": 2.3522219000000177,\n \"lat\": 48.856614\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:19.513Z\",\n \"updatedAt\": \"2013-09-04T09:19:39.027Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Nyan Cat\",\n \"likes\": [\n \"rainbows\",\n \"fish\"\n ],\n \"color\": \"rainbow\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"happycat\"\n }\n },\n \"birthday\": \"2011-04-04T22:00:00+00:00\",\n \"lives\": 1337,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"nyancat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"finn\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:21.450Z\",\n \"updatedAt\": \"2013-09-09T16:15:01.297Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"human\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Finn\",\n \"description\": \"Fearless adventurer! Defender of pancakes.\",\n \"likes\": [\n \"adventure\"\n ]\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"4MU1s3potiUEM2G4okYOqw\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:45.926Z\",\n \"updatedAt\": \"2014-02-21T13:42:45.926Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Berlin\",\n \"center\": {\n \"lon\": 13.404953999999975,\n \"lat\": 52.52000659999999\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"7qVBlCjpWE86Oseo40gAEY\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:43:38.258Z\",\n \"updatedAt\": \"2014-04-15T08:22:22.010Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"San Francisco\",\n \"center\": {\n \"lon\": -122.41941550000001,\n \"lat\": 37.7749295\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"5ETMRzkl9KM4omyMwKAOki\",\n \"type\": \"Entry\",\n \"createdAt\": \"2014-02-21T13:42:57.752Z\",\n \"updatedAt\": \"2014-08-23T14:42:35.207Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"London\",\n \"center\": {\n \"lon\": -0.12548719999995228,\n \"lat\": 51.508515\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"happycat\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:20.171Z\",\n \"updatedAt\": \"2013-11-18T15:58:02.018Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"cat\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Happy Cat\",\n \"likes\": [\n \"cheezburger\"\n ],\n \"color\": \"gray\",\n \"bestFriend\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"nyancat\"\n }\n },\n \"birthday\": \"2003-10-28T23:00:00+00:00\",\n \"lives\": 1,\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"happycat\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"6KntaYXaHSyIw8M6eo26OK\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-11-06T09:45:27.475Z\",\n \"updatedAt\": \"2013-11-18T09:13:37.808Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Doge\",\n \"description\": \"such json\\nwow\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"1x0xpXu4pSGS4OukSyWGUK\"\n }\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"jake\",\n \"type\": \"Entry\",\n \"createdAt\": \"2013-06-27T22:46:22.096Z\",\n \"updatedAt\": \"2013-12-18T13:10:26.212Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 5,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"dog\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"name\": \"Jake\",\n \"description\": \"Bacon pancakes, makin' bacon pancakes!\",\n \"image\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Asset\",\n \"id\": \"jake\"\n }\n }\n }\n }\n ]\n}\n" @@ -914,7 +895,7 @@ "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -943,14 +924,13 @@ "X-Contentful-Request-Id": "605f4d29410d51edc547883687eeb4bc", "Content-Length": "914", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:45:56 GMT", + "Date": "Fri, 09 Nov 2018 09:32:36 GMT", "Via": "1.1 varnish", "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1549-HHN", - "X-Cache": "MISS", - "X-Cache-Hits": "0", - "X-Timer": "S1541425557.567112,VS0,VE126", + "X-Served-By": "cache-hhn1525-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", "Vary": "Accept-Encoding" }, "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 4,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"dog\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2013-06-27T22:46:13.498Z\",\n \"updatedAt\": \"2013-09-02T14:32:11.837Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 2\n },\n \"displayField\": \"name\",\n \"name\": \"Dog\",\n \"description\": \"Bark!\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"name\": \"Name\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"description\",\n \"name\": \"Description\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"image\",\n \"name\": \"Image\",\n \"type\": \"Link\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"linkType\": \"Asset\"\n }\n ]\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"1t9IbcfdCk6m04uISSsaIK\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2014-02-21T13:42:33.009Z\",\n \"updatedAt\": \"2014-02-21T13:42:33.009Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1\n },\n \"displayField\": \"name\",\n \"name\": \"City\",\n \"description\": null,\n \"fields\": [\n {\n \"id\": \"name\",\n \"name\": \"Name\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"center\",\n \"name\": \"Center\",\n \"type\": \"Location\",\n \"localized\": false,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n }\n ]\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"human\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2013-06-27T22:46:14.133Z\",\n \"updatedAt\": \"2013-09-02T15:10:26.818Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 3\n },\n \"displayField\": \"name\",\n \"name\": \"Human\",\n \"description\": null,\n \"fields\": [\n {\n \"id\": \"name\",\n \"name\": \"Name\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"description\",\n \"name\": \"Description\",\n \"type\": \"Text\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"likes\",\n \"name\": \"Likes\",\n \"type\": \"Array\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Symbol\",\n \"validations\": []\n }\n },\n {\n \"id\": \"image\",\n \"name\": \"Image\",\n \"type\": \"Array\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": true,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [],\n \"linkType\": \"Asset\"\n }\n }\n ]\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"cat\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2013-06-27T22:46:12.852Z\",\n \"updatedAt\": \"2017-07-06T09:58:52.691Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 8\n },\n \"displayField\": \"name\",\n \"name\": \"Cat\",\n \"description\": \"Meow.\",\n \"fields\": [\n {\n \"id\": \"name\",\n \"name\": \"Name\",\n \"type\": \"Text\",\n \"localized\": true,\n \"required\": true,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"likes\",\n \"name\": \"Likes\",\n \"type\": \"Array\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Symbol\",\n \"validations\": []\n }\n },\n {\n \"id\": \"color\",\n \"name\": \"Color\",\n \"type\": \"Symbol\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"bestFriend\",\n \"name\": \"Best Friend\",\n \"type\": \"Link\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"linkType\": \"Entry\"\n },\n {\n \"id\": \"birthday\",\n \"name\": \"Birthday\",\n \"type\": \"Date\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"lifes\",\n \"name\": \"Lifes left\",\n \"type\": \"Integer\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": true,\n \"omitted\": false\n },\n {\n \"id\": \"lives\",\n \"name\": \"Lives left\",\n \"type\": \"Integer\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"image\",\n \"name\": \"Image\",\n \"type\": \"Link\",\n \"localized\": false,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"linkType\": \"Asset\"\n }\n ]\n }\n ]\n}\n" @@ -958,11 +938,11 @@ },{ "request": { "method": "GET", - "url": "https:\/\/cdn.contentful.com\/spaces\/cfexampleapi\/environments\/master\/assets\/nyancat?locale=%2A", + "url": "https:\/\/cdn.contentful.com\/spaces\/cfexampleapi\/environments\/master\/assets\/nyancat?locale=en-US", "headers": { "Host": "cdn.contentful.com", "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", - "X-Contentful-User-Agent": "sdk contentful.php\/4.0.0-dev; platform PHP\/7.2.9; os macOS;", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", "Accept": "application\/vnd.contentful.delivery.v1+json", "Accept-Encoding": "gzip", "Authorization": "Bearer b4c0n73n7fu1" @@ -983,23 +963,22 @@ "Cache-Control": "max-age=0", "Content-Type": "application\/vnd.contentful.delivery.v1+json", "Contentful-Api": "cda_cached", - "ETag": "\"638b9ba95ab8b4d066b86a81f9dcddac\"", + "ETag": "\"76ae8ac30f768396e31d8dd8eb35046a\"", "Server": "Contentful", "X-Content-Type-Options": "nosniff", "X-Contentful-Region": "us-east-1", - "X-Contentful-Request-Id": "27f8a7731a9bcf4e1f8a1085887d58a7", - "Content-Length": "901", + "X-Contentful-Request-Id": "70c9a31870a58a1aaebe07dc7c34ca13", + "Content-Length": "856", "Accept-Ranges": "bytes", - "Date": "Mon, 05 Nov 2018 13:46:03 GMT", + "Date": "Fri, 09 Nov 2018 09:32:37 GMT", "Via": "1.1 varnish", - "Age": "7049", + "Age": "0", "Connection": "keep-alive", - "X-Served-By": "cache-hhn1526-HHN", - "X-Cache": "HIT", - "X-Cache-Hits": "1", - "X-Timer": "S1541425563.317877,VS0,VE1", + "X-Served-By": "cache-hhn1524-HHN", + "X-Cache": "MISS", + "X-Cache-Hits": "0", "Vary": "Accept-Encoding" }, - "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"Nyan Cat\"\n },\n \"file\": {\n \"en-US\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n }\n}\n" + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"cfexampleapi\"\n }\n },\n \"id\": \"nyancat\",\n \"type\": \"Asset\",\n \"createdAt\": \"2013-09-02T14:56:34.240Z\",\n \"updatedAt\": \"2013-09-02T14:56:34.240Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Nyan Cat\",\n \"file\": {\n \"url\": \"\/\/images.ctfassets.net\/cfexampleapi\/4gp6taAwW4CmSgumq2ekUm\/9da0cd1936871b8d72343e895a00d611\/Nyan_cat_250px_frame.png\",\n \"details\": {\n \"size\": 12273,\n \"image\": {\n \"width\": 250,\n \"height\": 250\n }\n },\n \"fileName\": \"Nyan_cat_250px_frame.png\",\n \"contentType\": \"image\/png\"\n }\n }\n}\n" } }] \ No newline at end of file diff --git a/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_all_locales.json b/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_all_locales.json new file mode 100644 index 00000000..ad766a86 --- /dev/null +++ b/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_all_locales.json @@ -0,0 +1,279 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4SRm6VeGUwGIyEaCekO6es?locale=%2A", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"587bb7835847b781473fd8fa6ad1531b\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "f7483cbf98473117167f1c398bef3601", + "Content-Length": "386", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:25 GMT", + "Via": "1.1 varnish", + "Age": "2512", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1539-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4SRm6VeGUwGIyEaCekO6es\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:57:11.941Z\",\n \"updatedAt\": \"2018-11-08T16:57:11.941Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"Building\",\n \"it\": \"Edificio\"\n },\n \"related\": {\n \"en-US\": [\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"2vATHvqCV2e0MoakIk42s\"\n }\n },\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\"\n }\n }\n ]\n }\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"2c57cba8c83129c95bbb8579dced315d\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "b8d8765df84d8fde13e5ac7a1d855d4e", + "Content-Length": "442", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:25 GMT", + "Via": "1.1 varnish", + "Age": "2513", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1520-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "32", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n },\n \"name\": \"PHP CDA\",\n \"locales\": [\n {\n \"code\": \"en-US\",\n \"default\": true,\n \"name\": \"U.S. English\",\n \"fallbackCode\": null\n },\n {\n \"code\": \"it\",\n \"default\": false,\n \"name\": \"Italian\",\n \"fallbackCode\": \"en-US\"\n },\n {\n \"code\": \"es\",\n \"default\": false,\n \"name\": \"Spanish\",\n \"fallbackCode\": \"it\"\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/locales", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"3538849fd73df963a89d5a5ec3ab2f29\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "0cb56e98cc86abe0f546cd51708a3b03", + "Content-Length": "770", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:25 GMT", + "Via": "1.1 varnish", + "Age": "2513", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1547-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "3", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 1000,\n \"items\": [\n {\n \"code\": \"en-US\",\n \"name\": \"U.S. English\",\n \"default\": true,\n \"fallbackCode\": null,\n \"sys\": {\n \"id\": \"19xQBLD6FTsStnt6P5MsyW\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"it\",\n \"name\": \"Italian\",\n \"default\": false,\n \"fallbackCode\": \"en-US\",\n \"sys\": {\n \"id\": \"3UbY70KDWtQQ38TxF5mdeQ\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"es\",\n \"name\": \"Spanish\",\n \"default\": false,\n \"fallbackCode\": \"it\",\n \"sys\": {\n \"id\": \"3Yd7Swgn13v6FPE2LHyvQ2\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/content_types\/blogPost", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"2482094db1a438b06587c42c5c5cde44\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "3d5ef28acf462c7af005aead884a503f", + "Content-Length": "419", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:25 GMT", + "Via": "1.1 varnish", + "Age": "2514", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1529-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"blogPost\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2018-11-08T16:50:32.544Z\",\n \"updatedAt\": \"2018-11-09T08:22:15.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6\n },\n \"displayField\": \"title\",\n \"name\": \"Blog Post\",\n \"description\": \"\",\n \"fields\": [\n {\n \"id\": \"title\",\n \"name\": \"Title\",\n \"type\": \"Symbol\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"related\",\n \"name\": \"Related\",\n \"type\": \"Array\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [\n {\n \"linkContentType\": [\n \"blogPost\"\n ]\n }\n ],\n \"linkType\": \"Entry\"\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/2vATHvqCV2e0MoakIk42s?locale=%2A", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"20b131838dba83352913403f704624e5\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "08bf1c2549fe77b99b0822cf6d6c4e0b", + "Content-Length": "673", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:26 GMT", + "Via": "1.1 varnish", + "Age": "548", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1551-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"2vATHvqCV2e0MoakIk42s\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:44.549Z\",\n \"updatedAt\": \"2018-11-08T16:56:44.549Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"Apartment\",\n \"it\": \"Appartamento\"\n }\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4mJOqrfVEQWCs8iIYU4qkG?locale=%2A", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"ac67a12215cad12d01dd5d9b149a8a45\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "66872059d1ff4badfbef2965ae033c27", + "Content-Length": "662", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:26 GMT", + "Via": "1.1 varnish", + "Age": "548", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1548-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:18.368Z\",\n \"updatedAt\": \"2018-11-08T16:56:18.368Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"House\",\n \"it\": \"Casa\"\n }\n }\n}\n" + } +}] \ No newline at end of file diff --git a/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_default_locale.json b/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_default_locale.json new file mode 100644 index 00000000..f43bb7bb --- /dev/null +++ b/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_default_locale.json @@ -0,0 +1,278 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/locales", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"3538849fd73df963a89d5a5ec3ab2f29\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "0cb56e98cc86abe0f546cd51708a3b03", + "Content-Length": "770", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:23 GMT", + "Via": "1.1 varnish", + "Age": "2512", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1546-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 1000,\n \"items\": [\n {\n \"code\": \"en-US\",\n \"name\": \"U.S. English\",\n \"default\": true,\n \"fallbackCode\": null,\n \"sys\": {\n \"id\": \"19xQBLD6FTsStnt6P5MsyW\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"it\",\n \"name\": \"Italian\",\n \"default\": false,\n \"fallbackCode\": \"en-US\",\n \"sys\": {\n \"id\": \"3UbY70KDWtQQ38TxF5mdeQ\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"es\",\n \"name\": \"Spanish\",\n \"default\": false,\n \"fallbackCode\": \"it\",\n \"sys\": {\n \"id\": \"3Yd7Swgn13v6FPE2LHyvQ2\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4SRm6VeGUwGIyEaCekO6es", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"1e362936e86827aa1289d8dcb079fafd\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "47c09a32583a8d36a345ad0378dc87ef", + "Content-Length": "951", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:24 GMT", + "Via": "1.1 varnish", + "Age": "548", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1545-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "3", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4SRm6VeGUwGIyEaCekO6es\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:57:11.941Z\",\n \"updatedAt\": \"2018-11-08T16:57:11.941Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Building\",\n \"related\": [\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"2vATHvqCV2e0MoakIk42s\"\n }\n },\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\"\n }\n }\n ]\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"2c57cba8c83129c95bbb8579dced315d\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "b8d8765df84d8fde13e5ac7a1d855d4e", + "Content-Length": "442", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:24 GMT", + "Via": "1.1 varnish", + "Age": "2512", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1520-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "31", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n },\n \"name\": \"PHP CDA\",\n \"locales\": [\n {\n \"code\": \"en-US\",\n \"default\": true,\n \"name\": \"U.S. English\",\n \"fallbackCode\": null\n },\n {\n \"code\": \"it\",\n \"default\": false,\n \"name\": \"Italian\",\n \"fallbackCode\": \"en-US\"\n },\n {\n \"code\": \"es\",\n \"default\": false,\n \"name\": \"Spanish\",\n \"fallbackCode\": \"it\"\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/content_types\/blogPost", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"2482094db1a438b06587c42c5c5cde44\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "3d5ef28acf462c7af005aead884a503f", + "Content-Length": "419", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:24 GMT", + "Via": "1.1 varnish", + "Age": "2512", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1523-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "4", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"blogPost\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2018-11-08T16:50:32.544Z\",\n \"updatedAt\": \"2018-11-09T08:22:15.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6\n },\n \"displayField\": \"title\",\n \"name\": \"Blog Post\",\n \"description\": \"\",\n \"fields\": [\n {\n \"id\": \"title\",\n \"name\": \"Title\",\n \"type\": \"Symbol\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"related\",\n \"name\": \"Related\",\n \"type\": \"Array\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [\n {\n \"linkContentType\": [\n \"blogPost\"\n ]\n }\n ],\n \"linkType\": \"Entry\"\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/2vATHvqCV2e0MoakIk42s", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"c6e01672887358702687e905566e6de4\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "e92f77a755d870b12c4a36b34d9aebf8", + "Content-Length": "645", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:24 GMT", + "Via": "1.1 varnish", + "Age": "548", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1526-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"2vATHvqCV2e0MoakIk42s\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:44.549Z\",\n \"updatedAt\": \"2018-11-08T16:56:44.549Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Apartment\"\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4mJOqrfVEQWCs8iIYU4qkG", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"de7be1321aba06240bc3cd715ca7fca9\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "63b8d04435996e57587b87573ab47b96", + "Content-Length": "642", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:24 GMT", + "Via": "1.1 varnish", + "Age": "548", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1543-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:18.368Z\",\n \"updatedAt\": \"2018-11-08T16:56:18.368Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"House\"\n }\n}\n" + } +}] \ No newline at end of file diff --git a/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_non_default_locale.json b/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_non_default_locale.json new file mode 100644 index 00000000..646dba94 --- /dev/null +++ b/tests/Recordings/entry_link_resolver_does_not_fetch_preloaded_entries_with_non_default_locale.json @@ -0,0 +1,278 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4SRm6VeGUwGIyEaCekO6es?locale=it", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"fd04e86afd4a736419b84a122027f04a\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "6e7bb341b93ad656d0d326c87a191d69", + "Content-Length": "948", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:24 GMT", + "Via": "1.1 varnish", + "Age": "2513", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1529-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4SRm6VeGUwGIyEaCekO6es\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:57:11.941Z\",\n \"updatedAt\": \"2018-11-08T16:57:11.941Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Edificio\",\n \"related\": [\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"2vATHvqCV2e0MoakIk42s\"\n }\n },\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\"\n }\n }\n ]\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"2c57cba8c83129c95bbb8579dced315d\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "b8d8765df84d8fde13e5ac7a1d855d4e", + "Content-Length": "442", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:24 GMT", + "Via": "1.1 varnish", + "Age": "2513", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1546-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n },\n \"name\": \"PHP CDA\",\n \"locales\": [\n {\n \"code\": \"en-US\",\n \"default\": true,\n \"name\": \"U.S. English\",\n \"fallbackCode\": null\n },\n {\n \"code\": \"it\",\n \"default\": false,\n \"name\": \"Italian\",\n \"fallbackCode\": \"en-US\"\n },\n {\n \"code\": \"es\",\n \"default\": false,\n \"name\": \"Spanish\",\n \"fallbackCode\": \"it\"\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/locales", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"3538849fd73df963a89d5a5ec3ab2f29\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "0cb56e98cc86abe0f546cd51708a3b03", + "Content-Length": "770", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:25 GMT", + "Via": "1.1 varnish", + "Age": "2513", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1550-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 1000,\n \"items\": [\n {\n \"code\": \"en-US\",\n \"name\": \"U.S. English\",\n \"default\": true,\n \"fallbackCode\": null,\n \"sys\": {\n \"id\": \"19xQBLD6FTsStnt6P5MsyW\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"it\",\n \"name\": \"Italian\",\n \"default\": false,\n \"fallbackCode\": \"en-US\",\n \"sys\": {\n \"id\": \"3UbY70KDWtQQ38TxF5mdeQ\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"es\",\n \"name\": \"Spanish\",\n \"default\": false,\n \"fallbackCode\": \"it\",\n \"sys\": {\n \"id\": \"3Yd7Swgn13v6FPE2LHyvQ2\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/content_types\/blogPost", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"2482094db1a438b06587c42c5c5cde44\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "3d5ef28acf462c7af005aead884a503f", + "Content-Length": "419", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:25 GMT", + "Via": "1.1 varnish", + "Age": "2512", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1551-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "3", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"blogPost\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2018-11-08T16:50:32.544Z\",\n \"updatedAt\": \"2018-11-09T08:22:15.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6\n },\n \"displayField\": \"title\",\n \"name\": \"Blog Post\",\n \"description\": \"\",\n \"fields\": [\n {\n \"id\": \"title\",\n \"name\": \"Title\",\n \"type\": \"Symbol\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"related\",\n \"name\": \"Related\",\n \"type\": \"Array\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [\n {\n \"linkContentType\": [\n \"blogPost\"\n ]\n }\n ],\n \"linkType\": \"Entry\"\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/2vATHvqCV2e0MoakIk42s?locale=it", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"39c93de1e03c6495d4ef6395f357d45f\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "45e7f1b198d6c859b7bb151194b47ad6", + "Content-Length": "645", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:25 GMT", + "Via": "1.1 varnish", + "Age": "1454", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1525-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"2vATHvqCV2e0MoakIk42s\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:44.549Z\",\n \"updatedAt\": \"2018-11-08T16:56:44.549Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Appartamento\"\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4mJOqrfVEQWCs8iIYU4qkG?locale=it", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"4ec71320fe9531deed67969864915608\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "50ece065b1f2805fb0051788742f91bd", + "Content-Length": "638", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 09:04:25 GMT", + "Via": "1.1 varnish", + "Age": "768", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1524-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:18.368Z\",\n \"updatedAt\": \"2018-11-08T16:56:18.368Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Casa\"\n }\n}\n" + } +}] \ No newline at end of file diff --git a/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_all_locales.json b/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_all_locales.json new file mode 100644 index 00000000..5dd2de0a --- /dev/null +++ b/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_all_locales.json @@ -0,0 +1,279 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4SRm6VeGUwGIyEaCekO6es?locale=%2A", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"587bb7835847b781473fd8fa6ad1531b\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "f7483cbf98473117167f1c398bef3601", + "Content-Length": "386", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:13 GMT", + "Via": "1.1 varnish", + "Age": "2200", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1539-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4SRm6VeGUwGIyEaCekO6es\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:57:11.941Z\",\n \"updatedAt\": \"2018-11-08T16:57:11.941Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"Building\",\n \"it\": \"Edificio\"\n },\n \"related\": {\n \"en-US\": [\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"2vATHvqCV2e0MoakIk42s\"\n }\n },\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\"\n }\n }\n ]\n }\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"2c57cba8c83129c95bbb8579dced315d\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "b8d8765df84d8fde13e5ac7a1d855d4e", + "Content-Length": "442", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:13 GMT", + "Via": "1.1 varnish", + "Age": "2201", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1524-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n },\n \"name\": \"PHP CDA\",\n \"locales\": [\n {\n \"code\": \"en-US\",\n \"default\": true,\n \"name\": \"U.S. English\",\n \"fallbackCode\": null\n },\n {\n \"code\": \"it\",\n \"default\": false,\n \"name\": \"Italian\",\n \"fallbackCode\": \"en-US\"\n },\n {\n \"code\": \"es\",\n \"default\": false,\n \"name\": \"Spanish\",\n \"fallbackCode\": \"it\"\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/locales", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"3538849fd73df963a89d5a5ec3ab2f29\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "0cb56e98cc86abe0f546cd51708a3b03", + "Content-Length": "770", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:13 GMT", + "Via": "1.1 varnish", + "Age": "2201", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1529-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 1000,\n \"items\": [\n {\n \"code\": \"en-US\",\n \"name\": \"U.S. English\",\n \"default\": true,\n \"fallbackCode\": null,\n \"sys\": {\n \"id\": \"19xQBLD6FTsStnt6P5MsyW\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"it\",\n \"name\": \"Italian\",\n \"default\": false,\n \"fallbackCode\": \"en-US\",\n \"sys\": {\n \"id\": \"3UbY70KDWtQQ38TxF5mdeQ\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"es\",\n \"name\": \"Spanish\",\n \"default\": false,\n \"fallbackCode\": \"it\",\n \"sys\": {\n \"id\": \"3Yd7Swgn13v6FPE2LHyvQ2\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/content_types\/blogPost", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"2482094db1a438b06587c42c5c5cde44\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "3d5ef28acf462c7af005aead884a503f", + "Content-Length": "419", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:13 GMT", + "Via": "1.1 varnish", + "Age": "2200", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1542-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "4", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"blogPost\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2018-11-08T16:50:32.544Z\",\n \"updatedAt\": \"2018-11-09T08:22:15.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6\n },\n \"displayField\": \"title\",\n \"name\": \"Blog Post\",\n \"description\": \"\",\n \"fields\": [\n {\n \"id\": \"title\",\n \"name\": \"Title\",\n \"type\": \"Symbol\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"related\",\n \"name\": \"Related\",\n \"type\": \"Array\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [\n {\n \"linkContentType\": [\n \"blogPost\"\n ]\n }\n ],\n \"linkType\": \"Entry\"\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/2vATHvqCV2e0MoakIk42s?locale=%2A", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"20b131838dba83352913403f704624e5\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "08bf1c2549fe77b99b0822cf6d6c4e0b", + "Content-Length": "673", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:13 GMT", + "Via": "1.1 varnish", + "Age": "236", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1535-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"2vATHvqCV2e0MoakIk42s\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:44.549Z\",\n \"updatedAt\": \"2018-11-08T16:56:44.549Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"Apartment\",\n \"it\": \"Appartamento\"\n }\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries?sys.id%5Bin%5D=4mJOqrfVEQWCs8iIYU4qkG&locale=%2A", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"6b06ca04dd34e54301543d2e5513fba0\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "20c6f9d4f7d9d8b1854eb0a6d0c7ad88", + "Content-Length": "906", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:13 GMT", + "Via": "1.1 varnish", + "Age": "236", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1534-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 1,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:18.368Z\",\n \"updatedAt\": \"2018-11-08T16:56:18.368Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"House\",\n \"it\": \"Casa\"\n }\n }\n }\n ]\n}\n" + } +}] \ No newline at end of file diff --git a/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_default_locale.json b/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_default_locale.json new file mode 100644 index 00000000..213beb56 --- /dev/null +++ b/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_default_locale.json @@ -0,0 +1,278 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/locales", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"3538849fd73df963a89d5a5ec3ab2f29\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "0cb56e98cc86abe0f546cd51708a3b03", + "Content-Length": "770", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:09 GMT", + "Via": "1.1 varnish", + "Age": "2198", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1545-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "4", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 1000,\n \"items\": [\n {\n \"code\": \"en-US\",\n \"name\": \"U.S. English\",\n \"default\": true,\n \"fallbackCode\": null,\n \"sys\": {\n \"id\": \"19xQBLD6FTsStnt6P5MsyW\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"it\",\n \"name\": \"Italian\",\n \"default\": false,\n \"fallbackCode\": \"en-US\",\n \"sys\": {\n \"id\": \"3UbY70KDWtQQ38TxF5mdeQ\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"es\",\n \"name\": \"Spanish\",\n \"default\": false,\n \"fallbackCode\": \"it\",\n \"sys\": {\n \"id\": \"3Yd7Swgn13v6FPE2LHyvQ2\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4SRm6VeGUwGIyEaCekO6es", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"1e362936e86827aa1289d8dcb079fafd\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "47c09a32583a8d36a345ad0378dc87ef", + "Content-Length": "951", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:10 GMT", + "Via": "1.1 varnish", + "Age": "234", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1550-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4SRm6VeGUwGIyEaCekO6es\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:57:11.941Z\",\n \"updatedAt\": \"2018-11-08T16:57:11.941Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Building\",\n \"related\": [\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"2vATHvqCV2e0MoakIk42s\"\n }\n },\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\"\n }\n }\n ]\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"2c57cba8c83129c95bbb8579dced315d\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "b8d8765df84d8fde13e5ac7a1d855d4e", + "Content-Length": "442", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:10 GMT", + "Via": "1.1 varnish", + "Age": "2198", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1530-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n },\n \"name\": \"PHP CDA\",\n \"locales\": [\n {\n \"code\": \"en-US\",\n \"default\": true,\n \"name\": \"U.S. English\",\n \"fallbackCode\": null\n },\n {\n \"code\": \"it\",\n \"default\": false,\n \"name\": \"Italian\",\n \"fallbackCode\": \"en-US\"\n },\n {\n \"code\": \"es\",\n \"default\": false,\n \"name\": \"Spanish\",\n \"fallbackCode\": \"it\"\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/content_types\/blogPost", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"2482094db1a438b06587c42c5c5cde44\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "3d5ef28acf462c7af005aead884a503f", + "Content-Length": "419", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:10 GMT", + "Via": "1.1 varnish", + "Age": "2197", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1525-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"blogPost\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2018-11-08T16:50:32.544Z\",\n \"updatedAt\": \"2018-11-09T08:22:15.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6\n },\n \"displayField\": \"title\",\n \"name\": \"Blog Post\",\n \"description\": \"\",\n \"fields\": [\n {\n \"id\": \"title\",\n \"name\": \"Title\",\n \"type\": \"Symbol\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"related\",\n \"name\": \"Related\",\n \"type\": \"Array\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [\n {\n \"linkContentType\": [\n \"blogPost\"\n ]\n }\n ],\n \"linkType\": \"Entry\"\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/2vATHvqCV2e0MoakIk42s", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"c6e01672887358702687e905566e6de4\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "e92f77a755d870b12c4a36b34d9aebf8", + "Content-Length": "645", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:10 GMT", + "Via": "1.1 varnish", + "Age": "234", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1540-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"2vATHvqCV2e0MoakIk42s\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:44.549Z\",\n \"updatedAt\": \"2018-11-08T16:56:44.549Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"Apartment\"\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries?sys.id%5Bin%5D=4mJOqrfVEQWCs8iIYU4qkG&locale=en-US", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"35e6e1e0d85e04bcc9c5d4d0264904c9\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "221322072b537d1477950e6175b510cd", + "Content-Length": "878", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:10 GMT", + "Via": "1.1 varnish", + "Age": "234", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1549-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 1,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:18.368Z\",\n \"updatedAt\": \"2018-11-08T16:56:18.368Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"en-US\"\n },\n \"fields\": {\n \"title\": \"House\"\n }\n }\n ]\n}\n" + } +}] \ No newline at end of file diff --git a/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_non_default_locale.json b/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_non_default_locale.json new file mode 100644 index 00000000..c81f116e --- /dev/null +++ b/tests/Recordings/entry_link_resolver_only_fetches_missing_entries_with_non_default_locale.json @@ -0,0 +1,278 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4SRm6VeGUwGIyEaCekO6es?locale=it", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"fd04e86afd4a736419b84a122027f04a\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "6e7bb341b93ad656d0d326c87a191d69", + "Content-Length": "948", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:11 GMT", + "Via": "1.1 varnish", + "Age": "2200", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1530-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4SRm6VeGUwGIyEaCekO6es\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:57:11.941Z\",\n \"updatedAt\": \"2018-11-08T16:57:11.941Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Edificio\",\n \"related\": [\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"2vATHvqCV2e0MoakIk42s\"\n }\n },\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\"\n }\n }\n ]\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"2c57cba8c83129c95bbb8579dced315d\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "b8d8765df84d8fde13e5ac7a1d855d4e", + "Content-Length": "442", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:11 GMT", + "Via": "1.1 varnish", + "Age": "2199", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1527-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n },\n \"name\": \"PHP CDA\",\n \"locales\": [\n {\n \"code\": \"en-US\",\n \"default\": true,\n \"name\": \"U.S. English\",\n \"fallbackCode\": null\n },\n {\n \"code\": \"it\",\n \"default\": false,\n \"name\": \"Italian\",\n \"fallbackCode\": \"en-US\"\n },\n {\n \"code\": \"es\",\n \"default\": false,\n \"name\": \"Spanish\",\n \"fallbackCode\": \"it\"\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/locales", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"3538849fd73df963a89d5a5ec3ab2f29\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "0cb56e98cc86abe0f546cd51708a3b03", + "Content-Length": "770", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:11 GMT", + "Via": "1.1 varnish", + "Age": "2199", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1536-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "33", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 1000,\n \"items\": [\n {\n \"code\": \"en-US\",\n \"name\": \"U.S. English\",\n \"default\": true,\n \"fallbackCode\": null,\n \"sys\": {\n \"id\": \"19xQBLD6FTsStnt6P5MsyW\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"it\",\n \"name\": \"Italian\",\n \"default\": false,\n \"fallbackCode\": \"en-US\",\n \"sys\": {\n \"id\": \"3UbY70KDWtQQ38TxF5mdeQ\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"es\",\n \"name\": \"Spanish\",\n \"default\": false,\n \"fallbackCode\": \"it\",\n \"sys\": {\n \"id\": \"3Yd7Swgn13v6FPE2LHyvQ2\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/content_types\/blogPost", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"2482094db1a438b06587c42c5c5cde44\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "3d5ef28acf462c7af005aead884a503f", + "Content-Length": "419", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:11 GMT", + "Via": "1.1 varnish", + "Age": "2199", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1535-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"blogPost\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2018-11-08T16:50:32.544Z\",\n \"updatedAt\": \"2018-11-09T08:22:15.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6\n },\n \"displayField\": \"title\",\n \"name\": \"Blog Post\",\n \"description\": \"\",\n \"fields\": [\n {\n \"id\": \"title\",\n \"name\": \"Title\",\n \"type\": \"Symbol\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"related\",\n \"name\": \"Related\",\n \"type\": \"Array\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [\n {\n \"linkContentType\": [\n \"blogPost\"\n ]\n }\n ],\n \"linkType\": \"Entry\"\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/2vATHvqCV2e0MoakIk42s?locale=it", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"39c93de1e03c6495d4ef6395f357d45f\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "45e7f1b198d6c859b7bb151194b47ad6", + "Content-Length": "645", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:12 GMT", + "Via": "1.1 varnish", + "Age": "1141", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1527-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"2vATHvqCV2e0MoakIk42s\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:44.549Z\",\n \"updatedAt\": \"2018-11-08T16:56:44.549Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Appartamento\"\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries?sys.id%5Bin%5D=4mJOqrfVEQWCs8iIYU4qkG&locale=it", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"599a69c927b542d72f5af304d04edd45\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "7b79235dc607ae0f4c20405d78f0f001", + "Content-Length": "874", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:12 GMT", + "Via": "1.1 varnish", + "Age": "1011", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1542-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 1,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:18.368Z\",\n \"updatedAt\": \"2018-11-08T16:56:18.368Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Casa\"\n }\n }\n ]\n}\n" + } +}] \ No newline at end of file diff --git a/tests/Recordings/entry_non_default_locale_on_linked_entries.json b/tests/Recordings/entry_non_default_locale_on_linked_entries.json new file mode 100644 index 00000000..236f2131 --- /dev/null +++ b/tests/Recordings/entry_non_default_locale_on_linked_entries.json @@ -0,0 +1,327 @@ +[{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4SRm6VeGUwGIyEaCekO6es?locale=it", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"fd04e86afd4a736419b84a122027f04a\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "6e7bb341b93ad656d0d326c87a191d69", + "Content-Length": "948", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:08 GMT", + "Via": "1.1 varnish", + "Age": "2197", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1547-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4SRm6VeGUwGIyEaCekO6es\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:57:11.941Z\",\n \"updatedAt\": \"2018-11-08T16:57:11.941Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Edificio\",\n \"related\": [\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"2vATHvqCV2e0MoakIk42s\"\n }\n },\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\"\n }\n }\n ]\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"2c57cba8c83129c95bbb8579dced315d\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "b8d8765df84d8fde13e5ac7a1d855d4e", + "Content-Length": "442", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:09 GMT", + "Via": "1.1 varnish", + "Age": "2197", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1521-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n },\n \"name\": \"PHP CDA\",\n \"locales\": [\n {\n \"code\": \"en-US\",\n \"default\": true,\n \"name\": \"U.S. English\",\n \"fallbackCode\": null\n },\n {\n \"code\": \"it\",\n \"default\": false,\n \"name\": \"Italian\",\n \"fallbackCode\": \"en-US\"\n },\n {\n \"code\": \"es\",\n \"default\": false,\n \"name\": \"Spanish\",\n \"fallbackCode\": \"it\"\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/locales", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "\"3538849fd73df963a89d5a5ec3ab2f29\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "0cb56e98cc86abe0f546cd51708a3b03", + "Content-Length": "770", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:09 GMT", + "Via": "1.1 varnish", + "Age": "2197", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1528-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 3,\n \"skip\": 0,\n \"limit\": 1000,\n \"items\": [\n {\n \"code\": \"en-US\",\n \"name\": \"U.S. English\",\n \"default\": true,\n \"fallbackCode\": null,\n \"sys\": {\n \"id\": \"19xQBLD6FTsStnt6P5MsyW\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"it\",\n \"name\": \"Italian\",\n \"default\": false,\n \"fallbackCode\": \"en-US\",\n \"sys\": {\n \"id\": \"3UbY70KDWtQQ38TxF5mdeQ\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n },\n {\n \"code\": \"es\",\n \"name\": \"Spanish\",\n \"default\": false,\n \"fallbackCode\": \"it\",\n \"sys\": {\n \"id\": \"3Yd7Swgn13v6FPE2LHyvQ2\",\n \"type\": \"Locale\",\n \"version\": 0\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/content_types\/blogPost", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"2482094db1a438b06587c42c5c5cde44\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "3d5ef28acf462c7af005aead884a503f", + "Content-Length": "419", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:09 GMT", + "Via": "1.1 varnish", + "Age": "2197", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1520-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "2", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"blogPost\",\n \"type\": \"ContentType\",\n \"createdAt\": \"2018-11-08T16:50:32.544Z\",\n \"updatedAt\": \"2018-11-09T08:22:15.210Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 6\n },\n \"displayField\": \"title\",\n \"name\": \"Blog Post\",\n \"description\": \"\",\n \"fields\": [\n {\n \"id\": \"title\",\n \"name\": \"Title\",\n \"type\": \"Symbol\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false\n },\n {\n \"id\": \"related\",\n \"name\": \"Related\",\n \"type\": \"Array\",\n \"localized\": true,\n \"required\": false,\n \"disabled\": false,\n \"omitted\": false,\n \"items\": {\n \"type\": \"Link\",\n \"validations\": [\n {\n \"linkContentType\": [\n \"blogPost\"\n ]\n }\n ],\n \"linkType\": \"Entry\"\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries?sys.id%5Bin%5D=2vATHvqCV2e0MoakIk42s%2C4mJOqrfVEQWCs8iIYU4qkG&locale=it", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"6c5ff266557b01a1ce627b31b72131be\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "c757c1faadaae423f93686b13697c390", + "Content-Length": "404", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:09 GMT", + "Via": "1.1 varnish", + "Age": "2197", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1543-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 2,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"2vATHvqCV2e0MoakIk42s\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:44.549Z\",\n \"updatedAt\": \"2018-11-08T16:56:44.549Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Appartamento\"\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:18.368Z\",\n \"updatedAt\": \"2018-11-08T16:56:18.368Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n },\n \"locale\": \"it\"\n },\n \"fields\": {\n \"title\": \"Casa\"\n }\n }\n ]\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries\/4SRm6VeGUwGIyEaCekO6es?locale=%2A", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"587bb7835847b781473fd8fa6ad1531b\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "f7483cbf98473117167f1c398bef3601", + "Content-Length": "386", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:09 GMT", + "Via": "1.1 varnish", + "Age": "2196", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1528-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4SRm6VeGUwGIyEaCekO6es\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:57:11.941Z\",\n \"updatedAt\": \"2018-11-08T16:57:11.941Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"Building\",\n \"it\": \"Edificio\"\n },\n \"related\": {\n \"en-US\": [\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"2vATHvqCV2e0MoakIk42s\"\n }\n },\n {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Entry\",\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\"\n }\n }\n ]\n }\n }\n}\n" + } +},{ + "request": { + "method": "GET", + "url": "https:\/\/cdn.contentful.com\/spaces\/88dyiqcr7go8\/environments\/master\/entries?sys.id%5Bin%5D=2vATHvqCV2e0MoakIk42s%2C4mJOqrfVEQWCs8iIYU4qkG&locale=%2A", + "headers": { + "Host": "cdn.contentful.com", + "User-Agent": "GuzzleHttp\/6.3.3 curl\/7.54.0 PHP\/7.2.9", + "X-Contentful-User-Agent": "sdk contentful.php\/4.1.0-dev; platform PHP\/7.2.9; os macOS;", + "Accept": "application\/vnd.contentful.delivery.v1+json", + "Accept-Encoding": "gzip", + "Authorization": "Bearer 668efbfd9e398181166dec5df5a500aded96dbca2916646a3c7ec37082a7b756" + } + }, + "response": { + "status": { + "http_version": "1.1", + "code": "200", + "message": "OK" + }, + "headers": { + "Access-Control-Allow-Headers": "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,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature", + "Access-Control-Allow-Methods": "GET,HEAD,OPTIONS", + "Access-Control-Allow-Origin": "*", + "Access-Control-Expose-Headers": "Etag", + "Access-Control-Max-Age": "86400", + "Cache-Control": "max-age=0", + "Content-Encoding": "gzip", + "Content-Type": "application\/vnd.contentful.delivery.v1+json", + "Contentful-Api": "cda_cached", + "ETag": "W\/\"585d4fb427ebeaeef947f535d5dabc46\"", + "Server": "Contentful", + "X-Content-Type-Options": "nosniff", + "X-Contentful-Region": "us-east-1", + "X-Contentful-Request-Id": "e568c042e3f1e52dcd27e5809ce9678a", + "Content-Length": "426", + "Accept-Ranges": "bytes", + "Date": "Fri, 09 Nov 2018 08:59:09 GMT", + "Via": "1.1 varnish", + "Age": "2196", + "Connection": "keep-alive", + "X-Served-By": "cache-hhn1549-HHN", + "X-Cache": "HIT", + "X-Cache-Hits": "1", + "Vary": "Accept-Encoding" + }, + "body": "{\n \"sys\": {\n \"type\": \"Array\"\n },\n \"total\": 2,\n \"skip\": 0,\n \"limit\": 100,\n \"items\": [\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"2vATHvqCV2e0MoakIk42s\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:44.549Z\",\n \"updatedAt\": \"2018-11-08T16:56:44.549Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"Apartment\",\n \"it\": \"Appartamento\"\n }\n }\n },\n {\n \"sys\": {\n \"space\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"Space\",\n \"id\": \"88dyiqcr7go8\"\n }\n },\n \"id\": \"4mJOqrfVEQWCs8iIYU4qkG\",\n \"type\": \"Entry\",\n \"createdAt\": \"2018-11-08T16:56:18.368Z\",\n \"updatedAt\": \"2018-11-08T16:56:18.368Z\",\n \"environment\": {\n \"sys\": {\n \"id\": \"master\",\n \"type\": \"Link\",\n \"linkType\": \"Environment\"\n }\n },\n \"revision\": 1,\n \"contentType\": {\n \"sys\": {\n \"type\": \"Link\",\n \"linkType\": \"ContentType\",\n \"id\": \"blogPost\"\n }\n }\n },\n \"fields\": {\n \"title\": {\n \"en-US\": \"House\",\n \"it\": \"Casa\"\n }\n }\n }\n ]\n}\n" + } +}] \ No newline at end of file