diff --git a/services/src/main/resources/static/demo.html b/services/src/main/resources/static/demo.html index 5df0bb6e31dde4512221c1006466c102e881f8e3..cbeb1c2acc0e43517a65da1fc93dbbc78bd1cffe 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