<br>> On one hand maybe somebody wants to listen for updates to VMS.<br>
><br>
> On the other hand, I don't see the point of using Atom for returning
collections.  It was written as a format for feeds not a collection
format.<br><br><br>Hi Bill,<br><br>So just to clarify, the original idea wasn't so much to wrap the VMs collection in an Atom feed, but rather to use a feed to allow clients, having previously executed a query over the VM collection, to receive lightweight notifications of changes to the set of known VMs and their status. For example a new VM appears, the status of another VM changes, a third VM goes away, etc. <br>
<br>This would allow clients to update their previous result set, without necessarily re-issueing the original query. It would of course depend on the feed being filtered on the client-side according the original query constraints. <br>
<br>To ensure that only genuinely fresh updates were received, idea was to use delta encoding with the cleint setting the "A-IM: feed" header so that it recieves only those entries that were updated later than the If-Modified-Since header (set to the timestamp of the original query or the last GET on the Atom feed, which-ever is the later). It was an open question whether the RESTeasy Atom provider supported delta encoding in this way. I'll need to check this out, unless you know off the top of your head?<br>
<br>Cheers,<br>Eoghan<br><br><br><div class="gmail_quote">On 16 April 2010 20:53, Bill Burke <span dir="ltr"><<a href="mailto:bburke@redhat.com">bburke@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5"><br>
<br>
Bryan Kearney wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Eoghan suggested something similar here:<br>
<br>
   <a href="https://fedorahosted.org/pipermail/rhevm-api/2010-April/000025.html" target="_blank">https://fedorahosted.org/pipermail/rhevm-api/2010-April/000025.html</a><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
application/atom+xml<br>
</blockquote>
<br>
This would just be e.g.:<br>
<br>
   <?xml version="1.0" encoding="UTF-8" standalone="yes"?><br>
   <atom:feed xmlns:atom="<a href="http://www.w3.org/2005/Atom" target="_blank">http://www.w3.org/2005/Atom</a>"><br>
     <atom:title>VMs feed</atom:title><br>
     <atom:updated>2010-04-16T09:47:55.288+01:00</atom:updated><br>
     <atom:id>http://{host}/vms</atom:id><br>
     <atom:author><br>
       <atom:name>RHEV-M</atom:name><br>
     </atom:author><br>
     <atom:entry><br>
       <atom:title>vm2</atom:title><br>
       <atom:content><br>
         <vm><br>
           <link rel="self" href="http://{host}/vms/3"/><br>
           <id>3</id><br>
           <name>vm3</name><br>
           <actions><br>
             ...<br>
           </actions><br>
         </vm><br>
       </atom:content><br>
<br>
That's simple enough:<br>
<br>
   <a href="http://git.fedoraproject.org/git/?p=rhevm-api.git;a=commitdiff;h=3fff835a" target="_blank">http://git.fedoraproject.org/git/?p=rhevm-api.git;a=commitdiff;h=3fff835a</a><br>
<br>
But now, what about supporting clients who prefer json or yaml? Does<br>
"application/atom+json" make much sense, I wonder?<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
application/atomcat+xml<br>
</blockquote>
<br>
We'd use this to describe e.g. 'vm' and 'host' categories?<br>
</blockquote>
<br>
So... one of he items I heard about why REST and not SOAP is that the SOAP envelope is terrible. What I see here is starting to look like such an envelope. Will you be supporting "natrual" xml and json as well?<br>

<br>
</blockquote>
<br></div></div>
On one hand maybe somebody wants to listen for updates to VMS.<br>
<br>
On the other hand, I don't see the point of using Atom for returning collections.  It was written as a format for feeds not a collection format.<div class="im"><br>
<br>
-- <br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a><br>
<br>
_______________________________________________<br></div><div><div></div><div class="h5">
rest-practices mailing list<br>
<a href="mailto:rest-practices@redhat.com" target="_blank">rest-practices@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rest-practices" target="_blank">https://www.redhat.com/mailman/listinfo/rest-practices</a><br>
</div></div></blockquote></div><br>