From 8eb4e0d538a3862b6b55f15c223a96bf99747993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Starski?= Date: Fri, 25 Jan 2019 16:47:46 +0000 Subject: [PATCH] =?UTF-8?q?Usu=C5=84=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 118 ------------------------------------------------------ 1 file changed, 118 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index f57f83d..0000000 --- a/README.md +++ /dev/null @@ -1,118 +0,0 @@ -# DINO_SCRUM - -DINO_SCRUM - -## API Endpoints - -*POST* **/api/product/change-quantity** - -```json -{ - "id": Int, - "change": Int -} -``` - -Return: - -```json -{ - "id": Int, - "name": String, - "price": Float, - "quantity": Int, - "imageLink": String -} -``` - -This endpoint return editet product. - ---- - -*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/product/add** - -```json -{ - "name": String, - "price": Float, - "quantity": Int, - "imageLing": String -} -``` - -Return: - -```json -{ -    "id": Int, -    "name": String, -    "price": Float, -    "quantity": Int, -    "imageLink": String -} -``` - -This endpoint return a newly created product. - ---- - -*DELETE* **/api/delete-product** - -```json -{ - "id": Int -} -``` - -This endpoint doesn't return any data. - ---- - -*GET* **/api/product/get-by-id** - -Return: - -```json -{ -    "id": Int, -    "name": String, -    "price": Float, -    "quantity": Int, -    "imageLink": String -} -``` - -----