Autoplay
Autocomplete
Previous Lesson
Complete and Continue
From Zero to Hero: Minimal APIs in .NET with C#
Course overview
Welcome (1:50)
What will you learn in this course? (1:31)
Who is this course for and prerequisites (1:37)
Introduction to Minimal APIs
How we’ve been building APIs in .NET until now? (4:48)
What are Minimal APIs? (3:53)
Who are Minimal APIs for? (3:51)
Building the Weather Forecast API using Minimal APIs (3:32)
Let’s clear a few misconceptions (2:30)
Getting started with Minimal APIs
Configuring URLs and ports (3:50)
Creating new endpoints (1:41)
The different return types (2:24)
Routing requests (4:05)
Route parameters and rules (4:37)
Parameter Binding (9:41)
Special parameter types (4:50)
Configuring services (1:45)
Configuring middleware (2:02)
Custom parameter binding (8:04)
Available response types (4:00)
Logging (1:43)
Adding Swagger support (1:56)
Controller interoperability (1:41)
Let's build a Minimal API
What are we going to build? (3:04)
Exercise: Build the API (0:47)
Project setup and database creation (10:52)
Adding new books (8:12)
Adding validation (6:03)
Retrieving all books (1:43)
Retrieving books by ISBN (2:53)
Retrieving books by title match (2:54)
Editing books (3:41)
Deleting books (2:14)
Extending Minimal APIs
Loading custom configuration (2:22)
Adding Authentication & Authorization (5:52)
Named routes and link generation (4:48)
Customizing the Web Application options (1:43)
Defining response contracts for Swagger (4:29)
Custom JSON binding (1:22)
Customizing results (3:02)
Dealing with CORS (1:48)
Unsupported features compared to MVC (2:44)
Structuring Minimal APIs
Why structure Minimal APIs? (1:16)
Different ways of structuring (3:31)
Building the structure framework (9:56)
Separating the endpoints (6:59)
Refactoring recap (1:17)
Testing Minimal APIs
Why test Minimal APIs? (2:16)
Setting up the test project (3:49)
The WebApplicationFactory class (6:01)
Testing resource creation (9:26)
The problem with created resources (3:40)
Testing resource lookup (2:37)
Testing resource search (4:34)
Testing resource updating (4:06)
Testing resource deletion (2:25)
Creating our own WebApplicationFactory (3:25)
Course conclusion
Conclusion (0:25)
Customizing the Web Application options
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock