Skip to content

Instantly share code, notes, and snippets.

@acouch
Created March 6, 2020 15:08
Show Gist options
  • Save acouch/4897b180a202a022b20ef585252980f6 to your computer and use it in GitHub Desktop.
Save acouch/4897b180a202a022b20ef585252980f6 to your computer and use it in GitHub Desktop.
{
"_links": {
"self": {
"href": "http:\/\/d8composer.docksal\/node\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/node\/article"
},
"http:\/\/drupal.org\/rest\/relation\/node\/article\/revision_uid": [
{
"href": "http:\/\/d8composer.docksal\/user\/1?_format=hal_json"
}
],
"http:\/\/drupal.org\/rest\/relation\/node\/article\/uid": [
{
"href": "http:\/\/d8composer.docksal\/user\/1?_format=hal_json",
"lang": "en"
}
]
},
"nid": [
{
"value": 1
}
],
"uuid": [
{
"value": "2895f7ac-3f29-4ee0-804e-55674a991d9f"
}
],
"vid": [
{
"value": 2
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"type": [
{
"target_id": "article"
}
],
"revision_timestamp": [
{
"value": "2020-03-06T14:00:33+00:00",
"format": "Y-m-d\\TH:i:sP"
}
],
"_embedded": {
"http:\/\/drupal.org\/rest\/relation\/node\/article\/revision_uid": [
{
"_links": {
"self": {
"href": "http:\/\/d8composer.docksal\/user\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
}
},
"uuid": [
{
"value": "ce6bef8f-546f-43ff-b67b-79c86547c4ad"
}
]
}
],
"http:\/\/drupal.org\/rest\/relation\/node\/article\/uid": [
{
"_links": {
"self": {
"href": "http:\/\/d8composer.docksal\/user\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
}
},
"uuid": [
{
"value": "ce6bef8f-546f-43ff-b67b-79c86547c4ad"
}
],
"lang": "en"
}
]
},
"status": [
{
"value": true,
"lang": "en"
}
],
"title": [
{
"value": "Test Article",
"lang": "en"
}
],
"created": [
{
"value": "2020-03-06T13:59:42+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"changed": [
{
"value": "2020-03-06T14:00:33+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"promote": [
{
"value": true,
"lang": "en"
}
],
"sticky": [
{
"value": false,
"lang": "en"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"revision_translation_affected": [
{
"value": true,
"lang": "en"
}
],
"path": [
{
"alias": null,
"pid": null,
"langcode": "en",
"lang": "en"
}
],
"body": [
{
"value": "<p>Test article body content.<\/p>\r\n",
"format": "basic_html",
"processed": "<p>Test article body content.<\/p>",
"summary": "",
"lang": "en"
}
],
"comment": [
{
"status": 2,
"cid": 0,
"last_comment_timestamp": 1583503197,
"last_comment_name": null,
"last_comment_uid": 1,
"comment_count": 0,
"lang": "en"
}
],
"layout_builder__layout": [
{
"section": {
"layout_id": "layout_onecol",
"layout_settings": {
"label": ""
},
"components": {
"5a910ec4-2991-4b09-95f6-c237662107d1": {
"uuid": "5a910ec4-2991-4b09-95f6-c237662107d1",
"region": "content",
"configuration": {
"id": "inline_block:basic",
"label": "Test custom block",
"provider": "layout_builder",
"label_display": "visible",
"view_mode": "full",
"block_revision_id": "1",
"block_serialized": null,
"context_mapping": [],
"type": "basic",
"uuid": "a00f69df-0c20-4f55-918a-a66a514f577e"
},
"additional": [],
"weight": 0
}
},
"third_party_settings": []
}
},
{
"section": {
"layout_id": "layout_onecol",
"layout_settings": {
"label": ""
},
"components": {
"a5b7d3a7-623b-4301-90fd-06c6fe644309": {
"uuid": "a5b7d3a7-623b-4301-90fd-06c6fe644309",
"region": "content",
"configuration": {
"label_display": "0",
"context_mapping": {
"entity": "layout_builder.entity"
},
"id": "field_block:node:article:field_image",
"formatter": {
"type": "image",
"settings": {
"image_style": "large",
"image_link": ""
},
"third_party_settings": [],
"label": "hidden"
}
},
"additional": [],
"weight": 0
},
"f73cb109-707a-4aad-8a22-747777059228": {
"uuid": "f73cb109-707a-4aad-8a22-747777059228",
"region": "content",
"configuration": {
"label_display": "0",
"context_mapping": {
"entity": "layout_builder.entity"
},
"id": "field_block:node:article:body",
"formatter": {
"type": "text_default",
"settings": [],
"third_party_settings": [],
"label": "hidden"
}
},
"additional": [],
"weight": 1
},
"4f9ed33c-75fb-4e49-b1af-37cc5957aaf5": {
"uuid": "4f9ed33c-75fb-4e49-b1af-37cc5957aaf5",
"region": "content",
"configuration": {
"label_display": "0",
"context_mapping": {
"entity": "layout_builder.entity"
},
"id": "field_block:node:article:field_tags",
"formatter": {
"type": "entity_reference_label",
"label": "above",
"settings": {
"link": true
},
"third_party_settings": []
}
},
"additional": [],
"weight": 2
},
"918dff8f-d20f-403e-916b-e7eb6cf1a78c": {
"uuid": "918dff8f-d20f-403e-916b-e7eb6cf1a78c",
"region": "content",
"configuration": {
"label_display": "0",
"context_mapping": {
"entity": "layout_builder.entity"
},
"id": "extra_field_block:node:article:links"
},
"additional": [],
"weight": 3
},
"c57c55ec-3783-40ef-802d-19bc2413259d": {
"uuid": "c57c55ec-3783-40ef-802d-19bc2413259d",
"region": "content",
"configuration": {
"label_display": "0",
"context_mapping": {
"entity": "layout_builder.entity"
},
"id": "field_block:node:article:comment",
"formatter": {
"type": "comment_default",
"label": "above",
"settings": {
"view_mode": "default",
"pager_id": 0
},
"third_party_settings": []
}
},
"additional": [],
"weight": 4
}
},
"third_party_settings": []
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment