Mô tả

Become the Expert!

Are you a C#.NET developer ready to take the plunge into microservices?

Microsoft's ASP.NET Web API 2.0 for .NET Framework is an outstanding, flexible platform for creating microservices.  Unfortunately the official documentation is sparse, and you are left trying to piece together your understanding of this powerful platform by scouring the Internet for articles and examples that are often too academic, outdated, and not aligned with the practical needs of real-world services that must integrate with potentially many different kinds of clients and data center environments.

In this course, I will take you step by step through all of the layers of Web API to give you a full understanding of the platform components you will likely need to use in a modern, production-ready web service.  Examples and exercises are drawn from practical, real-world scenarios of the sort I personally faced while creating commercial web services-- and chances are you will face them too!

We'll cover all of the core Web API features like 

  • securing your API parameters, 

  • extending the Web API to perform custom processing, 

  • error handling

  • authentication and authorization.  

We'll look at ways to test and document your service. We'll dig into performance improvements using techniques like caching and asynchronous operations. You'll get a clear understanding of how to make your service work correctly behind application proxies such as load balancers that every commercial web service uses in the real world.

I've put together everything you need in one place to create professional, production-ready Web API services. This course will save you many hours of time and give you a much deeper understanding of everything Web API has to offer than trying to learn a piece at a time through Google-- so get a jump-start now and become the Web API expert on your team!

The Experience

The course experience is intended to feel like a more intimate, one-on-one setting.  I want you to feel like you and I are both sitting down in front of your computer, reviewing some code in Visual Studio and having a friendly discussion about how things work, the pros and cons of a technique, and practical issues you might face when you start writing your own services using the framework.

The goal is not just to learn about the details of Web API.  The examples and assignments are designed to create a web service mindset and give you of ways of thinking about the construction, performance and deployment of your web services, especially in scenarios that have unique cross-platform integration requirements.

The Tech Stack

This course specifically uses the standard .NET Framework version of Web API, which usually runs under IIS on Windows servers.  If you are using .NET Core instead of .NET Framework, then while the concepts in this course are similar, the specific syntax for .NET Core Web API is very different.  This probably isn't the course for you if you are specifically targeting .NET Core.

For testing, we'll be using Fiddler, PostMan and Swagger (via the Swashbuckle library).


Real World Focus

My "Real World" courses specifically target working developers solving actual problems in typical business programming scenarios.  They are uniquely designed to cover areas you don't find in other courses on similar topics, from the specific viewpoint of developers who need to translate theory into practical application to solve the kinds of problems the "overview" courses don't help with.  I assume you already know how to program and have built working commercial systems-- you won't find any "Hello, world" here!

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

Integrate your service with real-world clients that use custom authentication tokens and HTTP headers.

Improve your web services with standards-based error handling.

Secure your web service with custom input validation, authentication and authorization.

Document and test your service with integration test tools like PostMan, Fiddler and Swagger/OpenAPI.

Yêu cầu

  • Be familiar with C# .NET and Microsoft Visual Studio at an intermediate or advanced level
  • Have a basic understanding of HTTP protocol (verbs, status codes) and the REST web service model
  • We'll be covering intermediate to advanced topics facing professional developers in the real world, so this course is NOT for you if you are a beginner developer, or have no knowledge about HTTP and REST services and why we use them.

Nội dung khoá học

10 sections

Introduction

5 lectures
Introduction
08:51
Creating a Basic Web API Project in Visual Studio
08:15
Alternative Starting Point: Azure API App Template
05:51
Summary
01:53
Quiz for Section 1
2 questions

Integration Testing - Calling Your Service over HTTP

6 lectures
Section 2 Introduction
05:21
Using Fiddler With a Browser
05:45
Using PostMan
04:07
Using Swagger via Swashbuckle
05:04
Section 2 Summary
02:08
Quiz for Section 2
2 questions

Routing Requests to Controllers and Actions

13 lectures
Section 3 Introduction
01:56
Template Style Routing
07:10
Declarative Attribute Style Routing
09:03
Constraining Route Parameters
07:43
Custom Route Constraints
08:35
Custom Parameter Route Constraints
4 questions
AcceptVerbs, Multiple Routes, Route Names and Self-Referencing URLs
09:51
Optional Route Parameters and Default Values
04:38
Route Precedence
05:00
Parameter Binding
09:17
Wildcard Parameters
05:56
Section 3 Summary
02:23
Quiz for Section 3
6 questions

The Web API Pipeline: Delegating Handlers

11 lectures
Section 4 Introduction
10:06
An Opinionated View of Web API
06:56
Introduction to DelegatingHandlers
03:01
Simple Example of a DelegatingHandler
06:51
Example of an API Key DelegatingHandler
13:18
Example of a DelegatingHandler Failure
06:17
Exercise: Implement X-HTTP-Method-Override Functionality
2 questions
Processing Load Balancer Headers with a DelegatingHandler
15:57
Determine the Client IP Address From Behind a Load Balancer
2 questions
Section 4 Summary
02:13
Quiz for Section 4
5 questions

The Web API Pipeline: Action Filters and Return Types

11 lectures
Introduction
03:15
Overview of Action Filters
02:54
Simple Example of an Action Filter
11:09
Example of a Client-side Caching Action Filter
10:05
Overview of Action Method Return Types
07:23
Return Types Part 1: The Traditional Model
13:06
Return Types Part 2: The IHttpActionResult Model
15:43
Part 1: Example of Model Validation in an Action Filter
07:50
Part 2: Example of Model Validation in an Action Filter
07:46
Section 5 Summary
02:23
Quiz for Section 5
5 questions

Authentication Filters

12 lectures
Introduction
03:25
Part 1: Introduction to Authentication Filters
09:34
Part 2: Introduction to Authentication Filters
07:17
Part 1: Creating a Basic Authentication Filter from the Template
08:00
Part 2: Creating a Basic Authentication Filter from the Template
07:40
Part 1: Creating a Custom JSON Web Token (JWT) Authentication Filter
07:11
Part 2: Creating a Custom JSON Web Token (JWT) Authentication Filter
08:38
Part 3: Creating a Custom JSON Web Token (JWT) Authentication Filter
06:09
Implement an API Key Authentication Filter
2 questions
Overriding the Authentication Filter List
03:16
Section 6 Summary
02:22
Quiz for Section 6
3 questions

Authorization Filters

8 lectures
Introduction
01:38
Overview of Authorization Filters
03:06
The Authorize and AllowAnonymous Attributes
08:26
Example of a RequireHttps Authorization Filter
05:35
Example of a RequireClaims Authorization Filter
09:59
Implement an API Key Authorization Filter
1 question
Section 7 Summary
01:26
Quiz for Section 7
3 questions

Exceptions and Error Handling

11 lectures
Introduction
09:07
The Global.asax.cs Application_Error() Handler of Last Resort
08:11
Exception Filters
07:14
Global Exception Handlers
09:02
Global Exception Loggers
05:50
Introduction to RFC 7807 Problem Responses
02:59
Part 1: RFC 7807 Library for Web Api
10:04
Part 2: RFC 7807 Library for Web Api
08:32
Part 3: RFC 7807 Library for Web Api - Examples
13:14
Section 8 Summary
01:53
Quiz for Section 8
4 questions

Other Topics

4 lectures
Introduction
01:10
Swashbuckle (Swagger) Behaviors
09:40
Enabling CORS in Web API Services
01:25
Versioning Your API
01:16

Course Summary

2 lectures
Summary And Where To Go Next
03:43
Bonus Lecture: Other Courses
01:09

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