Mô tả

Hello fellow .NET Developers! Welcome to this course about creating and consuming RESTful APIs.

RESTful APIs are an important way in which applications expose functionality to the other applications. Being able to build your own professional API for other companies to consume, or to build your own professional API client to consume other companies' APIs is an important and marketable skill.

In the first part of this course, we will learn what a RESTful API is and design one to manage Course and Student data.

In the next part of this course, we will build and thoroughly test this RESTful API. We will go beyond the basics to ensure that the API is of high quality so that other developers can reliably call it. We do this by ensuring proper error handling, boundary condition handling, thorough testing, and documentation generation. Along the way we will use ASP.NET Core to create the RESTful API, Swagger to view the fully documented API, and Postman to test it.

In the final part of this course, we will write a professional and robust API client to consume our RESTful Courses API. As before, we will go beyond the basics to ensure it can be easily and reliably be incorporated into any .NET application. We do this by ensuring proper error handling, boundary condition handling, and thorough testing. Along the way we will use HttpClient to build our API Client using solid object-oriented programming principles and we will Unit test it using Test-Driven Development with MSTest.

Happy learning!

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

Understand what RESTful API is

Plan a RESTful API

Understand HTTP Methods such as GET, PUT, POST, and DELETE

Build a professional-grade RESTful API using ASPNet Core

Ensure data hiding

Perform input validation

Ensure proper error handling

Handle API versioning

Document a RESTful API with Swagger

Test a RESTful API with Swagger and Postman

Build a RESTful API Client using HttpClient

Test a RESTful API Client using MSTest

Ensure proper error handling for a RESTful API Client

Yêu cầu

  • Beginner knowledge of C# (Intermediate knowledge will be helpful)
  • Experience working with Visual Studio
  • Experience with ASPNet MVC or ASPNet Core

Nội dung khoá học

6 sections

Introduction

2 lectures
Introduction
01:31
Course Content
00:39

Introduction

6 lectures
Introduction
00:33
Prerequisites and Tools
00:44
What is REST?
00:38
HTTP Methods and Status Codes
02:33
Planning our RESTful API
02:17
Summary
00:13

API Implementation

17 lectures
Introduction
00:48
Setting up the Models Project
03:49
Setting up the Services Project
03:47
Creating our ASPNet Core Web API Project
01:59
Get List of Courses
04:58
Data Transfer Objects (DTOs)
03:11
Dependency Injection (DI)
02:30
AutoMapper
05:08
Searching
07:27
Get Single Course
07:45
Add Course
07:37
Validation
07:17
Content Negotiation
03:12
Update Course
05:33
Delete Course
01:56
API Documentation
08:29
Summary
00:30

API Versioning, Sub-Resources, and Authentication

10 lectures
Introduction
00:41
Planning Version 2
01:25
Preparing for Version 2
02:46
Get Students and Get Student
02:45
Add, Update and Delete Students
03:29
Upload Student Identification Image
04:00
Delete Student Identification Image
01:02
Basic Authentication
06:20
Documenting Basic Authentication with Swagger
02:10
Summary
00:16

API Client Implementation and Testing

16 lectures
Introduction
00:34
Test Driven Development
00:38
Preparing Our Solution
01:31
API Client Stub
04:26
Exception Classes
01:38
First Unit Tests
06:29
Get Courses
04:30
Exception Handling
03:39
Get Course
03:46
Add Course
05:31
Validation Error Handling
02:29
Update Course
02:25
Delete Course
01:55
Set Student Identification Image
04:57
Delete Student Identification Image
01:37
Summary
00:21

Summary

1 lectures
Summary
00:52

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