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
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.
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.
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
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 .
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?
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!
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.
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
>>>> 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...
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.
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.
Nice video Kudvenkat. I got a clear picture .
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
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;
});
thanks alot it worked
Really your videos are very helpful for all topics... Thanks sir
If someone is not getting "CamelCasePropertyNamesContractResolver()" at 7:46 then please add using namespace as "using Newtonsoft.JSON.Serialization;"
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.
I have no words to admire your effort
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.
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"));
As always, I love your videos and the hard work you do making them!
Very good video ,Lecture
Great videos , and the best thing you did is adding some pictures to the text version of videos thank you so much .
Spr kudvenkat one rqst sir plz upload AZURE (queues, tables, blobs, web and worker role) plz
Well explained Kudvenkat. Thank u
Kudvenkat is the best
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
Thank you venkat sir. Great explanation.
Hi Venkat, is Content Negotiation works in WCF?
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 .
in Visual Studio 2017 use: using Newtonsoft.Json.Serialization;
for the method CamelCasePropertyNamesContractResolver();
Awesome, highly appreciated.
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?
which version of flidder are you using
Can you post an Web APi with OAuth ?
In visual studio, where do we set the content-type and accept header ?
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!
I think it is the first one in the api's available formatters list. Not in the list specified in the accept header.
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.
thanks from Bangladesh
After using CustomJsonFormatter class, indented and CamelCase properties are not working!!
Awesome tutorial. i have little doubt. how i can return json data on controller level?
In the latest fiddler with visual studio 2019 the default first it generates with json
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
Very nice explanation.
>>>> 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...
is this series using REST architecture?
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?
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.
is this possible to define such response type in postman?
great tutorial ...😊
if " CamelCasePropertyNamesContractResolver " is not working
just writ " using Newtonsoft.Json.Serialization; " on the top or your code.
its still not working
@@jastiajaykrishna92 We need to add it in WebApiConfig.cs file, it will definitely work.
Why we are using fidder, why not we directly give request in browser??. (I am completely new to this, so plz).
you can not send POST, delete request from web browser.
hey how do you remember so much classes
requires using Newtonsoft.Json.Serialization; namespace
Great Tutorial, keep helping..
very good tutorial thank you
Thank you Sir !!!!
Nice Video
text version not opening.
Thanks.
thank you sir
Nice one! There a typo in the first line on the slide- Accetpt
What is quality factor?
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?
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.
The content is really good but you voice, damn I'll be drowsy by the end of the video 😂