DeepDiver1975 / dav

Next generation WebDAV in ownCloud
2 stars 1 forks source link

zip endpoint #5

Open DeepDiver1975 opened 9 years ago

DeepDiver1975 commented 9 years ago

There should be an endpoint which allows creating of zips. Root url: /dav//zip/

  1. send POST against root url - the POST body contains a list of files and folders to be added
  2. server locks them all
  3. the response holds a unique url to the archive like /dav//xxxx-xxxx-xxxx.zip
  4. client send GET against the given url - server starts to stream the content
  5. once client finishes a DELETE is send against the archive url - all files and folder will be unlocked

As an alternative to the .zip extension a .tar extension should be supported

DeepDiver1975 commented 9 years ago

Or we follow the approach of the uploads collection:

  1. MKCOL /dav/zip/$user/zip/12345
  2. PUT /dav/zip/$user/zip/12345/files.json
  3. GET /dav/zip/$user/zip/12345/archive.zip or /dav/zip/$user/zip/12345/archive.tar
  4. DELETE /dav/zip/$user/zip/12345
DeepDiver1975 commented 9 years ago

@dragotin @PVince81

dragotin commented 8 years ago

Which problem do we solve here? Is it bundling for download? Sounds great.

Questions:

Otherwise nice. We should have something similar for upload.

PVince81 commented 8 years ago

We don't compress, zip or tar is only a way of bundling files. There are two use cases:

DeepDiver1975 commented 8 years ago

If we want to give the client the capability to download multiple files in one cycle we might want to follow CalDAV which defines a multi get report

https://tools.ietf.org/html/rfc4791#section-7.9