Exchange method of Spring RestTemplate - Part 1 || Calling REST API using RestTemplate

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 63

  • @khushalkhatri4085
    @khushalkhatri4085 3 года назад +2

    Been searching for long time nd u got me understood in easiest way
    Thanks

  • @rashugoku
    @rashugoku 2 года назад

    Perfectly explained to the point, thanks a lot bro!!

  • @enkhbaatarbattulga9915
    @enkhbaatarbattulga9915 4 года назад +2

    Thank you for the video! This is what I needed

  • @nguyenquan4836
    @nguyenquan4836 2 года назад

    Learn a lot from you. Thank you

  • @igoerche
    @igoerche 2 года назад

    Great explanation, thank you very much!

  • @aliradravesh2812
    @aliradravesh2812 4 года назад

    Thanks a lot. your explanation is very clear.

  • @nicatdadas718
    @nicatdadas718 3 года назад +1

    Very well explained. Thanks))

    • @codefarm0
      @codefarm0  3 года назад

      Glad it was helpful!

  • @shreyajalihal9114
    @shreyajalihal9114 4 года назад +1

    Very well explained video!! :)

  • @bindushree1037
    @bindushree1037 3 года назад

    Hi this was informative video, if we are mocking the rest template using mockito how can be done for rest template exchange method for both get and post method.

  • @samme4life
    @samme4life 4 года назад +2

    informative video. Thank you for sharing your knowledge. Can you please do a video on how to use basic authentication with RestTemplate? Thank you

    • @codefarm0
      @codefarm0  4 года назад +1

      The below link can help for Authorization
      www.baeldung.com/how-to-use-resttemplate-with-basic-authentication-in-spring

  • @rajanishjena3268
    @rajanishjena3268 4 года назад +1

    Sir you have set the header in request or in response body???

    • @codefarm0
      @codefarm0  4 года назад

      It's the information that the client should know - what response type is going to be returned by the service it is calling. So you can say it's part of the request that's telling the server that, give me this "content-type" and if the server has the same type then it returns otherwise there is an exception.
      I hope it's clear now :)

  • @abhiraj2241
    @abhiraj2241 4 года назад +1

    nice explanation,please show one payment gateway integration example

  • @noirRozelle
    @noirRozelle 2 года назад

    Can we use resttemplate to use 3rd Part API? Let's say I built a web app then I want to use Twitter API, is that the use of resttemplate?

  • @rafale1004
    @rafale1004 2 года назад

    Can we create multiple request Mapping with in the loop instead of writing all methods explicitly.

  • @saravanprathi2770
    @saravanprathi2770 4 года назад +1

    Thanks a lot! god bless you!!

  • @apawar3099
    @apawar3099 Год назад +1

    Great video

  • @jasper5016
    @jasper5016 2 года назад

    Thanks for the video. Can you show same with WebClient? I believe RestTemplates are deprecated so WebClient will be used more.

    • @abulsyed4851
      @abulsyed4851 Год назад

      How is Web Client? Would you use it over Open Feign?

  • @sujeetpalei5098
    @sujeetpalei5098 3 года назад

    Can we use some other user defined class instead of string.class?

  • @buildleadinnovate24
    @buildleadinnovate24 3 года назад +1

    all 3 rest template method.. which one have to use???

    • @codefarm0
      @codefarm0  3 года назад

      The purpose is same just slight difference in internal implementation. Use it as per the usecas.

  • @roshanjha8951
    @roshanjha8951 5 лет назад +1

    Here the response is object but why have you taken it as String?

    • @codefarm0
      @codefarm0  5 лет назад +1

      @Roshan I have explained the object part also. The purpose here is to explain the different ways to catch the response. In string also we are getting the JSON which can be useful in certain scenarios.
      I hope it's clear now. Please let me know if you didn't get the answer to what you are asking.

  • @Vithal_Nivargi
    @Vithal_Nivargi 2 года назад

    Thank-You nice video

  • @satyadurgadeviv503
    @satyadurgadeviv503 4 года назад +1

    Can you please provide any real time example for using rest template

    • @codefarm0
      @codefarm0  4 года назад

      Take a look at this video
      ruclips.net/video/g8C0Z-seFEw/видео.html

  • @shubhammaheshwari4250
    @shubhammaheshwari4250 4 года назад

    Can we call webservlet from rest template

  • @the_ashishthought
    @the_ashishthought 2 года назад

    Bro, how to configure two way ssl where swagger ui is client and spring boot api is server? Could you please help me out.

    • @codefarm0
      @codefarm0  2 года назад +1

      Haven't done that recently Ashish.

  • @ashwinikantule146
    @ashwinikantule146 4 года назад +1

    Very useful

  • @ketanchiku7106
    @ketanchiku7106 4 года назад +1

    how to communicate to Angular plz suggest me

    • @codefarm0
      @codefarm0  4 года назад +1

      For now, I don't have the code for this but below link can help u for integration of angular and spring boot ---
      www.devglan.com/spring-boot/spring-boot-angular-8-example

  • @manashranjan1267
    @manashranjan1267 4 года назад +1

    Please next time eclipse screen should be make white background other wise it will not visible

    • @codefarm0
      @codefarm0  4 года назад +1

      Already taken care...its not there in later videos

    • @manashranjan1267
      @manashranjan1267 4 года назад

      Thanks very much

  • @ankitmishra6873
    @ankitmishra6873 Год назад +1

    learn by doing

  • @cinemaworld7931
    @cinemaworld7931 3 года назад

    How you are calling that method .. bro .. I didn't get

  • @mansinigam1
    @mansinigam1 4 года назад

    Why GET request is having content-type ?

    • @codefarm0
      @codefarm0  4 года назад

      This is for service that is being called

  • @user-Tulbul
    @user-Tulbul 5 лет назад +1

    Please uploade rest API validation video

    • @codefarm0
      @codefarm0  5 лет назад +1

      Thanks brother for topic suggestion. I have added this into to do list.

    • @codefarm0
      @codefarm0  5 лет назад +1

      Hi Aman,
      Just uploaded the REST API validation video series -
      ruclips.net/p/PLq3uEqRnr_2EjFzGspecJgPvWRU8jrT31
      Let me know if this is the same that you were looking for.

  • @rajanishjena3268
    @rajanishjena3268 4 года назад

    Why GET method has contentType

    • @codefarm0
      @codefarm0  4 года назад

      What's the problem with that?? Even get method will have some return type and that has to be specified in content type.

  • @KARTHIKPANCH97
    @KARTHIKPANCH97 4 года назад

    please help i am finding it really hard

  • @KARTHIKPANCH97
    @KARTHIKPANCH97 4 года назад

    I had to stop it. its really impossible to continue.

  • @KARTHIKPANCH97
    @KARTHIKPANCH97 4 года назад

    I am totally new

  • @ankitmishra6873
    @ankitmishra6873 Год назад +1

    ankit mishra

  • @maheshd3506
    @maheshd3506 3 года назад

    Change ide ,not visible and not interesting

    • @codefarm0
      @codefarm0  3 года назад

      thanks brother for the feedback

  • @KARTHIKPANCH97
    @KARTHIKPANCH97 4 года назад

    YOU ARE EXTREMELY FAST . FIRST ALL I AM CONFUSED. AFTER SEEING YOUR VIDEO I FORGOT EVERYTHING. I LOST CONFIDENCE .

    • @codefarm0
      @codefarm0  4 года назад

      That's very sad to hear...if it's about speed u can slow it down from settings of video...and cool down ..take a deep breath....note down the points you are confused and start over...I am sure it will help

  • @shivammakade1163
    @shivammakade1163 Месяц назад

    sab dimag ke upr se ja rha hai

    • @codefarm0
      @codefarm0  12 дней назад

      take a deep breath brother, one step a time.
      Same feeling with most of us at first.