Calling REST from Java with Spring WebClient
Channel: vaadinofficial
Date: 2021-12-29

In this video, Marcus Hellberg shows you how to call a REST endpoint in Java using the Spring RestClient library, how to create Java objects from the response, and how to show the result in a data grid. 

0:00 - Intro
0:18 - Creating a project with Spring Initializr
1:07 - Opening the project in IntelliJ
1:35 - REST endpoint overview
2:00 - Creating Java objects for the REST response
3:43 - Creating a service and initializing WebClient
4:59 - Calling a REST endpoint with WebClient
6:06 - Displaying data in a data grid
9:06 - Outro


GitHub for code: https://github.com/marcushellberg/spring-webclient-rest
JSON to POJO: https://www.jsonschema2pojo.org/
Demo data API: https://jsonplaceholder.typicode.com/
Spring Initializr: https://start.spring.io/