aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-12-16 15:53:12 -0800
committerChristopher Ng <chrng8@gmail.com>2025-01-15 15:49:19 -0800
commitfa110e237353252c3c40abf150b5bc9f90c23837 (patch)
treebba9b61f507a4796269fa43bf01680130e766425
parentbeffb26266c509c89c1d7c96af560392d15f03f7 (diff)
downloadnextcloud-server-fa110e237353252c3c40abf150b5bc9f90c23837.tar.gz
nextcloud-server-fa110e237353252c3c40abf150b5bc9f90c23837.zip
chore(openapi): Update spec
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--apps/files_sharing/openapi.json74
1 files changed, 74 insertions, 0 deletions
diff --git a/apps/files_sharing/openapi.json b/apps/files_sharing/openapi.json
index a9ad361ff35..36c969a3440 100644
--- a/apps/files_sharing/openapi.json
+++ b/apps/files_sharing/openapi.json
@@ -2313,6 +2313,11 @@
"type": "string",
"nullable": true,
"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,
+ "description": "New token"
}
}
}
@@ -3833,6 +3838,75 @@
}
}
}
+ },
+ "/ocs/v2.php/apps/files_sharing/api/v1/token": {
+ "get": {
+ "operationId": "shareapi-generate-token",
+ "summary": "Get a unique share token",
+ "tags": [
+ "shareapi"
+ ],
+ "security": [
+ {
+ "bearer_auth": []
+ },
+ {
+ "basic_auth": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "OCS-APIRequest",
+ "in": "header",
+ "description": "Required to be true for the API request to pass",
+ "required": true,
+ "schema": {
+ "type": "boolean",
+ "default": true
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Token generated successfully",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "ocs"
+ ],
+ "properties": {
+ "ocs": {
+ "type": "object",
+ "required": [
+ "meta",
+ "data"
+ ],
+ "properties": {
+ "meta": {
+ "$ref": "#/components/schemas/OCSMeta"
+ },
+ "data": {
+ "type": "object",
+ "required": [
+ "token"
+ ],
+ "properties": {
+ "token": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
},
"tags": []