mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
chore(openapi): Update spec
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
beffb26266
commit
fa110e2373
1 changed files with 74 additions and 0 deletions
|
|
@ -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": []
|
||||
|
|
|
|||
Loading…
Reference in a new issue