Generic Request Helpers

The repetition problem

PawWalk talks to more than a dozen endpoints: walkers, bookings, pets, stats, login… If you wrote each one longhand like your Lesson 1 exercise, APIClient would be hundreds of lines of near-identical code. Look at what two of them would be: