Skip to Main Content
Spring: Microservices with Spring Boot
book

Spring: Microservices with Spring Boot

by In28Minutes Official
March 2018
Intermediate to advanced content levelIntermediate to advanced
140 pages
2h 42m
English
Packt Publishing
Content preview from Spring: Microservices with Spring Boot

Documenting REST Services

Before a service provider can consume a service, they need a service contract. A service contract defines all the; details about a service:

  • How can I call a service? What is the URI of the service?
  • What should be the request format?
  • What kind of response should I expect?

There are multiple options to define a service contract for RESTful services. The most popular one in the last couple of years is Swagger. Swagger is gaining a lot of ground, with support from major vendors in the last couple of years. In this section, we will generate Swagger documentation for our services.

The following quote from the Swagger website (http://swagger.io) defines the purpose of the Swagger specification:

Swagger specification creates the RESTful ...

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

Building Microservices with Spring

Building Microservices with Spring

Dinesh Rajput, Rajesh R V
Spring Microservices in Action

Spring Microservices in Action

Kalpit Patel, John Carnell
Developing Java Applications with Spring and Spring Boot

Developing Java Applications with Spring and Spring Boot

Claudio Eduardo de Oliveira, Greg L. Turnquist, Alex Antonov

Publisher Resources

ISBN: 9781789132588Supplemental Content