-
Notifications
You must be signed in to change notification settings - Fork 0
Routes
rkoron007 edited this page Apr 1, 2018
·
17 revisions
-
/
- main splash page /login
/signup
-
/cart
- view shopping cart -
/search
- search items -
/users/:userId
- user profile with their listed items -
/items
- view all items -
/items/new
- create a item -
/items/:itemId
- show an item (can comment on item here as well) -
/items/:itemId/edit
- edit a item
GET / StaticPagesController#root
-
GET /api/users
returns user information of displayed items -
POST /api/users
-sign up
-
GET /api/items
- returns relevant items -
GET /api/items/:id
- returns an item -
POST /api/items
- creates an item -
DELETE /api/items/:id
- remove an item -
PATCH /api/items/:id
- update an item
-
POST /api/items/:item_id/comments
- create a comment on an item -
DELETE /api/items/:item_id/comments/:id
- delete a comment on an item
-
GET api/carts/:user_id
- returns user's shopping cart -
GET api/carts/:user_id/:item_id
- adds an item to a user's shopping cart -
DELETE api/carts/:user_id/:item_id
- remove an item from shopping cart