forked from owncloud/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into document-files-transfer-ownership-in-10.4.1
- Loading branch information
Showing
23 changed files
with
209 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...in_manual/pages/configuration/server/app_commands/password_policy_commands.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
modules/developer_manual/examples/core/webdav_api/meta/meta-files-filter.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<a:propfind xmlns:a="DAV:" xmlns:oc="http://owncloud.org/ns"> | ||
<a:prop> | ||
<oc:meta-path-for-user/> | ||
</a:prop> | ||
</a:propfind> | ||
|
16 changes: 16 additions & 0 deletions
16
modules/developer_manual/examples/core/webdav_api/meta/report-propfind.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<a:propfind xmlns:a="DAV:" xmlns:oc="http://owncloud.org/ns"> | ||
<a:prop> | ||
<oc:comments-unread /> | ||
<oc:display-name/> | ||
<oc:favorites /> | ||
<oc:fileid /> | ||
<oc:owner-display-name /> | ||
<oc:permissions /> | ||
<oc:share-types /> | ||
<oc:size /> | ||
<oc:tags /> | ||
<oc:user-assignable/> | ||
<oc:user-visible/> | ||
</a:prop> | ||
</a:propfind> |
5 changes: 5 additions & 0 deletions
5
modules/developer_manual/examples/core/webdav_api/meta/response-failure.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"> | ||
<s:exception>Sabre\DAV\Exception\NotFound</s:exception> | ||
<s:message/> | ||
</d:error> |
12 changes: 12 additions & 0 deletions
12
modules/developer_manual/examples/core/webdav_api/meta/response-success.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns"> | ||
<d:response> | ||
<d:href>/remote.php/dav/meta/7/</d:href> | ||
<d:propstat> | ||
<d:prop> | ||
<oc:meta-path-for-user>/Photos/San Francisco.jpg</oc:meta-path-for-user> | ||
</d:prop> | ||
<d:status>HTTP/1.1 200 OK</d:status> | ||
</d:propstat> | ||
</d:response> | ||
</d:multistatus> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
= Meta API | ||
:toc: right | ||
// Attributes for the core details include | ||
:request_path: remote.php/dav/meta/<fileid> | ||
:method: PROPFIND | ||
:content_type: text/xml | ||
:report-request-uri: https://tools.ietf.org/html/rfc3253#section-3.6 | ||
:libxml-url: http://www.xmlsoft.org | ||
:http207-url: https://httpstatuses.com/207 | ||
:http404-url: https://httpstatuses.com/404 | ||
|
||
|
||
== Introduction | ||
|
||
An authenticated `PROPFIND` request to `{request_path}` returns the path to a file/folder for the logged in user. | ||
|
||
TIP: To retrieve a list of available files, use xref:webdav_api/search.adoc#limiting-returned-file-properties[the Filter Files endpoint], and ensure that returned properties includes `fileid`. | ||
|
||
include::{partialsdir}/webdav_api/core_request_details.adoc[leveloffset=+1] | ||
|
||
== Request Parameters | ||
|
||
[cols=",,",options="header",] | ||
|=== | ||
|Attribute | ||
|Type | ||
|Description | ||
|
||
|`fileid` | ||
|integer | ||
|The file's id. | ||
|=== | ||
|
||
TIP: The example above uses xmllint, available in {libxml-url}[the libxml2 package] to make the response easier to read. | ||
|
||
== Example Responses | ||
|
||
=== Success | ||
|
||
If the file of folder is found, then a response similar to the following will be returned with an {http207-url}[HTTP/1.1 207 Multi-Status] status: | ||
|
||
[source,xml] | ||
---- | ||
include::{examplesdir}/core/webdav_api/meta/response-success.xml[] | ||
---- | ||
|
||
=== Failure | ||
|
||
If the file is not found, then the following response will be returned with an {http404-url}[HTTP/1.1 404 Not Found] status: | ||
|
||
[source,xml] | ||
---- | ||
include::{examplesdir}/core/webdav_api/meta/response-failure.xml[] | ||
---- | ||
|
||
== Example Request | ||
|
||
[tabs] | ||
==== | ||
Curl:: | ||
+ | ||
-- | ||
[source,console,subs="attributes+"] | ||
---- | ||
curl -u {oc-examples-username}:{oc-examples-password} \ | ||
-X PROPFIND \ | ||
-H "Depth: 0" \ | ||
-H "Content-Type: text/xml" \ | ||
--data "@meta-files.xml" \ | ||
'{oc-examples-server-url}/remote.php/dav/meta/<fileid>' | xmllint --format - | ||
---- | ||
-- | ||
==== | ||
|
||
=== meta-files.xml | ||
|
||
[source,xml] | ||
---- | ||
include::{examplesdir}core/webdav_api/meta/meta-files-filter.xml[] | ||
---- |
Oops, something went wrong.