Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not sure if your “Dear god” is negatively targeted at my comment - I’ll assume it’s a general show of exasperation.

How likely is it every API will adhere to that though?



Yeah, just exasperation. For the longest time, most APIs would return json if you asked for json, or xml if you requested xml. Many older api's still do content negotiation, many gave up because 'xml bad'.


Yeah, I remember a lot of apis that were something like `resource/instance.json` or `resource/instance.xml` and they'd give you `instance` in whatever the requested format was




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: