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
+78Lines changed: 78 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -243,6 +243,7 @@ The JSON response body offered by the Discoverable Server SHOULD contain the fol
243
243
* REQUIRED: apiVersion (string) - The OCM API version this endpoint supports. Example: `"1.2.0"`
244
244
* REQUIRED: endPoint (string) - The URI of the OCM API available at this endpoint. Example: `"https://my-cloud-storage.org/ocm"`
245
245
* OPTIONAL: provider (string) - A friendly branding name of this endpoint. Example: `"MyCloudStorage"`
246
+
* OPTIONAL: resourceAdvertismentUri (string) - A URI that, if accessed, will advertise available resources at this endpoint.
246
247
* REQUIRED: resourceTypes (array) - A list of all resource types this server supports in both the Sending Server role and the Receiving Server role, with their access protocols. Each item in this list should
247
248
itself be an object containing the following fields:
248
249
* name (string) - A supported resource type (file, folder, calendar, contact, ...).
@@ -644,6 +645,83 @@ A third-party Directory Service is a back-end service used to federate multiple
644
645
}
645
646
```
646
647
648
+
# Appendix D: Resource Discovery Service
649
+
650
+
An OCM Server MAY publicly advertise available resources. This is done via the `resourceAdvertismentUri`. It is expected to expose, via anonymous HTTP GET, a JSON document with the following format:
651
+
652
+
* REQUIRED: `server` - a human-readable name for the Servers providing the Resource Discovery Service
653
+
* REQUIRED: `resources` - a JSON array of objects to describe the list of OCM Servers with the following fields:
654
+
* OPTIONAL: `displayName` - the human-readable name of the OCM Server
655
+
* OPTIONAL: `publicUrl` - an public URL that can be used for direct download via anonymous HTTP GET
656
+
* OPTIONAL: `rocrate` - an embedded JSON object following the [ROCRATE](https://www.researchobject.org/ro-crate/specification/1.1/data-entities.html) data-entities specification.
657
+
* REQUIRED: `id` - the unique identifier of the resource at the OCM Server
0 commit comments