PaperCut Blog

Adopt a “defensive posture” when using APIs

Today a lot of the world’s information is accessible using web APIs of various types.

A few times recently I have seen developers make assumptions about the information they would get back from a web API call.

This led to trouble when the server supplied data that was slightly different than expected.