Does WebDAV violate the principles of REST?

Does WebDAV violate the principles of REST?

Some say that WebDAV methods violate the principles of REST. What's your take on the issue?

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to keep you informed on recent service-oriented architecture (SOA) and SOA-related topics such as integration, governance, Web services, Cloud and more.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSOA.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSOA.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

The common criticism of WebDAV's methods, is that PROPFIND shouldn't be there, and instead GET should have been used. The argument goes - and rightly so, in my opinion - that given a URI, there should be a single method that asks for the information associated with that URI (or more accurately, asks for a representation of the state of the identified resource), as this is key to enabling the "shared information space" concept that is the Web.

REST is what is defined in Roy Fielding's dissertation, nothing more, nothing less. But if you look closely, you won't find anything which talks about using a single method as I just described. I've talked to Roy about this specific issue, and he responded that he didn't include it because he felt it was too obvious to mention (paraphrasing). I disagree with him on this; the fact that WebDAV WG members opted for PROPFIND when GET could have been used demonstrates, I believe, that it's sufficiently non-obvious, and presenting that guidance in his dissertation would have been valuable.

So the answer, technically, at least until Roy decides to publish a new definition of REST, is "No"; WebDAV's methods *are* RESTful, because they are uniform (i.e. all methods are meaningful on all resources), and that's the only constraint REST places on interface semantics. But, it's still important to keep in mind that this is an important part of Web architecture, even if Roy opted not to mention it.

This was first published in July 2003