2019-01-10 20:57:47 +01:00
|
|
|
|
# DINO_SCRUM
|
|
|
|
|
|
2019-01-13 16:49:48 +01:00
|
|
|
|
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
|
|
|
|
|
Float
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
*POST* **/api/add-product**
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"name": String,
|
|
|
|
|
"price": Float,
|
|
|
|
|
"quantity": Int,
|
|
|
|
|
"imageLing": String
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Return:
|
|
|
|
|
|
|
|
|
|
????
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
*DELETE* **/api/delete-product**
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"id": Int
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Return:
|
|
|
|
|
|
|
|
|
|
????
|
|
|
|
|
|
|
|
|
|
----
|