Skip to content

Commit

Permalink
docs: Document propfind dav property request
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Mar 15, 2024
1 parent 6c7c4f9 commit 9ccb708
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,41 @@ Accept: application/json
alice: alice
```

#### Get via WebDAV

```sh
hurl propfind.hurl --variable owner=admin --variable path=welcome.txt
```

> propfind.hurl
````hurl
PROPFIND https://nextcloud.local/remote.php/dav/files/{{owner}}/{{path}}
[BasicAuth]
{{owner}}: {{owner}}
```xml
<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<oc:fileid />
<d:displayname />
<d:getlastmodified />
<d:getcontenttype />
<oc:size />
<oc:owner-id />
<oc:share-types />
<nc:sharees />
<nc:share-download-limits />
</d:prop>
</d:propfind>
```
HTTP 207
[Asserts]
xpath "//nc:share-download-limits" isCollection
````

#### Set

```sh
Expand Down

0 comments on commit 9ccb708

Please sign in to comment.