Skip to content

Backend Routes

Elhoussine edited this page Mar 15, 2022 · 1 revision

Backend Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users/:id - get user show page
  • POST /api/users - sign up new user

session

  • POST /api/session - login user
  • DELETE /api/session - logout user

products

  • GET /api/products - products index page
  • GET /api/products/:id - product show page

cart

  • GET /api/cart_items - all cart items index page
  • POST /api/cart_items - add items into cart page
  • PATCH /api/cart_items/:id - update items in cart
  • DELETE /api/cart_items/:id - remove items in cart
Clone this wiki locally