Skip to content

Instantly share code, notes, and snippets.

@jpotts
Created March 2, 2018 20:53
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 jpotts/8bc6357dc51d443efb7255def1be5187 to your computer and use it in GitHub Desktop.
Save jpotts/8bc6357dc51d443efb7255def1be5187 to your computer and use it in GitHub Desktop.
Example Team Member JSON
{
"data": {
"type": "node--team_member",
"id": "d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb",
"attributes": {
"nid": 16,
"uuid": "d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb",
"vid": 17,
"langcode": "en",
"status": true,
"title": "Jeff Potts",
"created": 1520006849,
"changed": 1520006922,
"promote": true,
"sticky": false,
"revision_timestamp": 1520006922,
"revision_log": null,
"revision_translation_affected": null,
"default_langcode": true,
"path": null,
"body": {
"value": "<p>Test bio goes here.</p>\r\n",
"format": "basic_html",
"summary": ""
}
},
"relationships": {
"type": {
"data": {
"type": "node_type--node_type",
"id": "dd2a944e-2d6c-44a9-8f7d-75bfd7b57eb7"
},
"links": {
"self": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb/relationships/type",
"related": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb/type"
}
},
"uid": {
"data": {
"type": "user--user",
"id": "56e75b23-89c2-42a2-8c20-30c23e44eda8"
},
"links": {
"self": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb/relationships/uid",
"related": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb/uid"
}
},
"revision_uid": {
"data": {
"type": "user--user",
"id": "56e75b23-89c2-42a2-8c20-30c23e44eda8"
},
"links": {
"self": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb/relationships/revision_uid",
"related": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb/revision_uid"
}
},
"field_headshot": {
"data": {
"type": "file--file",
"id": "311f36ae-b233-4db9-84ba-803525307e42",
"meta": {
"alt": "Jeff Potts",
"title": "",
"width": "200",
"height": "200"
}
},
"links": {
"self": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb/relationships/field_headshot",
"related": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb/field_headshot"
}
}
},
"links": {
"self": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb"
}
},
"links": {
"self": "http://localhost:8888/jsonapi/node/team_member/d56fd5ed-65f8-4f31-b4c0-29f33ea67bfb"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment