2 ms·
The API (which, in a RESTful world, is just the media types) doesn't have to change, but the provider can. If you used standard media types, you could e.g. repl
by icebraining 14y ago
The API (which, in a RESTful world, is just the media types) doesn't have to change, but the provider can. If you used standard media types, you could e.g. replace the comments in some application with say, Disqus without having to touch a client (that you often don't even control).
HATEOAS seems useless because we're still building primitive APIs and reinvent media types (read: custom, non-documented JSON documents) for no good reason, while we recreate the same functionality over and over again while improving only at the edges.
Frankly, I think it's a damn miracle that smart people convinced us of the benefits of the web, because we regular developers seem unable to see anything five centimeters past our noses.
By the way, to show that you don't have to use XML, here's my favorite URI-supporting encoding type, Turtle: https://en.wikipedia.org/wiki/Turtle_(syntax)#Example https://en.wikipedia.org/wiki/Turtle_(syntax)#Example