Ultimate ASP.NET Core Web API Development Guide

Video description

Microsoft .NET is the platform that drives the business technology of many of the top corporations in the United States and many other countries. It is the predominant technology used to drive enterprise-scale business technology. There is a high demand across the world for .NET developers in a variety of industries. This course also features web API development; the ability to design and maintain an API is an important toolset for the modern web developer.

This course will help you build a fully data-driven REST web API using cutting-edge technology. You will test and troubleshoot using Postman, create a database using Entity Framework Core, set up logging using SeriLog, learn about dependency injection, and API documentation using SwaggerUI.

You will understand the REST design principles and authentication using JWT, understand how to use data transfer objects and AutoMapper, manage packages with NuGet manager, and set up GitHub for source control. Learn about API caching, versioning and request rate throttling, and understand .NET 6 workflows, tools and application development.

Finally, you will deploy applications and databases on-premises with Internet Information Systems, Microsoft SQL Server, and Microsoft Azure.

By the end, you will switch around to Visual Studio for your coding exercise because of your hands-on expertise in examining logic and syntax errors throughout. This will put your newly learned skills to practical use and impress your boss and coworkers.

What You Will Learn

  • Build a data-driven API using Entity Framework and .NET 6
  • Test and troubleshoot using Postman
  • Create a database using Entity Framework Core
  • Set up API documentation using SwaggerUI
  • Understand .NET 6 workflows, tools, and application development
  • Deploy applications and database to Microsoft Azure

Audience

This course is designed for anyone who wants to learn REST API development. It is also beneficial for software engineers with a background in .NET development and programming.

This course benefits anyone who wants to learn application and hosting and database hosting on Azure.

To extract the best information from this course, you will need to have some knowledge of object-oriented programming, if not C#. Even if you do not have much exposure to the .NET development stack, this course is very beginner-friendly and chock-full of development tips.

About The Author

Trevoir Williams: Trevoir Williams is a software engineer and part-time lecturer. With a master’s degree in computer science, he has spent over a decade teaching web, software, and database development courses. He also has extensive industry experience in web application development, Azure Cloud system, and server administration.

He enjoys teaching IT and development courses and hopes to impart knowledge of the latest developments in industry standards and techniques to his students.

Table of contents

  1. Chapter 1 : Introduction to the Course
    1. Introduction
    2. Fundamental REST API Development Principles
  2. Chapter 2 : Environmental Configuration
    1. Install Visual Studio 2022 Community Edition
    2. Set Up GitHub Account
    3. Install and Explore Postman
  3. Chapter 3 : Project Setup and Configuration
    1. Create ASP.NET Core API Project with Visual Studio
    2. Create ASP.NET Core API Project with Visual Studio Code
    3. Explore ASP.NET Core API Project and Explore Swagger UI
    4. .NET 6 Versus Previous Versions
    5. CORS Configuration
    6. Configure SeriLog and Seq
    7. Review and Add Changes to GitHub
  4. Chapter 4 : Database Modelling and Entity Framework
    1. Section Overview
    2. Set Up Entity Framework in API Project
    3. Implement Data Classes and Perform Migrations
    4. Seed Data in Tables
    5. Review and Add Changes to GitHub
  5. Chapter 5 : Scaffolding API Functionality
    1. Section Overview
    2. Scaffolding Controllers and Actions
    3. Test and Understand POST Endpoint
    4. Test and Understand GET Endpoint
    5. Test and Understand PUT Endpoint
    6. Test and Understand DELETE Endpoint
    7. Review and Add to GitHub
  6. Chapter 6 : REST API Development Best Practices
    1. Section Overview
    2. Refactor POST Method with Data Transfer Object
    3. Introducing AutoMapper
    4. Refactor GET Methods
    5. Refactor PUT Method
    6. Implement Repository Pattern - Part 1
    7. Implement Repository Pattern - Part 2
    8. Refactor Controller to Use Repository
    9. Review and Add Changes to GitHub
  7. Chapter 7 : Creating Additional API Behaviors
    1. Section Review
    2. Scaffolding Controller and Actions
    3. Set Up Repository
    4. Set Up Data Transfer Objects and Refactor Controller
    5. Testing Changes
    6. Review and Add Changes to GitHub
  8. Chapter 8 : Securing Your Application
    1. Section Overview
    2. Set Up User Identity Core
    3. Add Default User Roles
    4. Set Up Auth Manager for Registration
    5. Set Up Registration Endpoint
    6. Set Up Login Endpoint
    7. Implement JWT Authentication - Part 1
    8. Implement JWT Authentication - Part 2
    9. Protecting Endpoints
    10. Implement Refresh Tokens
    11. Review and Add Changes to GitHub
  9. Chapter 9 : Value-Added Features
    1. Add Logging
    2. Global Error Handling
    3. Implementing API Versioning
    4. Implementing Caching
    5. Implement Paging
    6. Exploring OData
    7. Project Architectural Changes
    8. Fix Scaffolding and Migrations
    9. Repository Refactor
    10. Controller Refactor
    11. Add JWT Authentication to Swagger Doc
    12. Review and Add Changes to GitHub
  10. Chapter 10 : API Hosting and Deployment (IIS and Azure)
    1. Create Microsoft Azure Account
    2. Deploy Application and Database to Microsoft Azure
  11. Chapter 11 : Conclusion
    1. Conclusion

Product information

  • Title: Ultimate ASP.NET Core Web API Development Guide
  • Author(s): Trevoir Williams
  • Release date: September 2022
  • Publisher(s): Packt Publishing
  • ISBN: 9781801071956