0
0
forked from s434786/DINO_SCRUM
DINO_SCRUM
Go to file
2019-01-13 17:01:56 +01:00
Magazyn_Client Bug fixed with value of warehouse button 2019-01-13 17:01:56 +01:00
LICENSE Initial commit 2019-01-10 19:57:47 +00:00
README.md Added endpoint list to readme.md 2019-01-13 16:49:48 +01: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:

Float

POST /api/add-product

{
    "name": String,
    "price": Float,
    "quantity": Int,
    "imageLing": String
}

Return:

????


DELETE /api/delete-product

{
    "id": Int
}

Return:

????