ASP.NET Core 6 Web API Fundamentals
In this course, you'll learn how to build an API with ASP.NET Core that connects to a database via Entity Framework Core from scratch.
What you'll learn
ASP.NET Core 6 is a great platform for building APIs with. In this course, ASP.NET Core 6 Web API Fundamentals, you'll learn how to build an API with ASP.NET Core 6 that connects to a database via Entity Framework Core 6. First, you’ll learn how to get started with API building in ASP.NET Core. Next, you’ll discover how to get and manipulate data from services, use the built-in dependency injection system, and work with configuration files. Finally, you’ll learn how to connect to a database through Entity Framework Core and how to document your API. When you’re finished with this course, you will be able to build an API from scratch with ASP.NET Core 6.
Table of contents
- Coming Up 2m
- About the Course Structure 2m
- Course Prerequisites 0m
- Frameworks and Tooling 3m
- ASP.NET Core: The Big Picture 4m
- Demo: Creating and Running a New ASP.NET Core Project 10m
- Demo: Running an ASP.NET Core Project Using the CLI 4m
- Demo: Inspecting the ASP.NET Core API Project Code Structure 7m
- The ASP.NET Core Request Pipeline & Middleware 2m
- Demo: Configuring the ASP.NET Core Request Pipeline 2m
- Demo: Working with Different Environments 4m
- Summary 2m
- Coming Up 1m
- Clarifying the MVC Pattern 4m
- Demo: Registering API Services on the Container 2m
- Demo: Returning Resources (Part 1) 3m
- Learning About Routing 5m
- Demo: Returning Resources (Part 2) 4m
- Demo: Using Postman 5m
- Demo: Improving the Architecture with Model Classes 7m
- The Importance of Status Codes 3m
- Demo: Returning Correct Status Codes 5m
- Demo: Returning Child Resources 8m
- Formatters and Content Negotiation 3m
- Demo: Formatters and Content Negotiation 4m
- Demo: Getting a File 6m
- Summary 2m
- Coming Up 1m
- Passing Data to the API 3m
- Demo: Creating a Resource 9m
- Demo: Validating Input 7m
- A Validation Alternative 1m
- Demo: Updating a Resource 6m
- Partially Updating a Resource 3m
- Demo: Adding Support for JsonPatchDocument 2m
- Demo: Partially Updating a Resource 9m
- Deleting a Resource 2m
- Summary 2m
- Coming Up 1m
- Inversion of Control and Dependency Injection 4m
- Demo: Injecting and Using a Logger 9m
- Demo: Logging Exceptions 3m
- Demo: Replacing the Default Logger and Logging to a File 7m
- Demo: Implementing and Using a Custom Service 5m
- Demo: Registering a Service by Interface 8m
- Demo: Working with Configuration Files 5m
- Demo: Scoping Configuration to Environments 3m
- Summary 2m
- Coming Up 1m
- Introducing the Repository Pattern 2m
- Demo: Introducing the Repository Pattern (Part 1) 3m
- Writing Asynchronous Code 3m
- Demo: Introducing the Repository Pattern (Part 2) 7m
- Demo: Returning Data from the Repository When Requesting Resources (Part 1) 5m
- Demo: Using AutoMapper to Map Between Entities and DTOs 6m
- Demo: Returning Data from the Repository When Requesting Resources (Part 2) 10m
- Demo: Creating a Resource 7m
- Demo: Updating a Resource 3m
- Demo: Partially Updating a Resource 4m
- Demo: Deleting a Resource 4m
- Summary 1m
- Coming Up 1m
- A Few Words on Securing APIs 3m
- Implementing Token-based Security 3m
- Demo: Creating a Token 11m
- Demo: Requiring and Validating a Token 6m
- Demo: Using Information from the Token in Your Controller 4m
- Working with Authorization Policies 2m
- Demo: Using Information from the Token in an Authorization Policy 4m
- Improving Token-based Security with OAuth2 and OpenID Connect 2m
- Summary 2m
- Coming Up 1m
- Versioning with ASP.NET Core’s Built-in Approach 2m
- Demo: Supporting Versioning 4m
- Demo: Versioning Your API 5m
- Documenting Your API with OpenAPI / Swagger 4m
- Demo: Adding Swagger Support to a Project 3m
- Demo: Incorporating XML Comments on Actions 5m
- Demo: Describing Response Types and Status Codes 3m
- Documenting API Authentication 2m
- Demo: Adding Authentication Support to Your Documentation 5m
- What's Next? 2m
- Summary 2m