This work is licensed under a CC |
For many information sources on the Web, it is useful to have some standardized way of subscribing to information updates. Syndication formats such as RSS and Atom can be used by these information sources to publish a feed of updated information items. While RSS and Atom are read-only formats, the Atom Publishing Protocol (AtomPub) build on top of Atom and provides a protocol for submitting new items to feeds.
The Myth of RSS Compatibilityprovides a good overview
why standards are a good thing
<description>This is a <em>very important</em> blog post …
<description>This is a <em>very important</em> blog post …
<description>This is a blog post about <em> in RSS feeds …
<description>This is a blog post about <em> in RSS feeds …
<description>This is a blog post about &lt;em> in RSS feeds …
new RSS
xml:lang
and xml:base
smart waysof what the RSS author really wanted
text
)text
, no child elements are allowed (plain text content)html
then RSS's method of escaped markup is usedxhtml
then there must be an div containing XHTML markuptext/
then no child elements are allowed<content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> One <strong>bold</strong> foot forward </div> </content>
<content>The "atom:content" element either contains or links to the content of the entry. The content of atom:content is Language-Sensitive.</content>
<content type="html">The <code>atom:content</code> element either contains or links to the content of the entry. The content of <code>atom:content</code> is <a href="http://www.ietf.org/rfc/rfc3066.txt">Language-Sensitive</a>.</content>
<content type="image/png"> iVBORw0KGgoA … TAAAAAElFTkSuQmCC </content>
<content src="image.png" type="image/png"/>
XMLHttpRequest
gets into the way<link rel="alternate" type="application/rdf+xml" title="…" href="…" /> <link rel="alternate" type="application/rss+xml" title="…" href="…" />
<link rel="alternate" type="application/atom+xml" title="…" href="…" />
CUDout of the
CRUDset of operations
Resource | HTTP Method | Representation | Description |
---|---|---|---|
Introspection | GET | Atom Service Document | Enumerates a set of collections and lists their URIs and other information about the collections |
Collection | GET | Atom Feed | A list of member of the collection (this may be a subset of all entries in the collection) |
Collection | POST | Atom Entry | Create a new entry in the collection |
Member | GET | Atom Entry | Get the Atom Entry |
Member | PUT | Atom Entry | Update the Atom Entry |
Member | DELETE | n/a | Delete the Atom Entry from the collection |
Service Documents represent server-defined groups of Collections, and are used to initialize the process of creating and editing resources.
realtop-level construct of AtomPub is the workspace
entry
as special value)fixed
)