-
Notifications
You must be signed in to change notification settings - Fork 168
Document new Sharee API #1626
Comments
This is the URL to be used: Allowed method: GET Query strings:
Result: {
"label": "admin",
"value": {
"shareType": 1,
"shareWith": "admin"
}
} or <element>
<label>admin</label>
<value>
<shareType>0</shareType>
<shareWith>admin</shareWith>
</value>
</element> Depending on the request. The complete response looks like this: {
"ocs": {
"meta": {
"status": "ok",
"statuscode": 100,
"message": null
},
"data": {
"exact": {
"users": [
],
"groups": [
],
"remotes": [
]
},
"users": [
{
"label": "admin",
"value": {
"shareType": 0,
"shareWith": "admin"
}
},
{
"label": "test1",
"value": {
"shareType": 0,
"shareWith": "test1"
}
}
],
"groups": [
{
"label": "admin",
"value": {
"shareType": 1,
"shareWith": "admin"
}
},
{
"label": "tester",
"value": {
"shareType": 1,
"shareWith": "tester"
}
}
],
"remotes": [
]
}
}
} The exact list holds an array of exact matches. those should be presented first. Sharees that have the item already shared need to be filtered out. |
@nickvergessen thanks! |
@SergioBertolinSG @nickvergessen Thanks!!! |
I don't see this in any dev doc, @carlaschroder did you close this by mistake ? |
No idea. That was a year ago. |
Ah, closed in April. Still no idea. |
Share API is currently here: https://doc.owncloud.org/server/9.1/developer_manual/core/ocs-share-api.html |
Sharee, extra "e" 😉 I prefer to call it "recipients" instead of "sharee". |
Well, 'sharee' is a common term in the 'internet/cloud dictionary'. Since 'recipient' is way more clear and easier to understand I vote for it. |
Ayayayay, endpoint update incoming? |
This commit fixes #1626 and provides initial documentation for the recipient API. I don't expect that this will be the final commit for this endpoint, but the first working draft.
owncloud/core#18234
@nickvergessen
The text was updated successfully, but these errors were encountered: