Snip
|
The Atom API assumes only that the end user knows her ho...
|
---|
Categories |
|
---|
For Snip |
loading snip actions ... |
---|---|
For Page |
loading url actions ... |
The Atom API assumes only that the end user knows her home page. It
relies on a link
tag in the head
element of the
home page that points to an Atom introspection file. The introspection
file, in turn, lists the supported functions and extensions, as well as
the URI associated with each function.
Here is an example of a home page with Atom API auto-discovery:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>My Weblog</title>
<link rel="service.edit" type="application/x.atom+xml"
href="/myblog/atom.cgi/introspection" title="Atom API" />
</head>
<body>
...
</body>
</html>
HTML |
<p>The Atom API assumes only that the end user knows her home page. It relies on a <code>link</code> tag in the <code>head</code> element of the home page that points to an Atom introspection file. The introspection file, in turn, lists the supported functions and extensions, as well as the URI associated with each function.</p> <p>Here is an example of a home page with Atom API auto-discovery:</p> <pre><code> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>My Weblog</title> <strong><link rel="service.edit" type="application/x.atom+xml" href="/myblog/atom.cgi/introspection" title="Atom API" /></strong> </head> <body> ... </body> </html></code></pre> |
---|