microservices
├── product-composite-service
├── product-service
├── recommendation-service
└── review-service
- Build this whole project
$ cd spring-cloud-example
$ ./gradlew build -x test
- Run Docker Compose
$ docker-compose build
$ docker-compose up -d
- Open Web Browser & Connect swagger ui
http://localhost:8080/swagger-ui
- Run create product API (Below sample payload)
{
"name": "title",
"productId": 1,
"recommendations": [
{
"author": "minz",
"content": "It is recommendation!",
"rate": 1,
"recommendationId": 1
}
],
"reviews": [
{
"author": "minz",
"content": "It sounds good",
"reviewId": 1,
"subject": "I highly recommend this product."
}
],
"weight": 0
}
- Check product (productId: 1) & wait response
- Check dynamic service addresses!
product-composite-service
product-service
recommendation-service
review-service