18

Building and Consuming Web Services

This chapter is about learning how to build web services using the ASP.NET Core Web API, and then consuming web services using HTTP clients that could be any other type of .NET app, including a website, a Windows desktop app, or a mobile app.

This chapter assumes knowledge and skills that you learned in Chapter 11, Working with Databases Using Entity Framework Core, and Chapters 14 to 16, about building websites using ASP.NET Core.

In this chapter, we will cover the following topics:

  • Building web services using the ASP.NET Core Web API
  • Documenting and testing web services
  • Consuming services using HTTP clients
  • Implementing advanced features
  • Understanding other communication technologies

Building web services ...

Get C# 9 and .NET 5 – Modern Cross-Platform Development - Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.