Chapter 10. Building a REST Client and Error Handling
In previous chapters, we covered the server side of RESTful web services including CRUD operations. Here, we can check how to consume those APIs in the code itself. The REST client will help us to achieve this goal.
In this chapter, we will discuss the following topics:
- RestTemplate in Spring
- Basic setup for building a RESTful service client with Spring
- Calling a RESTful service in the client
- Defining the error handler
- Using the error handler