Microsoft
Azure
General
Develop an ASP.NET Core Web App that Consumes an API (AZ-2002)


 Learn how to gather information from API documentation and perform HTTP operations in an ASP.NET Core Razor Pages web app. 

About the course


 Skills Covered 

  • Describe the two model types of APIs in ASP.NET Core 
  • Create Swagger documentation for an API by using Swashbuckle 
  • Interact with an API by using the Swagger interface 
  • Implement HTTP clients in .NET Core 
  • Use HTTP clients to perform safe and unsafe operations 
  • Add code to support HTTP operations in an ASP.NET Core Razor Pages app 
  • Combine HTML and C# to define dynamic page rendering logic 
  • Render API responses in Razor Pages 
  • Create pages that perform HTTP operations 


 Prerequisites 

Experience writing C# at an intermediate level 

Ability to write HTML at an intermediate level 

Knowledge of RESTful services and HTTP action verbs 

Course content

Interact with an ASP.NET Core minimal API

  • Explore ASP.NET Core APIs
  • Document an API by using Swashbuckle

Implement HTTP operations in ASP.NET Razor Pages

  • Explore HTTP clients in .NET Core
  • Perform HTTP operations in Razor Pages

Render API responses in ASP.NET Core Razor Pages

  • Explore Razor Pages project structure
  • Discover Razor Pages syntax