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

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

ความคิดเห็น • 1K

  • @proostdaantv
    @proostdaantv 5 ปีที่แล้ว +167

    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!

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +4

      Awesome!

    • @Miran912
      @Miran912 2 ปีที่แล้ว

      @@IAmTimCorey öYä

  • @lilyayora
    @lilyayora 6 ปีที่แล้ว +141

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

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +10

      I'm glad my content has helped you out.

    • @AbelDamajAnathemA
      @AbelDamajAnathemA 5 ปีที่แล้ว +3

      hahaha this is very true.
      it's the newer version of Let it be.

    • @AbelDamajAnathemA
      @AbelDamajAnathemA 5 ปีที่แล้ว

      @@IAmTimCorey Can't tell. I'm so thankful for you sir

    • @rawberry3
      @rawberry3 4 ปีที่แล้ว

      This is one of the best comments i have ever seen. Well done!

  • @TheTonyBTube
    @TheTonyBTube 3 ปีที่แล้ว +5

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

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +2

      I am glad my content has been helpful.

  • @mohsenjafari634
    @mohsenjafari634 4 ปีที่แล้ว +2

    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.

  • @michaelcdarby
    @michaelcdarby 3 ปีที่แล้ว +10

    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

  • @malshangunawardana812
    @malshangunawardana812 3 ปีที่แล้ว +2

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

  • @jimhawkins8360
    @jimhawkins8360 6 ปีที่แล้ว +5

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

  • @Bob-ts2tu
    @Bob-ts2tu 5 ปีที่แล้ว +1

    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

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      I'm glad you are getting a lot of value out this content.

  • @frankfernandez1957
    @frankfernandez1957 4 ปีที่แล้ว +3

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

  • @aqib8306
    @aqib8306 3 ปีที่แล้ว +1

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

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      Awesome! Make sure to check out ASP.NET Core API. That's the way to go for new applications (mostly the same principles but faster and more modern).

  • @owiz9212
    @owiz9212 4 ปีที่แล้ว +15

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

  • @junzuowan4906
    @junzuowan4906 ปีที่แล้ว +1

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

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +1

      You are very welcome.

  • @troybryantIII
    @troybryantIII 6 ปีที่แล้ว +64

    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

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +49

      How to deploy projects is a high-priority video for me. That is one that confuses a lot of people. That video should be out within the next few videos.

    • @jeewanmaharjan2712
      @jeewanmaharjan2712 6 ปีที่แล้ว

      This is my Question too.

    • @puzzlegamer369
      @puzzlegamer369 6 ปีที่แล้ว +3

      I am one of your biggest fans now @Tim :D Your way of explaining is too awesome. Even after 5 years of my experience i still find your videos helpful

    • @curiousdk780
      @curiousdk780 5 ปีที่แล้ว +2

      @@IAmTimCorey When can we expect one video of deployment ?

    • @recepcakir4866
      @recepcakir4866 4 ปีที่แล้ว

      @@IAmTimCorey Any news about this video? Could you tell us the time that it's gonna be released?

  • @dengfodan1891
    @dengfodan1891 3 ปีที่แล้ว +2

    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!

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      I am glad you found it so valuable.

  • @LukeAvedon
    @LukeAvedon 4 ปีที่แล้ว +11

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

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      I appreciate the kind words.

  • @lindiswamalizole1020
    @lindiswamalizole1020 3 ปีที่แล้ว

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

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      You're very welcome! Please check out my other training videos

  • @JHatLpool
    @JHatLpool 4 ปีที่แล้ว +3

    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.

  • @ishitavashisht6390
    @ishitavashisht6390 2 ปีที่แล้ว +1

    i just wanted to thankyou for these tutorials on c# related concepts. trust me you are a great teacher . the way you are spreading your knowledge is amazing. i am actually started liking c# after watching these videos by you !! :)

  • @nasben66
    @nasben66 5 ปีที่แล้ว +6

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

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      Thank you!

    • @InfouniverseInongplus
      @InfouniverseInongplus 5 ปีที่แล้ว

      Very informative video, I like this a lot thanks 👍👍👍👍👍

  • @dogburrito
    @dogburrito ปีที่แล้ว

    Excellent intro to Web API, GET and PUT, API Routing, Postman, Automatic Documenting, Deployment, Automatic Help.

  • @alexanderkarczewski982
    @alexanderkarczewski982 5 ปีที่แล้ว +11

    Tim, you do such a great job on all your vedios. Keep it up. Thanks

  • @roncho0o28
    @roncho0o28 5 ปีที่แล้ว +2

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

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +2

      I appreciate the kind words.

  • @joetv31
    @joetv31 6 ปีที่แล้ว +4

    The c# webapi tutorial is amazing. Thank you so much.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      You are most welcome. Thanks for watching.

  • @robertosterberg
    @robertosterberg 2 ปีที่แล้ว

    i started building a SOAP API for a big Legacy system with a huge DB that we have but i am going to go this route instead. Greatly appreciated.

  • @PunchboxRockers
    @PunchboxRockers 6 ปีที่แล้ว +4

    You're an awesome teacher, thanks! You take the time to go through some of the very fine details.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +1

      You are most welcome. Thanks for watching.

  • @retro2712
    @retro2712 4 ปีที่แล้ว

    i really like how you go in depth but not too in depth so i dont lose intrest! keep it up man!

  • @jerkybagzify
    @jerkybagzify 4 ปีที่แล้ว +4

    Just wanna thank you Tim for this great stuff! Loved it so much!

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      You are most welcome.

    • @keithcarrillo8238
      @keithcarrillo8238 4 ปีที่แล้ว

      Hey Junel. I was wondering if this gave you any issues since it's 2 years old, is there anything you had to find out was outdated the hard way?

  • @medranoa1490
    @medranoa1490 4 ปีที่แล้ว

    Just finished the Asp.net MVC video. Amazing way to teach. I've learned so much today. Thanks a lot.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Glad it was helpful!

  • @WBraxx
    @WBraxx 4 ปีที่แล้ว +3

    Hey Tim, first of all thank you for the great tutorials. You really make it easy learning and understanding C#. I've started getting into it after my employer decided to migrate everything to MS products.
    I have one question: Is there any chance that you update your WebAPI series for .Net Core 3 and/or .Net 5 (being released soon)?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +2

      I will be doing ASP.NET Core API videos in the future. Plus, the TimCo Retail Manager series updated the API to .NET Core back in November.

    • @WBraxx
      @WBraxx 4 ปีที่แล้ว

      @@IAmTimCorey Found it, thank you!

  • @demps1bm1
    @demps1bm1 11 หลายเดือนก่อน

    Great video. I knew webapi as a built one of around 9k lines of code in my spare time that was used by my company to prototype an app that is currently in use. Yes, as you suggested, one should keep controllers very clean and put logic into classes (and unit test those classes just like a console app!). But the big thing I learned here was Postman. I went out and got it and started playing with it. Thank you so much!

  • @sarikaransubhe6562
    @sarikaransubhe6562 6 ปีที่แล้ว +4

    Bang on ... Covered all areas right from the start till end, Many Thanks Tim :)

  • @TaoLi302
    @TaoLi302 5 ปีที่แล้ว +1

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

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      I appreciate the kind words.

  • @_rcs
    @_rcs 5 ปีที่แล้ว +3

    When illustrating the POST action, you manually built the JSON representation of a Person object in Postman and sent the POST request. How would that JSON get built and POSTed in a real life environment where end users won't be using Postman?
    As always, thanks for the video, Tim!

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +3

      You can check out my TimCo Retail Manager series to see that in action. I built a WPF project that calls a WebAPI so I have to do that multiple times.

    • @_rcs
      @_rcs 5 ปีที่แล้ว

      @@IAmTimCorey Thank you.

  • @mbit97
    @mbit97 6 ปีที่แล้ว

    I was always building web applications using pure ASP.NET controllers, but now that I know how to use Web API it's so much more fun! I first create a Web API project and implement all my database logic and then build an ASP.NET web application project that uses ajax asynchronously to call my logic from the API. It's so much smoother and more responsive than I could have ever imagine!
    Definitely put out more content about WEB API, please.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +1

      Nice! I like it. When you are calling the WebAPI using ajax I'm assuming that is through the front-end (JavaScript). One thing people often miss is that if you need some of that data ahead of time when the ASP.NET page is built, you can call the API classes directly as if they were just classes, not an API. No need to go to a URL when you are calling internally. Just instantiate the WebAPI class and call the method you want. Blending the front-end calls with the back-end calls really gives you the best of both worlds.

  • @jean-marcdisano9370
    @jean-marcdisano9370 6 ปีที่แล้ว +10

    Not a fan of Entity Framework + fan of Lord of the rings => Subscribed! :)
    Excellent video and teaching skills BTW

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +2

      lol I'm glad you enjoyed the video.

  • @vincenty168
    @vincenty168 3 ปีที่แล้ว

    Dude, you're so knowledgeable. It's greatly appreciated it. I learned new things every time I watched your video.

  • @coyotemoon722
    @coyotemoon722 6 ปีที่แล้ว +10

    Good video, albeit EXTREMELY slow going. It's strange because it seems targeted to beginners, yet some of the syntax is left unexplained, such as the arrow function used in the overloaded GET method. I'm still trying to get down C# so it would've been nice to just say "lambda expression" instead of "greater than or equal to". I didn't catch that it was an arrow function at first so I was really confused about the syntax. (I'm not thrilled with the syntax for arrow functions either. It would've been nice to use two >> instead to be a bit more distinct from the greater than or equals to operator, but what can you do.)

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +12

      Yeah, this is a beginner video for WebAPI but it does assume some prior C# knowledge. That's the hard balance to hit in these types of videos. What level to assume the user is coming into it. Even though this is a beginner video, it really shouldn't be for C# beginners because it is too advanced for that.

    • @chrish7927
      @chrish7927 3 ปีที่แล้ว

      100% agree on the lamda expression.

  • @kholoudlearning9669
    @kholoudlearning9669 2 ปีที่แล้ว

    The tutorial is perfect! I understood Web API's better now. Thank you so much

  • @binitkumar4075
    @binitkumar4075 5 ปีที่แล้ว +3

    Make a video over authentication process of web api

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +2

      It's on the list. Thanks for the suggestion.

  • @EmeraldCityMagician
    @EmeraldCityMagician 3 ปีที่แล้ว +1

    40 minutes into this you have a new subscriber. This is really great stuff. You are so clear and not super fast. Thank you for such great videos, I'm looking forward to watching many more!

  • @luigizambetti18
    @luigizambetti18 6 ปีที่แล้ว +11

    Hi Tim, could you make a similar video for ASP.NET Web API Core too?

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +6

      Yep, it is on the docket. I just need to get it right, so it won't be right away.

    • @zeeshanahmedaman
      @zeeshanahmedaman 6 ปีที่แล้ว +1

      It will be really helpful for me too

    • @vincentsolon3216
      @vincentsolon3216 6 ปีที่แล้ว +2

      I'm waiting for this

  • @dhruvpanchal9010
    @dhruvpanchal9010 4 ปีที่แล้ว

    A perfect entry point for anyone who wants to start with web api..👍👍👍

  • @PierreGadea
    @PierreGadea 6 ปีที่แล้ว +4

    Will you be doing a full project based course on ASP.NET Web API?

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +9

      Yep. I'm working on a plan for it. I'm anticipating that it will be an advanced Start to Finish course that will include WebAPI, WPF, a non-C# front-end, .NET Standard, and more. Still working on the plan.

    • @PierreGadea
      @PierreGadea 6 ปีที่แล้ว +1

      Glad to hear! I work as a.NET developer and of the projects is a ASP.NET Web API.

    • @railtonsantana
      @railtonsantana 6 ปีที่แล้ว

      Hi, First I would like to thanks for all excelltens videos.
      Did you finish advanced course ?
      Thanks

  • @sassinejaoude460
    @sassinejaoude460 5 ปีที่แล้ว +2

    How amazing when you work with things and then you get a clean description of what and why - very valuable - Thank you

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      You are most welcome. Thanks for watching.

  • @cristiansegattini
    @cristiansegattini 6 ปีที่แล้ว +4

    web api with token auth and angular2?

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +2

      I've been debating how to do that. I like showing WebAPI in a real-world context like this. The problem I have is that I don't want to have to teach Angular in order to show off WebAPI. I was hoping to use a simpler JavaScript UI. I just haven't landed on one yet. I like the suggestion. I just need to figure out how to make it accessible.

    • @WorstDeveloper
      @WorstDeveloper 6 ปีที่แล้ว

      Vue is awesome. You can either use a simple version of it by linking to a CDN, or you can build it with an npm tool (vue-cli) for advanced features.
      Vue is really the most beginner friendly JS framework out there right now imo and it's very usable for advanced applications as well (I use it at work).

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +1

      I'm actually looking to transition my company over to using Vue (we use AnguarlJS right now) because of its simplicity. I'm still concerned about all that you need to learn (npm, bower, webpack, etc.) or at least that you are tempted to learn if you go further. I try to keep things as focused as possible. I'd love to do just a jQuery front end since it is so simple but I don't know that that solution is real-world enough to be valid. Vue might be the best option.

    • @WorstDeveloper
      @WorstDeveloper 6 ปีที่แล้ว +1

      You don't need npm, bower, webpack or any of that to try out Vue. But if you want to build a real application with a super nice structure, then you need npm and webpack. But the vue-cli sets everything up for you automatically. You just type in "vue init webpack project-name". And their Discord channel is really helpful as well if you got any questions.

    • @LuigiZambetti
      @LuigiZambetti 6 ปีที่แล้ว

      So you don't like Angular Tim?

  • @lilyba1
    @lilyba1 4 ปีที่แล้ว +1

    I love your videos. They are perfect for me. I learn even more deep knowledge of C# although I have been working C# for 10 years. Your videos are understandable and help me with my coding. Thanks for your work.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      You are welcome. I am glad they are helpful.

  • @WorstDeveloper
    @WorstDeveloper 6 ปีที่แล้ว +4

    Noooooo. I was so excited when I saw this video, but then you picked .NET Framework instead of .NET Core. :(
    Now I'm so sad. Do you know any good tutorials for .NET Core 2.0 Web API except for Microsoft's own docs? I have built one Web API with .NET Core and it was pretty nice, but I would like a good tutorial for it.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +3

      lol, yeah, I figured there would be a few people that felt this way. Never fear, I will be releasing videos on .NET Core, especially as it relates to WebAPI. I just needed to do a good foundational introduction to WebAPI and that means the full framework. I don't know of other tutorial out there on it. Part of the problem is that it is so new and has changed so much that it is hard to get a good tutorial out there before it becomes obsolete.

    • @WorstDeveloper
      @WorstDeveloper 6 ปีที่แล้ว

      Okey, I will be looking forward to checking out the .NET Core version then. :)
      My experience with .NET Core so far has been really good.

    • @EightSixx
      @EightSixx 6 ปีที่แล้ว +1

      looking forward to it!!! keen on the .netcore 2.0 webapi

  • @stefenng4479
    @stefenng4479 2 ปีที่แล้ว

    A comprehensive step-by-step tutorial ! This is a great help, thank you for sharing.

  • @rheuser1963
    @rheuser1963 5 หลายเดือนก่อน

    Great video. Gave me just the right amount of information. I now have a much better understanding of WebApi. I am working on a webapi at my work and so this course really helped. Thanks for doing it!

    • @IAmTimCorey
      @IAmTimCorey  5 หลายเดือนก่อน

      Glad it was helpful!

  • @kudakwashemundangepfupfu567
    @kudakwashemundangepfupfu567 3 ปีที่แล้ว

    All the way from Zimbabwe, thank Tim, I feel like I have a better understanding on Web APIs now. Thank you for the Tutorial

  • @rameshvegi94
    @rameshvegi94 3 ปีที่แล้ว

    Thank you Tim.
    I hated to study since i was a kid, But i enjoyed every moment of this Tutorial !

  • @joyngoiri1248
    @joyngoiri1248 3 ปีที่แล้ว +1

    Many thanks from Kenya. Youre inspiring lives

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +1

      You are most welcome. Thanks for watching.

  • @fatimaajij428
    @fatimaajij428 5 ปีที่แล้ว +1

    your tutorials are like eating Pizza and watching your favourite TV show. Amazing

  • @perlepes100
    @perlepes100 3 ปีที่แล้ว

    I've been watching your videos for 2-3 days and I'm very excited with the way you explain all these topics. You make it look so easy.... keep going man und thank you very much for all this help!!!

  • @valekhya
    @valekhya 3 ปีที่แล้ว

    It's 3:25am in the morning & I completed your video. It was helpful to scratch the surface of creating a web api. One thing I was looking forward in this video was connecting it to a SQL DB. None the less, I enjoyed the knowledge provided by you and I'm greatful.
    Also, I happen to notice that you reply to most of your comments and that's so kind of you.
    Hope you have a good day Tim !! ^_^

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      These two videos should help: th-cam.com/video/Et2khGnrIqc/w-d-xo.html and th-cam.com/video/24iujm49y10/w-d-xo.html
      The first will show you how to do SQL data access in C#. The second will talk you through how knowing SQL data access in one UI should be the same as knowing it for any UI.

    • @valekhya
      @valekhya 3 ปีที่แล้ว

      @@IAmTimCorey Thanks a lot Tim!!

  • @DarrenTAnims
    @DarrenTAnims 5 ปีที่แล้ว

    Around 40:00 you mention getting the data from your database in a class library. I couldn't agree more. However, how would you manage that, when your controller returns a Model object that is declared in your api? Would you have convertors in the api project to convert from a Person DataRow to a Person model object and then back again? This seems a bit cumbersome. I'm sure you have a better way. Any suggestions?

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      The simplest way is to return the model from the class library but that isn't always possible or desirable. In that case, yes, you create a model and translate from one to the other. Tools like Automapper make the transition simple.

    • @DarrenTAnims
      @DarrenTAnims 5 ปีที่แล้ว +1

      Thanks for your reply Tim. Actually, I posted the question too quickly as I've now come across your 'Complete data path' video, which seems to explain this in detail.

  • @anishgopalk4083
    @anishgopalk4083 6 ปีที่แล้ว

    Watched a few of your videos and must say that i have never seen anyone teach the way you do. Absolutely great work, and thanks!

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      You are most welcome. Thanks for watching.

  • @WARDGL
    @WARDGL 2 ปีที่แล้ว +2

    Hallo Tim, I don't have this option of web api .Net framework in visual studio 2022, what's the equivalent to this template what you have?
    I am a beginner and would like to have this template as you have it so can follow your instructions?

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว +1

      You would need to install the .NET Framework as part of your Visual Studio 2022 installation. It is an option on the Individual Components tab. To get to the installer, in VS2022 go to the Tools menu and select "Get Tools and Features".

    • @WARDGL
      @WARDGL 2 ปีที่แล้ว

      @@IAmTimCorey Thank you, your video helped me to start.
      very impressive work from you, appreciate it.

  • @cagataysert1995
    @cagataysert1995 6 ปีที่แล้ว +1

    Thank you very much for the tutorial sir. It helps me a lot to understand WepAPI. I am an intern in one company and have to learn WebAPI. I was struggling with some points which I could not figure out but now I understand clearly. Again, thank you so much sir to make this video and spend ur time.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +2

      I am glad I helped clear things up for you.

    • @andreaaldrich4046
      @andreaaldrich4046 4 ปีที่แล้ว

      I just started a job as a dev and basically have to learn this in one day.

  • @TonyLauraChan
    @TonyLauraChan 4 ปีที่แล้ว

    Nice Intro to WebAPI -- enough depth to keep it interesting but so much to be overwhelming. Thank you!
    Maybe at the end of your video you can suggest next steps or the best choice of your videos to watch next?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      It is hard to recommend a next step in a video, since usually that step doesn't exist yet or it depends on the user. However, I do have a video outlining a good learning path: th-cam.com/video/LUv20QxXjfw/w-d-xo.html

  • @katkovdify
    @katkovdify 3 ปีที่แล้ว

    Thank you for the great tutorial! Minor addition... If you made your list static (without a constructor), you would be able to get all four people with your Get call after you added a person with your Post call.
    static List people = new List()
    {
    new Person {FirstName = "Tim", LastName = "Corey", Id = 1 },
    new Person { FirstName = "Sue", LastName = "Storm", Id = 2 },
    new Person { FirstName = "Bilbo", LastName = "Baggins", Id = 3 }
    };

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +1

      Yep, that would have worked.

  • @vkumbaji2010
    @vkumbaji2010 4 ปีที่แล้ว +1

    Tim Corey thank you for the super tutorial on WebAPI, I have already got some real time experience with C# Web APIs, your tutorial is like a reference guide to go back to even for experienced API developers.
    - Vijaya Laxmi.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      I am glad they are so helpful.

  • @jasper5016
    @jasper5016 5 ปีที่แล้ว +1

    Thanks a lot Tim! You are a life saver. I wish you have covered this WebApi with Databases. I am just stuck on how to integrate database with it.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      Check out my TimCo Retail Manager series. That uses a WebAPI project as the middle tier and it accesses a SQL database. At the end of the day, though, it is no different than a desktop project. Data access works the same way regardless of the project type.

  • @rohitjagannath5331
    @rohitjagannath5331 5 ปีที่แล้ว +1

    simple and amazing video to learn WebAPI. This is especially good for beginners. Thanks Tim.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      You are most welcome. Thanks for watching.

  • @vishnuraj1792
    @vishnuraj1792 3 ปีที่แล้ว

    Awesome video tim.....each and every single word understandable...and inforamation you provided in this video just amazing....thank you

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      Glad it was helpful!

  • @alpersilistre
    @alpersilistre 6 ปีที่แล้ว +1

    Thank you for creating and sharing the tutorial. Also, your comments are really valuable about why should we use web API and other tips when creating web applications.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I am glad you found this content valuable.

  • @bb579774
    @bb579774 4 ปีที่แล้ว

    Thank you so much for this! I have looked at so many other videos that are not at all easy to follow along. I wish I found this video sooner!

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      Glad it was helpful!

  • @Johnn84
    @Johnn84 6 ปีที่แล้ว +1

    I really appreciate this video. I like that you keep it simple, and don't introduce to many new things at the same time. For instance it was good that you didn't also talked about EF and other stuff. Good job!

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      Thank you. I am glad you appreciated the video.

  • @RalfsBalodis
    @RalfsBalodis 4 ปีที่แล้ว

    Hello. Thank you.
    I combined this video with your "data access txt files" video to make a "fake database" so to speak and I was actually able to GET and POST data back and forth, reading data from txt file as well as writing into it. I also managed to make use of PUT method (which you kind a skipped in this video) updating existing object in a list. Actually deleting and replacing (inserting in position from deleted obj) it completely. Not updating specific property of it. :D.
    No clue how lists work. Yet.
    At first I thought this video is not what I need, because I started new api project with core.5 and the template was different form this one in the video. This can be very discouraging if you are just starting out and have 0 exp in c#. Still I did watch it and I recommend anyone else, if one has doubts, to do so.
    For a beginner this is well enough explained.
    Looking back at the code I wrote, it is hard to believe that I did it myself. (with a help and info from these videos)
    Very well narrated, informative, clear , relaxing. Beginner friendly.
    Also, I'm amazed you even have time to create this content. Let alone to respond to youtube comments. Insane.
    It probably takes pa lot of preparation to make sure everything will work at the end and knowing what aspects to explain to the audience. Amazing!
    I don't know if you care for suggestions. You must be a busy man. However, I feel like it would be great if your video description contained time index. that would be great for rewatching purposes when you are searching for that one bit... and wonder where it was. was it even in this video ... :D
    Then again, I understand that you can't really talk about one thing without talking about another and might touch on some topic only very briefly...
    Anyway, great content! Thank you very much !

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      I am glad you are enjoying the content. As for time indexes, that is one thing I don't have time for right now. However, if you submit time indexes for videos, I'll add them to the description (after reviewing them, of course).

  • @cbrown940
    @cbrown940 4 ปีที่แล้ว +1

    Wonderfully done. Even liked how you didn't edit out the api/put walkthrough to demonstrate how the request is processed when the put actually writes. Very nice, sir!

  • @vanttildet3069
    @vanttildet3069 3 ปีที่แล้ว

    Thank you so much for your time to make this great video. Very helpful, and lookfoward to see a .net core version with SQLServer.

  • @torrvic1156
    @torrvic1156 ปีที่แล้ว

    This video was so insightful for me! It was like…I don’t know. A breath of fresh air. I am so happy to find your channel. You videos are so detailed and really show design of applications which used in real world. You are a genius Tim! Like a Mozart of programming!
    P.S. I would definitely buy your course if Visa or Mastercard worked in my country. But they are not working and for a really good reason. When I’ll move to a different location I’ll subscribe to your Patreon.

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +1

      I am glad they have been helpful.

  • @essaalu7047
    @essaalu7047 2 ปีที่แล้ว

    great, simple, and perfect introductory tutorial. thank you

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว

      You're very welcome!

  • @escalera.tech2018
    @escalera.tech2018 4 ปีที่แล้ว

    Thanks for the detailed and step by step coverage. Like the general coding insights that you provide here and there..

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      You are most welcome. Thanks for watching.

  • @CyberTurd
    @CyberTurd 6 ปีที่แล้ว +2

    Thank you Tim - your videos are so well explained and are a pleasure to watch and learn with. Thank you for your efforts - you're a natural communicator.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I appreciate the kind words.

  • @rutpurba7586
    @rutpurba7586 2 ปีที่แล้ว +1

    You've explained the process in an obvious way... thank you so much, GURU. 💯
    See... Now you have a new subscriber, haha!

  • @LarryPeteet
    @LarryPeteet 3 ปีที่แล้ว +1

    First time I remember you saying "Duh"! LOL, Keep em coming. I always look for a video from you on any coding subject I am interested in. Have bough a couple of courses from you too and well worth the money!

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      Glad to help and thanks for supporting the community with your purchases!

  • @luterokinkade4882
    @luterokinkade4882 6 ปีที่แล้ว

    I was literally just looking into learning some WebAPI stuff, after just watching your Caliburn Micro video. (godsend!)
    Fantastic stuff as always, can't wait to watch this in detail.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      Cool! Glad the timing worked out for you.

  • @smjtechie9496
    @smjtechie9496 4 ปีที่แล้ว

    Thank you Tim Corey... Good Explanation and very easy to grasp the concept...
    Keep doing good work....👍

  • @kylegivler8372
    @kylegivler8372 3 ปีที่แล้ว

    Thanks for the routing and parameter explanation couldn't find a good answer elsewhere

  • @FroboDaggins
    @FroboDaggins 3 ปีที่แล้ว

    37:29
    The people get call using id will only work if that data is unique which it should be in theory since it's a user identifier.
    If it's not and you might get back multiple rows or want to confirm it is unique you should be using:
    public List Get(int id)
    {
    return people.Where(x => x.Id == id).ToList();
    }
    Great tutorial though, just adding this here to assist others.

  • @YTBHA
    @YTBHA 5 ปีที่แล้ว

    Hi Tim,
    46:35 we can make the List static, and populate it in the static constructor of the controller, so it wouldn't be overwritten on every call :
    public class PeopleController : ApiController
    {
    static List People = new List();
    static PeopleController()
    {
    People.Add(new Person { FirstName = "aaaa", LastName = "bbbb", Id = 1 });
    People.Add(new Person { FirstName = "cccc", LastName = "dddd", Id = 2 });
    People.Add(new Person { FirstName = "eeee", LastName = "ffff", Id = 3 });
    }
    ........
    }
    Hope this helps !

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      Yep, that will work.

  • @saheb1981
    @saheb1981 5 ปีที่แล้ว

    Too good Tim. Simple crisp and to the point.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      Thank you!

    • @saheb1981
      @saheb1981 5 ปีที่แล้ว

      @@IAmTimCorey pls post something on microservices. Really struggling with basics

  • @henryr1367
    @henryr1367 3 ปีที่แล้ว

    Awesome video. You gave excellent hints (documentation, creating your own routes)

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      Glad you enjoyed it!

  • @HanselGraciadelBusto
    @HanselGraciadelBusto 3 ปีที่แล้ว

    Excellent tutorial to get started on this topic ... thanks Tim!

  • @djangounchained7314
    @djangounchained7314 4 ปีที่แล้ว

    Thanks Tim!!! building up my API skills due to your amazing teaching techniques ...

  • @ohmyohmyohmy2
    @ohmyohmyohmy2 5 ปีที่แล้ว

    Your videos are second to none. Thank you

  • @aiswaryasshenoi
    @aiswaryasshenoi 3 ปีที่แล้ว

    Thank you so much for this tutorial. Very much helpful and informative. Kudos to you !!!!!!! Keep up the good work.

  • @makhernz14
    @makhernz14 6 ปีที่แล้ว +1

    Hi Tim thank you for the free tutorials that you've been sharing for free it really helps me a lot, I'm also hoping for your full project based course on ASP.NET Web API with user Login and stored procedure at backend, and I'll surely purchase that course! Thank you Tim!

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      That may be coming in the future. We will see.

  • @carlyparly6633
    @carlyparly6633 3 ปีที่แล้ว

    Thank you for all you do Tim, truly valuable information that you provide

  • @tedkrapf1302
    @tedkrapf1302 5 ปีที่แล้ว +1

    Thanks Tim, GREAT kick starter video... so much good info and really appreciate covering some basics as a vital refresher. Keep up the great work!

  • @davidhodgson3574
    @davidhodgson3574 6 ปีที่แล้ว

    Not much I can say other than fantastic. Ok some more.... very well presented, cut to the chase and gives perfect overview of 99% of what most people would need to know. I am now looking for your other tutorials :-)

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I appreciate the kind words.

  • @goodmanshawnhuang
    @goodmanshawnhuang 3 ปีที่แล้ว

    This is another masterpiece of you Tim, great thanks for sharing it.

  • @TheIcecoldorange
    @TheIcecoldorange 4 ปีที่แล้ว

    ok so I rarely ever make any comments on tutorials. But I must say:
    +9000 for your distaste of entity framework
    +9000 for your restful api rabbit hole comment
    I rarely ever see a professional admit to those things! THANK YOU! I was going insane thinking I was the only one who feels that way.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +2

      lol, I'm glad to tell you that you are not the only one. There are a lot of us out there. In fact, when I speak at conferences with database administrators, they overwhelmingly dislike EF.

  • @satyabratamohapatra3397
    @satyabratamohapatra3397 4 ปีที่แล้ว

    Best Web API tutorial on internet. Thanks a lot Tim. Subscribed !!

  • @alexcurtisdev
    @alexcurtisdev 4 ปีที่แล้ว

    Really good video Tim! Didn't know about the documentation ability, can see it has many benefits, especially for support/clients in debugging issues.

  • @petarzafirovski6761
    @petarzafirovski6761 2 ปีที่แล้ว +1

    Hi
    How can I change the default xml view on get requests from the web api ? I want to display as html. Do I need to use a front end framework to display the json data from the web api ?

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว +1

      APIs don't have HTML displays. You could use Swagger to give a development UI on it, but APIs aren't websites. You could use any website type to display the data from an API.

  • @liorbm1
    @liorbm1 4 ปีที่แล้ว +2

    Amazing vid !
    would love to watch more comprehensive vids about Microservices with WebAPI

  • @roshanbashyam4304
    @roshanbashyam4304 3 ปีที่แล้ว

    Great video. Amazing explanation. Definitely one hour well spent.

  • @Funkfreed
    @Funkfreed 4 ปีที่แล้ว

    Tim, in reference to the UI flexibility you get by implementing API based architecture where should we put the database connection?
    UI/Presentation Layer - Blazor, angular, react, android, ios etc.
    API - with or without DB connection?
    Business Logic Layer(if any)
    Data Access Layer (or call it Infrastructure?)
    Should the above layers only reference to the layer below them or should the API also be able to reference Data Access Layer?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      I put the database connection in the Data Access Layer, although I have found that "layers" are not nearly as clean as the diagrams that show them. I personally put a layer between the direct database call and the API's controllers at least, but I approach it pragmatically. If the API needs to talk directly to the Data Access Layer, I'm ok with it. I just need a justification for it.

    • @Funkfreed
      @Funkfreed 4 ปีที่แล้ว

      @@IAmTimCorey I see, I had this problem a few days ago and the solution I came up with is the same. To create a config file(manually since it's a class project) inside data layer.
      As for DI & Dapper I guess I need to watch your DI in WPF video. Thanks Tim, as always you are the best. Straight to the point and teaching by example(which is super effective)