-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the ShiroBnb Wiki!
API Router Documentation as well as examples of bodies and responses are in the read me!
ShiroBnB currently supports full CRUD functionality for Spots. All spots are read on the home page, you have the ability to create a spot via a form once logged in, and you can update and delete spots via the manage spots tab in the profile drop down once logged in as well. ShiroBnB also supports CRD functionality for Reviews, with your ability to read, create, and delete reviews being available via the spot details page when you navigate to a spots page by clicking on the spot's card on the home page.
Redux State Pseudocode:
All data will be normalized, such that an array like const example = [{id: 1, key: 'value'}, {id: 2, key: 'value}] will instead be an object where the array entries will be paired with a key of their own id like: const exampleObj = {1: {key: 'value'}, 2: {key: 'value'}}. Any page specific data such as spotById will be stored as its respective key: spotById: {data: value}.