Sample State - Percapio/Codex GitHub Wiki
{
entities: {
books: {
1: {
id: ISBN,
ISBN: 12391023910,
title: 'Book Title',
author: 'first and last name',
summary: 'summary of book',
review_id: [1, 2..],
tag_id: [1, 2..]
},
2: {
id: ISBN,
title: 'Book Title',
author: 'first and last name',
summary: 'summary of book',
review_id: [4, 5..],
tag_id: [4, 5..]
}
},
users: {
1: {
id: 1,
username: 'username',
email: 'email',
bookshelves: [1, 2..],
current_reading_id: 4,
want_to_read_id: 5
}
},
bookshelf: {
id: 1,
owner_id: 1,
title: 'some_name',
description: 'some_info'
}
},
errors: {
login: ["Incorrect username/password combination"],
reviewForm: ["Review form must be filled out"]
},
session: {
id: 1,
username: 'username',
}
}