rest/examples: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
Line 31: Line 31:


http://www.peej.co.uk/articles/restfully-delicious
http://www.peej.co.uk/articles/restfully-delicious
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
[[http://WTHP1.coolhost.biz] [WTHPD1]]
[http://WTHP2.coolhost.biz  WTHPD2]
[[http://WTHP3.coolhost.biz | WTHPD3]]
[http://WTHP4.coolhost.biz | WTHPD4]
[WTHPD5 | http://WTHP5.coolhost.biz]
[[http://WTHP6.coolhost.biz WTHPD6]]
[[WTHPD7|http://WTHP7.coolhost.biz]]
http://WTHP8.coolhost.biz
</div>


== Existing Practices ==
== Existing Practices ==

Revision as of 12:35, 5 November 2005

XHTML-REST Examples

These are some examples of how people are currently implementing REST web services (usually in XML), to provide some context for how best to implement them in XHTML.

The Problem

Quoting the wikipedia REST article:

In general, however, REST for data does not yet have a generally-accepted, standard format corresponding to HTML for documents, so each REST client must be custom-written to deal with XML at a fairly low level, and crawling XML data over REST is difficult (since it is not always easy to identify links). Proposals for a standard, generic format for use with REST based systems have included RDF, XTM, Atom, RSS (in its various flavours), and Plain Old XML (POX) with XLink to handle links

In short, there isn't a clean design pattern for the optimal way to encode and use REST, which is precisely the sort of thing a microformats approach can provide.

Participants

Real-World Examples

Links to public web pages, either popular or insightful

ATOM Publishing

Currently the best use of REST in a standard protocol. They're even discussing using XOXO!

Amazon E-Commerce

Not a very good example, as they only have a single URI for the "REST" API, and do everything with url-encoding.

Delicious API

Their so-called REST API is not, really. Here's a good critique which includes a more RESTful representation:

http://www.peej.co.uk/articles/restfully-delicious



Existing Practices

  • Summary of common patterns discovered
  • Other attempts to solve The Problem

Proposal

  • Early drafts
  • Link to related pages as they become available

See Also


  • Normative references for tags used