From 51614105df40022cf343a1b7bfe0bdcf51abc14d Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 22 Jul 2025 15:54:42 +0530 Subject: [PATCH] chore: uncomment --- .../Collections/Documents/Create.php | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php index 68fabdb9e3..405deeb420 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php @@ -86,29 +86,29 @@ class Create extends Action 'replaceWith' => 'tables.createRow', ], ), - // new Method( - // namespace: $this->getSdkNamespace(), - // group: $this->getSdkGroup(), - // name: $this->getBulkActionName(self::getName()), - // description: '/docs/references/databases/create-documents.md', - // auth: [AuthType::ADMIN, AuthType::KEY], - // responses: [ - // new SDKResponse( - // code: SwooleResponse::STATUS_CODE_CREATED, - // model: $this->getBulkResponseModel(), - // ) - // ], - // contentType: ContentType::JSON, - // parameters: [ - // new Parameter('databaseId', optional: false), - // new Parameter('collectionId', optional: false), - // new Parameter('documents', optional: false), - // ], - // deprecated: [ - // 'since' => '1.8.0', - // 'replaceWith' => 'tables.createRows', - // ], - // ) + new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: $this->getBulkActionName(self::getName()), + description: '/docs/references/databases/create-documents.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_CREATED, + model: $this->getBulkResponseModel(), + ) + ], + contentType: ContentType::JSON, + parameters: [ + new Parameter('databaseId', optional: false), + new Parameter('collectionId', optional: false), + new Parameter('documents', optional: false), + ], + deprecated: [ + 'since' => '1.8.0', + 'replaceWith' => 'tables.createRows', + ], + ) ]) ->param('databaseId', '', new UID(), 'Database ID.') ->param('documentId', '', new CustomId(), 'Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.', true)