-
Notifications
You must be signed in to change notification settings - Fork 1
Sample State
Alexandra Savramis edited this page Apr 13, 2018
·
13 revisions
{
entities: {
"restaurant": {
"id": 1,
"name": "Dinner",
"description": "Waterbar is a seafood-centric restaurant located on the waterfront with spectacular panoramic views of the bay and city skyline, exceptional design, and a menu of the freshest sustainable fish and seafood.",
"phoneNumber": "(415) 284-9922",
"websiteLink": "http://www.waterbarsf.com/",
"hours": "Dinner Menu: Sunday - Monday 5:30pm - 9:30pm",
"diningStyle": null,
"dressCode": "Casual Elegant",
"executiveChef": "Parke Ulrich",
"priceRange": "$50 and over",
"privatePartyFacilities": null,
"privatePartyContact": null,
},
"location": {
"id": 1,
"latitude": 38.8951,
"longitude": -77.0364,
"address": null,
"neighborhood": null,
"crossStreet": null,
"parkingDetails": null,
"locationImageUrl": null,
"restaurantId": 1,
"createdAt": "2018-04-08T00:45:21.601Z",
"updatedAt": "2018-04-08T00:45:21.601Z"
},
"reviews": {
"1": {
"id": 1,
"username": "Al",
"body": "Would definitely return for the maspotatoes",
"rating": 5,
"restuarantId": 67,
},
"2": {
"id": 2,
"username": "Al",
"body": "Would definitely return for the steak",
"rating": 4,
"restuarantId": 17,
},
},
"reservations": {
"1": {
"id": 1,
"partySize": 3,
"date": "0010-12-18",
"points": 1000,
"userId": 2,
"restaurantId": 17,
},
"2": {
"id": 2,
"partySize": 2,
"date": "2018-08-12",
"points": 300,
"userId": 3,
"restaurantId": 11,
}
},
"photos": {
"1": {
"id": 1,
"url": "https://resizer.otstatic.com/v2/photos/large/24383482.jpg",
"restaurantId": 11,
},
"2": {
"id": 2,
"url": "https://resizer.otstatic.com/v2/photos/large/25038181.jpg",
"restaurantId": 81,
},
"cuisines": {
"1": {
"id": 1,
"name": "American"
"restaurantId": 11,
},
"2": {
"id": 2,
"name": "Steakhouse",
"restaurantId": 19,
},
"3": {
"id": 3,
"name": "Californian",
"restaurantId": 21,
}
"user": {
"id": 11,
"username": "asav",
"reservationIds": [3, 4, 91, 2, 16],
"favoriteRestaurantIds": [1, 19, 2, 16, 2],
},
"ui": {
"loading": true/false,
// if you select a restaurant, the other view needs to know which one you picked
"selectedRestaurantId": 2
},
"errors": {
"login": ["Incorrect username/password combination"]
},
"session": {
"id": 83,
"username": "asav",
}
}