Skip to content

Commit

Permalink
rewrote specs
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Jan 26, 2023
1 parent 0d871f3 commit 1a2062c
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,15 @@ definitions:
example: John Doe
shareType:
type: string
enum: ["user", "group"]
description: |
Recipient share type (user or group)
Recipient share type
example: user
resourceType:
type: string
enum: ["file", "folder"]
description: |
Resource type (file, calendar, contact, ...)
Resource type
example: file
protocols:
type: object
Expand All @@ -281,18 +283,40 @@ definitions:
`webapp`, to access remote web applications
`datatx`, to transfer the data to the remote endpoint
Other custom protocols might be added in the future.
example:
webdav:
sharedSecret: "secret"
permissions: ["read", "write", "share"]
uri: "https://open-cloud-mesh.org/remote.php/webdav/path/to/resource"
webapp:
sharedSecret: "secret"
uriTemplate: "https://open-cloud-mesh.org/s/{share-id}/{relative-path-to-shared-resource}"
datatx:
sharedSecret: "secret"
srcUri: "https://open-cloud-mesh.org/remote.php/webdav/path/to/resource"
size: 1000000000000
anyOf:
properties:
webdav:
type: object
allOf:
properties:
sharedSecret:
type: string
permissions:
type: array
items:
type: string
enum: ["read", "write", "share"]
uri:
type: string
example: "https://open-cloud-mesh.org/remote.php/webdav/path/to/resource"
webapp:
type: object
allOf:
properties:
uriTemplate: string
example: "https://open-cloud-mesh.org/s/share-hash/{relative-path-to-shared-resource}"
datatx:
type: object
allOf:
properties:
sharedSecret:
type: string
srcUri:
type: string
example: "https://open-cloud-mesh.org/remote.php/webdav/path/to/resource"
size:
type: integer
example: 1000000000000
NewNotification:
type: object
required:
Expand Down

0 comments on commit 1a2062c

Please sign in to comment.