Skip to content

Backend API Documentation

Kyle Kassen edited this page Dec 16, 2022 · 4 revisions

Backend Routes

Users

GET /api/users/

  • Returns the information for all users

GET /api/users/:id

  • Returns the information for one user

Sessions

GET /api/auth/

  • Returns the information for the logged in user

POST /api/auth/signup

  • Signs a new user up

POST /api/auth/login

  • Logs in a user

DELETE /api/auth/

  • Logs out a user

Products

GET /api/products/

  • Return all the products and all the images for the products

GET /api/products/:productId

  • Return the product and product image data, as well as the review/image and seller data

Clone this wiki locally