Select Git revision
demo.html 2.69 KiB
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Getting Started: Serving Web Content</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<style>
body {
font-family: "Courier New", Courier, monospace
}
</style>
<body>
<h1>GE-MANGE: a microservice-application</h1>
<p>This is a static page to demonstrate possible actions that will
trigger events from each services
</p>
<p>The triggered events can be monitored in the <strong>spring-boot console</strong></p>
<hr>
<p>NOTE: Some actions can be personalized with query strings see: QUERY EXAMPLE</p>
<h2>Products</h2>
<p>DEFAULT: Create a product with default values (name = poire) <a href="/createProduct">/createProduct</a></p>
<p>QUERY EXAMPLE: 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><em>Creation</em></p>
<p>DEFAULT: Create an account with default value (name = Orphée) <a href="/createAccount">/createAccount</a></p>
<p>QUERY EXAMPLE: Create an account with name Ovide <a href="/createAccount?name=Ovide">/createAccount?name=Ovide</a></p>
<p><em>Credit</em></p>
<p>DEFAULT: Credit 10.- to account with id 1 <a href="/creditAccount">/creditAccount</a></p>
<p>QUERY EXAMPLE: 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>QUERY EXAMPLE: Supply with desired values <a href="/supplyStock?idProduct=1&quantity=30">/supplyStock?idProduct=1&quantity=30</a></p>
<h2>Events logs</h2>
<p>DEFAULT: Print the log in the spring-boot console with the default value (id = 1) <a href="/log">/log</a></p>
<p>QUERY EXAMPLE: ürint the log with desired value <a href="/log?id=2">/log?id=2</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>