.NET 6 Minimal API vs. Web API 🚀 Complete CRUD with EF Core InMemory
Patrick God
🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: https://dotnet8.patrickgod.com
💖 Support me on Patreon for exclusive source code access: https://patreon.com/_PatrickGod
🐦 Let’s get social on X: https://x.com/_PatrickGod
🔗 Let’s connect on LinkedIn: https://www.linkedin.com/in/patrickgod/
💻 GitHub: https://github.com/patrickgod/MinimalApiVsWebApi
📚 My .NET & Blazor Udemy Courses:
🚀 Join the .NET Web Academy: https://dotnetwebacademy.com
—
🔥 Blazor E-Commerce Course: https://www.udemy.com/course/blazor-ecommerce/?couponCode=YOUTUBE
🔥 Blazor Bootcamp: https://www.udemy.com/course/blazor-webassembly/?referralCode=647B4EAACD6D8E4E6872
📑 Table of Contents:
00:00 .NET 6 Minimal API vs. Web API
02:59 Create a Minimal API Project
05:24 Create a Controller (Web API)
06:54 Add a VideoGame Model
07:38 Enable Controllers in the Program.cs
08:54 Add Entity Framework Core InMemory
09:58 Implement the DbContext
11:32 Register the DbContext
12:41 Start implementing the CRUD operations (Web API)
14:17 GET Implementations (Minimal API)
15:24 Test GET Calls with SwaggerUI
16:24 POST Implementations (Web API)
17:35 POST Implementations (Minimal API)
19:02 Test POST Implementations
21:14 GET a Single Game (Web API)
22:37 GET a Single Game (Minimal API)
25:37 PUT Implementations (Web API)
27:54 PUT Implementations (Minimal API)
30:24 DELETE Implementations (Web API)
31:39 DELETE Implementations (Minimal API)
33:40 Quick Recap
35:23 Closing Words
#DotNet #WebAPI #PatrickGod