Hacker News new | ask | show | jobs
by Kabacaru 4832 days ago
Because it's harder to set the content-type from browsers.

Perhaps if your API won't be that useful to browser based clients, perhaps that'd be the way to go.

1 comments

> Because it's harder to set the content-type from browsers.

That's only when using HTML forms or links, TFA does not even mention the option of multiple representation of resources so it's irrelevant: there's nothing hard to adding an Accept header to an XHR.

I assume he's talking about developer discovery/exploration.