What do you think?
Rate this book
424 pages, Paperback
First published January 1, 2013
Think of the World Wide Web (and of any other RESTful API) as a technology stack. URLs are on the bottom; they identify resources. The HTTP protocol sits on top of those resources, providing read access to their representations and write access to the underlying resource state. Hypermedia sits on top of HTTP, describing the protocol semantics of one particular website or API.
The bottom layer answers the question “Where is the resource?” The middle layer an‐ swers the question “How do I communicate with the resource?” The top layer answers the question “What next?”
So far, this book has focused on the top layer of the stack—“What next?” That’s because the top layer is the tricky one. Most of today’s APIs use URLs and HTTP correctly, but don’t even bother with hypermedia.