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.
barely RESTful (Score:1)
This is service trampled REST, very much still in the vein of old web services.
Also, you haven't written about HTTP methods at all, which are the central piece. URLs denote things, therefore are just nouns, and the resources themselves are well-defined well-adopted types to aid interoperability. The verbs go in front and have standard semantics for the Web.
To delete, use DELETE.
To create, use PUT.
But realistically, in most architectures you cannot know the id before you have made the request. The workaround is to POST to a collection, see AtomPub.
Reply to This
Re: (Score:1)
Hi daxim
Well, I didn't claim to know everything :-).
And what does 'trampled' mean in this context?
Cheers
Re: (Score:1)
'lo Ron, let me google that for you.
http://duncan-cragg.org/blog/post/strest-service-trampled-rest-will-break-web-20 / [duncan-cragg.org]
I see you put a disclaimer on the article. Won't discuss HTTP methods? — I hope those delete actions and other state changes are only available through POST.