Open jfitzgeraldSF opened 9 years ago
This kind of request comes from confusion on what an API actually is, i.m.o. An API would provide the data necessary to construct the CSV export, which would be constructed outside of the API, perhaps in a middle tier ASP site, for example. This is my opinion on the matter.
The decision was "no content negotiation". "Binary views" where discussed.
Doug's objections are * CSV implies codepages and not UTF-8 by default. Localization of data would not spotty. * CSV is a weak format. New lines in data are difficult for example * Exposing CSV in the API is a poor separation of concern for importing * Summed up by https://xkcd.com/1481/
Personally I take money and would expose CSV as a "binary view" of a resource.
In our c# code base Doug argues that CSV is better as a "aspx". Personally, I'm not as convinced but have trouble dismissing Doug's thoughts.
Agree with the money point. Our customers are asking for it in the new product, and they be the ones with the dough.
Got this request from today from one of the feature teams:
I think we touched on this briefly on Friday, but I don't remember us ever coming to a resolution.