Codebase for the blog post MicroProfile Rest Client for RESTful communication
Steps to run this project:
- Clone this Git repository
- Navigate to the folder
microprofile-rest-client-for-restful-communication
- Navigate to the folder
order-application
and build the application withmvn clean package
- Navigate to the folder
user-management-application
and build the application withmvn clean package
- Start your Docker daemon (
docker-compose
is required) - Build the infrastructure with
docker-compose build
- Start everything with
docker-compose up
- Wait until everything is started and visit
http://localhost:8080/resources/orders/1
or create a new order with HTTP POSThttp://localhost:8080/resources/orders
and the following body:
{
"productName" : "Flatscreen",
"userId": 12,
"amount": 12,
"price": 13.37
}