When Minimal APIs were launched with the release of .NET 6, they allowed us to build scalable and fast APIs in .NET in ways that weren't possible before. Not only do they simplify the approach of building APIs and make them more accessible than ever, but they bring an incredible performance boost to the table. Microsoft has gone on record saying that they expect most new .NET APIs to be built using Minimal APIs for a good reason. They are a robust solution that allows developers to express themselves and create the system they need exactly how they want it. So don't miss your chance to master this topic right after its launch.
What will you learn in this course?
Who is this course for and prerequisites
How we’ve been building APIs in .NET until now?
What are Minimal APIs?
Who are Minimal APIs for?
Building the Weather Forecast API using Minimal APIs
Let’s clear out a few misconceptions
Configuring URLs and ports
Creating new endpoints
The different return types
Route parameters and rules
Special parameter types
Custom parameter binding
Available response types
Adding Swagger support
What are we going to build?
Exercise: Build the API
Project setup and database creation
Adding new books
Retrieving all books
Retrieving books by ISBN
Retrieving books by title match
Loading custom configuration
Adding Authentication & Authorization
Named routes and link generation
Customizing the Web Application options
Defining response contracts for Swagger
Custom JSON binding
Dealing with CORS
Unsupported features compared to MVC
Why structure Minimal APIs?
Different ways of structuring
Building the structure framework
Separating the endpoints
Why test Minimal APIs?
Setting up the test project
The WebApplicationFactory class
Testing resource creation
The problem with created resources
Testing resource lookup
Testing resource search
Testing resource updating
Testing resource deletion
Creating our own WebApplicationFactory
Lifetime accessBuy Course
We offer bulk discount pricing for businessesEmail sales
Nick Chapsas is a .NET & C# content creator, educator and a Microsoft MVP for Developer Technologies with years of experience in Software Engineering and Engineering Management.
He has worked for some of the biggest companies in the world, building systems that served millions of users and tens of thousands of requests per second.
Nick creates free content on YouTube and is the host of the Keep Coding Podcast.More courses by Nick Chapsas
© 2023 Dometrain. All rights reserved.