This repository contains the code for a simple E-commerce CRUD (Create, Read, Update, Delete) API implemented using Node.js, Express, and MySQL. The API provides endpoints to manage products, including listing all products, creating new products, updating existing products, and deleting products.
The following endpoints are available:
- GET /listproducts: Retrieve a list of all products.
- POST /addproduct: Create a new product.
- PUT /updateproduct: Update an existing product by ID.
- DELETE /deleteproduct/ : Delete a product by ID. Please refer to the API code for detailed request and response formats.
Here is a link to postman collection: https://www.postman.com/winter-crater-617834/workspace/public-space/collection/24148295-1acadca4-67db-45a8-940e-1b21fe858105?action=share&creator=24148295