Creating Minimal Web APIs with .NET Online Course
Creating Minimal Web APIs with .NET Online Course
This course introduces you to Minimal APIs in ASP.NET Core, designed for building lightweight HTTP APIs ideal for microservices. You’ll learn the differences between Minimal and MVC APIs, work with Entity Framework, Dependency Injection, DTOs, AutoMapper, and exception handling, and implement key endpoints like GET, PUT, and DELETE. By the end, you’ll be confident in creating RESTful Minimal APIs using .NET Core for real-world projects.
Who should take this course?
This course is ideal for .NET developers, backend engineers, and software professionals who want to learn how to build lightweight, high-performance APIs with minimal configurations. It’s also great for beginners in .NET who want hands-on experience in modern API development.
What you will learn
- Learn about Minimal APIs, the need, and when to use them
- Differentiate between Minimal APIs and MVC APIs
- Learn API collection with Entity Framework and Dependency Injection
- Learn Minimal API with DTO, AutoMapper, and handle exceptions
- Implement individual item endpoints such as GET, PUT, and DELETE
- Learn to add AutoMapper to map data and input models
Course Outline
Introduction
- Welcome and About This Course
- Project Overview: eCampusConnect Minimal Web API
Getting Started with Minimal APIs
- Introduction
- What Are Minimal APIs?
- Need for Minimal APIs
- Minimal APIs Versus Controller APIs
- Step 1: Check the Prerequisites
- Step 2: Create a New Web Project
- Understanding the Map Method
Implementing Collection APIs
- Introduction
- Step 3: Add an endpoint
- Step 4: Add Data Models
- Step 5: Add Database Context Class
- Step 6: Add Dependency Injection
- Step 7: Implement the GET Operation to Fetch All Items
Implementing Collection APIs
- Introduction
- Returning the Results in Minimal API
- Step 8: Update GET Operation to Use Results
- Returning the Results Asynchronously
- Step 9: Update GET Operation to Use Async
Improving Your Minimal API
- Introduction
- Step 10: Implement POST Operation to Add a New Item
- Step 11: Add DTO Models
- Step 12: Add AutoMapper to Map Data and Input Models
- Step 13: Use AutoMapper to MapPost Method
- Using Attributes in Map Methods
- Step 14: Handle Exceptions
Implementing Individual Item APIs
- Introduction
- Step 14: Implement GET Operation to Fetch a Single Item
- Step 15: Implement PUT Operation to Update an Existing Item
- Implement DELETE Operation to Delete an Existing Item
Conclusion
No reviews yet. Be the first to review!