Re:The Future is Hypermedia APIs
by steveklabnik on Thursday December 20, 2012 @08:22PM
(#4951020)
We already have a 'universal API client' called the browser. Therefore, implementing a NEW one isn't very interesting.
[ Parent
| on HN ]
Sorry, I don't get what you're responding to. Browsers don't understand hypermedia APIs (or even HAL)--they only grok HTML.
Re:The Future is Hypermedia APIs
by steveklabnik on Friday December 21, 2012 @09:25AM
(#4952745)
> Browsers don't understand hypermedia APIs (or even HAL)--they only grok HTML.
HTML is a hypermedia media type. A server spits it out, the client (a browser) consumes it.
A browser is a generic hypermedia API client, for services that expose HTML.
Re:The Future is Hypermedia APIs
by AffableSpatula on Friday December 21, 2012 @09:38AM
(#4952785)
please can we not stretch the definition of hypermedia "API" to include HTML. HTML is a hypermedia type, but it's primarily for representing information for human consumption, so it's not an API in the sense most people understand.. why confuse things?
Re:The Future is Hypermedia APIs
by steveklabnik on Friday December 21, 2012 @10:57AM
(#4953126)
It's not stretching the definition: HTML and the web are where RESTful principles are defined from. They're the OG hypermedia API.
> it's not an API in the sense most people understand
Neither are hypermedia APIs in general.
Re:The Future is Hypermedia APIs
by AffableSpatula on Sunday December 23, 2012 @06:15AM
(#4959208)
I know where REST came from, my point is that - as far as normal people are concerned - HTML web apps are.. apps.. not APIs.