{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/20882","labels_url":"https://api.github.com/repos/owncloud/core/issues/20882/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/20882/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/20882/events","html_url":"https://github.com/owncloud/core/pull/20882","id":119796482,"number":20882,"title":"[WIP] Experimental: Backbone transport for Webdav","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/2%20-%20Developing","name":"2 - Developing","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/app:dav","name":"app:dav","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/research","name":"research","color":"FFFF00"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-01T20:05:32Z","updated_at":"2016-01-11T16:49:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/20882","html_url":"https://github.com/owncloud/core/pull/20882","diff_url":"https://github.com/owncloud/core/pull/20882.diff","patch_url":"https://github.com/owncloud/core/pull/20882.patch"},"body":":warning: EXPERIMENTAL :warning: \r\n\r\nBackbone usually works with REST, so this PR provides a new \"davSync\" method as replacement for \"sync\" to make backbone work with Webdav endpoints.\r\n\r\n- [x] create by POST to collection (need server support)\r\n- [ ] update complete object with PROPPATCH (needs https://github.com/evert/davclient.js/issues/9)\r\n- [ ] patch subset of properties with PROPPATCH\r\n- [x] collection GET => PROPFIND with Depth 1\r\n- [x] model GET => PROPFIND with Depth 0\r\n- [x] model DELETE => DELETE\r\n\r\nWhen creating a backbone model or collection, override the `sync` property with `OC.Backbone.davSync` to make it work.\r\n\r\nIt already works for reading collections and models.\r\nIt converts the Webdav attribute results into a JSON array to be used as attributes in the backbone model.\r\n\r\n@DeepDiver1975 @evert"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/170614759","html_url":"https://github.com/owncloud/core/pull/20882#issuecomment-170614759","issue_url":"https://api.github.com/repos/owncloud/core/issues/20882","id":170614759,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T16:49:36Z","updated_at":"2016-01-11T16:49:36Z","body":"@blizzz pointed out that we should move the code into a separate file and format it better, and also to make it easier to find."}}