Part 19 Why HttpPatch in Web/REST API 7.0 || Asp.Net Core Web API Tutorials C#

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

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

  • @NehanthWorld
    @NehanthWorld  Год назад +2

    Git Repo used in this tutorial : github.com/Nehanthworld/Asp.Net-Core-Web-API-Tutorial

  • @artist-soul767
    @artist-soul767 9 месяцев назад +1

    thanks so much, it's worked for me

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

    Awesome sir
    Nice explanation

  • @faris.abuali
    @faris.abuali Год назад

    Thanks for this great tutorial

  • @kandinagireddy
    @kandinagireddy 10 месяцев назад

    Perfect tutorial bro

  • @dinamohamed13600
    @dinamohamed13600 3 месяца назад

    Thanks

  • @guilhermealves577
    @guilhermealves577 2 месяца назад

    Ty so much!!

  • @yacinea.4444
    @yacinea.4444 Год назад

    Thanks for this tuto

  • @lexNwimue
    @lexNwimue 8 месяцев назад

    Coming from the JS/TS world I'm new to .NET, but I must say I've always found this JsonPatch to be unnecessarily complex. First you have to create new DTO, then apply the patch, then use the applied patch to update the existing records. That's too much complexity for a simple update.

    • @NehanthWorld
      @NehanthWorld  8 месяцев назад

      True, I never used it. 😊

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

    Sir, I've one question
    I'm using the store procedure in my application so How I can implement the patch Web API.
    Do you have any video on that ? Please guide... Thanks in advance sir

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

      Stored procedure is completely backend logic, there is nothing to do with web api patch. If you want partial data from end user the use patch else post or put. The backend db call or sp call is same.

  • @AbSyu6hh
    @AbSyu6hh 4 месяца назад

    why we can't apply patchDocument.ApplyTO(existing student ) directly?

    • @NehanthWorld
      @NehanthWorld  4 месяца назад

      Necause we are using notracking, if we are not using notracking we can try that

  • @microtech2448
    @microtech2448 10 месяцев назад

    How such request would be constructed through mvc or blazor form when user clicks the button?

  • @abdulmuqtadirrajapatel
    @abdulmuqtadirrajapatel 9 месяцев назад

    Is there any way to avoid [op, path, value] statements?
    If I send just the path and value in a key value pair, like "studentName":"Anil New" and it should automatically replace the value of "studentName" only and keep rest all as it were.

  • @deependee509
    @deependee509 10 месяцев назад

    in this case under HttpPatch the validation for individual propery is not working even if StudentDTO is used. For example i can replace email address for any string. Could you show the solution to keep the same validation as we have in other http request ?

    • @NehanthWorld
      @NehanthWorld  10 месяцев назад

      Thank you for asking..
      We are already handling the validations with the below modelstate code in the video
      patchDocument.ApplyTo(studentDTO, ModelState);
      if (!ModelState.IsValid)
      return BadRequest(ModelState);