diff options
Diffstat (limited to 'apps/files_sharing/openapi.json')
-rw-r--r-- | apps/files_sharing/openapi.json | 131 |
1 files changed, 112 insertions, 19 deletions
diff --git a/apps/files_sharing/openapi.json b/apps/files_sharing/openapi.json index e70764a59f2..b2df1ecb7b3 100644 --- a/apps/files_sharing/openapi.json +++ b/apps/files_sharing/openapi.json @@ -548,6 +548,9 @@ 1 ] }, + "is_trusted_server": { + "type": "boolean" + }, "is-mount-root": { "type": "boolean" }, @@ -897,40 +900,76 @@ "type": "string" }, "name": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] }, "email": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] }, "address": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] }, "website": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] }, "twitter": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] }, "phone": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] }, "twitter_signature": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] }, "website_signature": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] }, "userid": { - "$ref": "#/components/schemas/Lookup", - "nullable": true + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Lookup" + } + ] } } }, @@ -1477,6 +1516,26 @@ 1 ] } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "x-nc-preview", + "in": "header", + "schema": { + "type": "string" + } } ], "responses": { @@ -1514,6 +1573,16 @@ "schema": {} } } + }, + "303": { + "description": "Redirect to the mime icon url if mimeFallback is true", + "headers": { + "Location": { + "schema": { + "type": "string" + } + } + } } } } @@ -1551,11 +1620,13 @@ "password": { "type": "string", "nullable": true, + "default": null, "description": "Password of the share" }, "dir": { "type": "string", "nullable": true, + "default": null, "description": "Subdirectory to get info about" }, "depth": { @@ -1759,12 +1830,14 @@ "path": { "type": "string", "nullable": true, + "default": null, "description": "Path of the share" }, "permissions": { "type": "integer", "format": "int64", "nullable": true, + "default": null, "description": "Permissions for the share" }, "shareType": { @@ -1776,11 +1849,13 @@ "shareWith": { "type": "string", "nullable": true, + "default": null, "description": "The entity this should be shared with" }, "publicUpload": { "type": "string", "nullable": true, + "default": null, "enum": [ "true", "false" @@ -1795,11 +1870,13 @@ "sendPasswordByTalk": { "type": "string", "nullable": true, + "default": null, "description": "Send the password for the share over Talk" }, "expireDate": { "type": "string", "nullable": true, + "default": null, "description": "The expiry date of the share in the user's timezone at 00:00. If $expireDate is not supplied or set to `null`, the system default will be used." }, "note": { @@ -1815,11 +1892,13 @@ "attributes": { "type": "string", "nullable": true, + "default": null, "description": "Additional attributes for the share" }, "sendMail": { "type": "string", "nullable": true, + "default": null, "enum": [ "false", "true" @@ -2274,56 +2353,67 @@ "type": "integer", "format": "int64", "nullable": true, + "default": null, "description": "New permissions" }, "password": { "type": "string", "nullable": true, + "default": null, "description": "New password" }, "sendPasswordByTalk": { "type": "string", "nullable": true, + "default": null, "description": "New condition if the password should be send over Talk" }, "publicUpload": { "type": "string", "nullable": true, + "default": null, "description": "New condition if public uploading is allowed" }, "expireDate": { "type": "string", "nullable": true, + "default": null, "description": "New expiry date" }, "note": { "type": "string", "nullable": true, + "default": null, "description": "New note" }, "label": { "type": "string", "nullable": true, + "default": null, "description": "New label" }, "hideDownload": { "type": "string", "nullable": true, + "default": null, "description": "New condition if the download should be hidden" }, "attributes": { "type": "string", "nullable": true, + "default": null, "description": "New additional attributes" }, "sendMail": { "type": "string", "nullable": true, + "default": null, "description": "if the share should be send by mail. Considering the share already exists, no mail will be send after the share is updated. You will have to use the sendMail action to send the mail." }, "token": { "type": "string", "nullable": true, + "default": null, "description": "New token" } } @@ -3076,7 +3166,8 @@ "description": "Limit to specific item types", "schema": { "type": "string", - "nullable": true + "nullable": true, + "default": null } }, { @@ -3105,6 +3196,7 @@ "description": "Limit to specific share types", "schema": { "nullable": true, + "default": null, "oneOf": [ { "type": "integer", @@ -3244,6 +3336,7 @@ "description": "Limit to specific share types", "schema": { "nullable": true, + "default": null, "oneOf": [ { "type": "integer", |