Skip to Content
Hands-On Microservices with Spring Boot and Spring Cloud
book

Hands-On Microservices with Spring Boot and Spring Cloud

by Magnus Larsson
September 2019
Intermediate to advanced
668 pages
15h 59m
English
Packt Publishing
Content preview from Hands-On Microservices with Spring Boot and Spring Cloud

Manual tests of the new APIs and the persistence layer

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:

  1. Click on product-composite-service-impl and the POST method to expand them.
  2. Click on the Try it out button and go down to the body field.
  3. Replace the default value, 0,  of the productId field with 123456.
  4. Scroll down to the Execute button and click on it.
  5. Verify that the returned response code is 200.

Following is a sample ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Master Microservices with Spring Boot and Spring Cloud

Master Microservices with Spring Boot and Spring Cloud

In28Minutes Official

Publisher Resources

ISBN: 9781789613476Supplemental Content