NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Et tu, Brutus? (Score:1)
I thought you of all people understood REST. :-(
That’s not theory. That’s the web. Also, have you heard of something called AtomPub [ietf.org]? That’s like that, too. There are a lot of desktop weblog publishing client that use it.
Yeah, how? How did these people write weblog clients against AtomPub?
Because it saw something like
<link rel="search" href="..."/>(in the case of Atom) in some other response body it already received.Read the AtomPub spec.
Nonsense, I’m afraid. (Quite the opposite, actually, it invites reuse in the small in a way that RPC-ish systems cannot – Roy terms this “engineering for serendipity”.)
How do you write a program that can do something with information it has no way of parsing?
You’re twisting Roy’s words in his mouth. Atom feeds can contain the full data for each entry, and if you ask Roy what he thinks about AtomPub, he will tell you it is a great example of getting REST right. The salient point is that the Atom feed contains the URI of any entry that has one, and that is what you use to manipulate the entry if you want to do so.
Reply to This
Re: (Score:2)
I thought you of all people understood REST.
To be honest, I'd totally missed this part of it. I understand why Roy thinks it's important, but I'm not sure that I think it's important.
My goals for doing something REST-like are several fold ...
First, share the same URI space between what a browser sees and what a non-browser would see. This works quite well for everything that should be POST, PUT, and DELETE. For GETs, you end up with a bunch of stuff like
/person/1/edit_formbecause browsers kind of suck, but that's ok.Second, by sharing that URI spac
Re: (Score:1)
Sure, that’s fine. Really, you don’t necessarily have to provide a specific media type; the core issue is that you document the response format, and that that format use links rather than application-specific IDs that the client must slot into URI templates which are never part of the in-band communication, and generally have to be built into the client at programming time.
The other thing is, hopefully you would most