2 ms·
The idea is that a computer could navigate your API as easily as a human could. You're encoding the interface of the state transitions into your responses. > o
by steveklabnik 16y ago
The idea is that a computer could navigate your API as easily as a human could. You're encoding the interface of the state transitions into your responses.
> one to look up which URI to use, and then another to make the actual request.
The idea is that they'd naturally flow. Think about it: if I'm going to comment on a blog post, I've already visited it, and the link is already there.
> gotta parse that XML for the <link>
You'd already be parsing the entire document anyway, this is essentially free.
Maybe try checking this out: how to GET a cup of coffee: http://www.infoq.com/articles/webber-rest-workflow http://www.infoq.com/articles/webber-rest-workflow