Mô tả

This is a Beginner to Intermediate level course on ASP.NET Core Web API that will take you from the basics of building API to consuming them. This course is for anyone who is new to RESTful Web API's in ASP.NET Core or who is familiar with ASP.NET and wants to learn how to consume them effectively in an ASP.NET Core Web application.

By the end of this course, you will be able to build a RESTful web service with Web API by yourself, make GET, POST, PUT and DELETE HTTP Requests with a well-built repository pattern in ASP.NET Core Project. You will also get a exposure to Entity Framework Code First migrations and learn how to save your data persistently in a database.

We will cover authentication and authorization in Web API as well as consume them in a real-world project.

Finally the complete project will be deployed to azure!


What are the requirements?

  • 6months experience in C#

  • 3-6 months knowledge of ASP.NET Core.

  • Visual Studio 2022

  • SQL Server Management Studio

  • .NET 7

What am I going to get from this course?

  • Learn basic fundamentals of ASP NET Core web API

  • Build RESTful API's in .NET 7

  • Learn how to document an API using swagger and swashbuckle.

  • Versioning in an API.

  • Implement Repository Pattern in API to the database using EF.

  • Authentication and Authorization in ASP.NET Core API's.

  • Integrate Entity Framework along with code first migrations

  • Learn how to consume API using HTTPClient in the Repository Pattern.

  • Deploying .NET 7 API

All source codes and exercise solutions of this course are also available on Github and you can find details in the lecture "PROJECT RESOURCES", of course.

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

Learn basic fundamentals of ASP NET Core Web API

Build RESTful API's in .NET 7

Learn how to document an API

Versioning in an API

Implement Repository Pattern in API to database using EF

Implement Authentication and Authorization in API and Consume API

.NET Identity to Authenticate API

Integrate Entity Framework along with code first migrations

Learn how to consume API using HTTPClient in the Repository Pattern

Dependency Injection in .NET API

Deploying API to Azure

Yêu cầu

  • 6months knowlege of C#
  • 3-6 months knowledge of NET Core
  • Visual Studio 2022
  • SQL Server 2018
  • .NET 7

Nội dung khoá học

13 sections

Introduction

10 lectures
Introduction
04:35
Demo
03:49
Identity Server and .NET 7 API
00:50
What we will cover
02:51
What is api
04:27
Request and response
04:47
Request Object
04:13
Response object
05:24
Project Resources
00:07
Create Project
02:47

First End point

8 lectures
Add project to source control
01:53
Code CleanUp
00:42
Create VillaAPIController Class
03:39
First API Endpoint - HTTPGET
05:16
Using Controller Name in Route
01:48
Add VillaDTO
01:56
Villa Data Store
01:39
Get individual Villa
04:06

CRUD Functionality

12 lectures
Status Code in EndPoints
03:35
Response Types
04:32
HttpPOST in Action
05:19
CreatedAtRoute
02:58
ModelState Validations
04:40
Custom ModelState Validation
03:01
Http Delete in Action
03:42
Http PUT in action
04:51
Http Patch Nuget Packages
02:14
Http Patch in Action
04:07
PostMan
05:04
Content Negotiations
02:48

Dependency Injection and DBContext

13 lectures
Logger Dependency Injection
05:40
Changing Logger with Dependency Injection - Serilog
06:16
Dependency Injection - Custom Logging
08:22
Entity Framework Core Database Models
03:27
NugetPackages for Entity Framework Core
01:21
SQL Server Connection Server Name
00:46
Connection String and DbSet Entity
05:12
Use Connection String
03:40
Create Villa Table
05:06
Seed Villa Table with records
04:57
Use ApplicationDbContext in APIController
08:31
Demo - Entity Frameowkr Core CRUD in Action
03:46
AsNoTracking in Action
03:44

DTO and AutoMapper

4 lectures
Seperate DTO for Create and Update
03:46
Async Methods
04:31
Setup AutoMapper and MApping Config
04:12
AutoMapper in Action
06:04

Repository

10 lectures
Add Villa Repository Interface
03:36
Villa Repository Implementation
04:30
Async Repository in Action
05:05
Repository CleanUp
08:49
API Response
02:16
Standard API Response
07:09
Villa Number Models
05:06
Assignment 1 - Villa Number API Endpoints
10:19
Add Foreign Key Reference
05:22
CRUD Villa Number DTO with Villa ID
04:54

Consuming API

27 lectures
Setup MVC Web Project
03:35
Web Project DTO's and API Models
05:10
AutoMapper
02:46
Add API URL in AppSettings
01:47
Base Service for API
08:51
Adding Villa Service
07:15
Calling Villa API
05:50
Display all Villa List
06:29
Create Villa UI
09:22
Disable NULLABLE - IMPORTANT
06:48
Update Villa Action Methods
03:21
Update VIlla UI
01:45
Delete Villa
02:55
Add VillaNumberService
02:34
Getting Villa Numbers
04:29
Include Villa when retireving Villa Number
07:33
Bootswatch Theme
02:07
Villa Home Page
04:39
Move Images
02:50
Villa Number Assignment
00:47
Create Villa Number GET
04:36
Create Villa POST
03:33
Special Validation and Base Service Update
07:47
Display API Error Messages
01:58
Update and Delete Action Method for Villa Number
04:33
Update and Delete Villa Number
05:57
Sweet Alert
06:26

API Security

10 lectures
Add Models for Login and Registeration
06:36
Add User Repository
02:20
Implement User Repository - Register
02:37
Implement User Repository - Login Part 1
03:38
Generate Token on Successful Login
06:39
User Controller
05:13
Login and Register in Action
03:07
Secure API Endpoints
02:16
Authentication in Action
05:59
Swagger and Bearer in Action
06:29

Consuming Secured API

8 lectures
Add DTOs for Login and Registeration
02:15
Add Auth Service
03:22
Auth Controller Action Methods
02:54
Login and Register View
04:30
Auth Controller Action Methods
04:38
NavBar Display
03:38
Authentication in Web Project
08:25
Pass Token to API from Web Project
07:04

Versioning in API

10 lectures
Nuget Packages for API Versioning
01:27
Add Versioning to API Services
02:24
API Version Attribute
01:53
Multiple Version in same Controller
04:09
API Version Configuration
03:26
Swagger Document for v1
03:56
Multiple Version Swagger Doc
01:15
Managing Multiple Versions - Cleaner Approach
03:36
API Neutral and Depreciating API
04:58
Consume Versioned API
03:03

Caching, Filter and Pagination

8 lectures
Caching Request
05:02
Caching Profile
02:03
Filters in API
03:23
Seach Villa Name
03:28
Pagination in API
05:07
Add Pagination to Response Header
01:26
Status Code and IsSuccess
01:49
Bug Fixing
01:47

.NET Identity

5 lectures
Add Identity Library and Tables
05:57
User Repository - Login
05:39
User Repository - Register
03:01
Login and Registration with Identity
06:54
Login and Registration in Web Application
07:23

Deployment

2 lectures
Database Setup
05:04
API Deployment
08:04

Đá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.