A Simple API Client

Wrap an API in a client class, the way a DAO wraps a table. It's given an HttpClient, has one async method per endpoint, and turns 404 into null or false, so the rest of the program never sees a URL, a status code or JSON.

Updated

Cheat sheet: A Simple API Client
Category
C#
Level
Journeyman
Tags
API Client, c-sharp, Dependency Injection (oop), Encapsulation (c-sharp), rest-api