On Mar 5, 2008, at 11:58 AM, Fabio Mancinelli wrote: > > On 5 mars 08, at 11:07, Vincent Massol wrote: >>> To me something like http://site/space/page?action=delete is NOT >>> RESTful. >> >> Yes I agree but how is that incompatible? >> >> You can easily rewrite it to http://site/space/page/action/delete, >> no? >> >> Isn't it possible to conceive of an automatic transformation by using >> a rule such as: >> for each API method parameter, take the parameter name, add "/" and >> then add the parameter value? >> > > It's not just a problem of "uri syntax". > It's a semantic problem. REST applied to the WEB prescribes that the > HTTP uniform interface (and its semantics) should be used to access > resources. > > Now if you have http://site/space/page/action/delete > and you do a GET on it you are actually *deleting* a page.
Yep for a moment I had forgotten about the HTTP verbs... ;) [snip] Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

