Skip to content

Instantly share code, notes, and snippets.

@lasseebert
Created December 18, 2018 09:46
Show Gist options
  • Save lasseebert/b46106b9e7b69fcad58f876d0e0616d4 to your computer and use it in GitHub Desktop.
Save lasseebert/b46106b9e7b69fcad58f876d0e0616d4 to your computer and use it in GitHub Desktop.
{
"data": [
{
"attributes": {
"name": "Grimas Lair"
},
"id": "78",
"relationships": {
"addresses": {
"data": [
{
"id": "76ab09e2-a522-4b12-ac1f-54913089655d",
"type": "addresses"
}
]
},
"admin": {
"data": {
"id": "245",
"type": "accounts"
}
},
"alarm-statuses": {
"data": [
{
"id": "e01758cb-1be5-44d3-a414-b20137d22410",
"type": "alarm-statuses"
}
]
}
},
"type": "properties"
}
],
"included": [
{
"attributes": {
"email": null,
"name": "Grima Wormtongue",
"phone": null,
"role": "admin"
},
"id": "245",
"relationships": {
"email-settings": {
"data": {
"id": "b7ef670d-eadb-45b5-8da6-15292300e2d0",
"type": "account-email-settings"
}
}
},
"type": "accounts"
},
{
"attributes": {
"apartment": "All devices"
},
"id": "262",
"relationships": {
"address": {
"data": {
"id": "76ab09e2-a522-4b12-ac1f-54913089655d",
"type": "addresses"
}
},
"alarm-statuses": {
"data": [
{
"id": "7e76e7a7-9c62-46c7-86c3-bdd4ac9076cf",
"type": "alarm-statuses"
}
]
},
"tenant": {
"data": {
"id": "246",
"type": "accounts"
}
}
},
"type": "households"
},
{
"attributes": {
"city": "Ry",
"country-code-alpha3": "DNK",
"street-and-number": "Grimas Lair",
"zip-code": "8680"
},
"id": "76ab09e2-a522-4b12-ac1f-54913089655d",
"relationships": {
"households": {
"data": [
{
"id": "262",
"type": "households"
}
]
},
"property": {
"data": {
"id": "78",
"type": "properties"
}
}
},
"type": "addresses"
},
{
"attributes": {
"alarm-type": "ventilation",
"status": "alert"
},
"id": "7e76e7a7-9c62-46c7-86c3-bdd4ac9076cf",
"type": "alarm-statuses"
},
{
"attributes": {
"ventilation-alarm": false
},
"id": "b7ef670d-eadb-45b5-8da6-15292300e2d0",
"type": "account-email-settings"
},
{
"attributes": {
"alarm-type": "ventilation",
"status": "alert"
},
"id": "e01758cb-1be5-44d3-a414-b20137d22410",
"type": "alarm-statuses"
}
],
"jsonapi": {
"version": "1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment