Build ASP.NET Core Web API - Scratch To Finish (.NET8 API)

Use C# and Build an ASP.NET Core Web API with Entity Framework Core, SQL Server, Authentication, Authorization | .NET8

  • 0.0 (0 Reviews)
  • 0 Students
  • 187 Lessons
  • Sameer Saini

Course Overview

*** NEW RECORDED VERSION on .NET 10 COMING SOON ***

THIS COURSE HAS BEEN UPDATED TO THE LATEST VERSION [.NET8]

The course is compatible with both versions - .NET7 & .NET8



This is a complete guide to creating ASP.NET Core Web API  using  .NET8, Entity Framework Core (EF Core), and SQL Server database.

With over 11000 student enrolments and more than 2000 5-star reviews, this course has helped students from all backgrounds to learn and implement ASP.NET core Web API.

This course is for all skill levels and best suits beginners and intermediate developers who have gained knowledge in C# and ASP.NET Web MVC and want to use their skills to learn ASP.NET Core and specifically ASP.NET Core Web API.


In this ASP.NET Core WEB API course, we will use .NET8 and create a REST WEB API.

During this course, you will gain so much experience creating ASP.NET Core APIs and endpoints and by the end, I am confident that you will gain enough practical knowledge to create your own ASP.NET Web APIs.

We will create a very engaging Web API in which we will create the regions and walks of New Zealand and we will create an ASP.NET Core Web API so that clients of this API can consume this data.

We will start with learning what are the principles of REST and understand the files that ASP.NET Core creates as part of a new project.

Then we will create and understand our domain and domain models.

Then we will go ahead and install Entity Framework Core and using EF Core migrations we will create our SQL Server Database.

We will then create controllers for our API and test them using Swagger UI.

We will also understand and implement the concepts of Domain and Data models and use clean coding techniques to build our ASP.NET CORE Web API.

We will use a famous third-party library called Automapper to map objects inside our API.

With all of this, we will go on and create CRUD operations for our Web API. We will perform Create, Read, Update, and Delete operations on our API using the Repository Pattern in ASP.NET Core API.

Then we will understand and implement Authentication and Authorization in ASP.NET CORE Web APIS using JWT tokens and see how we can generate JWT tokens using our API (Server) so that we can Authenticate and Authorize the clients of our application.

We will learn more advanced level stuff by implementing Filtering, Sorting, and Pagination in our ASP.NET Core Web API.

We will use Postman and Swagger to test our Authentication and Authorization.

We will also use ASP.NET Core Identity in our API where we Register users and assign roles to them.


In this course ASP.NET Core Web API course, you will learn and implement:

  • Understand REST APIs by creating a Web API using ASP.NET Core and .NET 7

  • Understand REST Principles

  • Understand Dependency Injection and Benefits

  • Creating New ASP.NET Core Web API Project

  • Understand .NET8 WEB API Project In .NET 8 and C#

  • Learn And Install Entity Framework Core (EF Core) In ASP.NET Core Web API Project

  • Learn Entity Framework Core Migrations

  • Understand the difference between Domain models and DTOs

  • Understand Domain Models and Repository Pattern

  • Use Swagger To Test ASPNET Core WEB API project

  • Learn How To Map Models To One Another Using Automapper

  • Learn Asynchronous Programming (Async Await)

  • Validate ASP.NET Core WEB API

  • Secure your ASP.NET Core Web API using Microsoft Identity by adding Authentication and Role-Based Authorization to your REST API.

  • Add JWT Authentication to ASP.NET Core Web API by creating JWT Tokens for API Clients.

  • Understand and Add Authentication and Authorization To ASP.NET Core API and Create Read and Write Users To Test this Via Postman

  • Incorporate ASP.NET JWT Authentication Into SwaggerUI

  • Add advanced functionality like Filtering, Sorting, and Pagination to your ASP.NET Core Web API.



Know me more

I am Sameer, a professional software developer with over 15 years of industry experience. I love to educate myself and others and that's why I started with my YouTube channel where I have a loving audience. I create content for software developers like you so that I can share my knowledge.


Statistics

Over 27000 students on Udemy

Over 4000  Reviews on Udemy

Over 2.4 Million Views on YouTube


Some of the reviews

  • Hands down the best way to learn this technology stack. Sameer did a good job here and I hope he will be blessing us with more interesting Angular projects in the future! Maybe a sample e-commerce or Hotel Booking app :)

  • Although I didn't have any prior experience with C# OR .Net Core MVC, I was still able to grasp a lot from this course, all thanks to the instructor!

  • A very detailed and extensive course! clear voice and great detail to topics.

  • and 1000s of more reviews on my courses.


Money Back Guarantee

I Guarantee you that after finishing this course, you will be confident enough to create REST APIs in ASP.NET Core and .NET8 on your own.

You will feel confident at work or when creating your projects.

If you want to create functional, generic, clean, and usable websites using ASP.NET, then this is the course for you.

If still, you are unable to get benefit from this course (we will be sad to see you go!), there is a "30-day money back guaranteed by Udemy".



Why do you need this course?

By buying this course, you will make a fantastic choice as this course will help you gain the confidence you need to create ASP.NET Core Web APIs

I assure you that by the end of this course, you will have the confidence to create scalable ASP.NET Core Web APIs from scratch.


See more

FAQ

FAQ area empty

Course curriculum

21 chương 187 bài học 18 giờ 2 phút 7 bài học thử miễn phí
Chương 1 Introduction to building ASP.NET Core Web APIs using .NET8
Chương 2 Create New ASP.NET Core Web API & Domain Models
Chương 3 Create New Controller - Regions Controller and CRUD Operations / Action Methods
  • Introduction 0:14
  • Create New Controller (Regions Controller) 8:02
  • Get All Regions Action Method 3:44
  • Get Region By Id Action Method 7:50
  • DTOs and Domain Models 5:07
  • Change Methods To Use DTOs 8:33
  • Create Region Action Method 11:58
  • Update Region Action Method 12:07
  • Delete Region Action Method 5:23
Chương 4 Asynchronous Programming, Repository Pattern and Automapper
  • Introduction 0:26
  • Asynchronous Programming and Implement Async Await In our Methods 10:51
  • Repository Pattern and Benefits 3:37
  • Implement Repository Pattern In ASP.NET Core Web APIs 14:04
  • Add Other Methods To Repository 16:18
  • Automapper Introduction 1:30
  • Implement Automapper 17:18
Chương 5 Functionality For Walks - Create, Read, Update, Delete For Walks
  • Introduction 0:44
  • Seeding Data Using Entity Framework Core 10:36
  • Creating Walks Controller and Create New Walk Action Method 16:13
  • Get All Walks Action Method 5:12
  • Navigation Properties In Entity Framework Core 7:25
  • Get Walk By Id Action Method 6:00
  • Update Walk Action Method 11:56
  • Delete Walk Action Method 5:17
Chương 6 Validations in ASP.NET Core Web API
  • Introduction To Model Validations 1:26
  • Adding Model Validations To Endpoints 11:52
  • Custom Validate Model Attribute 4:58
Chương 7 Filtering, Sorting, Pagination in ASP.NET Core Web API
  • Introduction 0:14
  • Seeding Data in SQL Server 2:52
  • Filtering 15:05
  • Sorting 13:17
  • Pagination 9:28
Chương 8 Securing our ASP.NET Core API - Authentication and Authorization - JWT Tokens
  • Introduction 3:09
  • Authentication Flow 1:26
  • Setting Up Authentication - Install Nuget Packages 9:36
  • Testing Authentication Without JWT Token 3:26
  • Setting Up Identity DbContext 9:09
  • Seeding Roles 4:45
  • Run EF Core Migrations To Create Identity Database 4:35
  • Setting Up Identity 5:45
  • Create Auth Controller and Register Action Method 13:24
  • Create Login Action Method 7:48
  • Create JWT Token in ASP.NET Core Web API 10:34
  • Inject TokenRepository and Create Token 9:34
  • Facing 401 Unauthorized?
  • Role Based Authorization 10:23
  • Add Authorization To Swagger 6:58
Chương 9 Image Upload In ASP.NET Core Web API
  • Introduction 1:27
  • Create Domain Model For Image Upload 3:33
  • DbContext changes and Migrations For Image Upload 3:31
  • New Controller and Action Method for Image Upload 11:07
  • Image Upload Repository Implementaion 24:08
  • Serving Static Files Through ASPNET Core Web API 4:35
Chương 10 Advanced Functionality in ASP.NET Core Web APIs
  • Introduction To Logging 1:02
  • Add Logging to Console in ASP.NET Core Web API 13:02
  • Add Logging to Text File In ASP.NET Core Web APIs 6:12
  • Global Exception Handling In ASP.NET Core Web APIs 16:23
Chương 11 Versioning In ASP.NET Core Web API
  • What is Versioning and How To Implement Versioning in ASP.NET Web API 1:22
  • Implement Versioning in ASP.NET Core Web API By Folder Structure 11:32
  • Implement Versioning By Nuget Package - Proffered Approach 15:37
  • Fix Versioning In Swagger 12:43
Chương 12 Consuming our Web API
  • Consuming REST Web APIs 1:27
  • Creating ASP.NET MVC Web Application 4:18
  • GET - Consume Web API 21:57
  • POST - Consume Web API 17:10
  • GET single Region - Edit Region Prerequisite 10:39
  • PUT - Updating Using Web API 7:25
  • DELETE - Deleting a Resource using Web API 6:30
Chương 13 Deploying ASP.NET Web API To Azure
  • Deploying ASP.NET Web API To Azure 30:23
Chương 14 BONUS Section
  • BONUS Lecture
  • Old .NET 6 Content Below
Chương 15 [OLD Content .NET6] Create New ASP.NET Core Web API
  • Introduction 0:58
  • Install GIT and Create New GIT Repository 5:15
  • Create New ASP.NET Web API 2:22
  • Pushing New API to GIT 2:49
  • Understanding Our New .NET Web API 1:46
  • Understanding REST and HTTP Verbs 1:02
  • Running The Project And Using Swagger 3:18
  • Understanding Our Domain 1:07
  • Creating Domain Models In Our ASP.NET Web API 6:24
  • Install Entity Framework Core Nuget Packages 2:08
  • Create DBContext 3:57
  • Create Connection String To Database 1:59
  • Understanding Dependency Injection 1:56
  • Injecting DbContext Class 2:44
  • Running EF Core Migrations 2:43
  • Seeding Data Into Database 1:26
  • Saving Our Changes To GIT 1:54
Chương 16 [OLD Content .NET6] Create New Controller - Regions Controller
  • Introduction 0:34
  • Create Regions Controller 5:36
  • Testing Get All Regions Method 2:21
  • Understanding The Repository Pattern 1:06
  • Create Region Repository 8:34
  • Test API in Swagger 0:52
  • Adding DTOs or Contracts 6:47
  • Install and Use Automapper 9:12
  • Understand Synchronous vs ASynchronous Code 1:26
  • Making Our Code Asynchronous 3:36
  • Saving Our Changes To GIT 0:23
Chương 17 [OLD Content .NET6] Creating CRUD on Region Controller
  • Introduction 0:14
  • Creating Repository Method Get Region By Id 3:56
  • Creating Controller Method For GetRegionById 5:28
  • Testing GetRegionById method using Swagger 2:33
  • Creating Repository Method for AddRegion 3:33
  • Creating Controller Method For AddRegion 10:15
  • Testing AddRegion Method using Swagger 3:12
  • Creating Repository method for DeleteRegion 4:07
  • Creating Controller Method For DeleteRegion 5:52
  • Testing DeleteRegion method using Swagger 2:02
  • Creating Repository method for UpdateRegion 4:01
  • Creating Controller Method For UpdateRegion 7:33
  • Testing UpdateRegion method using Swagger 2:55
  • Saving Our Changes To GIT 0:27
  • Assignment For Next Section - Walks API 1:06
Chương 18 [OLD Content .NET6] Creating Walks Controller and Implementing Walks CRUD
  • Introduction 0:20
  • Create Repositories For Walks And Add To Services 2:12
  • New repository method for GetAllWalks 3:20
  • New Controller and method for GetAllWalks 10:32
  • Testing GetAllWalks method using Swagger 1:30
  • Adding Navigation Properties For WalkDifficulty and Region 6:46
  • Creating Repository Method for GetWalkById 2:25
  • Creating Controller Method For GetWalkById 3:46
  • Testing GetWalkById method using Swagger 1:17
  • New repository method and Controller Method for AddWalk 11:28
  • Testing AddWalk method using Swagger 3:59
  • New repository method and Controller Method for UpdateWalk 11:13
  • Testing UpdateWalk method using Swagger 2:45
  • New Repository Method and Controller Method for DeleteWalk 6:01
  • Testing DeleteWalk method using Swagger 1:29
  • Saving Our Changes To GIT 0:23
Chương 19 [OLD Content .NET6] Creating WalkDifficulty Controller And WalkDifficulty CRUD
  • Introduction 0:48
  • Create Repositories For WalkDifficulty And Add To Services 1:15
  • New Method For GetAllWalkDifficulties and Swagger Testing 5:13
  • New Method For GetWalkDiffultyById and Swagger Testing 6:25
  • New Method For AddWalkDifficulty and Testing In Swagger 8:00
  • New Method For UpdateWalkDifficulty and Testing In Swagger 6:43
  • New Method For DeleteWalkDifficulty and Testing In Swagger 4:37
  • Saving Our Changes To GIT 0:21
Chương 20 [OLD Content .NET6] Validations In ASP.NET CORE WEB API
  • Introduction 1:53
  • Validating Region Controller - AddRegionRequest Model 13:53
  • Testing AddRegionRequest Validation 6:24
  • Validating Region Controller - UpdateRegionRequest Model 8:16
  • Validating Walks Controller - AddWalkRequest Model 15:08
  • Validating Walks Controller - UpdateWalkRequest Model 5:58
  • Validating WalkDifficulty Controller 5:59
  • Saving Our Changes to GIT 0:21
  • Introduction To Fluent Validations 0:39
  • Setting Up Fluent Validations 2:16
  • Adding AddRegion Validations Using Fluent Validations 10:00
  • Adding UpdateRegion Validations Using Fluent Validations 4:58
  • Adding Validations For WalkDifficulties API Using Fluent Validations 3:16
  • Adding Validations For Walks API Using Fluent Validations 6:33
Chương 21 [OLD Content .NET6] Authentication & Authorization In ASP.NET CORE WEB API
  • Introduction 2:19
  • Authentication Flow 1:26
  • Setting Up Authentication 8:48
  • Testing Authentication Without Token 2:55
  • Creating Users and Static User Repository 11:31
  • Creating Auth Controller and Login Method 6:50
  • Creating Token Handler And Generate Token 15:19
  • Testing Login Method and Getting Token 6:06
  • Role Based Authorization 11:43
  • Adding Authentication and Authorization To All APIs 2:39
  • Changing Swagger To Add Authentication 7:40
  • Add EF Core and Add Users To Database 20:26

Requirment

  • Hello world experience in ASPNET Core

  • Beginner knowledge about APIs and their use

  • 3-6 months experience working with ASPNET Core and C#

Outcomes

  • Learn, Understand and Create ASPNET Core Web API From Scratch using .NET8

  • Building scalable REST APIs from scratch using ASPNET CORE and C#

  • Learn and Apply Entity Framework Core to perform CRUD operations on a SQL Server database

  • Use Entity Framework Core in a code first approach

  • Understand and Apply the Repository Pattern in ASPNET Core Web API

  • Use Domain Driven Design (DDD) approach to create domain first models and project

  • Understand RESTful Principles and Apply them in ASPNET Core Web API

  • Understand Best practices and Clean Coding Techniques, Know Shortcuts and Tips and Tricks

  • Add Validations In ASPNET CORE Web API

  • Use popular third-party libraries such as AUTOMAPPER

  • Understand and Use Interfaces, Inheritance, Dependency Injection etc

  • Understand and Implement Authentication and Role based Authorization to Authenticate and Authorize the ASPNET Core Database

  • Create JWT tokens to Authenticate API

  • Test ASPNET Core Web API using Swagger and Postman

  • Use ASPNET Core Identity in ASPNET Core Web API to Authenticate and add Role based Authorization

  • Learn Filtering, Sorting and Pagination in ASPNET Core Web API

Instructor

...
Sameer Saini

0.0

  • ... 0 Student
  • ... 4 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all
Một sản phẩm của Công ty Cổ phần Thương mại Vạn Tín Việt·vantinviet.com