Consuming Rest Web Service using Spring Boot

preview_player
Показать описание
Learn how easy it is to consume a rest based web services with spring boot.
Рекомендации по теме
Комментарии
Автор

subscribed ! no more confusions on consuming and creating a webservice !! thanks brother

developerinprogress
Автор

I will watch every single one of your tutorials. For someone new at spring you are excellent. Will recommend your videos :)

downloader
Автор

your videos are very good. I follow each of them

aggrawalnikhil
Автор

Now restTemplate was depreciated on latest version of spring boot. No more synchronous calls in spring only async calls

sivaganesh
Автор

How can you consume a REST api that returns a more complex JSON object like this:

{"coord":{"lon":34.28, "lat":44.55}, "weather":[{"id":803, "main":"Clouds", "description":"broken clouds", "icon":"04n"}], "base":"stations", "main":{"temp":279.335, "pressure":1017.14, "humidity":100, "temp_min":279.335, "temp_max":279.335, "sea_level":1038.72, "grnd_level":1017.14}, "wind":{"speed":7.21, "deg":57.0018}, "clouds":{"all":68}, "dt":1544924051, "sys":{"message":0.0033, "country":"UA", "sunrise":1544937191, "sunset":1544969020}, "id":707860, "name":"Hurzuf", "cod":200}

I don't want to have to create a dummy object to model every property of this object (even if I knew how) when I only want a few fields.

frenchmarty
Автор

Very clear and concise, Thanks allot for your

mohanchandramallampati
Автор

Getting null value in output logs, what changes I need to do

sanketpatil
Автор

sir i want, how to send data from one service to another service using spring boot.
pls put video sir

manimekalairajagopal
Автор

Hello Sir, do you have any video that takes that json and i can show a jsp page?

kkatsavaros
Автор

How to call an external api which requires certificate sign along with it thanks in advance 😃

ishantiwari
Автор

Hi I watched all videos, If possible please upload end to end project implementation like integrate with Hibernet and dealing CRUD operations etc ... I am looking forward for your more videos. Thanks

konduruvenkatesh
Автор

I tried to implement this within my own project, but I kept getting this exception www.localhost; nested exception is www.localhost
I did not use the command line runner. I instead used a controller to consume the rest api. Any ideas?
Here is the client:

@Component
public class MonthlyBudgetClient {


public Income getIncome(){
RestTemplate restTemplate = new RestTemplate();
return restTemplate.getForObject(url, Income.class);
}

}

Controller:

public final Logger logger =

@Autowired
private MonthlyBudgetClient monthlyBudgetClient;

@RequestMapping("/income")
public String getIncome() {
Income income =
logger.info("getting income" + income);
return "budget.html";
}

stevend
Автор

Hey, how do you process the "/all" using this structure, to recreate your original hashmap from the previous video?

downloader
Автор

Hey, I don't know when comes to Rest consuming in spring boot start to confuses me, why not using Jackson ? i saw pple also used AJAX. just need a bit of extra explanation.

aobaidi
Автор

I am trying to consume an exposed api which doesn't run in my localhost . The application doesn't run or give any output in that case . I followed all your instructions, still! Can you help?

mesunandan
Автор

you should not copy or paste code. We cannot understand what you are doing. In previous video also you copy and pasted thing. No one will learn this way

ankurpramanik
Автор

HEy! can you please create a tutorial on Spring Security... ;)

ELECTRONICSEngineer