A new feature introduced in .NET 6, the Minimal API, helps develop APIs easily. ASP.NET web API is a hot topic with exponential global use. Learn to build Minimal APIs from scratch, which is most sought after by large companies
Key Features
- Learn to design RESTful APIs from scratch
- Learn to create a Minimal Web API using .NET Core and get ahead in the career curve
- Apply API concepts to scale and enhance distributed computing in your real-world projects
Book Description
Minimal APIs are architected to create HTTP APIs with minimal dependencies. They are ideal for microservices and apps that want to include only the minimum files, features, and dependencies in ASP.NET Core. This introductory-level course teaches you how to create RESTful APIs and apply them in the real world.
We will start with understanding what minimal APIs are, why they are needed, and when to use them followed by understanding the differences and similarities between Minimal and MVC APIs. We will focus on implementing collection APIs, Entity Framework, and Dependency Injection. We will look at the return types like returning results in Minimal API asynchronously. We will cover important concepts like Data Transfer Objects (DTO), AutoMapper, handling exceptions, and implement individual item endpoints such as GET, PUT, and DELETE.
This course will provide significant knowledge of implementing Minimal API for your next RESTful API-related project. At the end of this course, you will know how to create a Minimal Web API using .NET Core. The course teaches you to use the building concepts easily by following a step-by-step approach, making you confident to create a new Minimal API project instantly.
All the resources for this course are available at: https://github.com/PacktPublishing/Hands-on-.NET-Minimal-API-for-Web-Developers
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
Who this book is for
This course aims at web developers working with consuming or exposing APIs. They may be working with internal teams or external third parties. Software architects who want to apply the API concepts to scale and enhance distributed computing in their projects.
You need to know the basics of designing a RESTful API along with a PC running Windows, macOS, or Linux with Visual Studio Code (or a similar IDE that can build C# projects) to carry out hands-on activities and exercises for this course.