Intro to WebAPI - One of the most powerful project types in C#

preview_player
Показать описание

Learn about WebAPI, a powerful project type that allows C# to communicate with almost any programming language. You can even allow machine to machine communication. So whether you are going to build a mobile app for IOS or Android, a desktop app using WPF, Java, or others, or you are going to build a web application, WebAPI is there to support you.

In this video, I will give you the overview of what WebAPI is, how to set it up, how to connect to it for testing, and then some tips and tricks as well before I show you how to deploy it.

0:00 - Intro
2:23 - Creating ASP .NET Framework app with MVC and Web API
11:27 - Demo app walkthrough
17:30 - API controller
19:46 - API GET
21:40 - API test tool: Postman
26:20 - API configuration: Routes
28:36 - Creating API controller
34:52 - API GET
39:22 - Note on Data Access and User Interfaces
41:29 - API POST
44:57 - Debugging POST
49:00 - Sending data through GET and why not to do that
53:48 - Custom GET method and custom Route
59:22 - GET variables
1:02:09 - API help documentation
1:10:17 - Deploying Web API project
1:14:01 - Summary and concluding remarks
Thanks for Ralfs HBK for breaking down the chapters
Рекомендации по теме
Комментарии
Автор

I don’t know what makes me more mad. That I paid a bunch of money to go to college where I wasn’t taught any stuff remotely close to what is used in the field or that it took me as long as it did to find this channel. Been watching your videos for sometime now and I don’t know what it is but the way you talk and teach is just so intriguing and doesn’t put me to sleep like most tutorials out there

michaelcdarby
Автор

When I find myself in times of trouble,
Tim Corey comes to me
And fills me with his wisdom
On ASP.

lilyayora
Автор

So often I'm looking at a tutorial which goes too in depth causing me to lose interest and not understanding the actual message they're trying to portray. This tutorial is perfect! I understood every word and feel like I understand (C#) WebAPI's better now. Thank you!

proostdaantv
Автор

The most important thing in your videos is the pace of your speech. The slower you talk, the more understanding for those who are not English native speakers. Thanks Tim Corey.

mohsenjafari
Автор

I have developed APIs in Python, but not in C#. This video was exactly the key information I needed to make the transition smoothly. Much appreciated. Well worth the time to get the "whys" as well as the "hows".

TheTonyBTube
Автор

The only 1 hour tutorial that I have watched from start to end without any skips so far

malshangunawardana
Автор

Excellent tutorial! I've been a developer for more then 20 years. MVC is new to me and you explained in 1.5 hours what would have taken me a week to learn. Thanks!!

jimhawkins
Автор

This was my first port of call to get started with REST after ive realised that what ive previously learned using WCF to send data from my xamarin app has limitations and just wont do the job i require long term, so thanks again for the clear and easy instruction so i can move forward. I've been writing business desktop apps since the late 70's (winforms and .NET since 2005), and although i'm getting a tad long in the tooth now as i approach 60, still realise just how much i need to know, and the good basic grounding with clear explanation you give is just what works for me, so Thanks again Tim

Bob-tstu
Автор

Tim, I greatly appreciate the time and effort that you put into these tutorials. The level of detail and amount of information presented is very impressive.


Thanks very much!!!

owiz
Автор

Oh, Man!!! Before watching this video, I was very skeptical about Web API, but now I'm very much into Web API and will definitely build my future project on it. Thank you, Tim!!

aqib
Автор

I cannot stress enough how big of a help this video has been, thank you so much for

frankfernandez
Автор

We're in 2021 now but I still find this video super informative!

I made a WebAPI yesterday and encountered the same problem @45:00 in this video, which is "cannot maintain the instance property across different API calls" as Tim mentioned. However I found a solution to it ---

if you make the property static, not an instance property but a static class property, the value won't get destroy/recreate along with the controller instance. In this way the property can survive between difference API calls.

However, that, imo, would make the whole API not RESTful. i.e. the different calls with same context would result differently.

Thanks so much Tim : ) Most of my C# knowledge related to Web are getting from you!

dengfodan
Автор

Would love to see a tutorial on how to deploy c# project along with web api to a hosting service. But thank you this is great

troybryantIII
Автор

Tim, I watched so many of your videos in the last several years. You are an excellent teacher! Thank you

junzuowan
Автор

You are an AMAZING, AMAZING teacher. Thank you for all your hard work on these invaluable videos. Saints live among us.

LukeAvedon
Автор

I hope Tim is getting paid enough to help so many people on that high of a level. GG man.

ronchoo
Автор

Great video and lesson. In fact, I find all of the Tim Corey C# lessons really good. The lessons get you started, they give you definitions of key terms and, finally, TC makes you aware of code structure.

JHatLpool
Автор

Came over here after watching your MVC tutorial. This is easily one of the best if not the best tutorial series on Youtube. Subscribed!

TaoLi
Автор

Excellent stuff, you make hard topics so simple, that's what I call professionalism

nasben
Автор

After watching so many videos without understanding you made it so simple and thank you. You are amazing

lindiswamalizole