Atom entries for change events of resources (looking for appropriate link relation)
Jan Algermissen <[email protected]> Sun, 12 Jan 2014 22:08:19 +0100
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Suppose I have a set of resources for which changes can be tracked in an Atom feed. In such a feed every Atom entry would represent a single change event to a specific resource in the set.
For the sake of simplicity of the example below, suppose that the entry only notifies about the change as such. Of course, one could include a diff and/or the kind of event in the entry, too (e.g. new/update/delete).
What I am looking for is a link relation that is a good fit for linking from the entry to the changed resources. I am thinking
- about: <link rel="about" href="/employees/7628827272"/>
- via: <link rel="via" href="/employees/7628827272"/>
Mint one:
- observed: <link rel="observed" href="/employees/7628827272"/>
- pertains: <link rel="pertains" href="/employees/7628827272"/>
- concerns: <link rel="concerns" href="/employees/7628827272"/>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Employee Changes Feed Subscription Document</title>
<updated>2003-12-13T17:30:02Z</updated>
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
<entry>
<title>Change of Employee 7628827272 </title>
<link rel="about" href="/employees/7628827272"/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<summary>Some text describing the change, possibly a change comment</summary>
</entry>
</feed>
Jan