2 ways to call a REST API: Java and TypeScript (Spring Boot, Lit, Vaadin Fusion)

Опубликовано: 11 Октябрь 2024
на канале: vaadinofficial
5,415
59

In this video, Marcus Hellberg shows you how to call a REST API 2 ways in a Spring Boot-based Vaadin Fusion app: in TypeScript on the client and with Spring WebClient on the server.

0:00 - Intro
0:29 - Weather REST API intro
0:58 - Creating a new Spring Boot based Vaadin Fusion app with Vaadin CLI
1:52 - Looking at the REST API response
3:20 - Fetching REST data in TypeScript
11:30 - Fetching REST data with Spring Boot and WebClient
13:12 - Storing the API key securely in an environment file
21:10 - Outro

Vaadin Fusion: https://vaadin.com/fusion
GitHub: https://github.com/marcushellberg/vaa...