Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Build an API with .NET/C#
Course Introduction
What We Will Build (4:46)
Layered Architecture and APIs (8:40)
What is a REST API?
Introduction to APIs (7:52)
Understanding HTTP Verbs and Endpoints (8:25)
Review of LINQ
The Where Clause (6:01)
Aggregate LINQ Functions (3:44)
WHERE Clauses with Objects (6:07)
Using COUNT (2:46)
Using First To Find Info (5:59)
Using FirstOrDefault (5:03)
Using Ordered By (3:47)
LINQ and Entity Framework (6:04)
Initial Project Setup
Initial Project Setup (5:39)
Creating Our First DTO (5:47)
Setting Up AutoMapper (4:30)
Setting Up Entity Framework
Entity Framework Setup (7:46)
Setting Up Our Model and Migration (7:52)
Troubleshooting Entity Framework (8:06)
Getting Started With Our API
Intro to Dependency Injection (6:04)
Making the Get All Recipes Endpoint (10:04)
The DTO Pattern and AutoMapper (5:55)
What Is Entity Framework Doing? (5:02)
Getting to know APIs and Swagger (5:10)
Path Parameters and Continuing To Build Our API
Get a Recipe By ID (8:12)
Deleting Recipes (5:15)
Validation and Creation
Using the FromBody Attribute (10:34)
Creating a New Recipe (8:38)
Validating the Recipe Endpoint (8:39)
Application vs. SQL Level Validation (6:47)
Updating Recipes (9:27)
Query String Parameters
Query String Parameters and How to Filter (11:08)
Filtering Multiple Properties (8:06)
Adding a Sub-Resource
Adding an Ingredient Entity to Our API (5:42)
Setting Up For The Ingredient Controller (6:12)
Creating the Ingredient Controller (6:41)
Finishing the Ingredient Controller (2:53)
Services and Dependency Injection
Creating Our First Service (8:24)
Registering Our Service With The DI Container (3:28)
Understanding Scoped vs. Singleton vs. Transient (22:57)
Middleware
Introduction to Middleware (3:28)
Adding an Api Key (9:16)
Customizing Swagger (2:31)
Using Postman with the API (3:04)
Protecting Our API With Auth0
Auth0 and Json Web Tokens (7:04)
Setting Up Auth0 In Our API (6:50)
The Auth0 Template (3:13)
Setting Up Swagger for Bearer Tokens (3:06)
How To Use JWTs With Swagger (1:58)
Protecting Our Endpoints (4:58)
Deploying Our API to Azure
Deploying Our API to Azure (13:59)
Using Your Deployed API (5:18)
EXTRA: Scaffolding and Minimal APIs
Using Scaffolding for CRUD Operations (7:29)
Using Minimal APIs (9:14)
Dependency Injection With Minimal APIs (5:14)
Scaffolding a Minimal API (3:12)
Teach online with
Creating the Ingredient Controller
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock