Creating a library to call a REST API

In this recipe, we will be looking at a .NET Standard 2.0 library that calls a REST API. RESTful APIs are services that allow you to access its functionality through HTTP. We will be using the System.Net.Http namespace inside the library to send a message to an API and get back the results.

Get .NET Standard 2.0 Cookbook 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.