Part 5 ASP NET Web API Content Negotiation

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

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

  • @Nicetrycutiepie
    @Nicetrycutiepie 7 лет назад +8

    Nice video Kudvenkat. I got a clear picture .

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  7 лет назад +3

      Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
      I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
      ruclips.net/user/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs or to download all the videos for offline viewing please visit
      www.pragimtech.com/order.aspx
      Slides and Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      ruclips.net/video/y780MwhY70s/видео.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      ruclips.net/user/kudvenkat
      If you like these videos, please click on the THUMBS UP button below the video.
      May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
      Good Luck
      Venkat

  • @_samirdahal
    @_samirdahal 4 года назад +3

    In .net core 3.1 and higher use this in startup.cs file
    inside configure services method
    services.AddControllers()
    .AddJsonOptions(options =>
    {
    //indent json response
    options.JsonSerializerOptions.WriteIndented = true;
    });

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

    Really your videos are very helpful for all topics... Thanks sir

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

    If someone is not getting "CamelCasePropertyNamesContractResolver()" at 7:46 then please add using namespace as "using Newtonsoft.JSON.Serialization;"

  • @TonyTigerTonyTiger
    @TonyTigerTonyTiger 7 лет назад +3

    I paid for a Udemy 'course' on ASP.NET Web API and wish I hadn't. His English was understandable if I put effort into every word, but that made trying to follow what he was saying hard. And on top of that, the several lectures I watched were not all that informative. I gave up and RUclips'd for videos, and came across your series. Your English is very good, and your content is excellent.

  • @kashiffayyaz6004
    @kashiffayyaz6004 8 лет назад

    I have no words to admire your effort

  • @georgesapp5680
    @georgesapp5680 7 лет назад

    This was very helpful. I am a BA and this really content negotiation and provided me with a visual so that I could differentiate b/w XML & JSON formats.

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

      add this to webAPIconfig.cs : GlobalConfiguration.Configuration.Formatters.JsonFormatter.MediaTypeMappings
      .Add(new System.Net.Http.Formatting.RequestHeaderMapping("Accept",
      "text/html",
      StringComparison.InvariantCultureIgnoreCase,
      true,
      "application/json"));

  • @riley3161
    @riley3161 7 лет назад

    As always, I love your videos and the hard work you do making them!

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

    Very good video ,Lecture

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

    Great videos , and the best thing you did is adding some pictures to the text version of videos thank you so much .

  • @saikumar-yo2jx
    @saikumar-yo2jx 6 лет назад +1

    Spr kudvenkat one rqst sir plz upload AZURE (queues, tables, blobs, web and worker role) plz

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

    Well explained Kudvenkat. Thank u

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

    Kudvenkat is the best

  • @NageshCh-y7w
    @NageshCh-y7w Год назад

    Hi Venkat, Your videos are very good. But why you always use fiddler. Who uses fiddler in real time development. Can you show generating output in json in .net web api application

  • @muhammadrehbarsheikh8498
    @muhammadrehbarsheikh8498 8 лет назад

    Thank you venkat sir. Great explanation.

  • @User-Dotnet
    @User-Dotnet Год назад

    Hi Venkat, is Content Negotiation works in WCF?

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

    Sir i have a confusion . As you told if we do not mention Accept Header then by default it returns data in JSON format but in video 4 if i made a request from browser then it returns data in XML format . Please clear it .

  • @leog.2798
    @leog.2798 5 лет назад

    in Visual Studio 2017 use: using Newtonsoft.Json.Serialization;
    for the method CamelCasePropertyNamesContractResolver();

  • @muhammadaamir1024
    @muhammadaamir1024 8 лет назад

    Awesome, highly appreciated.

  • @gardyroy
    @gardyroy 7 лет назад

    Nice Explaination.
    I have one Question:
    What if i have 2 controllers and I want to return JSON from first and XML from another controller, then how to achieve this?

  • @mr.faujii5263
    @mr.faujii5263 4 года назад

    which version of flidder are you using

  • @vijayanandhsadagopan1381
    @vijayanandhsadagopan1381 8 лет назад +2

    Can you post an Web APi with OAuth ?

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

    In visual studio, where do we set the content-type and accept header ?

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

    One small clarification [3.36 to 3.44] "Its going to pick the first formatter which happens to be the json formatter ". I think it's the xml formatter and not the json formatter!

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

      I think it is the first one in the api's available formatters list. Not in the list specified in the accept header.

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

      As it can be seen in the video when setting: Accept: application/xml, application/json the data is returned in JSON format no matter the order, so I think that you're wrong. It is the quality factor that specifies that.

  • @raqibul1000
    @raqibul1000 8 лет назад

    thanks from Bangladesh

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

    After using CustomJsonFormatter class, indented and CamelCase properties are not working!!

  • @AmitKumar-zd3ri
    @AmitKumar-zd3ri 7 лет назад

    Awesome tutorial. i have little doubt. how i can return json data on controller level?

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

    In the latest fiddler with visual studio 2019 the default first it generates with json

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

    Hi, Thank you for your great tutorial , Its easy for me to understand I am newbie. By the way do you have also a POST tutorial as i am struggling in creation of account. I bit confused on how to start creation or Sign up. Thanks in advance for the help

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

    Very nice explanation.

  • @arnabchakraborty3369
    @arnabchakraborty3369 8 лет назад

    >>>> Sir Can u upload that Video.. DATATABBLES EDITOR with DOT NET WEB API...
    >>>> How to editing in Datatables in Datatable Editor in different manner
    >>>> Please Upload This video sir... This will more help for me... Thanks sir in advance...

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

    is this series using REST architecture?

  • @jdholasca
    @jdholasca 7 лет назад

    hi i'm new to api, when the client sent a GET request how will you tell in your controller what action it will use?

    • @TonyTigerTonyTiger
      @TonyTigerTonyTiger 7 лет назад +1

      This is done automatically, using convention instead of configuration. The convention is basically: whatever the HTTP verb is in the request, ASP.NET will automatically call the controller method with the same name. So if GET request is received, ASP.NET Web API will call the Get method on the controller. If a GET request is received and the URL has a single integer, then the controller's Get method that takes a single integer parameter is called.

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

    is this possible to define such response type in postman?

  • @nihaalg401
    @nihaalg401 7 лет назад

    great tutorial ...😊

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

    if " CamelCasePropertyNamesContractResolver " is not working
    just writ " using Newtonsoft.Json.Serialization; " on the top or your code.

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

      its still not working

    • @MaheshBabu-vq7qk
      @MaheshBabu-vq7qk 3 года назад

      @@jastiajaykrishna92 We need to add it in WebApiConfig.cs file, it will definitely work.

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

    Why we are using fidder, why not we directly give request in browser??. (I am completely new to this, so plz).

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

      you can not send POST, delete request from web browser.

  • @AbhishekGupta-io7nu
    @AbhishekGupta-io7nu 3 года назад

    hey how do you remember so much classes

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

    requires using Newtonsoft.Json.Serialization; namespace

  • @lonelylov
    @lonelylov 7 лет назад

    Great Tutorial, keep helping..

  • @peterl1699
    @peterl1699 8 лет назад

    very good tutorial thank you

  • @kavithavishwanathen6778
    @kavithavishwanathen6778 8 лет назад

    Thank you Sir !!!!

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

    Nice Video

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

    text version not opening.

  • @seanshimon
    @seanshimon 8 лет назад

    Thanks.

  • @hendesebilisim
    @hendesebilisim 7 лет назад

    thank you sir

  • @inhimanshugoyal
    @inhimanshugoyal 7 лет назад

    Nice one! There a typo in the first line on the slide- Accetpt

  • @abidalisidd
    @abidalisidd 8 лет назад

    What is quality factor?

    • @abidalisidd
      @abidalisidd 8 лет назад +2

      Thinh Vu, very thanks for replying. could you please explain what is the meaning of json quality factor? what kind of quality we are talking about?

    • @abidalisidd
      @abidalisidd 8 лет назад

      Thinh Vu,
      hahahaha very nice and enjoyable explanation. you are great man thanks. if I want an apple then I can sent a request also like banana, apple and i will receive apple.

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

    The content is really good but you voice, damn I'll be drowsy by the end of the video 😂