You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: IETF-RFC.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ itself be an object containing the following fields:
309
309
* OPTIONAL: inviteAcceptDialog (string) - URL path of a web page where a user can accept an invite, when query parameters `"token"` and `"providerDomain"` are provided. Implementations that offer the `"invites"` capability SHOULD provide this URL as well in order to enhance the UX of the Invite Flow. If for example `"/index.php/apps/sciencemesh/accept"` is specified here then a WAYF Page SHOULD redirect the end-user to `/index.php/apps/sciencemesh/accept?token=zi5kooKu3ivohr9a&providerDomain=example.com`.
310
310
311
311
# Share Creation Notification
312
-
To create a share, the sending server SHOULD make a HTTP POST request
312
+
To create a Share, the Sending Server SHOULD make a HTTP POST request
313
313
314
314
* to the `/shares` path in the Receiving Server's OCM API
315
315
* using `application/json` as the `Content-Type` HTTP request header
@@ -488,6 +488,10 @@ make a HTTP POST request
488
488
* OPTIONAL resourceType (string) - copied from the Share Creation Notification for the Share this notification is about
489
489
* OPTIONAL notification (object) - optional additional parameters, depending on the notification and the resource type
490
490
491
+
For example, a notification MAY be sent by a recipient to let the provider know that the recipient declined a share. In this case, the provider site MAY mark the share as declined for its user(s).
492
+
Similarly, it MAY be sent by a provider to let the recipient know that the provider removed a given share, such that the recipient MAY clean it up from its database.
493
+
A notification MAY also be sent to let a recipient know that the provider removed that recipient from the list of trusted users, along with any related share. The recipient MAY reciprocally remove that provider from the list of trusted users, along with any related share.
494
+
491
495
492
496
### Receiving Party Notification
493
497
If the Share Creation Notification is not discarded by the Receiving Server, they MAY notify the Receiving Party passively by adding the Share to some inbox list, and MAY also notify them actively through for instance a push notification or an email message.
This endpoint is a replica of `/.well-known/ocm`, and MUST be
36
-
served at the OCM Server's root FQDN as well.
38
+
This endpoint is a replica of `/.well-known/ocm`, and MUST be served
39
+
at the OCM Server's root FQDN as well to ensure backwards compatibility.
37
40
OCM Servers MUST support both.
38
41
responses:
39
42
"200":
@@ -44,11 +47,11 @@ paths:
44
47
$ref: "#/components/schemas/Discovery"
45
48
/shares:
46
49
post:
47
-
summary: Create a new share
50
+
summary: Share Creation Notification endpoint
48
51
description: >
49
-
After the provider created a local share, it sends a `share` object to
50
-
the consumer containing the information which is needed to start
51
-
synchronization between the two services.
52
+
This endpoint is used by a Sending Server to notify a Receiving Server that
53
+
a new Share has been created. See [Share Creation Notification](https://github.com/cs3org/OCM-API/blob/develop/IETF-RFC.md#share-creation-notification)
54
+
for more details.
52
55
requestBody:
53
56
content:
54
57
application/json:
@@ -117,21 +120,12 @@ paths:
117
120
$ref: "#/components/schemas/Error"
118
121
/notifications:
119
122
post:
120
-
summary: Send a notification to a remote party about a previously known entity
123
+
summary: Share Acceptance Notification endpoint
121
124
description: >
122
-
Notifications are optional messages. They are expected to be used to
123
-
inform the
124
-
other party about a change about a previously known entity, such as a share or
125
-
a trusted user.
126
-
For example, a notification MAY be sent by a recipient to let the provider know
127
-
that the recipient declined a share. In this case, the provider site MAY mark the
128
-
share as declined for its user(s).
129
-
Similarly, it MAY be sent by a provider to let the recipient know that the provider
130
-
removed a given share, such that the recipient MAY clean it up from its database.
131
-
A notification MAY also be sent to let a recipient know that the provider
132
-
removed that recipient from the list of trusted users, along with any related share.
133
-
The recipient MAY reciprocally remove that provider from the list of trusted users,
134
-
along with any related share.
125
+
This optional endpoint is used to inform the other party about a change
126
+
that concerns a previously known entity, such as a Share or a trusted User.
127
+
See [Share Acceptance Notification](https://github.com/cs3org/OCM-API/blob/develop/IETF-RFC.md#share-acceptance-notification)
128
+
for more details.
135
129
requestBody:
136
130
content:
137
131
application/json:
@@ -193,11 +187,10 @@ paths:
193
187
$ref: "#/components/schemas/Error"
194
188
/invite-accepted:
195
189
post:
196
-
summary: |
197
-
Inform the sender that an invitation was accepted to start sharing.
0 commit comments