Mô tả

*****

THIS COURSE HAS BEEN COMPLETELY RE-RECORDED AND UPDATED TO THE LATEST VERSION .NET 7
The course is compatible with both versions: .NET6 & .NET7

*****


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

With over 6000 student enrolments and more than 1100 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 .NET 7 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 are able to 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 to 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 .NET 7 WEB API Project In .NET 7 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 to 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 11000 students on Udemy

Over 2000  Reviews on Udemy

Over 1.4 Million Views on Youtube


Some of the reviews

==> Hands down the best way to learn this technology stack. Sameer really 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.
... and1000s 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 .NET 7 on your own.

You will feel confident at work or creating your own 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.


Bạn sẽ học được gì

Learn, Understand and Create ASPNET Core Web API From Scratch using .NET 7

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

Yêu cầu

  • Hello world experience in ASPNET Core
  • Beginner knowledge about APIs and their use
  • 3-6 months experience working with ASPNET Core and C#

Nội dung khoá học

21 sections

Introduction to building ASP.NET Core Web APIs using .NET6

9 lectures
Introduction to building ASP.NET Core Web APIs using .NET8
01:48
Prerequisites
00:37
Setting up development environment
00:21
Download and Install Visual Studio 2022
02:26
Install .NET SDK and .NET Runtime
01:38
Install SQL Server Management Studio
03:27
Getting help
00:51
Complete Source Code & GITHUB Repository Link
00:00
[OLD Content] Complete Source Code and GITHUB Repository
02:04

Create New ASP.NET Core Web API & Domain Models

14 lectures
Introduction
00:46
Create New ASPNET Core Web API
04:42
Understand ASP.NET Core Web API and File Structure
06:33
Understand REST and HTTP Verbs
04:41
Routing In ASP.NET Core Web API
02:22
Running and Calling ASP.NET Core Web API
11:59
Understanding Our Domain (Domain Driven Development)
04:14
Create Domain Models
06:42
Adding Entity Framework Core Packages
01:48
Creating the DBContext Class
06:02
Adding ConnectionString To The Database In Appsettings.Json
03:59
Understanding Dependency Injection & Injecting DbContext Into Our Application
07:30
Run EF Core Migrations
03:46
Quiz For Section 2
4 questions

Create New Controller - Regions Controller and CRUD Operations / Action Methods

9 lectures
Introduction
00:14
Create New Controller (Regions Controller)
08:02
Get All Regions Action Method
03:44
Get Region By Id Action Method
07:50
DTOs and Domain Models
05:07
Change Methods To Use DTOs
08:33
Create Region Action Method
11:58
Update Region Action Method
12:07
Delete Region Action Method
05:23

Asynchronous Programming, Repository Pattern and Automapper

7 lectures
Introduction
00:26
Asynchronous Programming and Implement Async Await In our Methods
10:51
Repository Pattern and Benefits
03:37
Implement Repository Pattern In ASP.NET Core Web APIs
14:04
Add Other Methods To Repository
16:18
Automapper Introduction
01:30
Implement Automapper
17:18

Functionality For Walks - Create, Read, Update, Delete For Walks

8 lectures
Introduction
00: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
05:12
Navigation Properties In Entity Framework Core
07:25
Get Walk By Id Action Method
06:00
Update Walk Action Method
11:56
Delete Walk Action Method
05:17

Validations in ASP.NET Core Web API

3 lectures
Introduction To Model Validations
01:26
Adding Model Validations To Endpoints
11:52
Custom Validate Model Attribute
04:58

Filtering, Sorting, Pagination in ASP.NET Core Web API

5 lectures
Introduction
00:14
Seeding Data in SQL Server
02:52
Filtering
15:05
Sorting
13:17
Pagination
09:28

Securing our ASP.NET Core API - Authentication and Authorization - JWT Tokens

14 lectures
Introduction
03:09
Authentication Flow
01:26
Setting Up Authentication - Install Nuget Packages
09:36
Testing Authentication Without JWT Token
03:26
Setting Up Identity DbContext
09:09
Seeding Roles
04:45
Run EF Core Migrations To Create Identity Database
04:35
Setting Up Identity
05:45
Create Auth Controller and Register Action Method
13:24
Create Login Action Method
07:48
Create JWT Token in ASP.NET Core Web API
10:34
Inject TokenRepository and Create Token
09:34
Role Based Authorization
10:23
Add Authorization To Swagger
06:58

Image Upload In ASP.NET Core Web API

6 lectures
Introduction
01:27
Create Domain Model For Image Upload
03:33
DbContext changes and Migrations For Image Upload
03: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
04:35

Advanced Functionality in ASP.NET Core Web APIs

4 lectures
Introduction To Logging
01:02
Add Logging to Console in ASP.NET Core Web API
13:02
Add Logging to Text File In ASP.NET Core Web APIs
06:12
Global Exception Handling In ASP.NET Core Web APIs
16:23

Versioning In ASP.NET Core Web API

4 lectures
What is Versioning and How To Implement Versioning in ASP.NET Web API
01: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

Consuming our Web API

7 lectures
Consuming REST Web APIs
01:27
Creating ASP.NET MVC Web Application
04: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
07:25
DELETE - Deleting a Resource using Web API
06:30

Deploying ASP.NET Web API To Azure

1 lectures
Deploying ASP.NET Web API To Azure
30:23

BONUS Section

2 lectures
BONUS Lecture
00:13
Old .NET 6 Content Below
00:10

[OLD Content .NET6] Create New ASP.NET Core Web API

17 lectures
Introduction
00:58
Install GIT and Create New GIT Repository
05:15
Create New ASP.NET Web API
02:22
Pushing New API to GIT
02:49
Understanding Our New .NET Web API
01:46
Understanding REST and HTTP Verbs
01:02
Running The Project And Using Swagger
03:18
Understanding Our Domain
01:07
Creating Domain Models In Our ASP.NET Web API
06:24
Install Entity Framework Core Nuget Packages
02:08
Create DBContext
03:57
Create Connection String To Database
01:59
Understanding Dependency Injection
01:56
Injecting DbContext Class
02:44
Running EF Core Migrations
02:43
Seeding Data Into Database
01:26
Saving Our Changes To GIT
01:54

[OLD Content .NET6] Create New Controller - Regions Controller

11 lectures
Introduction
00:34
Create Regions Controller
05:36
Testing Get All Regions Method
02:21
Understanding The Repository Pattern
01:06
Create Region Repository
08:34
Test API in Swagger
00:52
Adding DTOs or Contracts
06:47
Install and Use Automapper
09:12
Understand Synchronous vs ASynchronous Code
01:26
Making Our Code Asynchronous
03:36
Saving Our Changes To GIT
00:23

[OLD Content .NET6] Creating CRUD on Region Controller

15 lectures
Introduction
00:14
Creating Repository Method Get Region By Id
03:56
Creating Controller Method For GetRegionById
05:28
Testing GetRegionById method using Swagger
02:33
Creating Repository Method for AddRegion
03:33
Creating Controller Method For AddRegion
10:15
Testing AddRegion Method using Swagger
03:12
Creating Repository method for DeleteRegion
04:07
Creating Controller Method For DeleteRegion
05:52
Testing DeleteRegion method using Swagger
02:02
Creating Repository method for UpdateRegion
04:01
Creating Controller Method For UpdateRegion
07:33
Testing UpdateRegion method using Swagger
02:55
Saving Our Changes To GIT
00:27
Assignment For Next Section - Walks API
01:06

[OLD Content .NET6] Creating Walks Controller and Implementing Walks CRUD

16 lectures
Introduction
00:20
Create Repositories For Walks And Add To Services
02:12
New repository method for GetAllWalks
03:20
New Controller and method for GetAllWalks
10:32
Testing GetAllWalks method using Swagger
01:30
Adding Navigation Properties For WalkDifficulty and Region
06:46
Creating Repository Method for GetWalkById
02:25
Creating Controller Method For GetWalkById
03:46
Testing GetWalkById method using Swagger
01:17
New repository method and Controller Method for AddWalk
11:28
Testing AddWalk method using Swagger
03:59
New repository method and Controller Method for UpdateWalk
11:13
Testing UpdateWalk method using Swagger
02:45
New Repository Method and Controller Method for DeleteWalk
06:01
Testing DeleteWalk method using Swagger
01:29
Saving Our Changes To GIT
00:23

[OLD Content .NET6] Creating WalkDifficulty Controller And WalkDifficulty CRUD

8 lectures
Introduction
00:48
Create Repositories For WalkDifficulty And Add To Services
01:15
New Method For GetAllWalkDifficulties and Swagger Testing
05:13
New Method For GetWalkDiffultyById and Swagger Testing
06:25
New Method For AddWalkDifficulty and Testing In Swagger
08:00
New Method For UpdateWalkDifficulty and Testing In Swagger
06:43
New Method For DeleteWalkDifficulty and Testing In Swagger
04:37
Saving Our Changes To GIT
00:21

[OLD Content .NET6] Validations In ASP.NET CORE WEB API

14 lectures
Introduction
01:53
Validating Region Controller - AddRegionRequest Model
13:53
Testing AddRegionRequest Validation
06:24
Validating Region Controller - UpdateRegionRequest Model
08:16
Validating Walks Controller - AddWalkRequest Model
15:08
Validating Walks Controller - UpdateWalkRequest Model
05:58
Validating WalkDifficulty Controller
05:59
Saving Our Changes to GIT
00:21
Introduction To Fluent Validations
00:39
Setting Up Fluent Validations
02:16
Adding AddRegion Validations Using Fluent Validations
10:00
Adding UpdateRegion Validations Using Fluent Validations
04:58
Adding Validations For WalkDifficulties API Using Fluent Validations
03:16
Adding Validations For Walks API Using Fluent Validations
06:33

[OLD Content .NET6] Authentication & Authorization In ASP.NET CORE WEB API

12 lectures
Introduction
02:19
Authentication Flow
01:26
Setting Up Authentication
08:48
Testing Authentication Without Token
02:55
Creating Users and Static User Repository
11:31
Creating Auth Controller and Login Method
06:50
Creating Token Handler And Generate Token
15:19
Testing Login Method and Getting Token
06:06
Role Based Authorization
11:43
Adding Authentication and Authorization To All APIs
02:39
Changing Swagger To Add Authentication
07:40
Add EF Core and Add Users To Database
20:26

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.