Search⌘ K
AI Features

Web Services Using ASP.NET Core Web API

Explore how to build and consume web services using ASP.NET Core Web API. Understand REST principles, HTTP request types like GET, POST, PUT, PATCH, and DELETE, and how web APIs exchange JSON data. This lesson helps you grasp the fundamentals needed to develop efficient and standardized web services.

Before we build a modern web service, we need to cover some background to set the context for this chapter.

Understanding web service acronyms

Although HTTP was originally designed to request and respond with HTML and other resources for humans to look at, it is also good for building services. Roy Fielding stated in his doctoral dissertation, describing the Representational State Transfer (REST) architectural style, that the HTTP standard would be good for building services because it defines the following:

  • URIs to uniquely identify resources, like: ...

C#
https://localhost:5001/api/products/23
...