Search the web
Sign In
New User? Sign Up
rest-explore
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
If RNA Notifications should have URIs? (was Re: feedback)   Message List  
Reply | Forward Message #416 of 445 |
From: "Chuck Hinson" <cmhinson@...>
>
> - After looking at your reply example, it occurs to me that it might be
> desirable to require that the notification (which contain metadata for
> the message) and the message have parallel existances. (Warning -
> possbily half-baked idea ahead) So, when you send a message, both the
> message and the notification are created on the sender's server as
> separater (but related) resources. Authenticity is acheived by doing a
> GET on the notification resource. When you reply, you reference the
> notification resource on the sender's server rather than the message
> itself. Either that, or messages have to have a link to their
> metadata. Actually, this could be like SMTP messages, except that you
> would make the headers and the body two different resources, with the
> headers being used as the notification. (Of course a lot of the SMTP
> headers wouldnt be useful in RNA)


I've been continuing to give this some thought. At this point, I'm still
not sure whether notifications should have URIs. For instance, in HTTP, we
think nothing of pulling a representation of a resource. But what about
pushing a representation of a resource?

Suppose we were to have a notification that looked like (warning! new look.
online doc not yet updated to match.):

<rna xmlns="http://purl.oclc.org/rna/draft">
<notification uri="http://seairth.com/rna/n/234962">
<from uri="http://seairth.com/rna" />
<resource uri="http://www.seairth.com/web/rna" />
<subject>RNA Specification</subject>
</notification>
</rna>

Now, presumably, if the recipient were to do a GET on
http://seairth.com/rna/n/234962, a representation of the notification would
be returned, looking like the notification just sent. The query process
would be able to ask about the notification instead of the resource, but all
this would prove is that the sender did send a notification which can by
found at the given URI. It does prove that the notification was unchanged
(e.g. is the resource in the received notification the same as the resource
in the notification at the URI. The notification could be returned in
response to the query (as it is designed now), but then we would now have
three different ways that a representation of the notification could be
returned. Not to mention that it seems unRESTful to return a representation
of another resource (the notification) as a response to a POST or GET on the
senders URI.


Also, what would be the advantages for the notification to have a URI?
There may be some, but the few I thought I had come up with turned out to
contain faulty arguements.

I don't want to rule this idea out yet, but I am somewhat unsure of where to
go with it...

---
Seairth Jacobs
seairth@...




Mon May 5, 2003 3:13 am

seairthjacobs
Offline Offline
Send Email Send Email

Forward
Message #416 of 445 |
Expand Messages Author Sort by Date

From: "Chuck Hinson" <cmhinson@...> ... I've been continuing to give this some thought. At this point, I'm still not sure whether notifications should...
Seairth Jacobs
seairthjacobs
Offline Send Email
May 5, 2003
3:13 am

... From: "Seairth Jacobs" <seairth@...> ... we ... Isn't that what PUT does?...
Mike Dierken
mdierken
Offline Send Email
May 7, 2003
4:51 am

From: "Mike Dierken" <mdierken@...> ... still ... That's not what I mean. Suppose the notification has an associated URI like ...
Seairth Jacobs
seairthjacobs
Offline Send Email
May 7, 2003
12:57 pm

... From: "Seairth Jacobs" <seairth@...> ... resource ... the ... How about associating Authentication information in the POST request with the...
Mike Dierken
mdierken
Offline Send Email
May 8, 2003
4:02 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help