diff options
author | Elizabeth Danzberger <lizzy7128@tutanota.de> | 2025-05-19 18:19:55 -0400 |
---|---|---|
committer | Elizabeth Danzberger <lizzy7128@tutanota.de> | 2025-05-19 18:19:55 -0400 |
commit | 1f7bd449fb2ee8df9b70fbae6b46e33721d8a2a0 (patch) | |
tree | ef6ffed5cca4f58196d9a431f9dad3a92b9d462d | |
parent | 5c7216f3fde391699e910d367efe7405c7d930c1 (diff) | |
download | nextcloud-server-1f7bd449fb2ee8df9b70fbae6b46e33721d8a2a0.tar.gz nextcloud-server-1f7bd449fb2ee8df9b70fbae6b46e33721d8a2a0.zip |
chore: update open api spec
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
-rw-r--r-- | apps/files/lib/Controller/TemplateController.php | 1 | ||||
-rw-r--r-- | apps/files/openapi.json | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/TemplateController.php b/apps/files/lib/Controller/TemplateController.php index c985f05f2ed..ee4c86941c7 100644 --- a/apps/files/lib/Controller/TemplateController.php +++ b/apps/files/lib/Controller/TemplateController.php @@ -60,6 +60,7 @@ class TemplateController extends OCSController { * * 200: Fields returned */ + #[NoAdminRequired] public function listTemplateFields(int $fileId): DataResponse { $fields = $this->templateManager->listTemplateFields($fileId); diff --git a/apps/files/openapi.json b/apps/files/openapi.json index fbb1bd17eeb..c227b12d922 100644 --- a/apps/files/openapi.json +++ b/apps/files/openapi.json @@ -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", |