Skip to content

Instantly share code, notes, and snippets.

@minamo173
Last active September 28, 2020 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minamo173/eb990c9e875dbb9630b07aed66ace285 to your computer and use it in GitHub Desktop.
Save minamo173/eb990c9e875dbb9630b07aed66ace285 to your computer and use it in GitHub Desktop.
export-for-contentful-in-ja.json
{
"contentTypes": [
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "person",
"type": "ContentType",
"createdAt": "2017-05-11T12:04:23.540Z",
"updatedAt": "2017-05-18T14:04:51.650Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedCounter": 7,
"version": 14,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedVersion": 13,
"firstPublishedAt": "2017-05-11T12:04:23.869Z",
"publishedAt": "2017-05-18T14:04:51.628Z"
},
"displayField": "name",
"name": "Person",
"description": "",
"fields": [
{
"id": "name",
"name": "Name",
"type": "Symbol",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "title",
"name": "Title",
"type": "Symbol",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "company",
"name": "Company",
"type": "Symbol",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "shortBio",
"name": "Short Bio",
"type": "Text",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "email",
"name": "Email",
"type": "Symbol",
"localized": false,
"required": false,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "phone",
"name": "Phone",
"type": "Symbol",
"localized": false,
"required": false,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "facebook",
"name": "Facebook",
"type": "Symbol",
"localized": false,
"required": false,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "twitter",
"name": "Twitter",
"type": "Symbol",
"localized": false,
"required": false,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "github",
"name": "Github",
"type": "Symbol",
"localized": false,
"required": false,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "image",
"name": "Image",
"type": "Link",
"localized": false,
"required": false,
"validations": [],
"disabled": false,
"omitted": false,
"linkType": "Asset"
}
]
},
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "blogPost",
"type": "ContentType",
"createdAt": "2017-05-11T12:17:42.862Z",
"updatedAt": "2017-05-17T10:55:24.031Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedCounter": 6,
"version": 12,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedVersion": 11,
"firstPublishedAt": "2017-05-11T12:17:43.175Z",
"publishedAt": "2017-05-17T10:55:24.004Z"
},
"displayField": "title",
"name": "Blog Post",
"description": "",
"fields": [
{
"id": "title",
"name": "Title",
"type": "Symbol",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "slug",
"name": "Slug",
"type": "Symbol",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "heroImage",
"name": "Hero Image",
"type": "Link",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false,
"linkType": "Asset"
},
{
"id": "description",
"name": "Description",
"type": "Text",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "body",
"name": "Body",
"type": "Text",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "author",
"name": "Author",
"type": "Link",
"localized": false,
"required": false,
"validations": [
{
"linkContentType": [
"person"
]
}
],
"disabled": false,
"omitted": false,
"linkType": "Entry"
},
{
"id": "publishDate",
"name": "Publish Date",
"type": "Date",
"localized": false,
"required": true,
"validations": [],
"disabled": false,
"omitted": false
},
{
"id": "tags",
"name": "Tags",
"type": "Array",
"localized": false,
"required": false,
"validations": [],
"disabled": false,
"omitted": false,
"items": {
"type": "Symbol",
"validations": [
{
"in": [
"general",
"javascript",
"static-sites"
]
}
]
}
}
]
}
],
"editorInterfaces": [
{
"controls": [
{
"fieldId": "name",
"widgetId": "singleLine"
},
{
"fieldId": "title",
"widgetId": "singleLine"
},
{
"fieldId": "company",
"widgetId": "singleLine"
},
{
"fieldId": "shortBio",
"widgetId": "markdown"
},
{
"fieldId": "email",
"widgetId": "singleLine"
},
{
"fieldId": "phone",
"widgetId": "singleLine"
},
{
"fieldId": "facebook",
"widgetId": "singleLine"
},
{
"fieldId": "twitter",
"widgetId": "singleLine"
},
{
"fieldId": "github",
"widgetId": "singleLine"
},
{
"fieldId": "image",
"widgetId": "assetLinkEditor"
}
],
"sys": {
"id": "default",
"type": "EditorInterface",
"version": 14,
"createdAt": "2017-05-11T12:04:24.145Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"contentType": {
"sys": {
"type": "Link",
"linkType": "ContentType",
"id": "person"
}
},
"updatedAt": "2017-05-18T14:04:52.378Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
}
}
},
{
"controls": [
{
"fieldId": "title",
"widgetId": "singleLine"
},
{
"fieldId": "slug",
"widgetId": "slugEditor"
},
{
"fieldId": "heroImage",
"widgetId": "assetLinkEditor"
},
{
"fieldId": "description",
"widgetId": "markdown"
},
{
"fieldId": "body",
"widgetId": "markdown"
},
{
"fieldId": "author",
"widgetId": "entryLinkEditor"
},
{
"fieldId": "publishDate",
"widgetId": "datePicker",
"settings": {
"format": "timeZ",
"ampm": "24"
}
},
{
"fieldId": "tags",
"widgetId": "tagEditor"
}
],
"sys": {
"id": "default",
"type": "EditorInterface",
"version": 12,
"createdAt": "2017-05-11T12:17:43.510Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"contentType": {
"sys": {
"type": "Link",
"linkType": "ContentType",
"id": "blogPost"
}
},
"updatedAt": "2017-05-17T10:55:25.370Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
}
}
}
],
"entries": [
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "15jwOBqpxqSAOy2eOO4S0m",
"type": "Entry",
"createdAt": "2017-05-11T12:04:29.532Z",
"updatedAt": "2017-05-18T14:13:14.463Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedCounter": 15,
"version": 190,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedVersion": 189,
"firstPublishedAt": "2017-05-11T12:06:33.065Z",
"publishedAt": "2017-05-18T14:13:14.431Z",
"contentType": {
"sys": {
"type": "Link",
"linkType": "ContentType",
"id": "person"
}
}
},
"fields": {
"name": {
"ja": "John Doe"
},
"title": {
"ja": "Web Developer"
},
"company": {
"ja": "ACME"
},
"shortBio": {
"ja": "Research and recommendations for modern stack websites."
},
"email": {
"ja": "john@doe.com"
},
"phone": {
"ja": "0176 / 1234567"
},
"facebook": {
"ja": "johndoe"
},
"twitter": {
"ja": "johndoe"
},
"github": {
"ja": "johndoe"
},
"image": {
"ja": {
"sys": {
"type": "Link",
"linkType": "Asset",
"id": "7orLdboQQowIUs22KAW4U"
}
}
}
}
},
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "31TNnjHlfaGUoMOwU0M2og",
"type": "Entry",
"createdAt": "2017-05-12T09:29:02.336Z",
"updatedAt": "2017-05-30T12:55:11.986Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedCounter": 13,
"version": 319,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedVersion": 318,
"firstPublishedAt": "2017-05-12T09:30:09.613Z",
"publishedAt": "2017-05-30T12:55:11.950Z",
"contentType": {
"sys": {
"type": "Link",
"linkType": "ContentType",
"id": "blogPost"
}
}
},
"fields": {
"title": {
"ja": "Automate with webhooks"
},
"slug": {
"ja": "automate-with-webhooks"
},
"heroImage": {
"ja": {
"sys": {
"type": "Link",
"linkType": "Asset",
"id": "4shwYI3POEGkw0Eg6kcyaQ"
}
}
},
"description": {
"ja": "Webhooks notify you, another person or system when resources have changed by calling a given HTTP endpoint."
},
"body": {
"ja": "## What are webhooks?\n\nThe webhooks are used to notify you when content has been changed. Specify a URL, configure your webhook, and we will send an HTTP POST request whenever something happens to your content.\n\n## How do I configure a webhook?\n\nGo to Settings → Webhooks from the navigation bar at the top. From there, hit Add webhook, and you will be directed to your new webhook. Then choose a name, put in the information of your HTTP endpoint (URL and authentication), specify any custom headers and select the types of events that should trigger the webhook.\n\n## Why do I get an old version in the CDA?\n\nAs the delivery API is powered by a CDN network consisting of hundreds of servers distributed across continents, it takes some time (up to a few minutes) to reflect the changes to the published content. This must be taken into consideration when reacting to webhooks. In normal conditions, there could be a reasonable delay of 2 to 5 minutes.\n\nExtracted from the [Webhooks FAQ](https://www.contentful.com/faq/webhooks/ \"Webhooks FAQ\")."
},
"author": {
"ja": {
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "15jwOBqpxqSAOy2eOO4S0m"
}
}
},
"publishDate": {
"ja": "2017-05-12T00:00+02:00"
},
"tags": {
"ja": [
"javascript"
]
}
}
},
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "3K9b0esdy0q0yGqgW2g6Ke",
"type": "Entry",
"createdAt": "2017-05-15T11:51:15.331Z",
"updatedAt": "2017-05-30T09:48:09.568Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedCounter": 8,
"version": 722,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedVersion": 721,
"firstPublishedAt": "2017-05-15T11:51:40.463Z",
"publishedAt": "2017-05-30T09:48:09.520Z",
"contentType": {
"sys": {
"type": "Link",
"linkType": "ContentType",
"id": "blogPost"
}
}
},
"fields": {
"title": {
"ja": "Hello world"
},
"slug": {
"ja": "hello-world"
},
"heroImage": {
"ja": {
"sys": {
"type": "Link",
"linkType": "Asset",
"id": "6Od9v3wzLOysiMum0Wkmme"
}
}
},
"description": {
"ja": "Your very first content with Contentful, pulled in JSON format using the Content Delivery API."
},
"body": {
"ja": "These is your very first content with Contentful, pulled in JSON format using the [Content Delivery API](https://www.contentful.com/developers/docs/references/content-delivery-api/ \"Content Delivery API\"). Content and presentation are now decoupled, allowing you to focus your efforts in building the perfect app.\n\n## Your first steps\n\nBuilding with Contentful is easy. First take a moment to get [the basics of content modelling](https://www.contentful.com/r/knowledgebase/content-modelling-basics/ \"the basics of content modelling\"), which you can set up in the [Contentful Web app](https://app.contentful.com/ \"Contentful Web app\"). Once you get that, feel free to drop by the [Documentation](https://www.contentful.com/developers/docs/ \"Documentation\") to learn a bit more about how to build your app with Contentful, in particular the [API basics](https://www.contentful.com/developers/docs/concepts/apis/ \"API basics\") and each one of our four APIs, as shown below.\n\n### Content Delivery API\n\nThe [Content Delivery API](https://www.contentful.com/developers/docs/references/content-delivery-api/ \"Content Delivery API\") (CDA), available at `cdn.contentful.com`, is a read-only API for delivering content from Contentful to apps, websites and other media. Content is delivered as JSON data, and images, videos and other media as files.\nThe API is available via a globally distributed content delivery network. The server closest to the user serves all content, both JSON and binary. This minimizes latency, which especially benefits mobile apps. Hosting content in multiple global data centers also greatly improves the availability of content.\n\n### Content Management API\n\nThe [Content Management API](https://www.contentful.com/developers/docs/references/content-management-api/ \"Content Management API\") (CMA), available at `api.contentful.com`, is a read-write API for managing content. Unlike the Content Delivery API, the management API requires you to authenticate as a Contentful user. You could use the CMA for several use cases, such as:\n* Automatic imports from different CMSes like WordPress or Drupal.\n* Integration with other backend systems, such as an e-commerce shop.\n* Building custom editing experiences. We built the [Contentful Web app](https://app.contentful.com/ \"Contentful Web app\") on top of this API.\n\n### Preview API\n\nThe [Content Preview API](https://www.contentful.com/developers/docs/concepts/apis/#content-preview-api \"Content Preview API\"), available at `preview.contentful.com`, is a variant of the CDA for previewing your content before delivering it to your customers. You use the Content Preview API in combination with a \"preview\" deployment of your website (or a \"preview\" build of your mobile app) that allows content managers and authors to view their work in-context, as if it were published, using a \"preview\" access token as though it were delivered by the CDA.\n\n### Images API\n\nThe [Images API](https://www.contentful.com/developers/docs/concepts/apis/#images-api \"Images API\"), available at `images.contentful.com`, allows you to resize and crop images, change their background color and convert them to different formats. Using our API for these transformations lets you upload high-quality assets, deliver exactly what your app needs, and still get all the benefits of our caching CDN."
},
"author": {
"ja": {
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "15jwOBqpxqSAOy2eOO4S0m"
}
}
},
"publishDate": {
"ja": "2017-05-15T00:00+02:00"
},
"tags": {
"ja": [
"general"
]
}
}
},
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "2PtC9h1YqIA6kaUaIsWEQ0",
"type": "Entry",
"createdAt": "2017-05-15T12:01:00.579Z",
"updatedAt": "2017-05-30T12:31:34.521Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedCounter": 7,
"version": 218,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "2AAFsI4st4sZPlF1LFT13q"
}
},
"publishedVersion": 217,
"firstPublishedAt": "2017-05-15T12:01:52.543Z",
"publishedAt": "2017-05-30T12:31:34.481Z",
"contentType": {
"sys": {
"type": "Link",
"linkType": "ContentType",
"id": "blogPost"
}
}
},
"fields": {
"title": {
"ja": "Static sites are great"
},
"slug": {
"ja": "static-sites-are-great"
},
"heroImage": {
"ja": {
"sys": {
"type": "Link",
"linkType": "Asset",
"id": "4NzwDSDlGECGIiokKomsyI"
}
}
},
"description": {
"ja": "Worry less about security, caching, and talking to the server. Static sites are the new thing."
},
"body": {
"ja": "## The case for the static site generator\n\nMore and more developers are jumping on the \"go static train\", and rightfully so. Static pages are fast, lightweight, they scale well. They are more secure, and simple to maintain and they allow you to focus all your time and effort on the user interface. Often times, this dedication really shows.\n\nIt just so happens that static site generators are mostly loved by developers, but not by the average Joe. They do not offer WYSIWYG, previewing on demo sites may take an update cycle, they are often based on markdown text files, and they require some knowledge of modern day repositories.\n\nMoreover, when teams are collaborating, it can get complicated quickly. Has this article already been proof-read or reviewed? Is this input valid? Are user permissions available, e.g. for administering adding and removing team members? Can this article be published at a future date? How can a large repository of content be categorized, organized, and searched? All these requirements have previously been more or less solved within the admin area of your CMS. But of course with all the baggage that made you leave the appserver-app-database-in-one-big-blob stack in the first place.\n\n## Content APIs to the rescue\n\nAn alternative is decoupling the content management aspect from the system. And then replacing the maintenance prone server with a cloud based web service offering. Effectively, instead of your CMS of old, you move to a [Content Management as a Service (CMaaS)](https://www.contentful.com/r/knowledgebase/content-as-a-service/ \"Content Management as a Service (CMaaS)\") world, with a content API to deliver all your content. That way, you get the all the [benefits of content management features](http://www.digett.com/blog/01/16/2014/pairing-static-websites-cms \"benefits of content management features\") while still being able to embrace the static site generator mantra.\n\nIt so happens that Contentful is offering just that kind of content API. A service that\n\n* from the ground up has been designed to be fast, scalable, secure, and offer high uptime, so that you don’t have to worry about maintenance ever again.\n* offers a powerful editor and lots of flexibility in creating templates for your documents that your editors can reuse and combine, so that no developers resources are required in everyday writing and updating tasks.\n* separates content from presentation, so you can reuse your content repository for any device platform your heart desires. That way, you can COPE (\"create once, publish everywhere\").\n* offers webhooks that you can use to rebuild your static site in a fully automated fashion every time your content is modified.\n\nExtracted from the article [CMS-functionality for static site generators](https://www.contentful.com/r/knowledgebase/contentful-api-cms-static-site-generators/ \"CMS-functionality for static site generators\"). Read more about the [static site generators supported by Contentful](https://www.contentful.com/developers/docs/tools/staticsitegenerators/ \"static site generators supported by Contentful\")."
},
"author": {
"ja": {
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "15jwOBqpxqSAOy2eOO4S0m"
}
}
},
"publishDate": {
"ja": "2017-05-16T00:00+02:00"
},
"tags": {
"ja": [
"javascript",
"static-sites"
]
}
}
}
],
"assets": [
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "7orLdboQQowIUs22KAW4U",
"type": "Asset",
"createdAt": "2017-05-11T13:04:42.667Z",
"updatedAt": "2017-05-16T09:29:04.154Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedCounter": 3,
"version": 56,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedVersion": 55,
"firstPublishedAt": "2017-05-11T13:05:17.053Z",
"publishedAt": "2017-05-16T09:29:04.140Z"
},
"fields": {
"title": {
"ja": "Sparkler"
},
"description": {
"ja": "John with Sparkler"
},
"file": {
"ja": {
"url": "//images.contentful.com/28p9vvm1oxuw/7orLdboQQowIUs22KAW4U/a97cd3b3415b51c5facfa6f4d184b650/matt-palmer-254999.jpg",
"details": {
"size": 2293094,
"image": {
"width": 3000,
"height": 2000
}
},
"fileName": "matt-palmer-254999.jpg",
"contentType": "image/jpeg"
}
}
}
},
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "6Od9v3wzLOysiMum0Wkmme",
"type": "Asset",
"createdAt": "2017-05-15T12:05:53.234Z",
"updatedAt": "2017-05-15T13:36:58.905Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedCounter": 2,
"version": 22,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedVersion": 21,
"firstPublishedAt": "2017-05-15T12:06:38.633Z",
"publishedAt": "2017-05-15T13:36:58.888Z"
},
"fields": {
"title": {
"ja": "Woman with black hat"
},
"description": {
"ja": "Woman wearing a black hat"
},
"file": {
"ja": {
"url": "//images.contentful.com/28p9vvm1oxuw/6Od9v3wzLOysiMum0Wkmme/95675d379a1284015a8210ca66cc53a5/cameron-kirby-88711.jpg",
"details": {
"size": 7316629,
"image": {
"width": 3000,
"height": 2000
}
},
"fileName": "cameron-kirby-88711.jpg",
"contentType": "image/jpeg"
}
}
}
},
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "4NzwDSDlGECGIiokKomsyI",
"type": "Asset",
"createdAt": "2017-05-15T12:33:11.841Z",
"updatedAt": "2017-05-15T12:33:50.816Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedCounter": 1,
"version": 21,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedVersion": 20,
"firstPublishedAt": "2017-05-15T12:33:50.801Z",
"publishedAt": "2017-05-15T12:33:50.801Z"
},
"fields": {
"title": {
"ja": "City"
},
"description": {
"ja": "City pictured from the sky"
},
"file": {
"ja": {
"url": "//images.contentful.com/28p9vvm1oxuw/4NzwDSDlGECGIiokKomsyI/d04a5154fa2e2ab02857950639325684/denys-nevozhai-100695.jpg",
"details": {
"size": 15736986,
"image": {
"width": 3992,
"height": 2992
}
},
"fileName": "denys-nevozhai-100695.jpg",
"contentType": "image/jpeg"
}
}
}
},
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"id": "4shwYI3POEGkw0Eg6kcyaQ",
"type": "Asset",
"createdAt": "2017-05-15T12:34:08.279Z",
"updatedAt": "2017-05-15T12:35:08.308Z",
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedCounter": 1,
"version": 38,
"publishedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"publishedVersion": 37,
"firstPublishedAt": "2017-05-15T12:35:08.292Z",
"publishedAt": "2017-05-15T12:35:08.292Z"
},
"fields": {
"title": {
"ja": "Man in the fields"
},
"description": {
"ja": "Tattooed man walking in a field"
},
"file": {
"ja": {
"url": "//images.contentful.com/28p9vvm1oxuw/4shwYI3POEGkw0Eg6kcyaQ/eeaa6df85fb4452ea69ad18c98ffc015/felix-russell-saw-112140.jpg",
"details": {
"size": 4539181,
"image": {
"width": 2500,
"height": 1667
}
},
"fileName": "felix-russell-saw-112140.jpg",
"contentType": "image/jpeg"
}
}
}
}
],
"locales": [
{
"name": "U.S. English",
"code": "ja",
"fallbackCode": null,
"default": true,
"contentManagementApi": true,
"contentDeliveryApi": true,
"optional": false,
"sys": {
"type": "Locale",
"id": "3Bb4qrZtqLzwN35dmTQ6a2",
"version": 0,
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"createdAt": "2017-05-11T12:01:17Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedAt": "2017-05-11T12:01:17Z"
}
}
],
"webhooks": [],
"roles": [
{
"name": "Author",
"description": "Allows editing of content",
"policies": [
{
"effect": "allow",
"actions": [
"create"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"create"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
}
],
"permissions": {
"ContentModel": [
"read"
],
"Settings": [],
"ContentDelivery": []
},
"sys": {
"type": "Role",
"id": "3Bc1MhEh97SAPAubIwDlgq",
"version": 0,
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"createdAt": "2017-05-11T12:01:17Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedAt": "2017-05-11T12:01:17Z"
}
},
{
"name": "Developer",
"description": "Allows reading Entries and managing API Keys",
"policies": [
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
}
],
"permissions": {
"ContentModel": [
"read"
],
"Settings": [],
"ContentDelivery": "all"
},
"sys": {
"type": "Role",
"id": "3Bdf87ZgV69DZme5Pll2MC",
"version": 0,
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"createdAt": "2017-05-11T12:01:17Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedAt": "2017-05-11T12:01:17Z"
}
},
{
"name": "Editor",
"description": "Allows editing, publishing and archiving of content",
"policies": [
{
"effect": "allow",
"actions": "all",
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": "all",
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
}
],
"permissions": {
"ContentModel": [
"read"
],
"Settings": [],
"ContentDelivery": []
},
"sys": {
"type": "Role",
"id": "3BehG3o7XDtAd7i5NLYesC",
"version": 0,
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"createdAt": "2017-05-11T12:01:17Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedAt": "2017-05-11T12:01:17Z"
}
},
{
"name": "Freelancer",
"description": "Allows only editing of content they created themselves",
"policies": [
{
"effect": "allow",
"actions": [
"create"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"create"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
},
{
"equals": [
{
"doc": "sys.createdBy.sys.id"
},
"User.current()"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
},
{
"equals": [
{
"doc": "sys.createdBy.sys.id"
},
"User.current()"
]
},
{
"paths": [
{
"doc": "fields.%.%"
}
]
}
]
}
},
{
"effect": "allow",
"actions": [
"delete"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
},
{
"equals": [
{
"doc": "sys.createdBy.sys.id"
},
"User.current()"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
},
{
"equals": [
{
"doc": "sys.createdBy.sys.id"
},
"User.current()"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
},
{
"equals": [
{
"doc": "sys.createdBy.sys.id"
},
"User.current()"
]
},
{
"paths": [
{
"doc": "fields.%.%"
}
]
}
]
}
},
{
"effect": "allow",
"actions": [
"delete"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
},
{
"equals": [
{
"doc": "sys.createdBy.sys.id"
},
"User.current()"
]
}
]
}
}
],
"permissions": {
"ContentModel": [
"read"
],
"Settings": [],
"ContentDelivery": []
},
"sys": {
"type": "Role",
"id": "3BfBcsMyyk2vTHgSvVE95c",
"version": 0,
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"createdAt": "2017-05-11T12:01:17Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedAt": "2017-05-11T12:01:17Z"
}
},
{
"name": "Translator 1",
"description": "Allows editing of localized fields in the specified language",
"policies": [
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
},
{
"paths": [
{
"doc": "fields.%.%"
}
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
},
{
"paths": [
{
"doc": "fields.%.%"
}
]
}
]
}
}
],
"permissions": {
"ContentModel": [
"read"
],
"Settings": [],
"ContentDelivery": []
},
"sys": {
"type": "Role",
"id": "3BgX7gCjpTS6ToMGo7tN6m",
"version": 0,
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"createdAt": "2017-05-11T12:01:17Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedAt": "2017-05-11T12:01:17Z"
}
},
{
"name": "Translator 2",
"description": "Allows editing of localized fields in the specified language",
"policies": [
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
},
{
"paths": [
{
"doc": "fields.%.%"
}
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
},
{
"paths": [
{
"doc": "fields.%.%"
}
]
}
]
}
}
],
"permissions": {
"ContentModel": [
"read"
],
"Settings": [],
"ContentDelivery": []
},
"sys": {
"type": "Role",
"id": "3Bi3CWAo8KktAQXSv6vl66",
"version": 0,
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"createdAt": "2017-05-11T12:01:17Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedAt": "2017-05-11T12:01:17Z"
}
},
{
"name": "Translator 3",
"description": "Allows editing of localized fields in the specified language",
"policies": [
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"read"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Entry"
]
},
{
"paths": [
{
"doc": "fields.%.%"
}
]
}
]
}
},
{
"effect": "allow",
"actions": [
"update"
],
"constraint": {
"and": [
{
"equals": [
{
"doc": "sys.type"
},
"Asset"
]
},
{
"paths": [
{
"doc": "fields.%.%"
}
]
}
]
}
}
],
"permissions": {
"ContentModel": [
"read"
],
"Settings": [],
"ContentDelivery": []
},
"sys": {
"type": "Role",
"id": "3BjfQSC3N7sqbZuUQmRC2a",
"version": 0,
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "28p9vvm1oxuw"
}
},
"createdBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"createdAt": "2017-05-11T12:01:17Z",
"updatedBy": {
"sys": {
"type": "Link",
"linkType": "User",
"id": "066RqBikAjzKy0SWUEtFvH"
}
},
"updatedAt": "2017-05-11T12:01:17Z"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment