-
Notifications
You must be signed in to change notification settings - Fork 1
backend routes
Roger Hu edited this page Feb 9, 2021
·
15 revisions
-
GET /
StaticPagesController#root
-
GET /api/users
- returns the user's information -
POST /api/users
- sign up
-
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/products
- returns all product listings -
GET /api/products/:id
- returns detailed view of a product listing
-
POST /api/reviews/
- create new review -
PATCH /api/reviews/:id
- edit existing review -
DELETE /api/reviews/:id
- delete existing review
-
Post /api/cart_items/
- create cart item when user clicks on "add to cart" -
PATCH /api/cart_items/:id
- update cart items (quantity) -
DELETE /api/cart_items/:id
- delete cart items