Skip to content

Commit b04d9ab

Browse files
committed
rewrote specs
1 parent 0d871f3 commit b04d9ab

1 file changed

Lines changed: 37 additions & 7 deletions

File tree

spec.yaml

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,15 @@ definitions:
257257
example: John Doe
258258
shareType:
259259
type: string
260+
enum: ["user", "group"]
260261
description: |
261-
Recipient share type (user or group)
262+
Recipient share type
262263
example: user
263264
resourceType:
264265
type: string
266+
enum: ["file", "folder"]
265267
description: |
266-
Resource type (file, calendar, contact, ...)
268+
Resource type
267269
example: file
268270
protocols:
269271
type: object
@@ -281,16 +283,44 @@ definitions:
281283
`webapp`, to access remote web applications
282284
`datatx`, to transfer the data to the remote endpoint
283285
Other custom protocols might be added in the future.
286+
additionalProperties:
287+
type: object
288+
properties:
289+
webdav:
290+
type: object
291+
properties:
292+
sharedSecret:
293+
type: string
294+
permissions:
295+
type: array
296+
items:
297+
type: string
298+
enum: ["read", "write", "share"]
299+
uri:
300+
type: string
301+
webapp:
302+
type: object
303+
properties:
304+
uriTemplate:
305+
type: string
306+
datatx:
307+
type: object
308+
properties:
309+
sharedSecret:
310+
type: string
311+
srcUri:
312+
type: string
313+
size:
314+
type: integer
284315
example:
285316
webdav:
286-
sharedSecret: "secret"
287-
permissions: ["read", "write", "share"]
317+
sharedSecret: secret
318+
permissions: ["read"]
288319
uri: "https://open-cloud-mesh.org/remote.php/webdav/path/to/resource"
289320
webapp:
290-
sharedSecret: "secret"
291-
uriTemplate: "https://open-cloud-mesh.org/s/{share-id}/{relative-path-to-shared-resource}"
321+
uriTemplate: "https://open-cloud-mesh.org/s/share-hash/{relative-path-to-shared-resource}"
292322
datatx:
293-
sharedSecret: "secret"
323+
sharedSecret: secret
294324
srcUri: "https://open-cloud-mesh.org/remote.php/webdav/path/to/resource"
295325
size: 1000000000000
296326
NewNotification:

0 commit comments

Comments
 (0)