video demo
bandicam.2023-03-17.14-40-43-210.mp4
Product | Endpoints | Action |
---|---|---|
GET | /Web_Service/Lab2/index.php/products | get all products |
GET | /Web_Service/Lab2/index.php/products/id | get a product by its id |
POST | /Web_Service/Lab2/index.php/products | add product |
PUT | /Web_Service/Lab2/index.php/products/id | update a product by its id |
DELETE | /Web_Service/Lab2/index.php/products/id | delete a product by itsid |
[
{
"id": "2",
"name": "Product 2",
"price": "60",
"units_in_stock": "10"
},
{
"id": "3",
"name": "Product 3",
"price": "80",
"units_in_stock": "10"
},
]