-
Notifications
You must be signed in to change notification settings - Fork 0
sample state
Ben Blue edited this page Oct 23, 2017
·
3 revisions
{
entities: {
videos: {
123: {
id: 123,
title: "How To: Improve Your Ball Handling At Home",
author_id: 11,
description: "Improve your ball handling today with this stationary dribbling routine. You can even try this workout at home because it is stationary and doesn't require a lot of room. Try this everyday and watch how quickly your handles improve.",
category: "sports"
upvotes: 48390,
downvotes: 429,
view: 1,926,257,
current_user_likes: false,
comment_ids: [182, ]
}
},
users: {
123: {
id: 123,
username: "deandre_jordan",
img_url: "https://img.bleacherreport.net/img/slides/photos/004/251/695/hi-res-aff867d7491605022f04a61922ab06f5_crop_exact.jpg?h=533&w=800&q=70&crop_x=center&crop_y=top"
}
1873: {
id: 1873,
username: "chris_paul",
img_url: "http://i.cdn.turner.com/drp/nba/clippers/sites/default/files/styles/hi_res_full_width/public/1170-lasik-feature-161116.png?itok=UOVQkCdJ"
},
913: {
id: 913,
username: "blake_griffin",
img_url: "https://cdn-s3.si.com/s3fs-public/2016/10/27/clippers-blake-griffin.jpg"
}
},
comments: {
182: {
id: 182,
author_id: 913,
body: "where were u when nba ded",
created_at: 239239230,
reply_ids: [129]
},
910: {
id: 910,
author_id: 123,
body: "where were u when nba deaaaaaaaaaaaaaad",
created_at: 239239230,
reply_ids: []
}
},
replies: {
129: {
id: 129,
body: "I was here when nba was ded",
author_id: 1873,
created_at: 239249230
}
}
}
},
ui: {
loading: true/false,
sidebar: true/false
},
errors: {
login: ["Incorrect username/password combination"],
upload: ["Insufficient Info"],
comment: ["Insufficient Info"],
reply: ["Insufficient Info"]
},
session: {
id: 412,
username: "austin_rivers",
img_url: "http://image.oregonlive.com/home/olive-media/width960/img/oregonian/photo/2016/04/29/-c21dcfbc31ab038d.jpg",
subscriptions: [913]
}
}