Post vs Put

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

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

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

    30 Important C# Interview Questions : ruclips.net/video/BKynEBPqiIM/видео.html
    25 Important ASP.NET Interview Questions : ruclips.net/video/pXmMdmJUC0g/видео.html
    25 Angular Interview Questions : ruclips.net/video/-jeoyDJDsSM/видео.html
    20+ SQL Server Interview Questions : ruclips.net/video/SEdAF8mSKS4/видео.html
    5 MSBI Interview Questions : ruclips.net/video/5E815aXAwYQ/видео.html

  • @Nemosaur
    @Nemosaur 4 года назад +6

    I was mainly for PUT vs POST but ended up learning so much more!
    Great explanation for idempotent vs non-idempotent too

  • @JyotirmayaMoha
    @JyotirmayaMoha 5 лет назад +6

    By far this is the best video i have seen where the difference between PUT and POST is clearly mentioned.
    Thanks a ton Sir Jee.

  • @TheNaveid
    @TheNaveid 3 года назад +5

    I will never ever forget this now Thankyou so much

  • @GadilkarVishal
    @GadilkarVishal 3 года назад +3

    very well explained the minute differences between the methods and between Idempotent and non-Idempotent calls!! thanks a lot!!

  • @manoharsobhani3602
    @manoharsobhani3602 5 лет назад +2

    Per HTTP standards Post is an insert and Put is an update (and upsert if a record doesn't exist)

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

      watch this real interview: ruclips.net/video/H8b0RV6iG_s/видео.html

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

    I have an interview tomorrow and I've learn a lot in this video. Many thanks! 🤗

  • @zuzuba3481
    @zuzuba3481 5 лет назад +3

    This Chanel deserve more then 1 million subscribers..

  • @MrAksp
    @MrAksp 5 лет назад +3

    Exactly what i was looking for. Can't make better video than this. Thanks

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

    Post method comes with body section only while Put and Patch with header and body section. That's why Post we are using to insert a record while Put and Patch for an update purpose.

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

      watch this real interview: ruclips.net/video/H8b0RV6iG_s/видео.html

  • @ashishmayekar62
    @ashishmayekar62 5 лет назад +9

    Is there any specific advantage of using PUT over POST? Or it is just to follow standard?
    Btw, this is a best explaination for Put vs Post. Thanks.

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

    Best video I have encountered so far for difference between PUT and POST. Thanks sir

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

      watch this real interview: ruclips.net/video/H8b0RV6iG_s/видео.html

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

    A clear and understandable way of PUT and POST method.

  • @panchurii
    @panchurii 6 лет назад +2

    using standard http call is the correct way, but there are exceptions like, for login we can not use GET, we can only use post there for security reasons.

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

    Very good and neat explanation. Thank you

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

    In java crud repository, if we use save method for POST, it will create or update the resource in database, so in that scenario server side developers don't have control for POST methods to restrict it to create new resources alone because crud repository will update the resources if it is available there in database.

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

    Thanks , thanks, and thanks for removing confusion post, put and patch method.

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

    12:38 You are not "spelling" it wrong, you may be just "pronouncing" it wrong. This is one of the best videos I've seen on this topic. Keep up the good work..!!!

  • @expertreviews1112
    @expertreviews1112 5 лет назад +2

    Superb video. Lot of emphasis is placed on making the point clear!

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

    Wow now it's so easy to understand and follow, Thanks

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

    Explanation of the difference between Put and Post starts at 10:38

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

    Awesome video..best explanation of get ,put,post,patch

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

    wow, Nice Explanation Sir ...thanks

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

    Brilliant. Just What I wanted. Nicely explained when to use Put, Post and Patch.

  • @Bolla.vedhasree
    @Bolla.vedhasree 2 года назад

    It was very informative, clear and useful .thank you

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

    Thank you sir. you are a good teacher

  • @dodogo777
    @dodogo777 5 лет назад +2

    Thank you sir! the best explanation of POST vs PUT ever!

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

    OSM : Clear & very deep Understanding ..!!! Thanks you

  • @behji100
    @behji100 6 лет назад +1

    Good conceptual explanation.

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

    Can we use post for all CRUD operations ? Or it is a bad practice?

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

    Standard HTTP Methods:
    > POST (add)
    - mainly used for ADD operations
    - the ID is generated in the server-side
    > GET (read/search)
    > PUT (add / ("full") update)
    - mainly used for UPDATE operations
    - the ID is generated in the client-side (maybe for some reason your app can create a custom ID)
    - if the record EXISTS on the server, that record is updated
    - if the record DOESN'T EXISTS on the server, that record is created
    > DELETE (remove)
    > PATCH (customized update - update only what is modified)

    Adhering to HTTP standards is nothing but REST principles.

  • @nehajain6751
    @nehajain6751 6 лет назад +1

    Put and post is clearly explained. But i have a question regarding put update .. if we pass only few fields to be modified will it update the other remaining fields as default ,i.e. null or it will remain the same

    • @JyotirmayaMoha
      @JyotirmayaMoha 5 лет назад

      You should use PATCH to update partial record. The other fields remain as it is and there will be no change. He has mentioned this in this video. Please watch the last 2 3minutes of this video for clear understanding.

  • @sayannag9
    @sayannag9 6 лет назад +1

    Can we not have customised update in PUT?....for example, in the above case, if we pass only the Name parameter in PUT and don't pass anything with Amount, won't the Name only get updated?...does it throw any error or its just a good practice to separate the type of updates using 2 different methods?

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

    Hello sir, thank you so much for the explanation

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

    very clear explanation. Thanks Sir

  • @anaghzaccount
    @anaghzaccount 5 лет назад

    Is there any working practice that defines how many APIs should be exposed? For example, is it a good practice to have post and put to Target the same resource or is it advisable to just use PUT and reduce the number of APIs?

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

    Very well explained Sir! Thank you so much

  • @PankajKumar-xo8ng
    @PankajKumar-xo8ng 3 года назад

    Best way explanation.

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

    Client generated Id can't be necessarily stored by server as most likely Id column will be Identity type, in that case it will be system generated. Pls clarify as it may mislead so many viewers

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

      In this case if the server is unable to create a record with Id sent by client, then the response URL will not be same as request URL; something that the video alluded to. Not criticisng at all, just pointing out.

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

      watch this real interview: ruclips.net/video/H8b0RV6iG_s/видео.html

  • @sriramkumar3530
    @sriramkumar3530 6 лет назад +1

    Really good Explanation..Super

  • @Gauravkumar-jm4ve
    @Gauravkumar-jm4ve 3 года назад

    Please keep posting more like this ❤️🙏

  • @upendrapatil6808
    @upendrapatil6808 5 лет назад

    Very well explained...Sir...!!

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

    Thanks sir it is awesome explanation 👌👏👌👏

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

    Thanks a lot, sir! This was excellent.

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

    Where should i use put or post only in insert new record... plz suggest with example

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

    very helpful. thank you

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

      watch this real interview: ruclips.net/video/H8b0RV6iG_s/видео.html

  • @SA-oh9bk
    @SA-oh9bk 2 года назад

    Thank you sir.

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

    If you're here for post vs put:
    POST is mainly used for ADD operations
    PUT is mainly used for UPDATE operations
    PUT is used to:
    - if the record EXISTS on the server, that record is updated
    - if the record DOESN'T EXISTS on the server, that record is created

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

    Well explain

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

    thanks you for the great video

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

    Wonderful

  • @TarunSingh-je9my
    @TarunSingh-je9my 3 года назад

    I am updating code using post request and it works fine.

  • @jgraves4532
    @jgraves4532 5 лет назад

    very nicely done thank you.

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

    Nice👍

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

    Nice video

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

    Sir, what happens if I write insert method on HTTTPGET method

  • @syedbabarali1
    @syedbabarali1 6 лет назад

    Precious example with in short time...

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

    Thanks a lot

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

    So, PATCH, as in PUT, it should be ideponent, but it's not. The PATCH method supplies a set of instructions to modify the resource, it doesn't use the URI like PUT method.

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

    nic one Sir
    can you liberate it
    what is id generated by client.

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

      watch this real interview: ruclips.net/video/H8b0RV6iG_s/видео.html

  • @CyberAbyss007
    @CyberAbyss007 6 лет назад +1

    Thank you!

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

    Remember,
    Idempotent = the id on the server remains SAME.
    Non-Idempotent = the id on the "server" CHANGES

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

    15:36

  • @srikanthr7219
    @srikanthr7219 6 лет назад

    Very clear

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

    well explained.:)

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

    Awesome♥️♥️

  • @malayaprasadlenka9088
    @malayaprasadlenka9088 5 лет назад

    Awesome sir

  • @gunsboy77
    @gunsboy77 5 лет назад

    Thank you.

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

    good sir

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

    Keep uploaded

  • @AmitPandey-ko7lj
    @AmitPandey-ko7lj 4 года назад

    Sir if client is generating Id and send request to post method. Can’t we write logic if id is present then update record or insert. If we can then What is exactly answer when anyone ask what will happen if we write update code in POST?

  • @AkashGupta-gu7vd
    @AkashGupta-gu7vd 6 лет назад

    What if we keep post method code in put method and put code in post method. I like to know how it identify the logic

    • @RanjeetKumar-gg7ie
      @RanjeetKumar-gg7ie 5 лет назад

      YOU CAN WRITE ANY LOGIC INSIDE THIS, THE ISSUE IS IT'S A CONVENTION THAT ONE SHOULD FOLLOW OTHERWISE WHEN OTHERS WILL GO THROUGH YOUR CODE HE WILL HAVE TO GO THROUGH YOUR LOGIC TOO... COZ U HAVE CHANGED THE NAME OF METHODS :p

  • @charles-y2z6c
    @charles-y2z6c 4 года назад +11

    I wish I watched this video before I went on last interview

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

      watch this real interview: ruclips.net/video/H8b0RV6iG_s/видео.html

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

      this happened to me too

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

      I failed Interview because of this question

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

    Good Video!! And you are not spelling idempotent wrong, you should ask, If I am pronouncing it right or wrong,! :-)

  • @sunilkumar-zf4dx
    @sunilkumar-zf4dx 6 лет назад +2

    I still have a confusion about PUT VS PATCH ?

    • @JyotirmayaMoha
      @JyotirmayaMoha 5 лет назад

      PUT : If you want to update all the records (All elements of a class)
      POST: To update few elements of the class.

    • @daalwada
      @daalwada 5 лет назад

      @@JyotirmayaMoha Isn't the POST method used to insert new elements? PATCH is used to update few elements of the class.

    • @RanjeetKumar-gg7ie
      @RanjeetKumar-gg7ie 5 лет назад

      @@daalwada POST CREATES A NEW RESOURCE & PUT FIRST SEARCH THAT EXISTING RESOURCE , IF FOUND PUT WILL UPDATE IT ELSE IT WILL CREATE IT :p

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

    Great video! You mean pronunciation, not spelling.

  • @ravigowda6999
    @ravigowda6999 6 лет назад

    Very good video

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

    Thank you !

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

    Thank you for the video