-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mention comparison with WebDAV in the introduction #136
Comments
We get the question about WebDAV a lot, in the next version we should add a remark about it in the intro. The folder descriptions returned when you GET a URL that ends with a / are indeed a deviation from the XML returned by WebDAV server, and this is just because nowadays JSON is easier to use than XML for developers, both client-side and server-side. The fact that we don't require servers to support WebDAV's custom verbs like PROPPATCH etc. is for three reasons:
Other than that, the remoteStorage Internet-Draft specifies a lot more than just how each HTTP verb should behave:
It would be easy to add these three things on top of WebDAV, instead of putting them on top of our minimal GET/PUT/DELETE API definition. In fact, we could probably separate it into two Internet-Drafts: one for the 'RESTful folders' API which is our simplification of WebDAV, and a second one for OAuth/ETags/CORS/WebFinger on top of either WebDAV or 'RESTful folders' or whatever other HTTP-based API you want. |
Releasing a new storage API for the Web using XML in 2015 would sure provide some good entertainment value. :) Here's some more inspiration on WebDAV being too complex for its own good (a bit heavy on the ranting, but good content nonetheless): https://unterwaditzer.net/2015/kill-webdav.html |
The obvious response you'll get will be why not define a simple profile for WebDAV, add CORS (trivial) add Bearer (trivial) and do something with ETags (maybe not so trivial, but also not relevant for every use case...). Actually the spec does not require OAuth/Bearer tokens at all, also Kerberos. And don't get me started on WebFinger ;) |
That is an allowed edge case for enterprise/organization usage, but not the normal case or recommendation. |
Many readers are confused why we chose to use a simple JSON-based folder description instead of reusing WebDAV which already provides XML-based folder descriptions. We should dedicate some words about this somewhere in the intro.
The text was updated successfully, but these errors were encountered: