Simple quarkus application that expose an api to create and retrieve orders and products from an imaginary online shop.
In a windows cmd, in the root folder of the project:
mvnw compile quarkus:dev
In a browser:
Products:
Orders:
In a windows cmd:
Products:
curl -w "\n" http://localhost:8080/products
Orders:
curl -w "\n" http://localhost:8080/orders
In a browser: Products:
Orders:
In a windows cmd:
Products:
curl -H "Content-Type: application/json" -d "{\"name\":\"test\", \"unitPrice\":42}" http://localhost:8080/products
or
curl -w "\n" http://localhost:8080/products/createone
Orders:
curl -H "Content-Type: application/json" -d "{\"shippingAddress\":\"34 rue gambetta 34000 Montpellier\", \"dateOrdered\":\"2020-12-12\", \"productsOrdered\":[]}" http://localhost:8080/orders
or
curl -w "\n" http://localhost:8080/orders/createone
A Scheduler logs the total number of orders present in db every 40s.