Join our book community on Discord
https://packt.link/EarlyAccess/
This chapter is about learning how to build web services aka HTTP (Hypertext Transfer Protocol) or Representational State Transfer (REST) services using ASP.NET Core Web API with controllers. You will then learn how to consume web services using HTTP clients, which could be any other type of .NET app, including a website, mobile, or desktop app.
While some developers use the terms HTTP and REST interchangeably when describing web services, it is worth highlighting that they are not directly synonymous. An HTTP service is any service that uses the HTTP protocol to communicate, regardless of architectural style. HTTP services therefore include SOAP services, RPC (Remote Procedure Call) over HTTP, or GraphQL APIs.
REST is an architectural style that typically uses HTTP as the underlying protocol but is more specific in how the interactions and structures are designed. So REST is a type of HTTP service, but not all HTTP...