[HowTo | SpringBoot] Call External APIs in SpringBoot using RestTemplate. E.g. using CovidAPIs

preview_player
Показать описание
In this video, I will be showing how to call the external API to get the data in Springboot using RestTemplate.

your task: To improve upon this code, you should try to create a POJO that will parse the JSON , and give only the country and no of covid cases in total.

If it's helpful, then buy me a coffee:

Рекомендации по теме
Комментарии
Автор

One question, from the response body we get the json value right but what if from the result i only want certain value for example just the name of country, then what should we do?, i did try to serialise the json into pojo but it didn't work

prethammuthappabs
Автор

why did you create an extra configureation package for resttemplatebuilder? it can be created anywhere within the application when it's needed. am i right?

HappySmite
Автор

i have followed the video and it works using http client
and doesn't print any logs anywhere in console..

however i need to make it run post exporting as a maven jar with cmd
and get back a production grade response.

siddhantnaik
Автор

PKIX path building failed: unable to find valid certification path to requested target...I am getting this error...please help

Mom
Автор

How can I use this program to accessing endpoints with basic authentication. how can i pass username and password??

rashmi
Автор

bro, one doubt suppose i have multiple api key and host and i want to change it dynamically is it possible?

simpleman