Skip to content

API Documentation

Ilya Novikov edited this page Dec 4, 2021 · 1 revision

Product

  • GET /products/:id - returns one product by id
  • GET /products/top20 - returns hand-picked 20 products
  • DELETE /products/:id
  • PATCH /products/:id
  • POST /products/new

Review

  • GET /products/:productId/reviews
  • POST /products/:productId/reviews/new
  • PATCH /reviews/:reviewId
  • DELETE /reviews/:reviewId

Category

  • GET /category/:categoryId/page/pageNum - returns array of products belonging to category

Cart

  • GET /user/:userId/cart
  • PATCH /user/:userId/cart
  • DELETE /user/:userId/cart
  • POST /user/:userId/cart

Clone this wiki locally