Loading tutorials
@Configuration, dependency injection), HTTP methods, status codes and headers, and JSON. It covers how to get a RestClient instance and how to set defaults that apply to every request it sends.2 min readRestClient with a base URL, as shown in the previous chapter. You should also know basic HTTP: path segments, query strings, and percent-encoding. The goal is to build request URIs safely, without concatenating strings by hand.3 min readRestClient with a base URL, as covered earlier, and that Jackson is on the classpath. spring-boot-starter-web includes it. You should also know how JSON maps to Java records.2 min readRestClient with a base URL (covered earlier), use URI templates, and read responses with retrieve().body(). You also need to know the HTTP methods and status codes, and to be comfortable with Java records.2 min readRestClient, send a GET request, and read a body with retrieve().body(...). It also assumes you know HTTP status code classes (4xx client errors, 5xx server errors).2 min readRestClient from RestClient.Builder (see the chapter on creating and configuring a client) and that you know the difference between a connect timeout and a read timeout.3 min readRestClient sends. It assumes you can already build a RestClient from the Spring Boot RestClient.Builder, as shown in the chapter on creating a client. You should also be comfortable with lambdas and Spring beans.2 min readRestClient with a base URL (see the earlier chapter on creating clients), map JSON to records, and register Spring beans. You also need Java 17 or later and Spring Boot 3.2 or later.2 min readRestClient as in the earlier chapters. You need spring-boot-starter-test and a JSON library such as Jackson on the test classpath.2 min readRestClient, send a GET request, and read a body with retrieve().body(). It also assumes you know what onStatus does. The earlier chapters cover all of that.2 min read