From 0c4a76f11ca0f9d2f59d8113398ee88f7b9fff76 Mon Sep 17 00:00:00 2001 From: "michael.ramusi" <michael.ramusi@etu.hesge.ch> Date: Sun, 3 Feb 2019 20:53:17 +0100 Subject: [PATCH] Added stock links --- services/src/main/resources/static/demo.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/services/src/main/resources/static/demo.html b/services/src/main/resources/static/demo.html index c5b8611..db7f81c 100644 --- a/services/src/main/resources/static/demo.html +++ b/services/src/main/resources/static/demo.html @@ -14,14 +14,18 @@ <hr> <h2>Products</h2> - <p>Create a product with default values <a href="/createProduct">/createProduct</a></p> - <p>Create a product that is an apple that costs 1.3 <a href="/createProduct?name=apple&price=1.3">/createProduct?name=apple&price=1.3</a></p> + <p>DEFAULT: Create a product with default values (name = poire) <a href="/createProduct">/createProduct</a></p> + <p>GET: Create a product that is an apple that costs 1.3 <a href="/createProduct?name=apple&price=1.3">/createProduct?name=apple&price=1.3</a></p> <h2>Accounts</h2> - <p>Create an account with default value (name=Orphée) <a href="/createAccount">/createAccount</a></p> - <p>Create an account with name Ovide <a href="/createAccount?name=Ovide">/createAccount?name=Ovide</a></p> + <p>DEFAULT: Create an account with default value (name = Orphée) <a href="/createAccount">/createAccount</a></p> + <p>GET: Create an account with name Ovide <a href="/createAccount?name=Ovide">/createAccount?name=Ovide</a></p> <p>Credit 50.- to account with id 1 <a href="/creditAccount?idAccount=1&amount=50">/creditAccount?idAccount=1&amount=50</a></p> + <h2>Stock</h2> + <p>DEFAULT: Supply with default values (idProduct = 1, quantity = 50) <a href="/supplyStock">/supplyStock</a></p> + <p>GET: Supply with desired values <a href="/supplyStock?idProduct=1&quantity=30">/supplyStock?idProduct=1&quantity=30</a></p> + <h2>Orders</h2> <!-- <p>Order 2 units of product with id = 1 <a href="/order?idProduct=1&quantity=2">/order?idProduct=1&quantity=2</a></p> --> <p>Demo 0: order 2 units of product with id = 1 <a href="/order?idProduct=1&quantity=2">/order?idProduct=1&quantity=2</a></p> -- GitLab