mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
chore: update open api spec
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
This commit is contained in:
parent
5c7216f3fd
commit
1f7bd449fb
2 changed files with 75 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ class TemplateController extends OCSController {
|
|||
*
|
||||
* 200: Fields returned
|
||||
*/
|
||||
#[NoAdminRequired]
|
||||
public function listTemplateFields(int $fileId): DataResponse {
|
||||
$fields = $this->templateManager->listTemplateFields($fileId);
|
||||
|
||||
|
|
|
|||
|
|
@ -1233,6 +1233,80 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/ocs/v2.php/apps/files/api/v1/templates/fields/{fileId}": {
|
||||
"get": {
|
||||
"operationId": "template-list-template-fields",
|
||||
"summary": "List the fields for the template specified by the given file ID",
|
||||
"tags": [
|
||||
"template"
|
||||
],
|
||||
"security": [
|
||||
{
|
||||
"bearer_auth": []
|
||||
},
|
||||
{
|
||||
"basic_auth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "fileId",
|
||||
"in": "path",
|
||||
"description": "File ID of the template",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "Fields returned",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"ocs"
|
||||
],
|
||||
"properties": {
|
||||
"ocs": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"meta",
|
||||
"data"
|
||||
],
|
||||
"properties": {
|
||||
"meta": {
|
||||
"$ref": "#/components/schemas/OCSMeta"
|
||||
},
|
||||
"data": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/components/schemas/TemplateField"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/ocs/v2.php/apps/files/api/v1/templates/create": {
|
||||
"post": {
|
||||
"operationId": "template-create",
|
||||
|
|
|
|||
Loading…
Reference in a new issue