Hacker News new | ask | show | jobs
by masklinn 2935 days ago
> No, but that's not what rest means?

It kinda is, if there's no interaction back and forth the entire thing is completely trivial.

> It did accurately figure out that a file was CSS and to pain the DOM, JS is a program and to run it, to automatically display any images of the correct type and not explode when it sees a image of a type it doesn't know about,

Little of which is of any use to two automated systems interacting without human intervention, and the bits which are of use are not hard.

> it showed me actions I could click.

That's the useful bit when working with an API, knowing that an action can be performed and being able to perform that action.

And that's where REST falls down, because at the end of the day it's not very helpful or convenient at programmatically exposing and allowing these interactions for automated systems.

Again, very good when there's an intelligent and flexible meat bag at one end of the interaction, but that's not what APIs are for in colloquial use.