7 Developing RESTful Web Services with Spring Boot

 

This chapter covers

  • Design and build RESTful web services with Spring Boot
  • Exception handling in RESTful web services
  • Developing unit test cases to test RESTful web services
  • Documenting the RESTful web services through OpenAPI
  • Implementing different versioning strategies for RESTful web services
  • Techniques to secure RESTful web services

In the microservice-based architecture, it is a common practice to expose application functionality in terms of RESTful APIs. These APIs can then be accessed through a range of application devices such as desktop applications, mobile devices as well as other APIs.

In this chapter, we’ll introduce you to designing and building RESTful APIs with Spring Boot. You’ll also learn to document the API so that the API consumers can find required details about the API such as the request, response structures, HTTP return codes etc. Finally, you’ll learn to develop unit test cases to test the API. Lastly, we’ll show you to secure your RESTful API. Let’s get started.

7.1 Developing a RESTful API with Spring Boot

 

7.2 Managing Exceptions in a Spring Boot RESTful API

 
 
 

7.3 Testing a RESTful API

 
 
 

7.4 Documenting a RESTful API

 
 

7.5 Implementing RESTful API Versioning

 
 
 

7.6 Securing a RESTful API

 
 

7.7 Chapter Summary

 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest