1
0
forked from s442333/DINO_SCRUM
DINO_SCRUM/README.md

87 lines
781 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# DINO_SCRUM
DINO_SCRUM
## EndPoints
*POST* **/api/change-quantity**
```json
{
"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:
```json
{
"price-of-all": Float
}
```
----
*POST* **/api/add-product**
```json
{
"name": String,
"price": Float,
"quantity": Int,
"imageLing": String
}
```
Return:
????
----
*DELETE* **/api/delete-product**
```json
{
"id": Int
}
```
Return:
????
----