-
Notifications
You must be signed in to change notification settings - Fork 0
Grailed Routes
CLOTHING
GET '/' Homepage, might be all clothing or might be all sections i can enter
GET'/search' search results for clothes
GET '/product/:id' Get details for clothing
POST'/product' creates a new clothing listing
PUT '/listings/:id' updates clothing listing
DELETE '/listings/:id' Delete a clothing listing
USER
GET '/user/:username' Retrieves user profile
GET '/user/:userId' gets user details
POST '/Login' logs in user
POST'/user' signup user
Offers
GET '/offers' All offers
POST '/offer' adds offer to item offers
DELETE '/offer/:itemId' deletes item from offers
PUT '/offer/:itemId' change shipping, price offer
Seller Reviews
GET '/user/:userId/reviews' get all users reviews
POST'/user/:userId/reviews' post review
PUT'/user/:userId/reviews/:reviewId" edit your review
DELETE '/user/:userId/reviews/:reviewId" Delete your review
WISHLIST
GET'/wishlist/:userID" get user wishlist
POST '/wishlist' Post a wishlist
DELETE '/wishlist/:userId/:itemId'
PUT '/wishlist/:userId/:itemId'
BONUS
search feature
CATEGORY: GET '/categories': Retrieve all categories. GET '/categories/:id Get all items from category PUT '/categories/:id': Update an existing category.