Simple and explained very well... I am trying to get something done similar but in my case before calling the actual endpoint I need to get authentication token and use it in subsequent request. The token has a expiry time and have to be stored and reused. Can you please explain how can save it and use. Thanks
Sir, can you make a video for POST method using restTemplate? U just pass some headers and requestBody and take the response as an Object(because u don’t know what is the response structure) How can we do that ?
This was just the tutorial I was looking for! Thanks for making it available. Do you have a video or could you give me a hint on how to go about the task. If the site at which you are trying to consume data from is not static, for instance : weather. And then i have to consume data from this site at an interval, every 3hrs for instance and save it to the database
Hello Sir, Can you please make a video series of Quarkus in Java ? Can you please make a video to read a excel file using Quarkus and produce JSON object and send to another service ?
thank you , but : how to consume data from CSV file instead of data from api( i mean how to consume data from csv file on my PC in order to obtain a JSON file as a result)
Thank you for the video ! Couple of comments: 1. I always thought that IDEA autosaves evething we code ? why do you use "Save all" ? 2. As for me I don't like when IDEA underlines something, so when you use @Autowired, and you have next string underlined, one could use Lombok annotation @RequiredArgsConstructor and code next: private final RestTemplate restTemplate;
When I try to add the ribbon dependency from Intellij and from start.spring.io, I am unable to because it says ribbon [maintenance] is not available. And when I run the project, after following all that you say, it gives me an error Would you like to see the code?
var restTemplate = new RestTemplate(); String url = URL_CREATE_COUNTRY; var uri = new URI(url); HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); ObjectMapper objectMapper = new ObjectMapper(); var json = objectMapper.writeValueAsString(Country); HttpEntity request = new HttpEntity(json, headers); restTemplate.postForEntity(uri, request, String.class);
Thank you bro! This simple tutorial has solve my problem. You are really a teacher. wow VERY SIMPLE AND EASY explanation
My pleasure!! And do remember to subscribe 😃
Simple and explained very well... I am trying to get something done similar but in my case before calling the actual endpoint I need to get authentication token and use it in subsequent request. The token has a expiry time and have to be stored and reused. Can you please explain how can save it and use.
Thanks
You're a very good teacher. Kudos
Many thanks 😊
Thanks for this tutorial. You have resolved my problem.
Explained beautifully. Thanks alot!
Glad it was helpful!😊
Thanks for awesome explanation 😊😊
Most welcome 😊
This is broken down so well. Thank you!
So glad!
i really appreciate your support
Thnku for this wonderful video. I request you to please make videos on microservices..
I made 3 Tutorial series on Microservices:
1. bit.ly/3LN249R
2. th-cam.com/video/Gw1rqRH0aLY/w-d-xo.html
3. th-cam.com/video/s-SISehUOPw/w-d-xo.html
Sir, can you make a video for POST method using restTemplate? U just pass some headers and requestBody and take the response as an Object(because u don’t know what is the response structure) How can we do that ?
Great explanation Kindson!
Thank you!
Thank you man! Nice work.
Great video, thanks Kindson!!
You are so welcome!
Great video Kindson!
Glad you liked it!!
Thanks for the awesome explanation,can you pls provide the github repo link, so that we can set it up
in local
Excellent video
thanks very much Kindson! very rich infos here, heavy! i am learning spring boot with vscode, trying to make an external call
You are the best. Thanks a lot for the explanation.
This was just the tutorial I was looking for! Thanks for making it available.
Do you have a video or could you give me a hint on how to go about the task.
If the site at which you are trying to consume data from is not static, for instance : weather. And then i have to consume data from this site at an interval, every 3hrs for instance and save it to the database
This is an interesting point...I'll make a video on this in comming days. Do subcribe to get notified
@@KindsonTheTechPro yes, i get notified. Unfortunately for me, i have to give in the task in 2days, and I'm still having troubles solving it
Thanks for explanation
Always welcome
Great video! Would this implementation be applicable if the external API requires username and password?
Yes... but you then the request must be authenticated
Hello Sir,
Can you please make a video series of Quarkus in Java ?
Can you please make a video to read a excel file using Quarkus and produce JSON object and send to another service ?
Thank you. However, please follow naming conventions of Java interface.
Noted
You good. Thank you sir.
I'm so glad😊
nice explanation sir
Hi .. Thanks for your very amazing videos; this inclusive.
I have a few questions, can I ask please?
Very well explained. Thank you.
Thank you so much
thank you
You're welcome😊
Thank you for this video
Hi Kindson, what if i add @enablefeignclient annotation on springbootapplication level ?
How come you didnt have any certificated related problems, since you are using https?
Thank you for the video!
very simple and efficient. Perfect!
thank you , but : how to consume data from CSV file instead of data from api( i mean how to consume data from csv file on my PC in order to obtain a JSON file as a result)
When to use rest template and feign ?
What's the difference btw them apart from length of code
can you plzz make a video on how to consume an https rest API with SSL cert??
I get a 500 status when using restTemplate. Code is exactly the same... What can I do to solve?
¿What did you put on minute 9:45?
Object[].class
@@mardoniorodrigues11 Thank you
very, very helpful
Thank you for the video !
Couple of comments:
1. I always thought that IDEA autosaves evething we code ? why do you use "Save all" ?
2. As for me I don't like when IDEA underlines something, so when you use @Autowired, and you have next string underlined, one could use Lombok annotation @RequiredArgsConstructor and code next: private final RestTemplate restTemplate;
IntelliJ auto saves only when you activate autosaving (somewhere in the settings). He has not turned on auto saving.
When I try to add the ribbon dependency from Intellij and from start.spring.io,
I am unable to because it says ribbon [maintenance] is not available.
And when I run the project, after following all that you say,
it gives me an error
Would you like to see the code?
I gad his problem too. it was enough to add
org.springframework.cloud
spring-cloud-starter-netflix-ribbon
2.2.1.RELEASE
@@smyhail Thanks!! :D
In the first example, how can I return just some of JSON proprieties? Example: I just wanna know the countrie's name and flag.
apiCountries.getCountries(index).getName or getFlag ....
On point Thanks Mate......
Thank u master
How can I pass Optional in rest template exchange or feigh client as the return type of method is Optional
Could you please share the git hub code repository?
please do for post request
var restTemplate = new RestTemplate();
String url = URL_CREATE_COUNTRY;
var uri = new URI(url);
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
ObjectMapper objectMapper = new ObjectMapper();
var json = objectMapper.writeValueAsString(Country);
HttpEntity request = new HttpEntity(json, headers);
restTemplate.postForEntity(uri, request, String.class);
This vidio appears to be good but I cant see very well what you write