Web API Development in .NET 8 in 2 Hours | ASP.NET CORE | RESTFUL API

Sdílet
Vložit
  • čas přidán 19. 06. 2024
  • 🎁ALL-ACCESS Subscription: Unlock access to all of my courses, both now and in the future at a low $19.99 / month.
    frankliucs.com/all-access
    💎 Complete Web API in .NET 8 Course:
    frankliucs.com/webapi-course
    💎 Learn Blazor while building an Inventory Management System in .NET 8
    frankliucs.com/blazor-ims
    💎 Become advanced-level programmer with challenges from CodeCrafters. Over 50k devs use CodeCrafters, including staff-level engineers at Google, GitHub, Vercel, and more. Use the following link to get 40% off:
    frankliucs.com/codecrafters
    💎Learn .NET MAUI while creating a Contacts App in .NET 7:
    frankliucs.com/maui
    🔥Learn Blazor while creating an Inventory Management System in .NET 6
    frankliucs.com/blazor-ims
    💎 Complete Guide to ASP.NET Core Identity
    frankliucs.com/identity
    💎Complete Blazor Course: Build an e-commerce app with ASP.NET Blazor and Clean Architecture
    frankliucs.com/blazor-course
    👍Architecture Course
    frankliucs.com/architecture-c...
    🔌 Connect with me: frankliucs.com/
    🏅 Support me on Patreon: / frankliucs
    ☕ Support me on Buy me a Coffee: www.buymeacoffee.com/frankliucs
    00:00:00 Introduction
    00:03:06 What is Web API & Why create Web API
    00:10:21 How Web API Works in Theory
    00:14:49 How Web API Works (Demo with Minimal APIs)
    00:27:32 What is a Web API Framework
    00:33:27 ASP.NET Core Middleware Pipeline
    00:37:34 Web API Controller
    00:42:25 Routing in Web API
    00:51:17 Model Binding
    01:01:06 Model Validation with DataAnnatation
    01:08:07 Model Validation with ValidationAttribute
    01:15:10 Web API Return Types
    01:21:30 In Mememory Repository
    01:25:01 Model Validation with Action Filter
    01:35:30 Read Endpoint
    01:36:55 Create Endpoint
    01:46:45 Validating Create Endpoint with ActionFilter
    01:51:23 Update Endpoint
    01:59:48 Exception Hanlding with Exception Filter
    02:05:48 Delete Endpoint

Komentáře • 62

  • @FrankLiuSoftware
    @FrankLiuSoftware  Před 11 měsíci +1

    🎁ALL-ACCESS Subscription: Unlock access to all of my courses, both now and in the future at a low $19.99 / month.
    frankliucs.com/all-access
    💎 Complete Web API in .NET 8 Course:
    frankliucs.com/webapi-course
    💎Learn .NET MAUI while creating a Contacts App in .NET 7:
    frankliucs.com/maui
    🔥Learn Blazor while creating an Inventory Management System in .NET 6
    frankliucs.com/blazor-ims
    💎 Complete Guide to ASP.NET Core Identity
    frankliucs.com/identity
    💎Complete Blazor Course: Build an e-commerce app with ASP.NET Blazor and Clean Architecture
    frankliucs.com/blazor-course
    👍Architecture Course
    frankliucs.com/architecture-course
    🔌 Connect with me: frankliucs.com/
    🏅 Support me on Patreon: www.patreon.com/frankliucs
    ☕ Support me on Buy me a Coffee: www.buymeacoffee.com/frankliucs
    00:00:00 Introduction
    00:03:06 What is Web API & Why create Web API
    00:10:21 How Web API Works in Theory
    00:14:49 How Web API Works (Demo with Minimal APIs)
    00:27:32 What is a Web API Framework
    00:33:27 ASP.NET Core Middleware Pipeline
    00:37:34 Web API Controller
    00:42:25 Routing in Web API
    00:51:17 Model Binding
    01:01:06 Model Validation with DataAnnatation
    01:08:07 Model Validation with ValidationAttribute
    01:15:10 Web API Return Types
    01:21:30 In Mememory Repository
    01:25:01 Model Validation with Action Filter
    01:35:30 Read Endpoint
    01:36:55 Create Endpoint
    01:46:45 Validating Create Endpoint with ActionFilter
    01:51:23 Update Endpoint
    01:59:48 Exception Hanlding with Exception Filter
    02:05:48 Delete Endpoint

    • @2005Azm
      @2005Azm Před 11 měsíci

      already planning to get that all-access

  • @Bingbong420style
    @Bingbong420style Před 10 měsíci +18

    So far this is far more helpful than the Tim Corey Lessons. He tends to go into extraneous detail before getting to the meat of the subject. If we're talking about Seafood Gumbo, he is explaining the differenent thoughts on how to make a proper roux before I even know what seafood gumbo is. I like how you give your definition of web api, explain why it exists, and use diagrams to break it down.

    • @isuckatthisgame
      @isuckatthisgame Před 10 měsíci +5

      I agree. Tim Corey is a solid explainer but his videos don't have a head and tail. He's all over the place. I find this as more helpful.

    • @JustCode512
      @JustCode512 Před 6 měsíci

      I agree 💯

    • @mahadifamgate2686
      @mahadifamgate2686 Před 2 měsíci

      i understand nothing from Tim Corey, he is stupid , teaching too fast, cant make people understant, he is a bastered too , he wasted my times taking me to unknown hell, middle of no where.

  • @taimoorfarid9931
    @taimoorfarid9931 Před 4 měsíci +3

    I dont think i have left any lecture on youtube related to .NetCore Web API and this is by far the best one!
    Thanks alot for the gold content!

  • @bradleynixon978
    @bradleynixon978 Před 5 měsíci +2

    Only once before have I purchased a course after seeing a video introduction on CZcams, but I did with this class because it is packed with so much great material. As others have mentioned, Frank goes into great detail explaining his code and I very much like that, which is kinda interesting to me as I'm usually skipping any introductions and only looking for what I think I need. Anyway, I'm eagerly awaiting more .Net 8 videos!

  • @RamKumar-es3mp
    @RamKumar-es3mp Před 11 měsíci +3

    One of the best teaching i have ever seen. Thanks for your videos sir. Please continue your service.

  • @Akmal-no6vw
    @Akmal-no6vw Před 3 měsíci +2

    Thank you so much!!! It's been one of the most effective Rest Api course i've ever went through. Looking forward for more courses as this legend one.

  • @user-yx2lj3su6n
    @user-yx2lj3su6n Před 5 měsíci +1

    Your Explanation of the basic concepts are very good and your diagrams are very helpful, especially comparing the two different era of technologies. I am returning back to development after many years

  • @koomooboo
    @koomooboo Před 6 měsíci +2

    Great tutorial. Thank you for creating this tutorial! I'm actually switching from PHP to .Net.😀

  • @saus3850
    @saus3850 Před 8 měsíci +1

    Very good tutorial. I hope you continue this series

  • @georgesaeid7231
    @georgesaeid7231 Před 11 měsíci +1

    This is more than great. Thank you :)

  • @caseyspaulding
    @caseyspaulding Před 11 měsíci +1

    This is Great. It really helps to see it drawn out with diagrams! Thanks again.

  • @Paul-xg1sg
    @Paul-xg1sg Před 2 měsíci +1

    You are amazing in explaining. This helps me a lot. Thank you!

  • @noba04
    @noba04 Před 9 měsíci +1

    really loving the course and its focus on establishing the foundations while tackling the framework's features. i'm new to ASP.NET and back end development in general so a lot of the architectural stuff being covered is a very great knowledge primer! love the way you explain stuff too and i'd be very interested in seeing more .NET / C# topics covered on the channel.

  • @Talieization
    @Talieization Před 2 měsíci +1

    This is superb! Thank you very much!

  • @harshiniravishankar
    @harshiniravishankar Před 10 měsíci +1

    Really, You have done a great job!

  • @omnipenne9101
    @omnipenne9101 Před 4 měsíci

    Tysm. You explain this so much better than my lecturer

  • @phillismable6303
    @phillismable6303 Před 11 měsíci +1

    Can't wait for the next course.

  • @DeepWorksStudios
    @DeepWorksStudios Před 11 měsíci +1

    Thank you for this valuable content! Keep it up❤

  • @necatihan
    @necatihan Před 3 měsíci +1

    God bless you. I've been trying to understand web APIs for 3 weeks now, and you've unlocked everything for me. I'll be following all your videos, liking them, and leaving comments to try to contribute to your success. I hope you'll continue making videos in the future!

    • @necatihan
      @necatihan Před 3 měsíci +1

      After one week practicing this video, I've progressed so much thanks to these 2 hours that I'm buying your complete course on Udemy right now !

  • @yashasmudiyar6054
    @yashasmudiyar6054 Před 4 měsíci

    Excellent content ! Thank you

  • @user-lt7cf5qq8j
    @user-lt7cf5qq8j Před 5 měsíci

    Great job. Thank you.

  • @OmarFaruk-lc2eb
    @OmarFaruk-lc2eb Před 11 měsíci

    Thanks, After long time i saw a tutorial from start to end. Thanks again.

  • @nordinemokhtari3496
    @nordinemokhtari3496 Před 3 měsíci +1

    Very nice and helpfull, thank you very much .

  • @toyaadhikari3716
    @toyaadhikari3716 Před 4 měsíci

    Perfect tutorials 👏

  • @2005Azm
    @2005Azm Před 11 měsíci +5

    You are a Master teacher!! I went through your Udemy IMS, I can say is, "That's a Masterpiece." Thank you again sir.
    Do you by chance have a tutorial on Blazor Server deployment? or could you make one please?
    I'm trying to deploy my IMS with In Memory Data

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 11 měsíci

      Thank you for the feedback! Where do you want to deploy? To Assure app service?

  • @mehrabhasantanim338
    @mehrabhasantanim338 Před 3 měsíci

    Fall in love with your each and every lecture.
    Could you share the github repo?

  • @user-tt5gz8jj6s
    @user-tt5gz8jj6s Před 5 měsíci

    Nice Tutorial

  • @Useful4Many
    @Useful4Many Před 9 měsíci

    I really enjoyed the course - many thanks for explaining things in super easy way.
    Did I miss the security session about JWT tokens?

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 9 měsíci

      JWT is part of the full course. Please checkout the description area.

  • @reipalacio
    @reipalacio Před 7 měsíci

    very good

  • @tambuidev
    @tambuidev Před 7 měsíci

    52:57 You mention that typically a body/payload is not used on a GET verb. What if I wanted to retrieve all beers that are dark and malty, instead of the entire list of beers? Wouldn't I want a payload of "color=dark&taste=malty" in this case? Excellent course, by the way!

  • @aanders0n
    @aanders0n Před 6 měsíci

    Great course and your a excellent teacher!
    Should I buy the full course or take our other courses after this one?

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 6 měsíci

      Thank you for your interest! There isn't prerequisite courses for this one. Feel free to learn it by itself or with other courses.

    • @aanders0n
      @aanders0n Před 6 měsíci

      @@FrankLiuSoftwareI meant if I will miss something if I only check this course? Since your course is on, for example, Udemy is about 7 hours long?
      And thanks again this course was superb!

  • @renealbrechtsen9743
    @renealbrechtsen9743 Před 4 měsíci

    Where do i find the .net documentation for all of this ?

  • @tamboleo
    @tamboleo Před 11 měsíci

    Are you planning on releasing your courses on Pluralsight?

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 11 měsíci

      No, I have no plan to work with pluralsite at this moment.

  • @FahadKhan-fq4zw
    @FahadKhan-fq4zw Před 4 měsíci

    Hi, just wondering if there is next part for Securing end point Authentication jwt token etc ?

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 4 měsíci

      Please check the description area. There are links there.

  • @davyvanoverberghe6729
    @davyvanoverberghe6729 Před 6 měsíci

    Hey i purchased your udemy course on identity in dotnet 8 , i have a question in my solution when i don't specify the app.useathentication middleware my cookie still gets decrypted and my base.user isauthenticated is true and my claims are filled in ? i am baffled xd

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 6 měsíci

      Dis you try to clear the cookie with the developer tool (F12)?

  • @cesarcastano
    @cesarcastano Před 29 dny

    can you record your videos in Dark Mode? the texts with white backgraounds are hard to read or unreadable at all

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 29 dny

      Strangely, according to research, most people like the light themes that is why by default, VS uses light theme.

  • @sharmadiw
    @sharmadiw Před 11 měsíci

    Its Great Can you pls add jwt with this

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 11 měsíci

      Yes, it is already in my course, just see the links in the description area.

  • @phillismable6303
    @phillismable6303 Před 11 měsíci

    Nice video but still only a single model, why do you never show more complex objects with multiple models ?

    • @FrankLiuSoftware
      @FrankLiuSoftware  Před 11 měsíci +1

      Because I want to focus on Web API instead of Entity Framework core.

    • @phillismable6303
      @phillismable6303 Před 11 měsíci

      @@FrankLiuSoftware I get it but its a hand in glove situation. First timers will be totally confused and not know what to do when things get a little bit more complicated. That was me and it wasn't so long ago, so I can see it from a newbie-ish API coder.

    • @DeepWorksStudios
      @DeepWorksStudios Před 11 měsíci

      @@FrankLiuSoftware I would love to see a tutorial that goes in depth on the efc.
      I would say a lot of people would welcome it.
      Anyway keep up your great quaility we all find it really helpful
      Thanks again and the best to you

  • @irvinakocan7859
    @irvinakocan7859 Před 2 měsíci +1

    I love you! You are the best!

  • @frtkya
    @frtkya Před 7 měsíci

    Hi, firstly thank you Mr. Liu for your excellent tutorial. But I can't understand something. In "Routing in Web API section", you teached us second way of configure routing controller based WEB API.
    1. Way [Route("/shirts/{id}")]
    We defined URL as " ...... / shirts / {id} ". When we use postman , we can request like this. Its okey for me.
    2. Way [Route("api/[controller]")]
    We defined URL as " ...... /api / ? / {id} ". When we use postman , how the postman knows "/api/shirts " part of URL. We didn't specify "/shirts" anywhere like previous our codes. ( Program.cs, ShirtsController.cs .. etc)

  • @aliensoul7600
    @aliensoul7600 Před 10 měsíci +2

    I don't have money now to buy a coffee for you. But for sure in 1 or 2 i will join a job to and i will definitely get you a coffee thank you bro. Super useful video. 🤍