Skip to content

Grailed Routes

Justin Kim edited this page Apr 22, 2024 · 8 revisions

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'

Clone this wiki locally