Skip to content

API Routes

lucascostamonteiro edited this page Mar 2, 2022 · 1 revision

This web app uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.

Product Listings

  • A logged in user may create, edit, and delete their product listings without causing a refresh or redirect.

    • POST /api/products
    • PUT /api/products/:id
    • DELETE /api/products/:id

Reviews/Ratings

  • A logged in user may create, edit, and delete a review to a purchased product without causing a refresh or redirect.

    • POST /api/reviews
    • PUT /api/reviews/:id
    • DELETE /api/reviews/:id
Clone this wiki locally