Introducing the Cloudy Skies API
Our fictitious sample organization, Cloudy Skies, has a pre-existing set of web services in the form of a public REST API. This API intends to allow interested organizations to pull information about Cloudy Skies flights through the API. However, a steady amount of support tickets has proven that organizations are having a hard time adopting the API and using it in approved ways.
In response, Cloudy Skies has built a .NET library to help others more easily use the API.
Early testing of this library is promising, but some developers are still encountering confusing errors that ultimately appear to be related to the data they’re passing the library.
The development team decided that validating parameters to public methods would help improve the adoption of their library by finding issues sooner. We’ll explore this change in the next section.