Skip to content

Instantly share code, notes, and snippets.

@ultimatemonty
Last active August 29, 2015 14:07
Show Gist options
  • Save ultimatemonty/b715a5f453720c3d4703 to your computer and use it in GitHub Desktop.
Save ultimatemonty/b715a5f453720c3d4703 to your computer and use it in GitHub Desktop.
Dreamfactory response with all "related data"
{
"record": [
{
"id": 2,
"name": "3M Aerospace",
"website": "http://solutions.3m.com/wps/portal/3M/en_US/Aerospace/Aircraft/",
"isActive": true,
"isQAActive": true,
"createdBy": "32",
"createdDate": "2014-10-01T15:19:35",
"modifiedBy": null,
"modifiedDate": null,
"VendorsVendorTypes_by_vendorId": [
{
"id": 2,
"vendorId": 2,
"vendorTypeId": 1
},
{
"id": 3,
"vendorId": 2,
"vendorTypeId": 2
},
{
"id": 4,
"vendorId": 2,
"vendorTypeId": 3
}
],
"VendorTypes_by_VendorsVendorTypes": [
{
"id": 1,
"type": "Component Repair",
"isActive": true,
"createdBy": "32",
"createdDate": "2014-09-30T14:05:34",
"modifiedBy": "32",
"modifiedDate": "2014-09-30T14:15:39"
},
{
"id": 2,
"type": "Parts Supplier",
"isActive": true,
"createdBy": "32",
"createdDate": "2014-09-30T14:34:21",
"modifiedBy": null,
"modifiedDate": null
},
{
"id": 3,
"type": "Materials Supplier",
"isActive": true,
"createdBy": "32",
"createdDate": "2014-09-30T14:35:21",
"modifiedBy": "32",
"modifiedDate": "2014-09-30T14:35:48"
}
]
}
]
}
{
"record": [
{
"id": 2,
"name": "3M Aerospace",
"website": "http://solutions.3m.com/wps/portal/3M/en_US/Aerospace/Aircraft/",
"isActive": true,
"isQAActive": true,
"createdBy": "32",
"createdDate": "2014-10-01T15:19:35",
"modifiedBy": null,
"modifiedDate": null,
"vendorTypes": [ 2, 3, 4 ]
}
],
"vendorTypes": [
{
"id": 1,
"type": "Component Repair",
"isActive": true,
"createdBy": "32",
"createdDate": "2014-09-30T14:05:34",
"modifiedBy": "32",
"modifiedDate": "2014-09-30T14:15:39"
},
{
"id": 2,
"type": "Parts Supplier",
"isActive": true,
"createdBy": "32",
"createdDate": "2014-09-30T14:34:21",
"modifiedBy": null,
"modifiedDate": null
},
{
"id": 3,
"type": "Materials Supplier",
"isActive": true,
"createdBy": "32",
"createdDate": "2014-09-30T14:35:21",
"modifiedBy": "32",
"modifiedDate": "2014-09-30T14:35:48"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment