Skip to content

Instantly share code, notes, and snippets.

@jking6884
Created November 21, 2015 20:57
Show Gist options
  • Save jking6884/8c91c28c86fd26969de2 to your computer and use it in GitHub Desktop.
Save jking6884/8c91c28c86fd26969de2 to your computer and use it in GitHub Desktop.
{
"data": {
"id": 1,
"type": "user",
"attributes": {
"first" : payload.general.first,
"last" : payload.general.last,
},
relationships: {
userRealty: {
data: {
id: '1',
"type": "user-realty",
"relationships" : {
userRealtyLicenses: {
id: '1',
"type" : "user-realty-license"
}
}
}
}
}
},
included: [{
id: '1',
type: 'user-realty',
"attributes": {
mlsName: payload.realty.mls_name,
mlsUserId: payload.realty.mls_user_id,
licenseNum: payload.realty.license_num
}
},
{
id:'1',
type: 'user-realty-license',
"attributes": {
"type":"license",
"state" : "georgia"
}
},
{
id:'2',
type: 'user-realty-license',
"attributes": {
"type":"license",
"state" : "alabama"
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment