Skip to content

Instantly share code, notes, and snippets.

@arildm
Created March 4, 2015 14:49
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 arildm/27612301fea302b1a5cf to your computer and use it in GitHub Desktop.
Save arildm/27612301fea302b1a5cf to your computer and use it in GitHub Desktop.
Captured article with hal enabled
{
"fields": {
"nid": {
"type": "integer",
"label": "Node ID",
"description": "The node ID.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "nid",
"provider": "node",
"queryable": true,
"revisionable": false,
"settings": {
"unsigned": true,
"size": "normal",
"min": "",
"max": "",
"prefix": "",
"suffix": ""
},
"target_entity_type_id": "node",
"translatable": false
},
"properties": {
"value": {
"type": "integer",
"label": "Integer value",
"description": ""
}
}
},
"uuid": {
"type": "uuid",
"label": "UUID",
"description": "The node UUID.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "uuid",
"provider": "node",
"queryable": true,
"revisionable": false,
"settings": {
"max_length": 128,
"case_sensitive": false
},
"target_entity_type_id": "node",
"translatable": false
},
"properties": {
"value": {
"type": "string",
"label": "Text value",
"description": ""
}
}
},
"vid": {
"type": "integer",
"label": "Revision ID",
"description": "The node revision ID.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "vid",
"provider": "node",
"queryable": true,
"revisionable": false,
"settings": {
"unsigned": true,
"size": "normal",
"min": "",
"max": "",
"prefix": "",
"suffix": ""
},
"target_entity_type_id": "node",
"translatable": false
},
"properties": {
"value": {
"type": "integer",
"label": "Integer value",
"description": ""
}
}
},
"type": {
"type": "entity_reference",
"label": "Type",
"description": "The node type.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "type",
"provider": "node",
"queryable": true,
"revisionable": false,
"settings": {
"target_type": "node_type",
"handler_settings": [],
"handler": "default"
},
"target_entity_type_id": "node",
"translatable": false
},
"properties": {
"target_id": {
"type": "string",
"label": "@label ID",
"description": ""
},
"entity": {
"type": "entity_reference",
"label": "Content type",
"description": "The referenced entity"
}
}
},
"langcode": {
"type": "language",
"label": "Language",
"description": "The node language code.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "langcode",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": [],
"target_entity_type_id": "node",
"translatable": false
},
"properties": {
"value": {
"type": "string",
"label": "Language code",
"description": ""
},
"language": {
"type": "language_reference",
"label": "Language object",
"description": "The referenced language"
}
}
},
"title": {
"type": "string",
"label": "Title",
"description": "",
"required": true,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": {
"NotNull": []
},
"name": "title",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": {
"max_length": 255,
"case_sensitive": false
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "string",
"label": "Text value",
"description": ""
}
}
},
"uid": {
"type": "entity_reference",
"label": "Authored by",
"description": "The username of the content author.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "uid",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": {
"target_type": "user",
"handler_settings": [],
"handler": "default"
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"target_id": {
"type": "integer",
"label": "@label ID",
"description": ""
},
"entity": {
"type": "entity_reference",
"label": "User",
"description": "The referenced entity"
}
}
},
"status": {
"type": "boolean",
"label": "Publishing status",
"description": "A boolean indicating whether the node is published.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "status",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": {
"on_label": "On",
"off_label": "Off"
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "boolean",
"label": "Boolean value",
"description": ""
}
}
},
"created": {
"type": "created",
"label": "Authored on",
"description": "The time that the node was created.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "created",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": [],
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "timestamp",
"label": "Timestamp value",
"description": ""
}
}
},
"changed": {
"type": "changed",
"label": "Changed",
"description": "The time that the node was last edited.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "changed",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": [],
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "timestamp",
"label": "Timestamp value",
"description": ""
}
}
},
"promote": {
"type": "boolean",
"label": "Promoted to front page",
"description": "",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "promote",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": {
"on_label": "On",
"off_label": "Off"
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "boolean",
"label": "Boolean value",
"description": ""
}
}
},
"sticky": {
"type": "boolean",
"label": "Sticky at top of lists",
"description": "",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "sticky",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": {
"on_label": "On",
"off_label": "Off"
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "boolean",
"label": "Boolean value",
"description": ""
}
}
},
"revision_timestamp": {
"type": "created",
"label": "Revision timestamp",
"description": "The time that the current revision was created.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "revision_timestamp",
"provider": "node",
"queryable": false,
"revisionable": true,
"settings": [],
"target_entity_type_id": "node",
"translatable": false
},
"properties": {
"value": {
"type": "timestamp",
"label": "Timestamp value",
"description": ""
}
}
},
"revision_uid": {
"type": "entity_reference",
"label": "Revision user ID",
"description": "The user ID of the author of the current revision.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "revision_uid",
"provider": "node",
"queryable": false,
"revisionable": true,
"settings": {
"target_type": "user",
"handler_settings": [],
"handler": "default"
},
"target_entity_type_id": "node",
"translatable": false
},
"properties": {
"target_id": {
"type": "integer",
"label": "@label ID",
"description": ""
},
"entity": {
"type": "entity_reference",
"label": "User",
"description": "The referenced entity"
}
}
},
"revision_log": {
"type": "string_long",
"label": "Revision log message",
"description": "Briefly describe the changes you have made.",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "revision_log",
"provider": "node",
"queryable": true,
"revisionable": true,
"settings": {
"case_sensitive": false
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "string",
"label": "Text value",
"description": ""
}
}
},
"path": {
"type": "path",
"label": "URL alias",
"description": "",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": true,
"constraints": [],
"name": "path",
"provider": "path",
"queryable": true,
"revisionable": false,
"settings": [],
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"alias": {
"type": "string",
"label": "Path alias",
"description": ""
},
"pid": {
"type": "string",
"label": "Path id",
"description": ""
}
}
},
"body": {
"type": "text_with_summary",
"label": "Body",
"description": "",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "body",
"provider": "field",
"queryable": true,
"revisionable": true,
"settings": [],
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "string",
"label": "Text",
"description": ""
},
"format": {
"type": "filter_format",
"label": "Text format",
"description": ""
},
"processed": {
"type": "string",
"label": "Processed text",
"description": "The text with the text format applied."
},
"summary": {
"type": "string",
"label": "Summary",
"description": ""
},
"summary_processed": {
"type": "string",
"label": "Processed summary",
"description": "The summary text with the text format applied."
}
}
},
"comment": {
"type": "comment",
"label": "Comments",
"description": "",
"required": true,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "comment",
"provider": "field",
"queryable": true,
"revisionable": true,
"settings": {
"comment_type": "comment"
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"status": {
"type": "integer",
"label": "Comment status",
"description": ""
},
"cid": {
"type": "integer",
"label": "Last comment ID",
"description": ""
},
"last_comment_timestamp": {
"type": "integer",
"label": "Last comment timestamp",
"description": "The time that the last comment was created."
},
"last_comment_name": {
"type": "string",
"label": "Last comment name",
"description": "The name of the user posting the last comment."
},
"last_comment_uid": {
"type": "integer",
"label": "Last comment user ID",
"description": ""
},
"comment_count": {
"type": "integer",
"label": "Number of comments",
"description": "The number of comments."
}
}
},
"field_cake": {
"type": "string",
"label": "Cake",
"description": "",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "field_cake",
"provider": "field",
"queryable": true,
"revisionable": true,
"settings": {
"max_length": 255,
"case_sensitive": false
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "string",
"label": "Text value",
"description": ""
}
}
},
"field_email": {
"type": "email",
"label": "Email",
"description": "",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "field_email",
"provider": "field",
"queryable": true,
"revisionable": true,
"settings": [],
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"value": {
"type": "email",
"label": "E-mail",
"description": ""
}
}
},
"field_image": {
"type": "image",
"label": "Image",
"description": "",
"required": false,
"storage": {
"cardinality": 1,
"custom_storage": false,
"constraints": [],
"name": "field_image",
"provider": "field",
"queryable": true,
"revisionable": true,
"settings": {
"uri_scheme": "public",
"default_image": {
"uuid": null,
"alt": "",
"title": "",
"width": null,
"height": null
},
"target_type": "file",
"display_field": false,
"display_default": false,
"target_bundle": null
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"target_id": {
"type": "integer",
"label": "@label ID",
"description": ""
},
"entity": {
"type": "entity_reference",
"label": "File",
"description": "The referenced entity"
},
"display": {
"type": "boolean",
"label": "Display",
"description": "Flag to control whether this file should be displayed when viewing content"
},
"description": {
"type": "string",
"label": "Description",
"description": ""
},
"alt": {
"type": "string",
"label": "Alternative text",
"description": "Alternative image text, for the image's 'alt' attribute."
},
"title": {
"type": "string",
"label": "Title",
"description": "Image title text, for the image's 'title' attribute."
},
"width": {
"type": "integer",
"label": "Width",
"description": "The width of the image in pixels."
},
"height": {
"type": "integer",
"label": "Height",
"description": "The height of the image in pixels."
}
}
},
"field_tags": {
"type": "taxonomy_term_reference",
"label": "Tags",
"description": "Enter a comma-separated list. For example: Amsterdam, Mexico City, \"Cleveland, Ohio\"",
"required": false,
"storage": {
"cardinality": -1,
"custom_storage": false,
"constraints": [],
"name": "field_tags",
"provider": "field",
"queryable": true,
"revisionable": true,
"settings": {
"allowed_values": [
{
"vocabulary": "tags",
"parent": 0
}
],
"target_type": "taxonomy_term",
"options_list_callback": null,
"target_bundle": null
},
"target_entity_type_id": "node",
"translatable": true
},
"properties": {
"target_id": {
"type": "integer",
"label": "@label ID",
"description": ""
},
"entity": {
"type": "entity_reference",
"label": "Taxonomy term",
"description": "The referenced entity"
}
}
}
},
"values": {
"_links": {
"self": {
"href": "http://d8.dev/node/1"
},
"type": {
"href": "http://d8.dev/rest/type/node/article"
},
"http://d8.dev/rest/relation/node/article/uid": [
{
"href": "http://d8.dev/user/1",
"lang": "en"
}
],
"http://d8.dev/rest/relation/node/article/revision_uid": [
{
"href": "http://d8.dev/user/1"
}
]
},
"uuid": [
{
"value": "19f4a05f-53a7-4cf1-a633-51aea706431a"
}
],
"type": [
{
"target_id": "article"
}
],
"langcode": [
{
"value": "en"
}
],
"title": [
{
"value": "Test article",
"lang": "en"
}
],
"_embedded": {
"http://d8.dev/rest/relation/node/article/uid": [
{
"_links": {
"self": {
"href": "http://d8.dev/user/1"
},
"type": {
"href": "http://d8.dev/rest/type/user/user"
}
},
"uuid": [
{
"value": "f0335a7f-90b3-4827-9c2d-4574f63bcb2e"
}
],
"lang": "en"
}
],
"http://d8.dev/rest/relation/node/article/revision_uid": [
{
"_links": {
"self": {
"href": "http://d8.dev/user/1"
},
"type": {
"href": "http://d8.dev/rest/type/user/user"
}
},
"uuid": [
{
"value": "f0335a7f-90b3-4827-9c2d-4574f63bcb2e"
}
]
}
]
},
"status": [
{
"value": 1,
"lang": "en"
}
],
"created": [
{
"value": 1424703527,
"lang": "en"
}
],
"changed": [
{
"value": 1424703557,
"lang": "en"
}
],
"promote": [
{
"value": 1,
"lang": "en"
}
],
"sticky": [
{
"value": 0,
"lang": "en"
}
],
"revision_timestamp": [
{
"value": 1424703527
}
],
"revision_log": [
{
"value": "",
"lang": "en"
}
],
"body": [
{
"value": "<p>The title of this node, always treated as non-markup plain text. &nbsp;Enter a comma-separated list. For example: Amsterdam, Mexico City, \"Cleveland, Ohio\"</p>\r\n",
"format": "basic_html",
"summary": "",
"lang": "en"
}
],
"comment": [
{
"status": 2,
"cid": 0,
"last_comment_timestamp": 1424703535,
"last_comment_name": null,
"last_comment_uid": 1,
"comment_count": 0,
"lang": "en"
}
]
},
"operation": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment