4 ms·
> but "good" would be to use an actual standard mimetype instead. That only works if there is a standard mimetype correctly mapping to the needs of the platfor
by masklinn 15y ago
> but "good" would be to use an actual standard mimetype instead.
That only works if there is a standard mimetype correctly mapping to the needs of the platform. If you're writing a calendaring application you have one, but that's about it.
> The problem with using mimetypes tied to the service is that it undermines the concept of Uniform Interface, by forcing developers to write clients specifically for that service.
Uh... developers have to write clients specifically for that service unless there is a standard content type which the service can provide. Which happens almost never.
> Imagine if instead of standardizing on (X)HTML, CSS, JS and a couple of image formats, each website used their own format.
Does not follow. APIs and websites have a big difference: one is browsed by a human being, the other one is not.
- icebraining 15y ago>That only works if there is a standard mimetype correctly mapping to the needs of the platform. If you're writing a calendaring application you have one, but that's about it. Standards don't fall from the sky, someone has to write and publish them. An "Issue" format is pretty much usable by any bug tracking software out there - Bugzilla, Redmine, etc. Github could perfectly have talked to them and define some common ground. Is it their obligation? Of course not. But that would've been a "good" solution. This is just OK. >Uh... developers have to write clients specifically for that service unless there is a standard content type which the service can provide. Which happens almost never. See above. Usually it doesn't happen because providers don't make the effort.
- extension 15y agoCreating a generic standard is A LOT more work than creating an API for a specific application. Orders of magnitude more work.
- icebraining 15y agoJust to be clear: I'm not criticizing Github for using a custom format. It's obviously the what makes more sense for their business. But in terms of a REST API, the proper solution would be to use a standard format.