Backend Routes - HiThereImCam/sneakerz GitHub Wiki

Backend Routes


HTML

  • GET / StaticPagesController#root

API Endpoints


users

  • POST /api/users - sign up

session

  • POST /api/session - log in
  • DELETE /api/session - log out

sneakers

  • GET /api/sneakers - returns sneakers (optionally filtered by data or params)
  • GET /api/sneakers/:id - returns individual sneaker

shopping_cart

  • GET /api/users/:user_id/shopping_cart - returns all products in cart
  • POST /api/users/:user_id/shopping_cart - adds product to cart
  • DELETE /api/shopping_cart/:id - removes product from cart

... more coming soon