781 B
781 B
DINO_SCRUM
DINO_SCRUM
EndPoints
POST /api/change-quantity
{
"id": Int,
"change": Int
}
Return:
???
GET /api/get-all
Return:
{
[
{
"id": Int,
"name": String,
"price": Float,
"quantity": Int,
"imageLink": String
},
{...}
]
}
GET /api/get-price-of-all
Return:
{
"price-of-all": Float
}
POST /api/add-product
{
"name": String,
"price": Float,
"quantity": Int,
"imageLing": String
}
Return:
????
DELETE /api/delete-product
{
"id": Int
}
Return:
????