Chapter 10. The Hypermedia Zoo
There are a lot of hypermedia document formats in active use. Some are designed for very specialized purposesâthe people who use them may not even think of them as hypermedia formats. Other hypermedia formats are in such common usage that people donât really think about them at all. In this chapter, Iâll take you on an educational tour of a âzooâ containing the most popular and most interesting hypermedia formats.
I wonât be going into a lot of technical detail. Any one of these formats probably isnât the one you want to use, and Iâve covered many of them earlier in the book. Many of the formats are still under active development, and their details might change. If youâre interested in one of the zooâs specimens, the next step is to read its formal specification.
My goal is to give you a sense of the many forms hypermedia can take, and to show how many times weâve tackled the basic problems of representing it. The hypermedia zoo is so full that you probably donât need to define a brand new media type for your API. You should be able to pick an existing media type and write a profile for it.
Iâve organized the hypermedia zoo along the lines of my introduction to hypermedia. Thereâs a section for domain-specific formats (a la Chapter 5), a section for formats whose primary purpose is to implement the collection pattern (a la Chapter 6), and a section for general hypermedia formats (a la Chapter 7).
For formats like Collection+JSON, ...
Get RESTful Web APIs now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.