ASP NET Web API MediaTypeFormatter

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

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

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

    From Chile, this videos help me a lot.

  • @girijesh-mca
    @girijesh-mca 8 лет назад +4

    Again great explanation..Thank you so much sir...

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

    Very nice and clear explanation. Thanks.

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

    I love your videos! thank you very much for being so helpful.

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

    Just one question Kudvenkat, in the CustomJsonFormatter constructor, do we give the exsisting MediaHeaderValue? I know we set a new content header value in SetDefualtContentHeaders.

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

    Thank you so so much for all these videos.
    I have a doubt, how to deploy a web API to local IIS from Visual Studio 2015. I go to properties, then Web, select Local IIS and create Virtual directory. But when I access from browser, I get an error. Is there any step I am missing ?

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

    Thank you venkat sir.

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

    Make one with .net core 2...

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

    if your having problem inheriting from JsonMediaTypeFormatter be sure you have the using System.Net.Http.Formatting;
    if you dont you should include this

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

    Sir, Are you from TN?

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

    Why in the XML example that the page delivers the order of the fields change ... ?? How can I leave them the same as the class?

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

    Thank you so much sir...
    REPLY

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

    Why don't we get unsupported media type exception when we remove XML formatter and the request for XML response?

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

    Is there Any MediaTypeFormatter available for EDI ????

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

    thank you sir

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

    thanks for video

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

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

    Sooper helpful

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

    somehow I can simply connect to API in Postman, but can't in Fiddler. Weird...

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

    Many thanls

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

    Is there any way to Export datatable in excel xls with headers using asp.net Web Api, I'm searching for it but couldn't get it on Web Api as well as getting error didn't get response on on get method can anyone help ?

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

    In above video i dont want json response bounded by 【】 square brackets. How to achive this. Any link reference is appreciated

    • @satyaprakash-fq6vs
      @satyaprakash-fq6vs 5 лет назад +1

      the square brackets produce a list, the curly brackets produce an object with key/value pairs
      The list can then be a value of a key/value pair

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

    I would like to respond with application/xml (not just the header) when a browser asks for text/html. how do i expand the customformatter to do that?

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

      By default, we get XML response when the request is raised from browser, am I correct?

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

      @@sivarajamuthurajan844 Hello. This is 4 years later. That's 40 years in the programming world. So I would suggest looking elsewhere for these specifics

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

    ... I watched all parts, except this one, anyway... I just don't get it, do I actually have to do something with Telerik Fiddler or do you just show example of how it works? I don't follow this tutorial but I think I am going to when it's finished/has more parts to watch, where you actually give at least basic examples of how to do that in code (PUT,GET,DELETE etc), unless I am missing something.
    Though I understand everything else and now I somewhat understand how basics of HTTP work, it's funny how it is everything what I already kinda knew about client-server, since before I made simple project which allows for people around the world to draw on the same canvas.(don't google it, I didn't ever release it or share with more than few people, though it worked from anywhere, with almost no delay)

    • @arianitonline8748
      @arianitonline8748 8 лет назад +1

      filder is to track what is going on, the requests and the responses. in the case of services it is good to track the traffic because often you will not have to work with a UI, but you are focused on creating the service. Unless you call the services (web api) somewhere, in any web app, or any other kind of app, fidler is one of the ways to check if it's working. Hope I was clear

    • @purpleice2343
      @purpleice2343 8 лет назад +1

      Arianit Krasniqi Yeah, but shouldn't we check if it's working after we actually tried to make it work(use those get post etc headers in code, if I get it right), and if it doesn't only then use fiddler? Because at the moment I don't quite get how to POST or DELETE through browser.

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

      he is still explaining how things work in web api, to understand things better, how to test them. later, I think and hope so, he will tell us how to work with the browser, maybe also build an UI (view) and so on. Yes, we check it if it's working after we tried to make it work, this is still server side, client side will come later, so fidler is one way to test it. there are also other ways, some nuget packages etc that do similar job as fidler. this way, with fidler we can also learn how to make the web app safer, if you watch the mvc and jquery tutorials you will understand

    • @purpleice2343
      @purpleice2343 8 лет назад +1

      Arianit Krasniqi I get it, but it just seems that it should be done the other way around, well I am not the one who is producing these series, beggars can't be choosers.

    • @arianitonline8748
      @arianitonline8748 8 лет назад +1

      Purple Ice
      if I remember right, in the asp.net mvc series when he explain how to do updates he also explains with fidler how someone can attack our web app. so watch those videos to understand better

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

    Hi,
    Can you tell me how to pass paramter with slash for api get method

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

    the question comes to my mind why I would restrict it to only Json or only xml ? is it security purpose or what ?

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

      I think it's more a personal choice. but if you watch the jquery series you will see that it is easier to work with json than xml, for xml you need to do some extra convertions.

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

      I haven't watched the jqyery series and still I don't see why I would restrict my service on only Json and or only xml I'm not experienced developer but the essence of web api to provide services either functional or data to different applications on different platforms on different OSs I just thought when i restrict it I kinda limit limit my clients !

    • @arianitonline8748
      @arianitonline8748 8 лет назад +1

      Transporter
      no, you don't limit the access. you just work with what it's better and easier for you. your client, that is willing to use your service must know that you restricted it only with json or xml, and he will know what to do. more and more services are using json today, but there are still a lot that use xml... e personally prefer json. it's easier to read and to work with it... you can google xml vs json

    • @arianitonline8748
      @arianitonline8748 8 лет назад +1

      microsoft is looking more and more to replace xml with json. even in the new asp.net core they replaced the web.config file code that is with xml into json code. it doesn't mean you can't use xml anymore, but it's a suggestion from microsoft, for any reason I don't know

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

      I don't have an exact answer, but i would do this, if i have a public API, and i state that my API works with JSON only. So i don't have to care with a possible issues with XML (i don't know if there would be any, but still). It's more like a restriction, to make sure, you have to care about JSON only.

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

    Why is it important to show 9 ways to set to json or xml?

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

    Sahi sahi bolo bhailog, kuch samaj aya?

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

    #TYBG