Re:Why and How You Should Write REST-Centric Applications
by extension on Wednesday May 18, 2011 @10:34AM
(#2560257)
Most any document format can contain links, but that doesn't make it hypermedia. You can't make a client that knows what to do with any JSON or XML document.
[ Parent
| on HN ]
Re:Why and How You Should Write REST-Centric Applications
by leftnode on Wednesday May 18, 2011 @11:41AM
(#2560496)
Wait, why not? The JSON could return in a standard format that the client knows where to look for links to other documents.
Re:Why and How You Should Write REST-Centric Applications
by extension on Wednesday May 18, 2011 @11:54AM
(#2560549)
Sure, you can design a standard format on top of JSON, but that is rarely done. The whole appeal of it is for passing around ad-hoc data structures.
There are many hypermedia formats built on XML, but when it's just used as a data container for an API, it's not hypermedia.