
This course guides you to build a minimal api from scratch in dot net, with step-by-step practice, using entity framework, dependency injection, dto, and basic get, put, delete operations.
Explore the eCampusConnect minimal web API for courses, exposing collection endpoints for get and post and item endpoints for get, put, and delete, all backed by an in-memory store.
Discover why minimal APIs lower entry barriers for beginners, reduce boilerplate, and enable quick, dependency-light web services ideal for microservices and rapid proofs of concept.
Learn how to use the map methods in a minimal api to expose routes like get, post, delete, and put, with inline or external delegates.
Discover how to expose a courses endpoint with Minimal API, build an in-memory collection and data model, and implement the get operation to fetch all courses with dependency injection.
Implement a get operation in a minimal API to fetch all items by injecting the database context into the map get method, retrieving the course list from the in-memory store.
Discover how minimal API returns results with the IResult contract and the Results factory, using status helpers like ok, not found, bad request, and no content.
update the get operation to use results, store in a temporary variable, then return the result with http 200, and demonstrate handling 400 bad requests via postman.
Learn how to convert map get operations to asynchronous processing using async/await to return results without blocking, improving performance for web apps and enterprise applications.
Implement the post operation to add a new course using map post, with dependency injection for the database context, save changes, and return a created response containing the new course.
Step 11 introduces digital models (input DTOs) to replace data models for post and get operations, exposing a subset of properties and reducing payload size.
Learn how to use AutoMapper to map between data models and input models in a .NET minimal API, configure profiles, register services, and streamline map operations.
Apply AutoMapper in map post method by injecting the mapper, convert the input model to the data model, persist with EF, then map back and ensure enum values are strings.
Implement the get operation to fetch a single item by its id using routing /courses/{id}, validate existence, map the data model, and return the result or not found.
Minimal API is a new feature in .NET 6 that helps you develop APIs quickly. ASP.NET Web API is one of the hot topics in the web development space. The usage of Web API has increased exponentially in the development circle. Companies such as Netflix, Spotify, Tesla, and Amazon use APIs to connect front-end and back-end functionality at a large scale. You will be learning to build Minimal API from scratch in this course.
Instructor Bio:
Praveen is an experienced product designer and developer who has worked for 10 years at Honeywell and 7 years at Bosch. He specializes in building products on the .NET stack and cloud platforms. He has a patent and has presented two papers. Additionally, he has published 20+ Courses and 50+ Hands-On Labs on Kubernetes, Docker & Azure, teaching thousands of students on various cloud-native topics.
Topics Covered In This Course:
Get started with Minimal APIs, including what minimal APIs are, their needs, when to use them, etc.
Differences and similarities between Minimal APIs and MVC APIs.
Implement collection API using EntityFramework and Dependency Injection.
Improve your Minimal API through Data Transfer Objects (DTO), AutoMapper, and handling exceptions.
Implementing individual item endpoints such as GET, PUT, and DELETE.
Many downloadable resources and practice activities.
At The End Of This Course:
You will know how to create a Minimal Web API using .NET Core.
Enroll now to get started.