- User will be able to...
- View all candies
- View easter candy
- View halloween candy
- View a single candy
- Search through selected candies
- Add a candy to the list
- Add candy to the shopping cart
- Change the amount of a single candy selected
- Remove candy from the shopping cart
API Route | Request Method |
Body | Response |
---|---|---|---|
/candy | GET | [{...},{...},...] | |
/candy | POST | {name, image, price, nuts, chocolate, occasion} |
{id, image, price, nuts, chocolate, occasion} |
/cart | GET | [{...},{...},...] | |
/cart | POST | {name, image, price, nuts, chocolate, occasion, amount} |
{id, name, image, price, nuts, chocolate, occasion, amount} |
/cart/:id | PATCH | {amount} | {id, name, image, price, nuts, chocolate, occasion, amount} |
/cart/:id | DELETE | {} |
API Route | Component |
---|---|
/home | Home.js |
/candy/all | Candy.js |
/candy/easter | Candy.js |
/candy/halloween | Candy.js |
/about | About.js |
/cart | Cart.js |
/candy/:id | CandyItem.js |
/candy/new | NewCandyForm.js |
/candy/new/succesful | SuccesfulPost.js |