3 ms·
The best example of that is a website. It provides links to other documents. It just happens to be that the output is usually HTML, but there's no reason why JS
by leftnode 15y ago
The best example of that is a website. It provides links to other documents. It just happens to be that the output is usually HTML, but there's no reason why JSON or XML can't contain links to other hypermedia as well.
- extension 15y agoMost 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.
- leftnode 15y agoWait, why not? The JSON could return in a standard format that the client knows where to look for links to other documents.
- extension 15y agoSure, 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.
- leftnode 15y agoGotcha, that makes sense. Thanks.