
-
GET /products
Retrieves a list of all products from the database. -
GET /product/
Fetches detailed information about a specific product using its ID. -
POST /product
Creates a new product with the details provided by the user and stores it in the database. -
PUT /product/
Updates an existing product’s information with the provided data. -
DELETE /product/
Deletes a specific product from the database.

Ensure that each endpoint strictly follows RESTful conventions to maintain consistency and reliability in your API design.