GE-MANGE: a microservice-application

This is a static page to demonstrate possible actions that will trigger events from each services

The triggered events can be monitored in the spring-boot console


NOTE: Some actions can be personalized with query strings see: QUERY EXAMPLE

Products

DEFAULT: Create a product with default values (name = poire) /createProduct

QUERY EXAMPLE: Create a product that is an apple that costs 1.3 /createProduct?name=apple&price=1.3

Accounts

Creation

DEFAULT: Create an account with default value (name = Orphée) /createAccount

QUERY EXAMPLE: Create an account with name Ovide /createAccount?name=Ovide

Credit

DEFAULT: Credit 10.- to account with id 1 /creditAccount

QUERY EXAMPLE: Credit 50.- to account with id 1 /creditAccount?idAccount=1&amount=50

Stock

DEFAULT: Supply with default values (idProduct = 1, quantity = 50) /supplyStock

QUERY EXAMPLE: Supply with desired values /supplyStock?idProduct=1&quantity=30

Orders

Demo 0: order 2 units of product with id = 1 /order?idProduct=1&quantity=2

Demo 1: order with a non-existing product /order?idProduct=999&quantity=2

Demo 2: order with multiple non-existing products /orderNotExistingProducts

Demo 3: order with non-existing account /order?idProduct=1&quantity=2&idAccount=999

Events logs

DEFAULT: Print the log in the spring-boot console with the default value (idEvent = 1) /log

QUERY EXAMPLE: Print the log with desired value /log?id=2