Build ASP.NET Core Web API – Scratch To Finish (.NET8 API)
构建ASP.NET Core Web API – 从头到尾(.NET 8 API)
Use C# and Build an ASP.NET Core Web API with Entity Framework Core, SQL Server, Authentication, Authorization | .NET8
使用C#和ASP.NET Core构建一个带有Entity Framework Core、SQL Server、身份验证和授权的Web API | .NET 8
教程演示🔗
学生数量:22,230 个学生
上次更新时间:2024年3月
教程评分:4.6
教程语言:英语
教程字幕:中文、英语字幕
本课程包括:18 小时 长的随选视频、在移动设备和电视上观看、3 篇文章、结业证书、17 个可下载资源
学习内容
1、从头开始学习、理解和创建使用.NET 8的ASP.NET Core Web API。
2、从头开始使用ASP.NET Core和C#构建可扩展的RESTful API
3、学习和应用Entity Framework Core,以便在SQL Server数据库上执行CRUD(创建(Create)、读取(Retrieve)、更新(Update)和删除(Delete))操作。
4、使用Entity Framework Core的代码首次方法
5、理解并应用ASP.NET Core Web API中的Repository模式
6、使用领域驱动设计(Domain-Driven Design, DDD)方法,首先创建领域模型,然后进行项目实施。
7、理解RESTful原则并在ASP.NET Core Web API中应用它们
8、理解最佳实践和清洁编码技巧,掌握快捷键和窍门与技巧。
9、在ASP.NET Core Web API中添加验证
10、使用像AUTOMAPPER这样的流行第三方库。
11、理解并使用接口(Interfaces)、继承(Inheritance)和依赖注入(Dependency Injection)等概念。
12、理解并实现基于身份验证和角色的权限控制,以对ASP.NET Core数据库进行身份验证和授权。
13、创建JWT(JSON Web Tokens)来验证API
14、使用Swagger和Postman测试ASP.NET Core Web API
15、在ASP.NET Core Web API中使用ASP.NET Core Identity进行身份验证和基于角色的授权。
16、学习ASP.NET Core Web API中的过滤、排序和分页
要求
1、安装 .NET SDK 和 .NET 运行时
2、完整源代码与GitHub仓库链接
3、完整源代码和GitHub仓库
4、在ASP.NET Core中的”Hello World”经验
5、对于API及其使用的初学者知识
6、3-6个月的ASP.NET Core和C#工作经验。
课程说明
The course is compatible with both versions – .NET7 & .NET8
该课程与两个版本兼容- .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.
这是使用.NET8、Entity Framework Core(EF Core)和SQL Server数据库创建ASP.NET Core Web API的完整指南。
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.
有超过11000名学生注册和超过2000个5-星星评论,这门课程帮助来自各种背景的学生学习和实现ASP.NET核心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.
本课程适合所有技能水平的初学者和中级开发人员,他们已经获得了C#和ASP.NET Web MVC的知识,并希望利用他们的技能学习ASP.NET Core,特别是ASP.NET Core Web API。
In this ASP.NET Core WEB API course, we will use .NET8 and create a REST WEB API.
在这个ASP.NET Core WEB API课程中,我们将使用.NET8并创建一个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.
在本课程中,您将获得创建ASP.NET Core API和端点的丰富经验,到最后,我相信您将获得足够的实践知识来创建自己的ASP.NET Web API。
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.
我们将创建一个非常吸引人的Web API,在其中我们将创建新西兰的地区和步行,我们将创建一个ASP.NET Core Web API,以便此API的客户端可以使用此数据。
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.
我们将从学习REST的原理开始,并了解ASP.NET Core作为新项目的一部分创建的文件。
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.
然后我们将继续安装Entity Framework Core,并使用EF Core迁移创建SQL Server数据库。
We will then create controllers for our API and test them using Swagger UI.
然后,我们将为我们的API创建控制器,并使用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.
我们还将理解和实现域和数据模型的概念,并使用干净的编码技术来构建我们的ASP.NET CORE Web API。
We will use a famous third-party library called Automapper to map objects inside our API.
我们将使用一个著名的第三方库Automapper来映射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.
完成所有这些之后,我们将继续为Web API创建CRUD操作。我们将使用ASP.NET Core API中的Repository Pattern对我们的API执行Create、Read、Update和Delete操作。
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.
然后,我们将使用JWT令牌在ASP.NET CORE Web APIS中理解和实现身份验证和授权,并了解如何使用我们的API(服务器)生成JWT令牌,以便我们可以对应用程序的客户端进行身份验证和授权。
We will learn more advanced level stuff by implementing Filtering, Sorting, and Pagination in our ASP.NET Core Web API.
我们将通过在ASP.NET Core Web API中实现过滤、排序和分页来学习更高级的东西。
We will use Postman and Swagger to test our Authentication and Authorization.
我们将使用Postman和Swagger来测试我们的身份验证和授权。
We will also use ASP.NET Core Identity in our API where we Register users and assign roles to them.
我们还将在我们的API中使用ASP.NET核心标识,在这里我们注册用户并为他们分配角色。
In this course ASP.NET Core Web API course, you will learn and implement:
在本课程ASP.NET Core Web API课程中,您将学习并实现:
-
Understand REST APIs by creating a Web API using ASP.NET Core and .NET 7
通过使用ASP.NET Core和. NET 7创建Web API来了解REST API -
Understand REST Principles
了解REST原则 -
Understand Dependency Injection and Benefits
了解依赖注入和好处 -
Creating New ASP.NET Core Web API Project
创建新的ASP.NET Core Web API项目 -
Understand .NET8 WEB API Project In .NET 8 and C#
了解.NET 8和C#中的.NET8 WEB API项目 -
Learn And Install Entity Framework Core (EF Core) In ASP.NET Core Web API Project
在ASP.NET Core Web API项目中学习和安装Entity Framework Core(EF Core) -
Learn Entity Framework Core Migrations
了解Entity Framework核心迁移 -
Understand the difference between Domain models and DTOs
了解域模型和DTO之间的区别 -
Understand Domain Models and Repository Pattern
了解域模型和存储库模式 -
Use Swagger To Test ASPNET Core WEB API project
使用Swagger测试ASPNET Core WEB API项目 -
Learn How To Map Models To One Another Using Automapper
了解如何使用Automapper将模型相互映射 -
Learn Asynchronous Programming (Async Await)
异步编程(Async Await) -
Validate ASP.NET Core WEB API
支持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.
通过向REST API添加身份验证和基于角色的授权,使用Microsoft Identity保护ASP.NET Core Web API。 -
Add JWT Authentication to ASP.NET Core Web API by creating JWT Tokens for API Clients.
通过为API客户端创建JWT令牌,将JWT身份验证添加到ASP.NET Core Web API。 -
Understand and Add Authentication and Authorization To ASP.NET Core API and Create Read and Write Users To Test this Via Postman
了解并向ASP.NET Core API添加身份验证和授权,并创建读写用户以通过Postman进行测试 -
Incorporate ASP.NET JWT Authentication Into SwaggerUI
将ASP.NET JWT身份验证并入SwaggerUI -
Add advanced functionality like Filtering, Sorting, and Pagination to your ASP.NET Core Web API.
向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.
我是Sameer,一位拥有超过15年行业经验的专业软件开发人员。我喜欢教育自己和他人,这就是为什么我开始与我的YouTube频道,我有一个爱的观众。我为像你这样的软件开发人员创建内容,这样我就可以分享我的知识。
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
通过购买本课程,您将做出一个梦幻般的选择,因为本课程将帮助您获得创建ASP.NET Core Web API所需的信心
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.
我向您保证,在本课程结束时,您将有信心从头开始创建可伸缩的ASP.NET Core Web API。
此课程面向哪些人:
- Beginner to Intermediate Developer with some knowledge in ASPNET Core and C#
初级到中级开发人员,具有ASPNET Core和C#的一些知识