2 ms·
> But features like URL discovery: I never understood why someone would do that. The custom media types are the key to this. Hypermedia API is like browsing a
by pornel 6y ago
> But features like URL discovery: I never understood why someone would do that.
The custom media types are the key to this. Hypermedia API is like browsing a HTML website, but instead of HTML you use a custom markup language that drives your application's native views (or you can interpret it as sending commands to perform or options what the app can do next).
So it's not a method of discovery how to use a networked database or invoke remote function calls, but a server-driven UI. That makes it extensible without client-side changes, because you can link more endpoints the same way you can add more pages to a website.
- bmn__ 6y ago> instead of HTML you use a custom markup language That rarely happens in practice. The vast majority of developers put HTML, XML and JSON+(link extensions) to use as hypertext/hypermedia substrate. These are not custom languages, but applications of standard languages.