Skip to content

Instantly share code, notes, and snippets.

@wms
Created May 12, 2016 16:00
Show Gist options
  • Save wms/143ba601f04adca11f61b5e30c20a0ec to your computer and use it in GitHub Desktop.
Save wms/143ba601f04adca11f61b5e30c20a0ec to your computer and use it in GitHub Desktop.
{
"_links": {
"self": {
"href": "/customer/2"
},
"payment": {
"href": "/payment?where=customer_id,2",
"name": "collection"
},
"rental": {
"href": "/rental?where=customer_id,2",
"name": "collection"
}
},
"customer_id": 2,
"store_id": 1,
"first_name": "Patricia",
"last_name": "Johnson",
"email": "[email protected]",
"address_id": 6,
"activebool": true,
"create_date": "2006-02-14T00:00:00.000Z",
"last_update": "2013-05-26T13:49:45.738Z",
"active": 1,
"_embedded": {
"address": {
"_links": {
"self": {
"href": "/address/6"
},
"customer": {
"href": "/customer?where=address_id,6",
"name": "collection"
},
"store": {
"href": "/store?where=address_id,6",
"name": "collection"
},
"staff": {
"href": "/staff?where=address_id,6",
"name": "collection"
}
},
"address_id": 6,
"address": "1121 Loja Avenue",
"address2": "",
"district": "California",
"city_id": 449,
"postal_code": "17886",
"phone": "838635286649",
"last_update": "2006-02-15 09:45:30",
"_embedded": {
"city": {
"_links": {
"self": {
"href": "/city/449"
},
"address": {
"href": "/address?where=city_id,449",
"name": "collection"
}
},
"city_id": 449,
"city": "San Bernardino",
"country_id": 103,
"last_update": "2006-02-15 09:45:25",
"_embedded": {
"country": {
"_links": {
"self": {
"href": "/country/103"
},
"city": {
"href": "/city?where=country_id,103",
"name": "collection"
}
},
"country_id": 103,
"country": "United States",
"last_update": "2006-02-15 09:44:00"
}
}
}
}
},
"store": {
"_links": {
"self": {
"href": "/store/1"
},
"customer": {
"href": "/customer?where=store_id,1",
"name": "collection"
}
},
"store_id": 1,
"manager_staff_id": 1,
"address_id": 1,
"last_update": "2006-02-15 09:57:12",
"_embedded": {
"address": {
"_links": {
"self": {
"href": "/address/1"
},
"customer": {
"href": "/customer?where=address_id,1",
"name": "collection"
},
"store": {
"href": "/store?where=address_id,1",
"name": "collection"
},
"staff": {
"href": "/staff?where=address_id,1",
"name": "collection"
}
},
"address_id": 1,
"address": "47 MySakila Drive",
"address2": null,
"district": "Alberta",
"city_id": 300,
"postal_code": "",
"phone": "",
"last_update": "2006-02-15 09:45:30",
"_embedded": {
"city": {
"_links": {
"self": {
"href": "/city/300"
},
"address": {
"href": "/address?where=city_id,300",
"name": "collection"
}
},
"city_id": 300,
"city": "Lethbridge",
"country_id": 20,
"last_update": "2006-02-15 09:45:25",
"_embedded": {
"country": {
"_links": {
"self": {
"href": "/country/20"
},
"city": {
"href": "/city?where=country_id,20",
"name": "collection"
}
},
"country_id": 20,
"country": "Canada",
"last_update": "2006-02-15 09:44:00"
}
}
}
}
},
"staff": {
"_links": {
"self": {
"href": "/staff/1"
},
"payment": {
"href": "/payment?where=staff_id,1",
"name": "collection"
},
"store": {
"href": "/store?where=manager_staff_id,1",
"name": "collection"
},
"rental": {
"href": "/rental?where=staff_id,1",
"name": "collection"
}
},
"staff_id": 1,
"first_name": "Mike",
"last_name": "Hillyer",
"address_id": 3,
"email": "[email protected]",
"store_id": 1,
"active": true,
"username": "Mike",
"password": "8cb2237d0679ca88db6464eac60da96345513964",
"last_update": "2006-05-16 16:13:11.79328",
"picture": "\\x89504e470d0a5a0a",
"_embedded": {
"address": {
"_links": {
"self": {
"href": "/address/3"
},
"customer": {
"href": "/customer?where=address_id,3",
"name": "collection"
},
"store": {
"href": "/store?where=address_id,3",
"name": "collection"
},
"staff": {
"href": "/staff?where=address_id,3",
"name": "collection"
}
},
"address_id": 3,
"address": "23 Workhaven Lane",
"address2": null,
"district": "Alberta",
"city_id": 300,
"postal_code": "",
"phone": "14033335568",
"last_update": "2006-02-15 09:45:30",
"_embedded": {
"city": {
"_links": {
"self": {
"href": "/city/300"
},
"address": {
"href": "/address?where=city_id,300",
"name": "collection"
}
},
"city_id": 300,
"city": "Lethbridge",
"country_id": 20,
"last_update": "2006-02-15 09:45:25",
"_embedded": {
"country": {
"_links": {
"self": {
"href": "/country/20"
},
"city": {
"href": "/city?where=country_id,20",
"name": "collection"
}
},
"country_id": 20,
"country": "Canada",
"last_update": "2006-02-15 09:44:00"
}
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment