3 ms·
The thing is, if one wants to follow REST-ful principles in web applications, one can just write JSON documents with links. The fix is not hard nor complicated
by icebraining 11y ago
The thing is, if one wants to follow REST-ful principles in web applications, one can just write JSON documents with links. The fix is not hard nor complicated - which, to me, shows that the problem is not that people really want to use REST but can't due to JSON, and must be something else.
In my opinion, people don't really want to use REST, either because they don't really understand it (as seen by the number of RPC APIs being described as "RESTful") or they just don't think it's the best solution for their problem.
That said, Intercooler.js can still be a very useful library, but I think it might be successful despite REST, not because of it.
- carsongross 11y agoI don't agree: the fix is hard, because not only do you have to pick one of the many at-war non-standard standards for your links in JSON, but then clients must figure out how to interpret the links. I think the empirical evidence of the last two decades overwhelmingly supports this conclusion. This is what HTML gives developers: they don't even realize they are satisfying the HATEOAS constraint because it is simply so natural.