Skip to content

Instantly share code, notes, and snippets.

@badri
Created March 18, 2017 02:47
Show Gist options
  • Save badri/cc1d01b371a9b838da6575b2b211d96b to your computer and use it in GitHub Desktop.
Save badri/cc1d01b371a9b838da6575b2b211d96b to your computer and use it in GitHub Desktop.
Node create response
{
"nid":[
{
"value":"1"
}
],
"uuid":[
{
"value":"182973da-694d-443a-9082-e485665e3bd4"
}
],
"vid":[
{
"value":"1"
}
],
"langcode":[
{
"value":"en"
}
],
"type":[
{
"target_id":"article",
"target_type":"node_type",
"target_uuid":"95f1b114-3c97-4e8c-b18b-c5c8a1f7f7a5"
}
],
"title":[
{
"value":"Example node title with body"
}
],
"uid":[
{
"target_id":"1",
"target_type":"user",
"target_uuid":"4aa78309-82d2-4d60-b01a-78b7f8c1113a",
"url":"\/user\/1"
}
],
"status":[
{
"value":true
}
],
"created":[
{
"value":1489805159
}
],
"changed":[
{
"value":1489805159
}
],
"promote":[
{
"value":true
}
],
"sticky":[
{
"value":false
}
],
"revision_timestamp":[
{
"value":1489805159
}
],
"revision_uid":[
{
"target_id":"1",
"target_type":"user",
"target_uuid":"4aa78309-82d2-4d60-b01a-78b7f8c1113a",
"url":"\/user\/1"
}
],
"revision_log":[
],
"revision_translation_affected":[
{
"value":true
}
],
"default_langcode":[
{
"value":true
}
],
"path":[
],
"body":[
{
"value":"FOOO Habitant eligendi nobis nonummy, rerum facere. Error atque, praesentium, suspendisse laoreet nemo! Magni cupiditate sociosqu hac? Tristique. Necessitatibus nisl ab! Ac netus dolore leo feugiat suscipit magnam tortor mi placerat.",
"format":null,
"summary":null
}
],
"comment":[
{
"status":2,
"cid":0,
"last_comment_timestamp":0,
"last_comment_name":null,
"last_comment_uid":0,
"comment_count":0
}
],
"field_image":[
],
"field_tags":[
{
"target_id":3,
"target_type":"taxonomy_term",
"target_uuid":"07600395-da93-4433-9f5d-d3f0f60f34dd",
"url":"\/taxonomy\/term\/3"
},
{
"target_id":2,
"target_type":"taxonomy_term",
"target_uuid":"62eaca3a-6ed1-4bd2-a4c4-4f1a3dab1559",
"url":"\/taxonomy\/term\/2"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment