ASP NET Web API MediaTypeFormatter

preview_player
Показать описание
In this video we will discuss
1. What is MediaTypeFormatter
2. How to return only JSON from ASP.NET Web API Service irrespective of the Accept header value
3. How to return only XML from ASP.NET Web API Service irrespective of the Accept header value
4. How to return JSON instead of XML from ASP.NET Web API Service when a request is made from the browser
5. Point you to an article that describes how to return CSV formatted data from ASP.NET Web API

Text version of the video

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

Slides

All Dot Net and SQL Server Playlists

All ASP.NET Web API Text Articles and Slides

CSV Formatter
Рекомендации по теме
Комментарии
Автор

From Chile, this videos help me a lot.

MrPelaoDominique
Автор

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

girijesh-mca
Автор

Very nice and clear explanation. Thanks.

aelwahitify
Автор

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

Kristofercodes
Автор

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.

zainafzal
Автор

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 ?

mastikaschool
Автор

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?

juanquinteros
Автор

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

ralphhuzz
Автор

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

avinashgrao
Автор

Is there Any MediaTypeFormatter available for EDI ????

ravichandraatma
Автор

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?

terjes
Автор

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

prakashkushwaha
Автор

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

mga
Автор

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 ?

zainjaffri
Автор

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

arnabchakraborty
Автор

... 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)

purpleice
Автор

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

dgloria
Автор

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

supriyak
Автор

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

dogburrito
Автор

Sahi sahi bolo bhailog, kuch samaj aya?

desitrump