Skip to content

Sample State

Sandy Cruz edited this page May 23, 2021 · 3 revisions

Sample State

{
  entities: {
    restaurants: {
      1: {
        name: "Mourad",
        location: "140 New Montgomery Street, San Francisco, CA 94105",
        description: "This 3.5 San Francisco Chronicle rated and four-year running Michelin Starred....",
        id: 1,
        latitude: 37.786812,
        longitude: -122.399931,
        photoUrl: "https://broken-table-dev...",
        averageRating: 3.7,
        isFavorited: false,
        numberOfFavorites: 2,
        breakfastCapacity: 5,
        lunchCapacity: 4,
        dinnerCapacity: 68,
      },
      2: {
        name: "Sushi Nagai",
        location: "111 Ellis Street, San Francisco, CA 94102",
        description: "Sushi Nagai is located at 125 Ellis Street in San Francisco’s...",
        ......
      },
      3: {
        name: "Kin Khao",
        location: "140 Mason Street, San Francisco, CA 94102",
        description: "Michelin-starred Kin Khao serves delicious Thai food that stays true...",
        ......
      }
    },
    reviews: {
      25: {
        id: 25,
        body: "This particular location like the many other restaurants down the block has ample seating and a second floor.",
        rating: 3,
        authorId: 5,
        city: "Woodcutter's House",
        state: "NC"
      },
      105: {
        id: 105,
        body: "Great lattes and cold drinks as well....",
        .......
      }
    },
    users: {
      5: {
        id: 5,
        username: "calpal",
        photoUrl: "https://broken-table-dev....",
        city: "Zora's Domain",
        state: "CA"
      },
      25: {
        id: 25,
        username: "phoenix",
        photoUrl: "https://broken-table-dev....",
        .....
      }
    },
  },
  ui: {
    filter: {
      bounds: {
        northEast: {
          latitude: "37.8047795720462",
          longitude: "-122.37619351306152",
         },
        southWest: {
          latitude: "37.77866612068229",
          longitude: "-122.42031048693848",
        } 
       }
     }
  },
  errors: {
    session: ["Incorrect username/password combination"],
  },
  session: { id: 62 }
}
Clone this wiki locally