API for Products
Method: GET
Path: /api/products
Response:
[{
"id": 1,
"name": "Airmax",
"brand": "Nike",
"size": 42,
"color": "blue",
"description": "Very nice shoes",
"price": 1000.00,
"gender": "male"
}]
Method: GET
Path: /api/product/ID
Response:
[{
"id": 1,
"name": "Airmax",
"brand": "Nike",
"size": 42,
"color": "blue",
"description": "Very nice shoes",
"price": 1000.00,
"gender": "male"
}]
Method: POST
Path: /api/products/new
Request:
[{
"name": "Airmax",
"brand": "Nike",
"size": 42,
"color": "blue",
"description": "Very nice shoes",
"price": 1000.00,
"gender": "male"
}]
Method: DELETE
Path: /api/products/delete/ID to delete
Method: PUT
Path: /api/products/update/ID to update
Request:
[{
"name": "Airmax",
"brand": "Nike",
"size": 42,
"color": "blue",
"description": "Very nice shoes",
"price": 1000.00,
"gender": "male"
}]