Post vs Put

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • For more such videos visit www.questpond.com
    For more such videos subscribe th-cam.com/users/questpondvide...
    See our other Step by Step video series below :-
    Learn C# Step by Step goo.gl/FNlqn3
    Learn Design Pattern Step by Step:- goo.gl/eJdn0m
    Learn Angular tutorial step by step tinyurl.com/ycd9j895
    Learn MVC Core step by step :- tinyurl.com/y9jt3wkv
    Learn Azure Step by Step :- tinyurl.com/y6fmrech
    Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
    Python Tutorial for Beginners:- • Python Tutorial for Be...
    Learn Data Science in 1 hour :- tinyurl.com/y5o7qbau
    Learn Power BI Step by Step:- tinyurl.com/y6thhkxw
    Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
    Learn SQL Server Step by Step tinyurl.com/ja4zmwu
    Learn Tableau step by step :- tinyurl.com/kh6ojyo
    Topics covered in this 20 minutes of video
    1. Why HTTP Standards ?
    2. Concept of idempotent and non-idempotent.
    3. POST vs PUT
    4. Customized updates using PATCH
    4. PUT vs PATCH
    See our other Step by Step video series below :-
    Learn MVC Core step by step :- tinyurl.com/y9jt3wkv
    Learn Angular1.x Step by Step in 8 hours :- goo.gl/F3ovSr
    Learn Angular 2/4 Step by Step in 8 hours:- tinyurl.com/z3vnvhg
    Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
    Learn Xamarin Mobile Programming Step by Step :- goo.gl/WDVFuy
    Learn Design Pattern Step by Step in 8 hours:- goo.gl/eJdn0m
    Learn C# Step by Step in 100 hours :- goo.gl/FNlqn3
    Learn Data structures & algorithm in 8 hours :-tinyurl.com/ybx29c5s
    Learn SQL Server Step by Step in 16 hours:- tinyurl.com/ja4zmwu
    Learn Javascript in 2 hours :- tinyurl.com/zkljbdl
    Learn Azure step by step :- goo.gl/quy6jU
    Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
    Learn TypeScript in 45 Minutes :- goo.gl/oRkawI
    Learn webpack in 50 minutes:- goo.gl/ab7VJi
    Learn Visual Studio code in 10 steps for beginners:- tinyurl.com/lwgv8r8
    Learn Tableau step by step :- tinyurl.com/kh6ojyo

ความคิดเห็น • 97

  • @dnfvideo
    @dnfvideo  3 ปีที่แล้ว

    30 Important C# Interview Questions : th-cam.com/video/BKynEBPqiIM/w-d-xo.html
    25 Important ASP.NET Interview Questions : th-cam.com/video/pXmMdmJUC0g/w-d-xo.html
    25 Angular Interview Questions : th-cam.com/video/-jeoyDJDsSM/w-d-xo.html
    20+ SQL Server Interview Questions : th-cam.com/video/SEdAF8mSKS4/w-d-xo.html
    5 MSBI Interview Questions : th-cam.com/video/5E815aXAwYQ/w-d-xo.html

  • @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.

  • @Nemosaur
    @Nemosaur 3 ปีที่แล้ว +6

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

  • @TheNaveid
    @TheNaveid 3 ปีที่แล้ว +5

    I will never ever forget this now Thankyou so much

  • @MrAksp
    @MrAksp 5 ปีที่แล้ว +3

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

  • @zuzuba3481
    @zuzuba3481 4 ปีที่แล้ว +3

    This Chanel deserve more then 1 million subscribers..

  • @GadilkarVishal
    @GadilkarVishal 3 ปีที่แล้ว +3

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

  • @expertreviews1112
    @expertreviews1112 5 ปีที่แล้ว +2

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

  • @MrStarcraftangle
    @MrStarcraftangle 2 ปีที่แล้ว +1

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

  • @dodogo777
    @dodogo777 5 ปีที่แล้ว +2

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

  • @aslamkazi5490
    @aslamkazi5490 4 ปีที่แล้ว +1

    A clear and understandable way of PUT and POST method.

  • @yashsave
    @yashsave 3 ปีที่แล้ว

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

  • @manishanand1513
    @manishanand1513 5 ปีที่แล้ว +1

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

  • @azizulhaque4135
    @azizulhaque4135 3 ปีที่แล้ว

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

  • @sriramkumar3530
    @sriramkumar3530 6 ปีที่แล้ว +1

    Really good Explanation..Super

  • @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: th-cam.com/video/H8b0RV6iG_s/w-d-xo.html

  • @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..!!!

  • @behji100
    @behji100 5 ปีที่แล้ว +1

    Good conceptual explanation.

  • @eysikal
    @eysikal 4 ปีที่แล้ว +1

    Thanks a lot, sir! This was excellent.

  • @sandeepa4116
    @sandeepa4116 3 ปีที่แล้ว

    Very well explained Sir! Thank you so much

  • @nitendratiwari3709
    @nitendratiwari3709 3 ปีที่แล้ว

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

  • @CyberAbyss007
    @CyberAbyss007 6 ปีที่แล้ว +1

    Thank you!

  • @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: th-cam.com/video/H8b0RV6iG_s/w-d-xo.html

  • @ManikandanPandurangan
    @ManikandanPandurangan 3 ปีที่แล้ว +1

    Very good and neat explanation. Thank you

  • @syedbabarali1
    @syedbabarali1 5 ปีที่แล้ว

    Precious example with in short time...

  • @jgraves4532
    @jgraves4532 5 ปีที่แล้ว

    very nicely done thank you.

  • @manoharsobhani3602
    @manoharsobhani3602 4 ปีที่แล้ว +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: th-cam.com/video/H8b0RV6iG_s/w-d-xo.html

  • @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?

  • @upendrapatil6808
    @upendrapatil6808 4 ปีที่แล้ว

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

  • @muhammadharis2205
    @muhammadharis2205 3 ปีที่แล้ว

    very clear explanation. Thanks Sir

  • @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.

  • @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.

    • @haykkyureghyan8349
      @haykkyureghyan8349 2 ปีที่แล้ว

      there is no specific advantage, it's for stsndsrt

  • @Gauravkumar-jm4ve
    @Gauravkumar-jm4ve 3 ปีที่แล้ว

    Please keep posting more like this ❤️🙏

  • @ravimakwana389
    @ravimakwana389 ปีที่แล้ว

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

  • @KJStreaming
    @KJStreaming 3 ปีที่แล้ว +1

    wow, Nice Explanation Sir ...thanks

  • @thedude3544
    @thedude3544 5 ปีที่แล้ว +1

    thanks you for the great video

  • @srikanthr7219
    @srikanthr7219 5 ปีที่แล้ว

    Very clear

  • @Bolla.vedhasree
    @Bolla.vedhasree 2 ปีที่แล้ว

    It was very informative, clear and useful .thank you

  • @gunsboy77
    @gunsboy77 4 ปีที่แล้ว

    Thank you.

  • @jksharma7
    @jksharma7 2 ปีที่แล้ว

    Thank you sir. you are a good teacher

  • @PankajKumar-xo8ng
    @PankajKumar-xo8ng 3 ปีที่แล้ว

    Best way explanation.

  • @malayaprasadlenka9088
    @malayaprasadlenka9088 5 ปีที่แล้ว

    Awesome sir

  • @SA-oh9bk
    @SA-oh9bk 2 ปีที่แล้ว

    Thank you 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?

  • @ThePuneet681
    @ThePuneet681 4 ปีที่แล้ว

    Thanks sir it is awesome explanation 👌👏👌👏

  • @temmmbebkd2922
    @temmmbebkd2922 2 ปีที่แล้ว

    Hello sir, thank you so much for the explanation

  • @anishpal2397
    @anishpal2397 4 ปีที่แล้ว +1

    well explained.:)

  • @birdofhermes6152
    @birdofhermes6152 3 ปีที่แล้ว

    Thank you for the video

  • @arunkumararjunan8608
    @arunkumararjunan8608 4 ปีที่แล้ว +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.

  • @prashantpranav8472
    @prashantpranav8472 2 ปีที่แล้ว

    Wonderful

  • @niks7454
    @niks7454 3 ปีที่แล้ว

    Well explain

  • @arnoldquevedo5207
    @arnoldquevedo5207 3 ปีที่แล้ว

    Thanks a lot

  • @sreeharimanoharan3203
    @sreeharimanoharan3203 3 ปีที่แล้ว

    Awesome♥️♥️

  • @hohokidstv7298
    @hohokidstv7298 3 ปีที่แล้ว

    Nice👍

  • @apalanikumar
    @apalanikumar 3 ปีที่แล้ว

    Nice video

  • @bevedel
    @bevedel 4 ปีที่แล้ว +1

    very helpful. thank you

    • @nallaspathfinder9779
      @nallaspathfinder9779 4 ปีที่แล้ว

      watch this real interview: th-cam.com/video/H8b0RV6iG_s/w-d-xo.html

  • @TarunSingh-je9my
    @TarunSingh-je9my 3 ปีที่แล้ว

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

  • @jashneaaftabi
    @jashneaaftabi ปีที่แล้ว

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

  • @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.

  • @hohokidstv7298
    @hohokidstv7298 3 ปีที่แล้ว

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

  • @ramnagargoje8779
    @ramnagargoje8779 3 ปีที่แล้ว

    good sir

  • @manjunathkannur2207
    @manjunathkannur2207 3 ปีที่แล้ว

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

  • @zerosandones7547
    @zerosandones7547 2 ปีที่แล้ว

    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

  • @amamsharma372
    @amamsharma372 2 ปีที่แล้ว

    Keep uploaded

  • @zerosandones7547
    @zerosandones7547 2 ปีที่แล้ว

    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.

  • @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 5 ปีที่แล้ว

    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 4 ปีที่แล้ว

      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

  • @jakni3661
    @jakni3661 4 ปีที่แล้ว +1

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

  • @tannubajpai4782
    @tannubajpai4782 4 ปีที่แล้ว +1

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

    • @nallaspathfinder9779
      @nallaspathfinder9779 4 ปีที่แล้ว

      watch this real interview: th-cam.com/video/H8b0RV6iG_s/w-d-xo.html

  • @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: th-cam.com/video/H8b0RV6iG_s/w-d-xo.html

  • @vikasrajput6135
    @vikasrajput6135 3 ปีที่แล้ว

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

  • @ravigowda6999
    @ravigowda6999 6 ปีที่แล้ว

    Very good video

  • @charlesbaldo
    @charlesbaldo 4 ปีที่แล้ว +11

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

    • @nallaspathfinder9779
      @nallaspathfinder9779 4 ปีที่แล้ว

      watch this real interview: th-cam.com/video/H8b0RV6iG_s/w-d-xo.html

    • @amirabbasIT
      @amirabbasIT 3 ปีที่แล้ว +1

      this happened to me too

    • @akshaychauhan681
      @akshaychauhan681 3 ปีที่แล้ว +1

      I failed Interview because of this question

  • @rogerIndianKing
    @rogerIndianKing 4 ปีที่แล้ว

    Great video! You mean pronunciation, not spelling.

  • @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.

  • @kaisujay
    @kaisujay 3 ปีที่แล้ว

    15:36

  • @ishasharma2450
    @ishasharma2450 2 ปีที่แล้ว

    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 4 ปีที่แล้ว

      @@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 4 ปีที่แล้ว

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

  • @sivasubramanian4499
    @sivasubramanian4499 3 ปีที่แล้ว +1

    Thank you !