How to Consume Rest Web Service Using RestTemplate

preview_player
Показать описание
How to Consume Rest Web Service Using RestTemplate

There is a REST web service available in this endpoint that provides a list of countries

To consume it follow these steps:
1. Create RestTemplate bean
2. Autowire it into the RestController
3. Call the webservice using the getForObject method

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

Hi guys, thanks for being there! You could support my channel by buying me a coffee buymeacoff.ee/PWsXo7h13

KindsonTheTechPro
Автор

Clean and neat video for very beginners !!!! Kudos

gangadilipdilip
Автор

Very nice demo and explanation. Thanks.

ayasswain
Автор

Thanks friend really got help from this video.

markfernandes
Автор

Thanks a lot.!!!
Just what I wanted to learn

mohitathani
Автор

Thank you, can you please make a video on how to call rest template with query parameters?

nagavadlapudi
Автор

Nice and simple. Can you please add some more complexity and explain how to make it work when an external api is protected by oauth or ldap.

saranshbansal
Автор

Wonderful tutorial because it's simple and straight to the point. Thank you so much! Btw. do you know how to fetch nested JSON the easiest way?

jakni
Автор

Very very helpful. thanks for the video

Luszca
Автор

Object[] objects = restTemplate.getForObject(url, Object[].class); how does this line fill the object array? Isn't only one object being created since its only executing once?

AdityaDahiya
Автор

Hi, Im using API gateway and Eureka server..I'm missing something.. when i try to use resttemplate, i'm getting connection refused error.Both the services(The one i'm making resttemplate call from and the microservice which is being consumed) along with eureka and api gateway are running. Any idea how to solve
?

devcsb
Автор

Getting this error:
Cannot deserialize value of type `[Ljava.lang.Object;` from Object value (token `JsonToken.START_OBJECT`)

truric
Автор

how to check for 404 when using getForObject ?