From b6ca8853a88b4fc7aabd7006bbc90a84b34313d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Pierzy=C5=84ski?= Date: Sun, 13 Jan 2019 16:49:48 +0100 Subject: [PATCH] Added endpoint list to readme.md --- README.md | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d140cd..0850a63 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,84 @@ # DINO_SCRUM -DINO_SCRUM \ No newline at end of file +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: + +???? + +----