This is a simple poc using Event-driven Architecture(EDA)
- Execute the command
docker run -d --rm --name=rabbitmq --net=host rabbitmq:latest
- Execute the command
mvn clean spring-boot:run
- Execute the command
mvn clean spring-boot:run
Create Order
curl -X POST
http://localhost:8080/orders
-H 'Content-Type: application/json'
-H 'Postman-Token: 8236e942-76a4-4482-99c6-472759852058'
-H 'cache-control: no-cache'
-d '{
"value" : 55.22
}'
Get Order
curl -X GET
http://localhost:8080/orders
-H 'Postman-Token: 3a4828f9-5e42-4470-90b8-135bcd574164'
-H 'cache-control: no-cache'
- Execute the command
docker stop rabbitmq && docker image rm rabbitmq:latest