mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
docs: add missing supported webdav props
This commit is contained in:
@@ -323,36 +323,49 @@ Available namespaces:
|
||||
|
||||
### Supported WebDAV Properties
|
||||
|
||||
| Property | Desription | Example |
|
||||
|-----------------------------|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `<d:getlastmodified />` | The latest modification time. | `Fri, 30 Dec 2022 14:22:43 GMT` |
|
||||
| `<d:getetag />` | The file's etag. | `"c3a1ee4a0c28edc15b9635c3bf798013"` |
|
||||
| `<d:getcontenttype />` | The mime type of the file. | `image/jpeg` |
|
||||
| `<d:resourcetype />` | Specifies the nature of the resource. | `<d:collection />` for a folder |
|
||||
| `<d:getcontentlength />` | The size if it is a file in bytes. | `5` bytes |
|
||||
| `<d:lockdiscovery />` | Describes the active locks on a resource. | Detailed Example in [Locking]() |
|
||||
| `<oc:id />` | The globally unique ID of the resource. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:fileid />` | The globally unique ID of the resource. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:downloadURL />` | Direct URL to download a file from. | Not implemented. |
|
||||
| `<oc:permissions />` | The permissions a user has on the resource. | The value is a string containing letters for all available permissions. |
|
||||
| | | `S`: Shared |
|
||||
| | | `M`: Mounted |
|
||||
| | | `D`: Deletable |
|
||||
| | | `NV`: Updateable, Renameable, Moveable |
|
||||
| | | `W`: Updateable (file) |
|
||||
| | | `CK`: Creatable (folders only) |
|
||||
| | | `Z`: Deniable |
|
||||
| | | `P`: Trashbin Purgable |
|
||||
| `<oc:tags />` | List of user specified tags. | `<oc:tag>test</oc:tag>` |
|
||||
| `<oc:favorite /> ` | The favorite state. | `0` for not favourited, `1` for favourited |
|
||||
| `<oc:owner-id />` | The user id of the owner of a resource. Project spaces have no owner. | `einstein` |
|
||||
| `<oc:owner-display-name />` | The display name of the owner of a resource. Project spaces have no owner. | `Albert Einstein` |
|
||||
| `<oc:share-types />` | List of share types. | `0` = User Share |
|
||||
| | | `1` = Group Share |
|
||||
| | | `2` = Public Link |
|
||||
| `<oc:checksums />` | | `<oc:checksum>`<br/>`SHA1:1c68ea370b40c06fcaf7f26c8b1dba9d9caf5dea MD5:2205e48de5f93c784733ffcca841d2b5 ADLER32:058801ab`<br /> `</oc:checksum>` |
|
||||
| | | Due to a bug in the very early development of ownCloud, this value is not an array, but a string separated by whitespaces. |
|
||||
| `<oc:size />` | Similar to `getcontentlength` but it also works for folders. | `10` bytes |
|
||||
| Property | Desription | Example |
|
||||
| ----------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `<d:getlastmodified />` | The latest modification time. | `Fri, 30 Dec 2022 14:22:43 GMT` |
|
||||
| `<d:getetag />` | The file's etag. | `"c3a1ee4a0c28edc15b9635c3bf798013"` |
|
||||
| `<d:getcontenttype />` | The mime type of the file. | `image/jpeg` |
|
||||
| `<d:resourcetype />` | Specifies the nature of the resource. | `<d:collection />` for a folder |
|
||||
| `<d:getcontentlength />` | The size if it is a file in bytes. | `5` bytes |
|
||||
| `<d:lockdiscovery />` | Describes the active locks on a resource. | Detailed Example in [Locking]() |
|
||||
| `<oc:id />` | The globally unique ID of the resource. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:fileid />` | The globally unique ID of the resource. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:downloadURL />` | Direct URL to download a file from. | Not implemented. |
|
||||
| `<oc:permissions />` | The permissions a user has on the resource. | The value is a string containing letters for all available permissions. |
|
||||
| | | `S`: Shared |
|
||||
| | | `M`: Mounted |
|
||||
| | | `D`: Deletable |
|
||||
| | | `NV`: Updateable, Renameable, Moveable |
|
||||
| | | `W`: Updateable (file) |
|
||||
| | | `CK`: Creatable (folders only) |
|
||||
| | | `Z`: Deniable |
|
||||
| | | `P`: Trashbin Purgable |
|
||||
| `<oc:tags />` | List of user specified tags. | `<oc:tag>test</oc:tag>` |
|
||||
| `<oc:favorite /> ` | The favorite state. | `0` for not favourited, `1` for favourited |
|
||||
| `<oc:owner-id />` | The user id of the owner of a resource. Project spaces have no owner. | `einstein` |
|
||||
| `<oc:owner-display-name />` | The display name of the owner of a resource. Project spaces have no owner. | `Albert Einstein` |
|
||||
| `<oc:share-types />` | List of share types. | `0` = User Share |
|
||||
| | | `1` = Group Share |
|
||||
| | | `2` = Public Link |
|
||||
| `<oc:checksums />` | | `<oc:checksum>`<br/>`SHA1:1c68ea370b40c06fcaf7f26c8b1dba9d9caf5dea MD5:2205e48de5f93c784733ffcca841d2b5 ADLER32:058801ab`<br /> `</oc:checksum>` |
|
||||
| | | Due to a bug in the very early development of ownCloud, this value is not an array, but a string separated by whitespaces. |
|
||||
| `<oc:size />` | Similar to `getcontentlength` but it also works for folders. | `10` bytes |
|
||||
| `<oc:shareid />` | The ID of the share if the resource is part of such. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:shareroot />` | The root path of the shared resource if the resource is part of such. | `/shared-folder` |
|
||||
| `<oc:remoteItemId />` | The ID of the shared resource if the resource is part of such. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:public-link-item-type />` | The type of the resource if it's a public link. | `folder` |
|
||||
| `<oc:public-link-permission />` | The share permissions of the resource if it's a public link. | `1` |
|
||||
| `<oc:public-link-expiration />` | The expiration date of the public link. | `Tue, 14 May 2024 12:44:29 GMT` |
|
||||
| `<oc:public-link-share-datetime />` | The date the public link was created. | `Tue, 14 May 2024 12:44:29 GMT` |
|
||||
| `<oc:public-link-share-owner />` | The username of the user who created the public link. | `admin` |
|
||||
| `<oc:trashbin-original-filename />` | The original name of the resource before it was deleted. | `some-file.txt` |
|
||||
| `<oc:trashbin-original-location />` | The original location of the resource before it was deleted. | `some-file.txt` |
|
||||
| `<oc:trashbin-delete-datetime />` | The date the resource was deleted. | `Tue, 14 May 2024 12:44:29 GMT` |
|
||||
| `<oc:audio />` | Audio meta data if the resource contains such. | `<oc:artist>Metallica</oc:artist><oc:album>Metallica</oc:album><oc:title>Enter Sandman</oc:title>` |
|
||||
| `<oc:location />` | Location meta data if the resource contains such. | `<oc:latitude>51.504106</oc:latitude><oc:longitude>-0.074575</oc:latitude>` |
|
||||
|
||||
### Request Headers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user