Skip to content
Ronald MUGABO edited this page Jun 5, 2024 · 3 revisions
pic1 # API Documentation ## Overview General information on how to use the API.

Cart Management PUT /api/cart/add: Add an item to the cart. GET /api/cart/: Retrieve the user’s cart.

Admin Product Controller PUT /api/admin/products/{productId}/update: Update product details. POST /api/admin/products/{productId}/delete: Delete a product. POST /api/admin/products/creates: Create a new product. POST /api/admin/products/: Additional endpoint for product creation. GET /api/admin/products/all: Retrieve all products.

Admin Order Controller PUT /api/admin/orders/{orderId}/ship: Mark an order as shipped. PUT /api/admin/orders/{orderId}/deliver: Mark an order as delivered. PUT /api/admin/orders/{orderId}/confirmed: Confirm an order. PUT /api/admin/orders/{orderId}/cancel: Cancel an order. GET /api/admin/orders/: Retrieve all orders. DELETE /api/admin/orders/{orderId}/delete: Delete an order.

Auth Controller POST /auth/signup: User signup. POST /auth/signin: User signin.

Review Controller Endpoints for creating and retrieving reviews. Rating Controller Endpoints for creating and retrieving ratings.

Order Controller Endpoints for creating and retrieving orders.

User Controller Endpoint for retrieving user profiles.

Product Controller Endpoints for retrieving product details

Clone this wiki locally