Now, it is finally time to start everything up and test it manually using the Swagger UI.
Build and start the system landscape with the following command:
cd $BOOK_HOME/Chapter06
./gradlew build && docker-compose build && docker-compose up
Open the Swagger UI in a web browser, http://localhost:8080/swagger-ui.html, and perform the following steps on the web page:
- Click on product-composite-service-impl and the POST method to expand them.
- Click on the Try it out button and go down to the body field.
- Replace the default value, 0, of the productId field with 123456.
- Scroll down to the Execute button and click on it.
- Verify that the returned response code is 200.
Following is a sample screenshot after hitting the Execute button:
In the log output from the docker-compose...