RESTful Web API in .NET Core - The Advanced Guide (.NET 10)

Learn advance concepts in RESTful web API (C#) with Authentication (.NET 10 API) as we consume them | .NET 10 API

  • 0.0 (0 Reviews)
  • 0 Students
  • 140 Lessons
  • Bhrugen Patel - (DotNetMastery | Microsoft MVP | 300k+ Students)

Course Overview

Take your .NET API skills to the next level in this intermediate to advanced course that builds directly on Part 1. You'll transform your existing API application into a robust, production-ready solution by implementing advanced authentication with .NET Identity, refresh tokens, filtering and pagination, image handling, and deployment strategies used by professional development teams.

Why This Course Stands Out:

This is the only course on Udemy that takes you through the complete journey of building advanced API features while maintaining a real, evolving project from start to finish. Unlike courses that teach concepts in isolation, you'll see how everything fits together in a production-quality application.

This course is fully updated for .NET 10, utilizing the latest features and best practices. You'll work with modern tooling including Scalar documentation (the next-generation alternative to Swagger UI), giving you hands-on experience with the cutting-edge technologies that companies are adopting right now.

What Makes This Course Different:

Most API courses stop at the basics—CRUD operations and simple authentication. This course goes further, tackling the real challenges you'll face in professional development: implementing enterprise-grade authentication with .NET Identity, handling secure token refresh flows, managing image uploads at scale, implementing filtering and pagination for large datasets, writing clean maintainable code, and deploying to production environments. These are the skills that separate junior developers from intermediate and senior engineers.

What You'll Build:

Starting with the API you created in Part 1, you'll enhance it with real-world features that employers expect. You'll upgrade your authentication system to use .NET Identity for robust user management, implement refresh tokens for secure long-lived sessions, handle image uploads with proper validation and storage, and add filtering, sorting, and pagination to handle large datasets efficiently.

Topics Covered:

Implement filtering, sorting, and pagination in your API to handle large datasets efficiently. Learn how to build flexible query parameters that allow clients to filter results, sort by different fields, and paginate through data—essential features for any real-world API dealing with substantial amounts of information.

Upgrade your authentication system with .NET Identity, the robust, enterprise-grade identity management framework. You'll learn how to manage users, roles, and claims properly, implement secure password hashing, and handle user registration and login flows following security best practices.

Dive deep into refresh token fundamentals, understanding how they work alongside access tokens to provide secure, long-lived authentication. You'll implement refresh token endpoints in your API and consume them properly in your MVC web application, following OAuth 2.0 best practices. This ensures users stay authenticated without compromising security.

Master image and file upload handling in both your API and MVC application. You'll learn how to accept file uploads, validate file types and sizes, store images efficiently (both locally and in cloud storage options), serve uploaded content, and handle all the edge cases that come with file operations in production environments.

Write cleaner, more maintainable code by building a dynamic base service that eliminates repetition and follows the DRY principle. You'll create reusable components that make your codebase more maintainable and easier to extend.

Implement robust exception handling using both filters and middleware, understanding when to use each approach for different scenarios. You'll learn how to catch errors gracefully, return appropriate HTTP status codes, log exceptions properly, and provide meaningful error messages to API consumers.

Consume all these advanced features in your ASP.NET Core MVC web application. You'll implement image upload forms, handle refresh token flows seamlessly, add filtering and pagination controls to your views, and manage the complete user authentication experience from registration to secure session management.

Finally, deploy your complete solution to Microsoft Azure, learning how to configure both your API and MVC application in a cloud environment with proper security settings, connection strings, file storage configuration, and scalability options.

What You'll Build:

By the end of this course, you'll have transformed your API into a production-ready application featuring:

  • Advanced authentication with .NET Identity

  • Secure refresh token implementation

  • Image and file upload capabilities with validation

  • Filtering, sorting, and pagination for efficient data handling

  • Clean, maintainable code using dynamic base services

  • Robust exception handling via filters and middleware

  • Complete MVC application consuming all advanced features

  • Everything deployed and running on Azure

Prerequisites:

You must complete Part 1 of this course before enrolling. This course continues directly from where Part 1 ends, using the same project as our foundation for exploring these advanced concepts.

Who This Course Is For:

This course is ideal for .NET developers who have completed Part 1 and want to build APIs that are ready for production environments. You'll gain hands-on experience with the features and patterns used in enterprise applications today.

Why Invest Your Time Here:

In today's competitive job market, knowing the basics isn't enough. Employers want developers who can implement proper identity management, handle secure authentication flows with refresh tokens, manage file operations, optimize API performance with filtering and pagination, and deploy to the cloud. This course gives you exactly those skills—taught in the context of a continuous, real-world project rather than disconnected examples.

By the end of this course, you'll have the confidence to build, secure, optimize, and deploy sophisticated ASP.NET Core Web APIs that meet industry standards and handle real-world requirements. You'll have a portfolio project that showcases advanced capabilities, and you'll be working with the latest .NET 10 features that companies are actively seeking.

Good luck, and I'm excited to see you in the course!

See more

FAQ

FAQ area empty

Course curriculum

18 chương 140 bài học 8 giờ 8 phút 7 bài học thử miễn phí
Chương 1 Introduction
Chương 2 Filter Sorting and Pagination
Chương 3 Identity Tables
Chương 4 Image for Villa
  • Add Image to DTO 2:57
  • Image Service Interface 3:10
  • Upload Image Method 7:14
  • Delete Image Method 2:04
  • Registration in Program Class File 1:06
  • Accept Image in FromForm 2:50
  • Consume File Service in Villa Controller 4:57
  • Upload Image in API 5:44
Chương 5 Uploading Image from Web Project
  • Converting Object to Form Data 1:44
  • Add Extension for Multipart Form Data 7:23
  • Consume Extension in Villa Service 1:40
  • Image Uploader in Create Villa 2:50
  • Pass Image from the Web Project 4:14
  • View Image on Index 4:43
  • View Image on Edit 2:57
  • Assignment - Image in Edit 0:28
  • Assignment Solution - Image in Edit 3:20
  • Delete Villa and Image 1:04
Chương 6 Tokens
  • Better names 3:32
  • Token Provider Interface 2:29
  • Token Provider Service 4:35
  • Consuming Token Provider 4:25
  • Small Bug Fix 1:23
  • Consumable Token Provider in Base Service 2:58
  • Conditionally Pass Bearer Token 2:24
Chương 7 Refresh Token
  • Create Refresh Token Table 1:58
  • Add Refresh Token to Token DTO 1:14
  • Add Token Service in API 3:23
  • Refresh Token Endpoints 2:09
  • Generate Refresh Token 2:34
  • More endpoints for Refresh Token 3:13
  • Refresh Token Created 3:46
  • Pass Token ID to the Access Token 4:13
  • Steps to Generate New Access Token 3:37
  • Validating Refresh Token 4:42
  • Implement Refreshing Access Token 4:04
  • Refresh Token Endpoint 3:04
  • Refresh Token Demo 5:53
  • Invalidating Token Family 5:42
Chương 8 Consuming Refresh Token
  • Add Refresh Token in Token Provider 3:23
  • Call Refresh Token Endpoint 3:11
  • Calling Refresh Token Endpoint Part 1 3:06
  • Calling Refresh Token Endpoint Part 2 6:17
  • Updating Base API Call 3:03
  • Refresh Token in Action 2:59
  • Signout in Action 3:31
  • Avoid Concurrent Refresh Token Requests 6:23
Chương 9 Deployment
  • Deployment
Chương 10 OLD COURSE (.NET 7) - Introduction
  • Introduction 2:32
  • Do not Skip (Prerequisites) 1:09
  • Initial code and getting started 1:13
  • Create database 3:26
  • Course Feedback
Chương 11 OLD COURSE (.NET 7) Initial Setup
  • Configure V2 for all Endpoints 2:55
  • Make API Version Dynamic in Web Project 2:26
  • Better NavBar 3:17
  • Load Placehold Image 1:56
  • Show Roles in Dropdown on Register 2:32
  • Assign Role while Registering 4:56
  • Modify Navbar based on Role 2:43
Chương 12 OLD COURSE (.NET 7) - File Upload
  • Where to place Uploaded Image 2:06
  • Modify DTO's for Villa 3:26
  • Content Type for FormFile 3:40
  • Display Image on Villa Update 1:57
  • How to handle FormFile in BaseService 4:22
  • Create Villa with Image 6:45
  • Demo - Create Villa with Image 2:48
  • Update and Delete Villa 5:39
  • Create Villa in Web Project and Assignment 2:56
  • Assignment - Update and Delete Villa from Web Project 2:23
Chương 13 OLD COURSE (.NET 7) - Clean Code
  • Rename JWTToken 1:04
  • Rename LoginResponseDTO 3:12
  • Create ITokenProvider 1:34
  • Implement Token Provider 2:31
  • Rename Token in TokenDTO 1:18
  • Consume Token Provider in AuthController 1:26
  • Remove Token from API Calls Using Session 3:43
  • Pass Bearer Token on HttpClient 2:36
  • Add Base Service to DI 3:28
  • Assignment Solution - Bug Update 1:13
  • Add Bearer Flag 2:25
  • Separating out Access Token Generator call 2:06
Chương 14 OLD COURSE (.NET 7) - Refresh Token
  • How Refresh Tokens work 5:52
  • Create Table to Refresh Token 2:31
  • User Controller Endpoint 3:25
  • Read Access Token 3:48
  • Create Refresh Token 3:53
  • Add Refresh Token to Token Provider 2:52
  • Steps to Generate Refresh Token 2:39
  • Create New Access Token from Refresh Token 6:37
  • Testing Tokens 8:19
  • JWT Chain Validation 6:24
  • Testing Bad Tokens 1:12
  • Execute Update NET 7 Feature 3:44
Chương 15 OLD COURSE (.NET 7) - Web Project Changes
  • Better Design for Base Service 2:52
  • Modify Base Service for Refresh Tokens 4:54
  • Invoke Refresh Endpoint from Web Project 6:39
  • Get New Refresh Token and Sign in User 4:46
  • Debugging Session with Tokens Part 1 5:58
  • Debugging Session with Tokens Part 2 4:53
  • Modify Base Service to Handle Error Codes 6:32
  • Custom Auth Exception 5:16
  • Separating out Message Builder 3:10
  • Clean Design 5:29
  • Revoke Token on Logout 5:37
Chương 16 OLD COURSE (.NET 7) - Advance Concepts
  • Audience and Issuer with Tokens 5:52
  • Move Swagger Gen Configuration to Separate File 2:46
  • Make Swagger Configuration More Dynamic 2:14
  • Apply Pending Migrations 2:07
Chương 17 OLD COURSE (.NET 7) - Azure Deployment
  • Create Azure SQL Server and Database 6:13
  • Publish API 5:56
  • Deploy Web Application 3:08
Chương 18 OLD COURSE (.NET 7) - Error Handling
  • Exception Endpoint 1:41
  • Custom Error Handler Endpoint 5:23
  • Custom Problem Implementation 4:42
  • Filters in Pipeline 6:25
  • Status Code Links 2:16
  • Custom Error Handler in Program Class File 4:01
  • Clean Code & Extensions 3:48
  • Customize Handler by Exception 1:12
  • Custom Middleware for Error Handling 5:02

Requirment

  • Part 1 of the course - RESTful Web API in .NET Core - The Beginners Guide (.NET 10)

Outcomes

  • Handle file/image uploads in API and Web Project

  • Refresh token fundamentals

  • Consuming refresh token endpoint in web application

  • Clean Coding

  • Dynamic Base Service

  • Exception Handling via Filters and Middleware

  • Azure Deployment

Instructor

...
Bhrugen Patel - (DotNetMastery | Microsoft MVP | 300k+ Students)

0.0

  • ... 0 Student
  • ... 4 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all