-
Notifications
You must be signed in to change notification settings - Fork 24
Backend Routes
Steven Inouye edited this page Dec 11, 2018
·
4 revisions
Method | Path | Details |
---|---|---|
GET | / |
render HTML |
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 |
Method | Path | Details |
---|---|---|
POST | /api/session |
log in user |
DELETE | /api/session |
log out user |
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 |
Method | Path | Details |
---|---|---|
POST | /api/bids |
creates new bid |
Method | Path | Details |
---|---|---|
POST | /api/watches |
creates new watch *bonus |
DELETE | /api/watches/:id |
deletes watch *bonus |
Method | Path | Details |
---|---|---|
GET | /api/categories |
get random products form random categories (home page) *bonus |
GET | /api/categories/:category |
get products in category *bonus |