From b8c30874da64dd6fcf841b1d93ce79c8795fe703 Mon Sep 17 00:00:00 2001
From: "michael.ramusi" <michael.ramusi@etu.hesge.ch>
Date: Sun, 3 Feb 2019 18:53:45 +0100
Subject: [PATCH] updated with differents use cases

---
 services/src/main/resources/static/demo.html | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/services/src/main/resources/static/demo.html b/services/src/main/resources/static/demo.html
index 5df0bb6..cbeb1c2 100644
--- a/services/src/main/resources/static/demo.html
+++ b/services/src/main/resources/static/demo.html
@@ -11,9 +11,23 @@
         trigger events from each services
     </p>
     <p>The triggered events can be monitored in the spring-boot console</p>
-    <p><a href="/order">Order</a></p>
-    <p><a href="/createAccount">Create an account</a></p>
-    <p><a href="/createProduct">Create a product</a></p>
+    <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>
+    
+    <h2>Accounts</h2>
+    <p>Create an account with default values <a href="/createAccount">/createAccount</a></p>
+    <p>Create an account with name Ovide <a href="/createAccount?name=Ovide">/createAccount?name=Ovide</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>
+    <p>Demo 1: order with a non-existing product <a href="/order?idProduct=999&quantity=2">/order?idProduct=999&quantity=2</a></p>
+    <p>Demo 2: order with multiple non-existing products <a href="/orderNotExistingProducts">/orderNotExistingProducts</a></p>
+    <p>Demo 3: order with non-existing account <a href="/order?idProduct=1&quantity=2&idAccount=999">/order?idProduct=1&quantity=2&idAccount=999</a></p>
+
 </body>
 
 </html>
\ No newline at end of file
-- 
GitLab