1
0
forked from s442333/DINO_SCRUM
DINO_SCRUM
Go to file
2019-01-13 18:06:23 +01:00
Magazyn_Client Corrected code - Stasiu's review #1 2019-01-13 18:05:47 +01:00
LICENSE Initial commit 2019-01-10 19:57:47 +00:00
README.md Zaktualizuj 'README.md' 2019-01-13 16:02:44 +00:00

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:

????