Skip to content

Commit 7b2bf8c

Browse files
committed
Advertise any other protocol in the discovery endpoint
1 parent f6a59e7 commit 7b2bf8c

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

spec.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,23 +320,22 @@ definitions:
320320
protocols:
321321
type: object
322322
description: |
323-
The supported protocols to access shares at this endpoint.
324-
Implementations MUST support `webdav` at a minimum.
323+
The supported protocols to access shared resources at this endpoint.
324+
Implementations MUST support at least `webdav` for `file` resources,
325+
any other combination of resources and protocols is optional.
325326
properties:
326327
webdav:
327328
type: string
328329
description: |
329330
The top-level WebDAV path at this endpoint. In order to access
330331
a remote shared resource, implementations MAY use this path
331332
as a prefix, or as the full path (see sharing examples).
332-
example: /remote/dav/ocm/
333333
webapp:
334334
type: string
335335
description: |
336336
The top-level path for web apps at this endpoint. This value
337337
is provided for documentation purposes, and it SHALL NOT
338338
be intended as a prefix for share requests.
339-
example: /app/ocm/
340339
datatx:
341340
type: string
342341
description: |
@@ -345,7 +344,17 @@ definitions:
345344
NOT be intended as a prefix. In addition, implementations
346345
are expected to execute the transfer using WebDAV as
347346
the wire protocol.
348-
example: /remote/dav/ocm/
347+
patternProperties:
348+
"^.*$":
349+
type: string
350+
description: |
351+
Any additional protocol supported for this resource type MAY
352+
be advertised here, where the value MAY correspond to a top-level
353+
URI to be used for that protocol.
354+
example:
355+
webdav: "/remote/dav/ocm/"
356+
webapp: "/app/ocm/"
357+
talk: "/apps/spreed/api/"
349358
capabilities:
350359
type: array
351360
description: |

0 commit comments

Comments
 (0)