Hi all,
The only reason I ever even heard of Dream, was because I lurk the rest-discuss group on Yahoo, and Roy Fielding himself posted the following a couple of weeks ago:
"Has anyone looked at Dream yet to see how RESTful it actually is?"
Thus far there have only been two responses - one from Berend de Boer saying it was pretty good, but still used cookies, and that he'd prefer a more declarative approach.
The second response was from Mike Schinkel, and reads as follows:
"Below is their hypermedia file. It shows verb-based methods for services and multiple GETs to the same resource for different methods. Sounds like
POX to me."
with the following being the first section of the "hypermedia file" he included:
<!-- INCLUSION BEGINS --------
<?xml version="1.0"?>
<blueprint>
<assembly>dream.tutorial.8ball, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null</assembly>
<type>MindTouch.Dream.Tutorial.EightBallServ ice</type>
<name>Dream Tutorial 8-Ball</name>
<copyright>Copyright (c) MindTouch, Inc. 2006</copyright>
<info>http://doc.opengarden.org/Dream_SDK/...l</info>
<feature>
<path>answer</path>
<signature>/</signature>
<verb>GET</verb>
<description>Returns a random 8-ball message</description>
<info>http://doc.opengarden.org/Dream_SDK/...l</info>
<method>GetAnswer</method>
</feature>
<feature>
<path>@inspect</path>
<signature>/</signature>
<verb>GET</verb>
<description>Retrieve service description</description>
<info>http://www.mindtouch.com</info>
<method>GetServiceInfo</method>
</feature>
<feature>
<path/>
<
----- INCLUSION ENDS --->
So, I have two questions:
1. Where did Mike yank this "hypermedia file" from? It includes information that I understood to be specified via a C# attribute on the method. I am interested in using a file such as the above because I would like to use Dream from IronPython, but IronPython does not (yet) support C# attributes.
2. Is Mike's assertion factually correct? It doesn't seem so to me, but I'm not confident enough of my grasp of REST concepts to be sure - and certainly not to attempt a rebuttal.
3. If the answer to #2 is no, will somebody more confident of their REST zen than I post a corrective reply on the rest-discuss group? Otherwise, if you post a suitable reply here, I will undertake to post it (with cowardly attribution of course) back to rest-discuss.
Three question, I have three questions ..... nobody expects the Dream inquisition ... <g>
cheers,
gary


Reply With Quote
