Skip to content

Backend Routes

Steven Inouye edited this page Dec 11, 2018 · 4 revisions

Backend Routes

HTML

Method Path Details
GET / render HTML

API Endpoints

users

Method Path Details
GET /api/users/:id get a single user
POST /api/users sign up a user
PATCH /api/users update user profile *bonus
DELETE /api/users delete user profile *bonus

session

Method Path Details
POST /api/session log in user
DELETE /api/session log out user

products

Method Path Details
GET /api/products get search results
GET /api/products/:id get single product details
POST /api/products add new product
PATCH /api/products update product details
DELETE /api/products delete product

bids

Method Path Details
POST /api/bids creates new bid

watches

Method Path Details
POST /api/watches creates new watch *bonus
DELETE /api/watches/:id deletes watch *bonus

categories

Method Path Details
GET /api/categories get random products form random categories (home page) *bonus
GET /api/categories/:category get products in category *bonus
Clone this wiki locally