From b139c1e4659a076d1491f8fb88d68c9cc849681f Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Tue, 28 Mar 2023 18:40:17 +0200 Subject: [PATCH] Specify minimum required functionality for an OCM endpoint --- spec.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/spec.yaml b/spec.yaml index 069b4c6..a15e8c9 100644 --- a/spec.yaml +++ b/spec.yaml @@ -263,34 +263,39 @@ definitions: name: type: string description: | - A supported resource type (file, folder, calendar, contact, ...) + A supported resource type (file, folder, calendar, contact, ...). + Implementations MUST support `file` at a minimum. example: file shareTypes: type: array - description: The supported recipient share types + description: | + The supported recipient share types. + Implementations MUST support `user` at a minimum. items: type: string enum: ["user", "group", "federation"] + example: ["user"] protocols: type: object description: | - The supported protocols to access shares at this endpoint + The supported protocols to access shares at this endpoint. + Implementations MUST support `webdav` at a minimum. anyOf: - properties: webdav: type: string description: The top-level WebDAV endpoint - example: https://my-cloud-storage.org/ocm + example: https://my-cloud-storage.org/remote.php/dav/ocm - properties: webapp: type: string description: The top-level endpoint for web apps - example: https://my-cloud-storage.org + example: https://my-cloud-storage.org/external/ocm - properties: datatx: type: string description: The top-level endpoint for data transfers - example: https://my-cloud-storage.org + example: https://my-cloud-storage.org/remote.php/dav/ocm NewShare: type: object required: