Good Web APIs are just Web Sites
Both that presentation and an RDF Shopping example use content negotiation to serve different content types to clients. My previous signposts entry used a pretend HTML microformat. Different strategies for transferring understandable content from server to client.
The question I'm still asking myself is which of these two choices is better and why?:
- Separate and negotiated media types
- Single extensible media type
Candidates for extensible media types are HTML microformats and RDF (and Topic Maps and DITA and SGML Architectures).
The HTML Web has flourished (in part) because of Postel's Law:
"Be liberal in what you accept, and conservative in what you send."Is that enough to encourage using fewer, but extensible, media types over individual crafted media types?