Abstract the data from the API

added by Michal Dymel
8/9/2016 11:59:38 AM

1 Kicks, 354 Views

Some time ago, I was faced with a problem. I had to import a lot of data from a third party API. It sounds simple and it was, but the API was using a completely flat structure for the data. It was also using a naming convention, which was completely different from the one in my code. This post explains how to hide bad API data structures behind an abstraction.