-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
Almoe099 edited this page Jan 11, 2024
·
6 revisions
GET / StaticPagesController#FrontendIndex
-
GET /api/users
- Return user's information -
POST /api/users
- Sign up new users
-
GET /api/session
- restore session -
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/products
- return all products (filtered by data/params) -
GET /api/products/:id
- return specific product
-
GET /api/reviews/:id
- Returns specific product review -
POST /api/reviews
- Add a new review for a product -
PATCH /api/reviews/:id
- Edit review -
DELETE /api/reviews/:id
- Delete review
-
POST /api/cart
- Creates a new user cart -
PATCH /api/cart/:id
- Updates user's cart -
DELETE /api/cart/:id
- Deletes user cart