Skip to Main 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 content levelIntermediate to advanced
668 pages
15h 59m
English
Packt Publishing
Content preview from Hands-On Microservices with Spring Boot and Spring Cloud

Trying out the Swagger documentation

To browse the Swagger documentation, we will use the embedded Swagger viewer. If we open the http://localhost:8080/swagger-ui.html URL in a web browser, we will see a web page that looks something like the following screenshot:

Here, we can find the following:

  • The general information we specified in the SpringFox Docket bean and a link to the actual Swagger document, http://localhost:8080/v2/api-docs
  • A list of API resources; in our case, the product-composite-service API
  • At the bottom of the page, there is a section where we can inspect the models that are used in the API

This is how it works:

  1. Click ...
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

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781789613476Supplemental Content