From 557493d09116543045be6d7d9b7d0b6ceabadca9 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 12:05:40 +0530 Subject: [PATCH 01/24] update: move to grids api. --- .../Http/Databases/Collections/Action.php | 6 +- .../Collections/Attributes/Action.php | 4 +- .../Collections/Documents/Action.php | 4 +- .../Databases/Collections/Indexes/Action.php | 4 +- .../Databases/Http/Databases/Create.php | 4 +- .../Databases/Http/Databases/Delete.php | 4 +- .../Modules/Databases/Http/Databases/Get.php | 4 +- .../Databases/Http/Databases/Logs/XList.php | 4 +- .../Databases/Http/Databases/Update.php | 4 +- .../Databases/Http/Databases/Usage/Get.php | 4 +- .../Databases/Http/Databases/Usage/XList.php | 4 +- .../Databases/Http/Databases/XList.php | 4 +- .../Tables/Columns/Boolean/Create.php | 4 +- .../Tables/Columns/Boolean/Update.php | 4 +- .../Tables/Columns/Datetime/Create.php | 4 +- .../Tables/Columns/Datetime/Update.php | 4 +- .../Tables/Columns/Delete.php | 4 +- .../Tables/Columns/Email/Create.php | 4 +- .../Tables/Columns/Email/Update.php | 4 +- .../Tables/Columns/Enum/Create.php | 4 +- .../Tables/Columns/Enum/Update.php | 4 +- .../Tables/Columns/Float/Create.php | 4 +- .../Tables/Columns/Float/Update.php | 4 +- .../Tables/Columns/Get.php | 4 +- .../Tables/Columns/IP/Create.php | 4 +- .../Tables/Columns/IP/Update.php | 4 +- .../Tables/Columns/Integer/Create.php | 4 +- .../Tables/Columns/Integer/Update.php | 4 +- .../Tables/Columns/Relationship/Create.php | 4 +- .../Tables/Columns/Relationship/Update.php | 4 +- .../Tables/Columns/String/Create.php | 4 +- .../Tables/Columns/String/Update.php | 4 +- .../Tables/Columns/URL/Create.php | 4 +- .../Tables/Columns/URL/Update.php | 4 +- .../Tables/Columns/XList.php | 4 +- .../{Databases => Grids}/Tables/Create.php | 6 +- .../{Databases => Grids}/Tables/Delete.php | 6 +- .../Http/{Databases => Grids}/Tables/Get.php | 6 +- .../Tables/Indexes/Create.php | 4 +- .../Tables/Indexes/Delete.php | 4 +- .../Tables/Indexes/Get.php | 4 +- .../Tables/Indexes/XList.php | 4 +- .../Tables/Logs/XList.php | 6 +- .../Tables/Rows/Bulk/Delete.php | 4 +- .../Tables/Rows/Bulk/Update.php | 4 +- .../Tables/Rows/Bulk/Upsert.php | 4 +- .../Tables/Rows/Column/Decrement.php | 4 +- .../Tables/Rows/Column/Increment.php | 4 +- .../Tables/Rows/Create.php | 4 +- .../Tables/Rows/Delete.php | 4 +- .../{Databases => Grids}/Tables/Rows/Get.php | 4 +- .../Tables/Rows/Logs/XList.php | 4 +- .../Tables/Rows/Update.php | 4 +- .../Tables/Rows/Upsert.php | 4 +- .../Tables/Rows/XList.php | 4 +- .../{Databases => Grids}/Tables/Update.php | 6 +- .../{Databases => Grids}/Tables/Usage/Get.php | 6 +- .../{Databases => Grids}/Tables/XList.php | 6 +- .../Platform/Modules/Databases/SDKMethod.php | 62 +++++++++++++ .../Databases/Services/Registry/Tables.php | 92 +++++++++---------- src/Appwrite/SDK/Specification/Format.php | 16 ++-- .../SDK/Specification/Format/OpenAPI3.php | 37 ++++---- .../SDK/Specification/Format/Swagger2.php | 36 ++++---- 63 files changed, 274 insertions(+), 217 deletions(-) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Boolean/Create.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Boolean/Update.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Datetime/Create.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Datetime/Update.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Delete.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Email/Create.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Email/Update.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Enum/Create.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Enum/Update.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Float/Create.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Float/Update.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Get.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/IP/Create.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/IP/Update.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Integer/Create.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Integer/Update.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Relationship/Create.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/Relationship/Update.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/String/Create.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/String/Update.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/URL/Create.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/URL/Update.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Columns/XList.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Create.php (95%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Delete.php (92%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Get.php (90%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Indexes/Create.php (95%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Indexes/Delete.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Indexes/Get.php (92%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Indexes/XList.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Logs/XList.php (88%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Bulk/Delete.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Bulk/Update.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Bulk/Upsert.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Column/Decrement.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Column/Increment.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Create.php (97%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Delete.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Get.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Logs/XList.php (92%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Update.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/Upsert.php (95%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Rows/XList.php (93%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Update.php (94%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/Usage/Get.php (87%) rename src/Appwrite/Platform/Modules/Databases/Http/{Databases => Grids}/Tables/XList.php (93%) create mode 100644 src/Appwrite/Platform/Modules/Databases/SDKMethod.php diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Action.php index 9329300ffa..351810fcc6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Action.php @@ -20,7 +20,7 @@ abstract class Action extends UtopiaAction public function setHttpPath(string $path): UtopiaAction { - if (str_contains($path, '/:databaseId/tables')) { + if (str_contains($path, '/:databaseId/grids/tables')) { $this->context = TABLES; } @@ -56,7 +56,7 @@ abstract class Action extends UtopiaAction */ final protected function getSdkGroup(): string { - return $this->isCollectionsAPI() ? 'collections' : 'tables'; + return $this->isCollectionsAPI() ? 'collections' : 'grids'; } /** @@ -64,7 +64,7 @@ abstract class Action extends UtopiaAction */ final protected function getSdkNamespace(): string { - return $this->isCollectionsAPI() ? 'databases' : 'tables'; + return $this->isCollectionsAPI() ? 'databases' : 'grids'; } /** diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Action.php index 3f331edc9a..765741ef41 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Action.php @@ -37,7 +37,7 @@ abstract class Action extends UtopiaAction public function setHttpPath(string $path): UtopiaAction { - if (str_contains($path, '/:databaseId/tables')) { + if (str_contains($path, '/:databaseId/grids/tables')) { $this->context = COLUMNS; } @@ -77,7 +77,7 @@ abstract class Action extends UtopiaAction */ final protected function getSdkNamespace(): string { - return $this->isCollectionsAPI() ? 'databases' : 'tables'; + return $this->isCollectionsAPI() ? 'databases' : 'grids'; } /** diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php index bfebca4cf7..9a1c5f3dad 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php @@ -22,7 +22,7 @@ abstract class Action extends UtopiaAction public function setHttpPath(string $path): UtopiaAction { - if (str_contains($path, '/:databaseId/tables')) { + if (str_contains($path, '/:databaseId/grids/tables')) { $this->context = ROWS; } @@ -72,7 +72,7 @@ abstract class Action extends UtopiaAction */ final protected function getSdkNamespace(): string { - return $this->isCollectionsAPI() ? 'databases' : 'tables'; + return $this->isCollectionsAPI() ? 'databases' : 'grids'; } /** diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Action.php index 33c2977be5..bafa9d0b91 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Action.php @@ -19,7 +19,7 @@ abstract class Action extends UtopiaAction public function setHttpPath(string $path): UtopiaAction { - if (str_contains($path, '/:databaseId/tables')) { + if (str_contains($path, '/:databaseId/grids/tables')) { $this->context = COLUMN_INDEX; } @@ -63,7 +63,7 @@ abstract class Action extends UtopiaAction */ final protected function getSdkNamespace(): string { - return $this->isCollectionsAPI() ? 'databases' : 'tables'; + return $this->isCollectionsAPI() ? 'databases' : 'grids'; } /** diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php index 38374402fb..0dbe3eebbd 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php @@ -4,9 +4,9 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Event\Event; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; -use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Response as UtopiaResponse; @@ -42,7 +42,7 @@ class Create extends Action ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'database.create') ->label('audits.resource', 'database/{response.$id}') - ->label('sdk', new Method( + ->label('sdk', SDKMethod::withGridsAPI( namespace: 'databases', group: 'databases', name: 'create', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Delete.php index 56cf1a4296..fb5594abb8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Delete.php @@ -5,9 +5,9 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Event\Database as EventDatabase; use Appwrite\Event\Event; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; -use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; @@ -34,7 +34,7 @@ class Delete extends Action ->label('event', 'databases.[databaseId].delete') ->label('audits.event', 'database.delete') ->label('audits.resource', 'database/{request.databaseId}') - ->label('sdk', new Method( + ->label('sdk', SDKMethod::withGridsAPI( namespace: 'databases', group: 'databases', name: 'delete', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Get.php index f478dc7917..ff4a9af0a4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Get.php @@ -3,9 +3,9 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; -use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; @@ -29,7 +29,7 @@ class Get extends Action ->groups(['api', 'database']) ->label('scope', 'databases.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', new Method( + ->label('sdk', SDKMethod::withGridsAPI( namespace: 'databases', group: 'databases', name: 'get', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Logs/XList.php index 52f2ad93b6..6d3e30f52a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Logs/XList.php @@ -3,9 +3,9 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Logs; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; -use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use DeviceDetector\DeviceDetector as Detector; @@ -41,7 +41,7 @@ class XList extends Action ->groups(['api', 'database']) ->label('scope', 'databases.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', new Method( + ->label('sdk', SDKMethod::withGridsAPI( namespace: 'databases', group: 'logs', name: 'listLogs', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php index a746f4ce4c..d164325469 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php @@ -4,9 +4,9 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Event\Event; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; -use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; @@ -35,7 +35,7 @@ class Update extends Action ->label('event', 'databases.[databaseId].update') ->label('audits.event', 'database.update') ->label('audits.resource', 'database/{response.$id}') - ->label('sdk', new Method( + ->label('sdk', SDKMethod::withGridsAPI( namespace: 'databases', group: 'databases', name: 'update', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/Get.php index 56fcc29688..fcdb4c615d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/Get.php @@ -3,9 +3,9 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Usage; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; -use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Config\Config; @@ -34,7 +34,7 @@ class Get extends Action ->groups(['api', 'database', 'usage']) ->label('scope', 'collections.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', new Method( + ->label('sdk', SDKMethod::withGridsAPI( namespace: 'databases', group: null, name: self::getName(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/XList.php index b5c898fd1b..b3ff8a6fac 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/XList.php @@ -2,9 +2,9 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Usage; +use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; -use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Config\Config; @@ -32,7 +32,7 @@ class XList extends Action ->groups(['api', 'database', 'usage']) ->label('scope', 'collections.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', new Method( + ->label('sdk', SDKMethod::withGridsAPI( namespace: 'databases', group: null, name: self::getName(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php index 52f3fd2b55..1806cdc3fb 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php @@ -3,9 +3,9 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; -use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\Queries\Databases; use Appwrite\Utopia\Response as UtopiaResponse; @@ -35,7 +35,7 @@ class XList extends Action ->groups(['api', 'database']) ->label('scope', 'databases.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', new Method( + ->label('sdk', SDKMethod::withGridsAPI( namespace: 'databases', group: 'databases', name: 'list', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Boolean/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Create.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Boolean/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Create.php index e0f1992ccb..214afbe546 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Boolean/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/boolean') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/boolean') ->desc('Create boolean column') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Boolean/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Update.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Boolean/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Update.php index 888f31d9bd..3353005c59 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Boolean/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/boolean/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/boolean/:key') ->desc('Update boolean column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Datetime/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Create.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Datetime/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Create.php index 63110c9c6a..bcc5967586 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Datetime/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/datetime') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/datetime') ->desc('Create datetime column') ->groups(['api', 'database']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Datetime/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Update.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Datetime/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Update.php index 33c8ff9f94..bd92a0f14d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Datetime/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/datetime/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/datetime/:key') ->desc('Update dateTime column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Delete.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Delete.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Delete.php index 923ae3ee24..be764d58a8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Delete.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/:key') ->desc('Delete column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Email/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Create.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Email/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Create.php index fe4170c74e..a5baa6fc89 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Email/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/email') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/email') ->desc('Create email column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Email/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Update.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Email/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Update.php index 8f4fd5ca8f..2e7dec9e63 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Email/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/email/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/email/:key') ->desc('Update email column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Enum/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Create.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Enum/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Create.php index f64ededb8f..e420b340d2 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Enum/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/enum') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/enum') ->desc('Create enum column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Enum/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Update.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Enum/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Update.php index 77bd07bdcd..b9337eb2b0 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Enum/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/enum/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/enum/:key') ->desc('Update enum column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Float/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Create.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Float/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Create.php index ce7d55c880..e0d9a41930 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Float/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/float') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/float') ->desc('Create float column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Float/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Update.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Float/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Update.php index 31f4bd61ec..4cdc2ff319 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Float/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/float/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/float/:key') ->desc('Update float column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Get.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Get.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Get.php index 24071db6b1..5151c69d42 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Get.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/:key') ->desc('Get column') ->groups(['api', 'database']) ->label('scope', 'tables.read') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/IP/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Create.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/IP/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Create.php index fcaf3f0a8b..cfba713edc 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/IP/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/ip') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/ip') ->desc('Create IP address column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/IP/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Update.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/IP/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Update.php index 38759e4654..f9f31c8336 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/IP/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/ip/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/ip/:key') ->desc('Update IP address column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Integer/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Create.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Integer/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Create.php index 67848f7ef9..22ea591e82 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Integer/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/integer') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/integer') ->desc('Create integer column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Integer/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Update.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Integer/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Update.php index 27779abe3b..e5224b070a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Integer/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/integer/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/integer/:key') ->desc('Update integer column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Relationship/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Create.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Relationship/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Create.php index f1a0fd9601..c89fcc4650 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Relationship/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/relationship') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/relationship') ->desc('Create relationship column') ->groups(['api', 'database']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Relationship/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Update.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Relationship/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Update.php index 1385e157de..6b147c1db1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/Relationship/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/:key/relationship') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/:key/relationship') ->desc('Update relationship column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/String/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Create.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/String/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Create.php index 2dc1466a67..89565e3425 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/String/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/string') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/string') ->desc('Create string column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/String/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Update.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/String/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Update.php index 9e1034dbcc..b4e457cb89 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/String/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/string/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/string/:key') ->desc('Update string column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/URL/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Create.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/URL/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Create.php index 65b1387a11..1bff31b06f 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/URL/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/url') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/url') ->desc('Create URL column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/URL/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Update.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/URL/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Update.php index 34fc77ac42..30810446da 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/URL/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/url/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/url/:key') ->desc('Update URL column') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/XList.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php index b6578777b0..719418cc49 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Columns/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns') ->desc('List columns') ->groups(['api', 'database']) ->label('scope', 'tables.read') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Create.php similarity index 95% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Create.php index 1fee8fc840..ac10781653 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables') + ->setHttpPath('/v1/databases/:databaseId/grids/tables') ->desc('Create table') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Delete.php similarity index 92% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Delete.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Delete.php index ef0478c042..1da68e63bc 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Delete.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId') ->desc('Delete table') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Get.php similarity index 90% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Get.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Get.php index 1cc147f04d..a161a544db 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Get.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId') ->desc('Get table') ->groups(['api', 'database']) ->label('scope', 'tables.read') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Create.php similarity index 95% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Create.php index a83bb3dc44..e280cba295 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/indexes') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/indexes') ->desc('Create index') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].indexes.[indexId].create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Delete.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Delete.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Delete.php index a1d2fd5fce..21185a21b6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Delete.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/indexes/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/indexes/:key') ->desc('Delete index') ->groups(['api', 'database']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Get.php similarity index 92% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Get.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Get.php index cb8ef92a80..66d57cc839 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Get.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/indexes/:key') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/indexes/:key') ->desc('Get index') ->groups(['api', 'database']) ->label('scope', 'tables.read') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/XList.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/XList.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/XList.php index 78b2c8874f..85b913c331 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Indexes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/XList.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/indexes') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/indexes') ->desc('List indexes') ->groups(['api', 'database']) ->label('scope', 'tables.read') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Logs/XList.php similarity index 88% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Logs/XList.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Logs/XList.php index 63c53cf2bd..acac561c80 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Logs/XList.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/logs') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/logs') ->desc('List table logs') ->groups(['api', 'database']) ->label('scope', 'tables.read') @@ -32,7 +32,7 @@ class XList extends CollectionLogXList ->label('sdk', new Method( namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), - name: 'listLogs', // getName needs to be different from parent action to avoid conflict in path name + name: self::getName(), description: '/docs/references/databases/get-table-logs.md', auth: [AuthType::ADMIN], responses: [ diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Delete.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Delete.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Delete.php index 30aad96db8..87de8e0e49 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Delete.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows') ->desc('Delete rows') ->groups(['api', 'database']) ->label('scope', 'rows.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Update.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Update.php index 4a862b1807..c28d49f934 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows') ->desc('Update rows') ->groups(['api', 'database']) ->label('scope', 'rows.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Upsert.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Upsert.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Upsert.php index db87daed89..db6c7b4140 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Bulk/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Upsert.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PUT) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows') ->desc('Create or update rows') ->groups(['api', 'database']) ->label('scope', 'rows.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Column/Decrement.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Decrement.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Column/Decrement.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Decrement.php index e9eb81aab8..f265cc663b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Column/Decrement.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Decrement.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows/:rowId/:column/decrement') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows/:rowId/:column/decrement') ->desc('Decrement row column') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].decrement') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Column/Increment.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Increment.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Column/Increment.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Increment.php index a30618ea62..c343260871 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Column/Increment.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Increment.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows/:rowId/:column/increment') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows/:rowId/:column/increment') ->desc('Increment row column') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].increment') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Create.php similarity index 97% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Create.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Create.php index 3fc8a30bfd..bd616e40f1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Create.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_POST) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows') ->desc('Create row') ->groups(['api', 'database']) ->label('scope', 'rows.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Delete.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Delete.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Delete.php index 36c8aefbc6..a2ce5fcecd 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Delete.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows/:rowId') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows/:rowId') ->desc('Delete row') ->groups(['api', 'database']) ->label('scope', 'rows.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Get.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Get.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Get.php index b821d01ebe..b628f0e54f 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Get.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows/:rowId') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows/:rowId') ->desc('Get row') ->groups(['api', 'database']) ->label('scope', 'rows.read') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Logs/XList.php similarity index 92% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Logs/XList.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Logs/XList.php index b279e96381..c6fa34637e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Logs/XList.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows/:rowId/logs') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows/:rowId/logs') ->desc('List row logs') ->groups(['api', 'database']) ->label('scope', 'rows.read') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Update.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Update.php index 77cf531a4f..e7b18cfd20 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows/:rowId') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows/:rowId') ->desc('Update row') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Upsert.php similarity index 95% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Upsert.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Upsert.php index d6207a5c1f..5e5683e84d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Upsert.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PUT) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows/:rowId') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows/:rowId') ->desc('Create or update a row') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].upsert') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/XList.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/XList.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/XList.php index 244a4afdb9..16a0c139da 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Rows/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/XList.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/rows') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/rows') ->desc('List rows') ->groups(['api', 'database']) ->label('scope', 'rows.read') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Update.php similarity index 94% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Update.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Update.php index f5400366fd..ba5f2ad3ee 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Update.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_PUT) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId') ->desc('Update table') ->groups(['api', 'database', 'schema']) ->label('scope', 'tables.write') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Usage/Get.php similarity index 87% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Usage/Get.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Usage/Get.php index 9f51a82734..7246070e1e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Usage/Get.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables/:tableId/usage') + ->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/usage') ->desc('Get table usage stats') ->groups(['api', 'database', 'usage']) ->label('scope', 'tables.read') @@ -36,7 +36,7 @@ class Get extends CollectionUsageGet ->label('sdk', new Method( namespace: $this->getSdkNamespace(), group: null, - name: 'getUsage', // getName needs to be different from parent action to avoid conflict in path name + name: self::getName(), description: '/docs/references/databases/get-table-usage.md', auth: [AuthType::ADMIN], responses: [ diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/XList.php similarity index 93% rename from src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/XList.php rename to src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/XList.php index 361ab2020f..b6dd9f7fb5 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Tables/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/XList.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) - ->setHttpPath('/v1/databases/:databaseId/tables') + ->setHttpPath('/v1/databases/:databaseId/grids/tables') ->desc('List tables') ->groups(['api', 'database']) ->label('scope', 'tables.read') diff --git a/src/Appwrite/Platform/Modules/Databases/SDKMethod.php b/src/Appwrite/Platform/Modules/Databases/SDKMethod.php new file mode 100644 index 0000000000..62825a0b08 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/SDKMethod.php @@ -0,0 +1,62 @@ + 'createDatabase', + 'list' => 'listDatabases', + 'get' => 'getDatabase', + 'update' => 'updateDatabase', + 'delete' => 'deleteDatabase', + 'listLogs' => 'listDatabaseLogs', + 'listUsage' => 'listDatabaseUsage', + default => $original /* `getDatabaseUsage` is already correct! */ + }; + } + + private static function transformDocsPathForGrids(string $original): string + { + return str_replace('/databases/', '/grids/', $original); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Services/Registry/Tables.php b/src/Appwrite/Platform/Modules/Databases/Services/Registry/Tables.php index 4ddadeece6..aad8571553 100644 --- a/src/Appwrite/Platform/Modules/Databases/Services/Registry/Tables.php +++ b/src/Appwrite/Platform/Modules/Databases/Services/Registry/Tables.php @@ -2,52 +2,52 @@ namespace Appwrite\Platform\Modules\Databases\Services\Registry; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Boolean\Create as CreateBoolean; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Boolean\Update as UpdateBoolean; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Datetime\Create as CreateDatetime; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Datetime\Update as UpdateDatetime; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Delete as DeleteColumn; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Email\Create as CreateEmail; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Email\Update as UpdateEmail; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Enum\Create as CreateEnum; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Enum\Update as UpdateEnum; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Float\Create as CreateFloat; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Float\Update as UpdateFloat; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Get as GetColumn; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Integer\Create as CreateInteger; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Integer\Update as UpdateInteger; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\IP\Create as CreateIP; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\IP\Update as UpdateIP; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Relationship\Create as CreateRelationship; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Relationship\Update as UpdateRelationship; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\String\Create as CreateString; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\String\Update as UpdateString; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\URL\Create as CreateURL; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\URL\Update as UpdateURL; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\XList as ListColumns; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Create as CreateTable; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Delete as DeleteTable; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Get as GetTable; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Indexes\Create as CreateColumnIndex; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Indexes\Delete as DeleteColumnIndex; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Indexes\Get as GetColumnIndex; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Indexes\XList as ListColumnIndexes; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Logs\XList as ListTableLogs; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Bulk\Delete as DeleteRows; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Bulk\Update as UpdateRows; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Bulk\Upsert as UpsertRows; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Column\Decrement as DecrementRowColumn; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Column\Increment as IncrementRowColumn; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Create as CreateRow; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Delete as DeleteRow; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Get as GetRow; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Logs\XList as ListRowLogs; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Update as UpdateRow; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\Upsert as UpsertRow; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Rows\XList as ListRows; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Update as UpdateTable; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Usage\Get as GetTableUsage; -use Appwrite\Platform\Modules\Databases\Http\Databases\Tables\XList as ListTables; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Boolean\Create as CreateBoolean; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Boolean\Update as UpdateBoolean; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Datetime\Create as CreateDatetime; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Datetime\Update as UpdateDatetime; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Delete as DeleteColumn; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Email\Create as CreateEmail; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Email\Update as UpdateEmail; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Enum\Create as CreateEnum; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Enum\Update as UpdateEnum; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Float\Create as CreateFloat; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Float\Update as UpdateFloat; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Get as GetColumn; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Integer\Create as CreateInteger; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Integer\Update as UpdateInteger; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\IP\Create as CreateIP; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\IP\Update as UpdateIP; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Relationship\Create as CreateRelationship; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Relationship\Update as UpdateRelationship; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\String\Create as CreateString; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\String\Update as UpdateString; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\URL\Create as CreateURL; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\URL\Update as UpdateURL; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\XList as ListColumns; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Create as CreateTable; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Delete as DeleteTable; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Get as GetTable; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Indexes\Create as CreateColumnIndex; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Indexes\Delete as DeleteColumnIndex; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Indexes\Get as GetColumnIndex; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Indexes\XList as ListColumnIndexes; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Logs\XList as ListTableLogs; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Bulk\Delete as DeleteRows; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Bulk\Update as UpdateRows; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Bulk\Upsert as UpsertRows; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Column\Decrement as DecrementRowColumn; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Column\Increment as IncrementRowColumn; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Create as CreateRow; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Delete as DeleteRow; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Get as GetRow; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Logs\XList as ListRowLogs; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Update as UpdateRow; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\Upsert as UpsertRow; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Rows\XList as ListRows; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Update as UpdateTable; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Usage\Get as GetTableUsage; +use Appwrite\Platform\Modules\Databases\Http\Grids\Tables\XList as ListTables; use Utopia\Platform\Service; /** diff --git a/src/Appwrite/SDK/Specification/Format.php b/src/Appwrite/SDK/Specification/Format.php index 4a5ebd4566..6ab0310e14 100644 --- a/src/Appwrite/SDK/Specification/Format.php +++ b/src/Appwrite/SDK/Specification/Format.php @@ -114,6 +114,7 @@ abstract class Format protected function getEnumName(string $service, string $method, string $param): ?string { + /* `$service` is `$namespace` */ switch ($service) { case 'proxy': switch ($method) { @@ -206,12 +207,14 @@ abstract class Format } } break; - case 'tables': + case 'grids': switch ($method) { - case 'getUsage': + case 'getDatabaseUsage': + case 'listDatabaseUsage': + case 'getTableUsage': switch ($param) { case 'range': - return 'DatabaseUsageRange'; + return 'GridUsageRange'; } break; case 'createRelationshipColumn': @@ -478,16 +481,17 @@ abstract class Format switch ($method) { /*case 'getUsage':*/ case 'listUsage': - case 'getTableUsage': case 'getCollectionUsage': case 'getDatabaseUsage': // Range Enum Keys return ['Twenty Four Hours', 'Thirty Days', 'Ninety Days']; } break; - case 'tables': + case 'grids': switch ($method) { - case 'getUsage': + case 'getDatabaseUsage': + case 'listDatabaseUsage': + case 'getTableUsage': // Range Enum Keys return ['Twenty Four Hours', 'Thirty Days', 'Ninety Days']; } diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 96c8317c8f..a58f0b3068 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -111,11 +111,7 @@ class OpenAPI3 extends Format */ $consumes = [$sdk->getRequestType()->value]; - $method = $sdk->getMethodName() ?? \uniqid(); - - if (!empty($method) && \is_array($method)) { - $method = \array_keys($method)[0]; - } + $methodName = $sdk->getMethodName() ?? \uniqid(); $desc = $sdk->getDescriptionFilePath() ?: $sdk->getDescription(); $produces = ($sdk->getContentType())->value; @@ -149,18 +145,18 @@ class OpenAPI3 extends Format $temp = [ 'summary' => $route->getDesc(), - 'operationId' => $namespace . ucfirst($method), + 'operationId' => $namespace . ucfirst($methodName), 'tags' => [$namespace], 'description' => $descContents, 'responses' => [], 'deprecated' => $sdk->isDeprecated(), 'x-appwrite' => [ // Appwrite related metadata - 'method' => $method, + 'method' => $methodName, 'group' => $sdk->getGroup(), 'weight' => $route->getOrder(), 'cookies' => $route->getLabel('sdk.cookies', false), 'type' => $sdk->getType()->value ?? '', - 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md', + 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($methodName) . '.md', 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '', 'rate-limit' => $route->getLabel('abuse-limit', 0), 'rate-time' => $route->getLabel('abuse-time', 3600), @@ -180,11 +176,11 @@ class OpenAPI3 extends Format if (!empty($additionalMethods)) { $temp['x-appwrite']['methods'] = []; - foreach ($additionalMethods as $method) { - /** @var Method $method */ - $desc = $method->getDescriptionFilePath(); + foreach ($additionalMethods as $methodObj) { + /** @var Method $methodObj */ + $desc = $methodObj->getDescriptionFilePath(); - $methodSecurities = $method->getAuth(); + $methodSecurities = $methodObj->getAuth(); $methodSdkPlatforms = []; foreach ($methodSecurities as $value) { switch ($value) { @@ -211,15 +207,14 @@ class OpenAPI3 extends Format } $methodSecurities = ['Project' => []]; - foreach ($method->getAuth() as $security) { - /** @var AuthType $security */ + foreach ($methodObj->getAuth() as $security) { if (\array_key_exists($security->value, $this->keys)) { $methodSecurities[$security->value] = []; } } $additionalMethod = [ - 'name' => $method->getMethodName(), + 'name' => $methodObj->getMethodName(), 'auth' => \array_slice($methodSecurities, 0, $this->authCount), 'parameters' => [], 'required' => [], @@ -227,7 +222,7 @@ class OpenAPI3 extends Format 'description' => ($desc) ? \file_get_contents($desc) : '', ]; - foreach ($method->getParameters() as $parameter) { + foreach ($methodObj->getParameters() as $parameter) { $additionalMethod['parameters'][] = $parameter->getName(); if (!$parameter->getOptional()) { @@ -235,7 +230,7 @@ class OpenAPI3 extends Format } } - foreach ($method->getResponses() as $response) { + foreach ($methodObj->getResponses() as $response) { if (\is_array($response->getModel())) { $additionalMethod['responses'][] = [ 'code' => $response->getCode(), @@ -506,13 +501,13 @@ class OpenAPI3 extends Format $node['schema']['type'] = $validator->getType(); $node['schema']['x-example'] = $validator->getList()[0]; - //Iterate from the blackList. If it matches with the current one, then it is a blackList + // Iterate from the blackList. If it matches with the current one, then it is a blackList // Do not add the enum $allowed = true; foreach ($this->enumBlacklist as $blacklist) { if ( $blacklist['namespace'] == $sdk->getNamespace() - && $blacklist['method'] == $method + && $blacklist['method'] == $methodName && $blacklist['parameter'] == $name ) { $allowed = false; @@ -522,8 +517,8 @@ class OpenAPI3 extends Format if ($allowed) { $node['schema']['enum'] = $validator->getList(); - $node['schema']['x-enum-name'] = $this->getEnumName($sdk->getNamespace() ?? '', $method, $name); - $node['schema']['x-enum-keys'] = $this->getEnumKeys($sdk->getNamespace() ?? '', $method, $name); + $node['schema']['x-enum-name'] = $this->getEnumName($sdk->getNamespace() ?? '', $methodName, $name); + $node['schema']['x-enum-keys'] = $this->getEnumKeys($sdk->getNamespace() ?? '', $methodName, $name); } if ($validator->getType() === 'integer') { $node['format'] = 'int32'; diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 9b104637b4..4420cc6736 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -112,11 +112,7 @@ class Swagger2 extends Format $consumes = [$sdk->getRequestType()->value]; } - $method = $sdk->getMethodName() ?? \uniqid(); - - if (!empty($method) && is_array($method)) { - $method = array_keys($method)[0]; - } + $methodName = $sdk->getMethodName() ?? \uniqid(); $desc = $sdk->getDescriptionFilePath() ?: $sdk->getDescription(); $produces = ($sdk->getContentType())->value; @@ -151,7 +147,7 @@ class Swagger2 extends Format $temp = [ 'summary' => $route->getDesc(), - 'operationId' => $namespace . ucfirst($method), + 'operationId' => $namespace . ucfirst($methodName), 'consumes' => [], 'produces' => [], 'tags' => [$namespace], @@ -159,12 +155,12 @@ class Swagger2 extends Format 'responses' => [], 'deprecated' => $sdk->isDeprecated(), 'x-appwrite' => [ // Appwrite related metadata - 'method' => $method, + 'method' => $methodName, 'group' => $sdk->getGroup(), 'weight' => $route->getOrder(), 'cookies' => $route->getLabel('sdk.cookies', false), 'type' => $sdk->getType()->value ?? '', - 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md', + 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($methodName) . '.md', 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '', 'rate-limit' => $route->getLabel('abuse-limit', 0), 'rate-time' => $route->getLabel('abuse-time', 3600), @@ -188,11 +184,11 @@ class Swagger2 extends Format if (!empty($additionalMethods)) { $temp['x-appwrite']['methods'] = []; - foreach ($additionalMethods as $method) { - /** @var Method $method */ - $desc = $method->getDescriptionFilePath(); + foreach ($additionalMethods as $methodObj) { + /** @var Method $methodObj */ + $desc = $methodObj->getDescriptionFilePath(); - $methodSecurities = $method->getAuth(); + $methodSecurities = $methodObj->getAuth(); $methodSdkPlatforms = []; foreach ($methodSecurities as $value) { switch ($value) { @@ -219,7 +215,7 @@ class Swagger2 extends Format } $methodSecurities = ['Project' => []]; - foreach ($method->getAuth() as $security) { + foreach ($methodObj->getAuth() as $security) { /** @var AuthType $security */ if (\array_key_exists($security->value, $this->keys)) { $methodSecurities[$security->value] = []; @@ -227,7 +223,7 @@ class Swagger2 extends Format } $additionalMethod = [ - 'name' => $method->getMethodName(), + 'name' => $methodObj->getMethodName(), 'auth' => \array_slice($methodSecurities, 0, $this->authCount), 'parameters' => [], 'required' => [], @@ -235,7 +231,7 @@ class Swagger2 extends Format 'description' => ($desc) ? \file_get_contents($desc) : '', ]; - foreach ($method->getParameters() as $parameter) { + foreach ($methodObj->getParameters() as $parameter) { $additionalMethod['parameters'][] = $parameter->getName(); if (!$parameter->getOptional()) { @@ -243,7 +239,7 @@ class Swagger2 extends Format } } - foreach ($method->getResponses() as $response) { + foreach ($methodObj->getResponses() as $response) { /** @var Response $response */ if (\is_array($response->getModel())) { $additionalMethod['responses'][] = [ @@ -517,10 +513,10 @@ class Swagger2 extends Format $node['type'] = $validator->getType(); $node['x-example'] = $validator->getList()[0]; - //Iterate the blackList. If it matches with the current one, then it is blackListed + // Iterate the blackList. If it matches with the current one, then it is blackListed $allowed = true; foreach ($this->enumBlacklist as $blacklist) { - if ($blacklist['namespace'] == $namespace && $blacklist['method'] == $method && $blacklist['parameter'] == $name) { + if ($blacklist['namespace'] == $namespace && $blacklist['method'] == $methodName && $blacklist['parameter'] == $name) { $allowed = false; break; } @@ -528,8 +524,8 @@ class Swagger2 extends Format if ($allowed && $validator->getType() === 'string') { $node['enum'] = $validator->getList(); - $node['x-enum-name'] = $this->getEnumName($namespace, $method, $name); - $node['x-enum-keys'] = $this->getEnumKeys($namespace, $method, $name); + $node['x-enum-name'] = $this->getEnumName($namespace, $methodName, $name); + $node['x-enum-keys'] = $this->getEnumKeys($namespace, $methodName, $name); } if ($validator->getType() === 'integer') { From f19ef05a986b4571ce6d7fd8d130049267e650fe Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 13:47:44 +0530 Subject: [PATCH 02/24] fix: response modals and sdk-gen for multiple namespaces. --- Dockerfile | 4 +- app/config/specs/open-api3-1.8.x-client.json | 84 +- app/config/specs/open-api3-1.8.x-console.json | 886 +++++++++++------ app/config/specs/open-api3-1.8.x-server.json | 604 +++++++----- app/config/specs/open-api3-latest-client.json | 86 +- .../specs/open-api3-latest-console.json | 906 ++++++++++++------ app/config/specs/open-api3-latest-server.json | 618 ++++++++---- app/config/specs/swagger2-1.8.x-client.json | 84 +- app/config/specs/swagger2-1.8.x-console.json | 880 +++++++++++------ app/config/specs/swagger2-1.8.x-server.json | 604 +++++++----- app/config/specs/swagger2-latest-client.json | 86 +- app/config/specs/swagger2-latest-console.json | 900 +++++++++++------ app/config/specs/swagger2-latest-server.json | 618 ++++++++---- composer.json | 2 +- composer.lock | 18 +- .../SDK/Specification/Format/OpenAPI3.php | 11 +- .../SDK/Specification/Format/Swagger2.php | 11 +- 17 files changed, 4086 insertions(+), 2316 deletions(-) diff --git a/Dockerfile b/Dockerfile index 30b017b573..76ca3e7ae2 100755 --- a/Dockerfile +++ b/Dockerfile @@ -38,10 +38,12 @@ COPY --from=composer /usr/local/src/vendor /usr/src/code/vendor COPY ./app /usr/src/code/app COPY ./public /usr/src/code/public COPY ./bin /usr/local/bin -COPY ./docs /usr/src/code/docs +#COPY ./docs /usr/src/code/docs COPY ./src /usr/src/code/src COPY ./dev /usr/src/code/dev +COPY ./vendor/appwrite/sdk-generator /usr/src/code/vendor/appwrite/sdk-generator + # Set Volumes RUN mkdir -p /storage/uploads && \ mkdir -p /storage/imports && \ diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index c077cbc94f..c07936d6e0 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -1856,7 +1856,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2066,7 +2065,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4476,9 +4474,7 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -4720,9 +4716,7 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -4996,12 +4990,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -5023,7 +5017,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -5084,9 +5078,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5108,7 +5102,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -5124,9 +5118,7 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -5148,30 +5140,6 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." - }, - { - "name": "createRows", - "auth": { - "Admin": [], - "Key": [] - }, - "parameters": [ - "databaseId", - "tableId", - "rows" - ], - "required": [ - "databaseId", - "tableId", - "rows" - ], - "responses": [ - { - "code": 201, - "model": "#\/components\/schemas\/rowList" - } - ], - "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." } ], "auth": { @@ -5246,12 +5214,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -5273,7 +5241,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -5344,9 +5312,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5368,7 +5336,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -5384,9 +5352,7 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5469,9 +5435,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -5493,7 +5459,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -5575,9 +5541,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -5592,7 +5558,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -5830,7 +5796,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 22357e7b0b..7e398d78d6 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -1872,7 +1872,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2082,7 +2081,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4558,6 +4556,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4631,6 +4661,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4710,6 +4772,38 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "listUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabases" + } + ], + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "listDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabases" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4782,6 +4876,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4841,6 +4967,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4917,6 +5075,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/components\/schemas\/none" + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/components\/schemas\/none" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -8147,9 +8337,7 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8175,8 +8363,7 @@ { "name": "createDocuments", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8313,8 +8500,7 @@ { "name": "upsertDocuments", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -8720,9 +8906,7 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -9885,85 +10069,12 @@ ] } }, - "\/databases\/{databaseId}\/logs": { - "get": { - "summary": "List database logs", - "operationId": "databasesListLogs", - "tags": [ - "databases" - ], - "description": "Get the database activity logs list by its unique ID.", - "responses": { - "200": { - "description": "Logs List", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/logList" - } - } - } - } - }, - "deprecated": false, - "x-appwrite": { - "method": "listLogs", - "group": "logs", - "weight": 321, - "cookies": false, - "type": "", - "demo": "databases\/list-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "databases.read", - "platforms": [ - "console" - ], - "packaging": false, - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "path" - }, - { - "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "in": "query" - } - ] - } - }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9980,12 +10091,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -10044,9 +10155,9 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -10063,12 +10174,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10145,12 +10256,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -10167,12 +10278,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10217,9 +10328,9 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -10236,12 +10347,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10323,9 +10434,9 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -10335,12 +10446,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10384,12 +10495,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -10411,7 +10522,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -10468,12 +10579,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -10495,7 +10606,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10574,12 +10685,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10601,7 +10712,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10685,12 +10796,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -10712,7 +10823,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10791,12 +10902,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10818,7 +10929,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10902,12 +11013,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10929,7 +11040,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11008,12 +11119,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11035,7 +11146,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11119,12 +11230,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -11146,7 +11257,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11234,12 +11345,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11261,7 +11372,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11354,12 +11465,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11381,7 +11492,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11470,12 +11581,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11497,7 +11608,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11591,12 +11702,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11618,7 +11729,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11707,12 +11818,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11734,7 +11845,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11828,12 +11939,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11855,7 +11966,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11934,12 +12045,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11961,7 +12072,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12045,12 +12156,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12072,7 +12183,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12176,12 +12287,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -12203,7 +12314,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12293,12 +12404,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12320,7 +12431,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12409,12 +12520,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -12436,7 +12547,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12515,12 +12626,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12542,7 +12653,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12626,12 +12737,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -12684,7 +12795,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12738,9 +12849,9 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -12755,7 +12866,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12808,12 +12919,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12835,7 +12946,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12916,12 +13027,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12943,7 +13054,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -13001,9 +13112,9 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -13025,7 +13136,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13126,12 +13237,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -13153,7 +13264,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13207,9 +13318,9 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -13224,7 +13335,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13277,12 +13388,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/logs": { "get": { "summary": "List table logs", - "operationId": "tablesListLogs", + "operationId": "gridsListTableLogs", "tags": [ - "tables" + "grids" ], "description": "Get the table activity logs list by its unique ID.", "responses": { @@ -13299,12 +13410,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "listLogs", - "group": "tables", + "method": "listTableLogs", + "group": "grids", "weight": 375, "cookies": false, "type": "", - "demo": "tables\/list-logs.md", + "demo": "grids\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -13360,12 +13471,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -13387,7 +13498,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -13448,9 +13559,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13472,7 +13583,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -13488,9 +13599,7 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13516,8 +13625,7 @@ { "name": "createRows", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13611,9 +13719,9 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -13635,7 +13743,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13650,8 +13758,7 @@ { "name": "upsertRows", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -13721,9 +13828,9 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -13745,7 +13852,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13815,9 +13922,9 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -13839,7 +13946,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13903,12 +14010,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13930,7 +14037,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -14001,9 +14108,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -14025,7 +14132,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -14041,9 +14148,7 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -14126,9 +14231,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -14150,7 +14255,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -14232,9 +14337,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -14249,7 +14354,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -14306,12 +14411,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/logs": { "get": { "summary": "List row logs", - "operationId": "tablesListRowLogs", + "operationId": "gridsListRowLogs", "tags": [ - "tables" + "grids" ], "description": "Get the row activity logs list by its unique ID.", "responses": { @@ -14333,7 +14438,7 @@ "weight": 413, "cookies": false, "type": "", - "demo": "tables\/list-row-logs.md", + "demo": "grids\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -14399,12 +14504,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -14426,7 +14531,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14511,12 +14616,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -14538,7 +14643,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14623,12 +14728,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/usage": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/usage": { "get": { "summary": "Get table usage stats", - "operationId": "tablesGetUsage", + "operationId": "gridsGetTableUsage", "tags": [ - "tables" + "grids" ], "description": "Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { @@ -14645,12 +14750,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "getUsage", + "method": "getTableUsage", "group": null, "weight": 376, "cookies": false, "type": "", - "demo": "tables\/get-usage.md", + "demo": "grids\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, @@ -14692,7 +14797,7 @@ "30d", "90d" ], - "x-enum-name": "DatabaseUsageRange", + "x-enum-name": "GridUsageRange", "x-enum-keys": [ "Twenty Four Hours", "Thirty Days", @@ -14715,6 +14820,111 @@ ] } }, + "\/databases\/{databaseId}\/logs": { + "get": { + "summary": "List database logs", + "operationId": "databasesListLogs", + "tags": [ + "databases" + ], + "description": "Get the database activity logs list by its unique ID.", + "responses": { + "200": { + "description": "Logs List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/logList" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "listLogs", + "group": "logs", + "weight": 321, + "cookies": false, + "type": "", + "demo": "databases\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "databases.read", + "platforms": [ + "console" + ], + "packaging": false, + "methods": [ + { + "name": "listLogs", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/logList" + } + ], + "description": "Get the database activity logs list by its unique ID." + }, + { + "name": "listDatabaseLogs", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/logList" + } + ], + "description": "" + } + ], + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "in": "query" + } + ] + } + }, "\/databases\/{databaseId}\/usage": { "get": { "summary": "Get database usage stats", @@ -14752,6 +14962,38 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "getDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabase" + } + ], + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "getDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabase" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -16796,7 +17038,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } @@ -43572,9 +43814,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -43617,6 +43874,28 @@ }, "x-example": [], "nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -43627,23 +43906,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -43689,27 +43952,18 @@ }, "x-example": [], "nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { @@ -45856,6 +46110,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45868,6 +46127,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt" ] }, @@ -45900,6 +46160,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45917,6 +46182,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "framework" ] @@ -45950,6 +46216,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45967,6 +46238,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "runtime" ] diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 09572fe6b5..0fde42be4e 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -1879,7 +1879,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -1954,7 +1953,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4076,6 +4074,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4150,6 +4182,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4230,6 +4296,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4290,6 +4390,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4367,6 +4501,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/components\/schemas\/none" + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/components\/schemas\/none" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -7628,9 +7796,8 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -7656,7 +7823,7 @@ { "name": "createDocuments", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -7796,7 +7963,7 @@ { "name": "upsertDocuments", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -8208,9 +8375,8 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -9105,12 +9271,12 @@ ] } }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9127,12 +9293,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -9192,9 +9358,9 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -9211,12 +9377,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9294,12 +9460,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -9316,12 +9482,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9367,9 +9533,9 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -9386,12 +9552,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9474,9 +9640,9 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -9486,12 +9652,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9536,12 +9702,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -9563,7 +9729,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -9621,12 +9787,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -9648,7 +9814,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9728,12 +9894,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9755,7 +9921,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9840,12 +10006,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -9867,7 +10033,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9947,12 +10113,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9974,7 +10140,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10059,12 +10225,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10086,7 +10252,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10166,12 +10332,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10193,7 +10359,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10278,12 +10444,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -10305,7 +10471,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10394,12 +10560,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10421,7 +10587,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10515,12 +10681,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10542,7 +10708,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10632,12 +10798,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10659,7 +10825,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10754,12 +10920,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10781,7 +10947,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10871,12 +11037,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10898,7 +11064,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10993,12 +11159,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11020,7 +11186,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11100,12 +11266,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11127,7 +11293,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11212,12 +11378,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -11239,7 +11405,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11344,12 +11510,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -11371,7 +11537,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11462,12 +11628,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11489,7 +11655,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11579,12 +11745,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -11606,7 +11772,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11686,12 +11852,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11713,7 +11879,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11798,12 +11964,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -11856,7 +12022,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11911,9 +12077,9 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -11928,7 +12094,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11982,12 +12148,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12009,7 +12175,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12091,12 +12257,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12118,7 +12284,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12177,9 +12343,9 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -12201,7 +12367,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12303,12 +12469,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -12330,7 +12496,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12385,9 +12551,9 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -12402,7 +12568,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12456,12 +12622,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -12483,7 +12649,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -12546,9 +12712,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -12570,7 +12736,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -12586,9 +12752,8 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -12614,7 +12779,7 @@ { "name": "createRows", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -12711,9 +12876,9 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -12735,7 +12900,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12750,7 +12915,7 @@ { "name": "upsertRows", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -12822,9 +12987,9 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -12846,7 +13011,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12917,9 +13082,9 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -12941,7 +13106,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13006,12 +13171,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13033,7 +13198,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13106,9 +13271,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13130,7 +13295,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -13146,9 +13311,8 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -13233,9 +13397,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -13257,7 +13421,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -13341,9 +13505,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -13358,7 +13522,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -13417,12 +13581,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -13444,7 +13608,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -13530,12 +13694,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -13557,7 +13721,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -15431,7 +15595,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } @@ -33199,9 +33363,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -33244,6 +33423,28 @@ }, "x-example": [], "nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -33254,23 +33455,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -33316,27 +33501,18 @@ }, "x-example": [], "nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index e8efee6516..556775e236 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -4473,10 +4473,9 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -4717,10 +4716,9 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -4994,12 +4992,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -5021,7 +5019,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -5082,9 +5080,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5106,7 +5104,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -5121,10 +5119,9 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -5146,30 +5143,6 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." - }, - { - "name": "createRows", - "auth": { - "Admin": [], - "Key": [] - }, - "parameters": [ - "databaseId", - "tableId", - "rows" - ], - "required": [ - "databaseId", - "tableId", - "rows" - ], - "responses": [ - { - "code": 201, - "model": "#\/components\/schemas\/rowList" - } - ], - "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." } ], "auth": { @@ -5244,12 +5217,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -5271,7 +5244,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -5342,9 +5315,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5366,7 +5339,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -5381,10 +5354,9 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5467,9 +5439,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -5491,7 +5463,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -5573,9 +5545,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -5590,7 +5562,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -5828,7 +5800,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index b1c864453b..85fa04f2cb 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -4556,6 +4556,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4629,6 +4663,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4708,6 +4776,40 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "listUsage", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabases" + } + ], + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "listDatabaseUsage", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabases" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4780,6 +4882,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4839,6 +4975,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4915,6 +5085,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -8144,10 +8346,9 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8172,9 +8373,9 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8310,9 +8511,9 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -8717,10 +8918,9 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -9883,85 +10083,12 @@ ] } }, - "\/databases\/{databaseId}\/logs": { - "get": { - "summary": "List database logs", - "operationId": "databasesListLogs", - "tags": [ - "databases" - ], - "description": "Get the database activity logs list by its unique ID.", - "responses": { - "200": { - "description": "Logs List", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/logList" - } - } - } - } - }, - "deprecated": false, - "x-appwrite": { - "method": "listLogs", - "group": "logs", - "weight": 321, - "cookies": false, - "type": "", - "demo": "databases\/list-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "databases.read", - "platforms": [ - "console" - ], - "packaging": false, - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "path" - }, - { - "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "in": "query" - } - ] - } - }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9978,12 +10105,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -10042,9 +10169,9 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -10061,12 +10188,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10143,12 +10270,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -10165,12 +10292,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10215,9 +10342,9 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -10234,12 +10361,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10321,9 +10448,9 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -10333,12 +10460,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10382,12 +10509,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -10409,7 +10536,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -10466,12 +10593,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -10493,7 +10620,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10572,12 +10699,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10599,7 +10726,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10683,12 +10810,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -10710,7 +10837,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10789,12 +10916,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10816,7 +10943,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10900,12 +11027,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10927,7 +11054,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11006,12 +11133,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11033,7 +11160,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11117,12 +11244,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -11144,7 +11271,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11232,12 +11359,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11259,7 +11386,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11352,12 +11479,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11379,7 +11506,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11468,12 +11595,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11495,7 +11622,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11589,12 +11716,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11616,7 +11743,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11705,12 +11832,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11732,7 +11859,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11826,12 +11953,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11853,7 +11980,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11932,12 +12059,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11959,7 +12086,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12043,12 +12170,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12070,7 +12197,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12174,12 +12301,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -12201,7 +12328,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12291,12 +12418,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12318,7 +12445,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12407,12 +12534,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -12434,7 +12561,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12513,12 +12640,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12540,7 +12667,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12624,12 +12751,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -12682,7 +12809,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12736,9 +12863,9 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -12753,7 +12880,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12806,12 +12933,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12833,7 +12960,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12914,12 +13041,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12941,7 +13068,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12999,9 +13126,9 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -13023,7 +13150,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13124,12 +13251,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -13151,7 +13278,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13205,9 +13332,9 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -13222,7 +13349,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13275,12 +13402,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/logs": { "get": { "summary": "List table logs", - "operationId": "tablesListLogs", + "operationId": "gridsListTableLogs", "tags": [ - "tables" + "grids" ], "description": "Get the table activity logs list by its unique ID.", "responses": { @@ -13297,12 +13424,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "listLogs", - "group": "tables", + "method": "listTableLogs", + "group": "grids", "weight": 375, "cookies": false, "type": "", - "demo": "tables\/list-logs.md", + "demo": "grids\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -13358,12 +13485,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -13385,7 +13512,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -13446,9 +13573,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13470,7 +13597,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -13485,10 +13612,9 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13513,9 +13639,9 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13609,9 +13735,9 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -13633,7 +13759,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13647,9 +13773,9 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -13719,9 +13845,9 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -13743,7 +13869,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13813,9 +13939,9 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -13837,7 +13963,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13901,12 +14027,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13928,7 +14054,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13999,9 +14125,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -14023,7 +14149,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -14038,10 +14164,9 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -14124,9 +14249,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -14148,7 +14273,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -14230,9 +14355,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -14247,7 +14372,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -14304,12 +14429,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/logs": { "get": { "summary": "List row logs", - "operationId": "tablesListRowLogs", + "operationId": "gridsListRowLogs", "tags": [ - "tables" + "grids" ], "description": "Get the row activity logs list by its unique ID.", "responses": { @@ -14331,7 +14456,7 @@ "weight": 413, "cookies": false, "type": "", - "demo": "tables\/list-row-logs.md", + "demo": "grids\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -14397,12 +14522,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -14424,7 +14549,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14509,12 +14634,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -14536,7 +14661,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14621,12 +14746,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/usage": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/usage": { "get": { "summary": "Get table usage stats", - "operationId": "tablesGetUsage", + "operationId": "gridsGetTableUsage", "tags": [ - "tables" + "grids" ], "description": "Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { @@ -14643,12 +14768,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "getUsage", + "method": "getTableUsage", "group": null, "weight": 376, "cookies": false, "type": "", - "demo": "tables\/get-usage.md", + "demo": "grids\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, @@ -14690,7 +14815,7 @@ "30d", "90d" ], - "x-enum-name": "DatabaseUsageRange", + "x-enum-name": "GridUsageRange", "x-enum-keys": [ "Twenty Four Hours", "Thirty Days", @@ -14713,6 +14838,113 @@ ] } }, + "\/databases\/{databaseId}\/logs": { + "get": { + "summary": "List database logs", + "operationId": "databasesListLogs", + "tags": [ + "databases" + ], + "description": "Get the database activity logs list by its unique ID.", + "responses": { + "200": { + "description": "Logs List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/logList" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "listLogs", + "group": "logs", + "weight": 321, + "cookies": false, + "type": "", + "demo": "databases\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "databases.read", + "platforms": [ + "console" + ], + "packaging": false, + "methods": [ + { + "name": "listLogs", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/logList" + } + ], + "description": "Get the database activity logs list by its unique ID." + }, + { + "name": "listDatabaseLogs", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/logList" + } + ], + "description": "" + } + ], + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "in": "query" + } + ] + } + }, "\/databases\/{databaseId}\/usage": { "get": { "summary": "Get database usage stats", @@ -14750,6 +14982,40 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "getDatabaseUsage", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabase" + } + ], + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "getDatabaseUsage", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabase" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -16794,7 +17060,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } @@ -43570,9 +43836,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -43615,6 +43896,28 @@ }, "x-example": [], "nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -43625,23 +43928,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -43687,27 +43974,18 @@ }, "x-example": [], "nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { @@ -45854,6 +46132,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45866,6 +46149,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt" ] }, @@ -45898,6 +46182,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45915,6 +46204,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "framework" ] @@ -45948,6 +46238,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45965,6 +46260,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "runtime" ] diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 93336cf5ff..551c765683 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -4074,6 +4074,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4148,6 +4184,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4228,6 +4300,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4288,6 +4396,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4365,6 +4509,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -7625,10 +7803,10 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -7653,8 +7831,9 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -7793,8 +7972,9 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -8205,10 +8385,10 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -9103,12 +9283,12 @@ ] } }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9125,12 +9305,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -9190,9 +9370,9 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -9209,12 +9389,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9292,12 +9472,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -9314,12 +9494,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9365,9 +9545,9 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -9384,12 +9564,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9472,9 +9652,9 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -9484,12 +9664,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9534,12 +9714,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -9561,7 +9741,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -9619,12 +9799,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -9646,7 +9826,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9726,12 +9906,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9753,7 +9933,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9838,12 +10018,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -9865,7 +10045,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9945,12 +10125,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9972,7 +10152,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10057,12 +10237,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10084,7 +10264,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10164,12 +10344,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10191,7 +10371,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10276,12 +10456,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -10303,7 +10483,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10392,12 +10572,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10419,7 +10599,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10513,12 +10693,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10540,7 +10720,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10630,12 +10810,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10657,7 +10837,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10752,12 +10932,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10779,7 +10959,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10869,12 +11049,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10896,7 +11076,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10991,12 +11171,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11018,7 +11198,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11098,12 +11278,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11125,7 +11305,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11210,12 +11390,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -11237,7 +11417,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11342,12 +11522,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -11369,7 +11549,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11460,12 +11640,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11487,7 +11667,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11577,12 +11757,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -11604,7 +11784,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11684,12 +11864,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11711,7 +11891,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11796,12 +11976,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -11854,7 +12034,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11909,9 +12089,9 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -11926,7 +12106,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11980,12 +12160,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12007,7 +12187,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12089,12 +12269,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12116,7 +12296,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12175,9 +12355,9 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -12199,7 +12379,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12301,12 +12481,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -12328,7 +12508,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12383,9 +12563,9 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -12400,7 +12580,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12454,12 +12634,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -12481,7 +12661,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -12544,9 +12724,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -12568,7 +12748,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -12583,10 +12763,10 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -12611,8 +12791,9 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -12709,9 +12890,9 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -12733,7 +12914,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12747,8 +12928,9 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -12820,9 +13002,9 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -12844,7 +13026,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12915,9 +13097,9 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -12939,7 +13121,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13004,12 +13186,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13031,7 +13213,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13104,9 +13286,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13128,7 +13310,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -13143,10 +13325,10 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -13231,9 +13413,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -13255,7 +13437,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -13339,9 +13521,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -13356,7 +13538,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -13415,12 +13597,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -13442,7 +13624,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -13528,12 +13710,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -13555,7 +13737,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -15429,7 +15611,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } @@ -33197,9 +33379,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -33242,6 +33439,28 @@ }, "x-example": [], "nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -33252,23 +33471,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -33314,27 +33517,18 @@ }, "x-example": [], "nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index f2b814e9b6..8572eaaa7f 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -1964,7 +1964,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2175,7 +2174,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4613,9 +4611,7 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -4848,9 +4844,7 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5110,16 +5104,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -5137,7 +5131,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -5192,7 +5186,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -5200,7 +5194,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5218,7 +5212,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -5233,9 +5227,7 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -5257,30 +5249,6 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." - }, - { - "name": "createRows", - "auth": { - "Admin": [], - "Key": [] - }, - "parameters": [ - "databaseId", - "tableId", - "rows" - ], - "required": [ - "databaseId", - "tableId", - "rows" - ], - "responses": [ - { - "code": 201, - "model": "#\/definitions\/rowList" - } - ], - "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." } ], "auth": { @@ -5353,16 +5321,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -5380,7 +5348,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -5443,7 +5411,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -5451,7 +5419,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5469,7 +5437,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -5484,9 +5452,7 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5563,7 +5529,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -5571,7 +5537,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -5589,7 +5555,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -5664,13 +5630,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -5685,7 +5651,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -5916,7 +5882,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 94fff6695c..ecf5fcc4a1 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -1990,7 +1990,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2201,7 +2200,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4718,6 +4716,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4790,6 +4820,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4872,6 +4934,38 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "listUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabases" + } + ], + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "listDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabases" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4942,6 +5036,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -5001,6 +5127,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -5079,6 +5237,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/definitions\/none" + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/definitions\/none" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -8267,9 +8457,7 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8295,8 +8483,7 @@ { "name": "createDocuments", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8433,8 +8620,7 @@ { "name": "upsertDocuments", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -8823,9 +9009,7 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -9932,86 +10116,16 @@ ] } }, - "\/databases\/{databaseId}\/logs": { - "get": { - "summary": "List database logs", - "operationId": "databasesListLogs", - "consumes": [], - "produces": [ - "application\/json" - ], - "tags": [ - "databases" - ], - "description": "Get the database activity logs list by its unique ID.", - "responses": { - "200": { - "description": "Logs List", - "schema": { - "$ref": "#\/definitions\/logList" - } - } - }, - "deprecated": false, - "x-appwrite": { - "method": "listLogs", - "group": "logs", - "weight": 321, - "cookies": false, - "type": "", - "demo": "databases\/list-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "databases.read", - "platforms": [ - "console" - ], - "packaging": false, - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "type": "string", - "x-example": "", - "in": "path" - }, - { - "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", - "required": false, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "default": [], - "in": "query" - } - ] - } - }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -10024,12 +10138,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -10083,7 +10197,7 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "consumes": [ "application\/json" ], @@ -10091,7 +10205,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -10104,12 +10218,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10187,16 +10301,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -10209,12 +10323,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10255,7 +10369,7 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "consumes": [ "application\/json" ], @@ -10263,7 +10377,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -10276,12 +10390,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10361,13 +10475,13 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -10377,12 +10491,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10422,16 +10536,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -10449,7 +10563,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -10501,10 +10615,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "consumes": [ "application\/json" ], @@ -10512,7 +10626,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -10530,7 +10644,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10607,10 +10721,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "consumes": [ "application\/json" ], @@ -10618,7 +10732,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10636,7 +10750,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10715,10 +10829,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "consumes": [ "application\/json" ], @@ -10726,7 +10840,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -10744,7 +10858,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10821,10 +10935,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "consumes": [ "application\/json" ], @@ -10832,7 +10946,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10850,7 +10964,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10929,10 +11043,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "consumes": [ "application\/json" ], @@ -10940,7 +11054,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10958,7 +11072,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11035,10 +11149,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "consumes": [ "application\/json" ], @@ -11046,7 +11160,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11064,7 +11178,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11143,10 +11257,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "consumes": [ "application\/json" ], @@ -11154,7 +11268,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -11172,7 +11286,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11259,10 +11373,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "consumes": [ "application\/json" ], @@ -11270,7 +11384,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11288,7 +11402,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11377,10 +11491,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "consumes": [ "application\/json" ], @@ -11388,7 +11502,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11406,7 +11520,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11495,10 +11609,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "consumes": [ "application\/json" ], @@ -11506,7 +11620,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11524,7 +11638,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11615,10 +11729,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "consumes": [ "application\/json" ], @@ -11626,7 +11740,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11644,7 +11758,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11733,10 +11847,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "consumes": [ "application\/json" ], @@ -11744,7 +11858,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11762,7 +11876,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11853,10 +11967,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "consumes": [ "application\/json" ], @@ -11864,7 +11978,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11882,7 +11996,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11959,10 +12073,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "consumes": [ "application\/json" ], @@ -11970,7 +12084,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11988,7 +12102,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12067,10 +12181,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12078,7 +12192,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12096,7 +12210,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12200,10 +12314,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "consumes": [ "application\/json" ], @@ -12211,7 +12325,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -12229,7 +12343,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12319,10 +12433,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "consumes": [ "application\/json" ], @@ -12330,7 +12444,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12348,7 +12462,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12433,10 +12547,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "consumes": [ "application\/json" ], @@ -12444,7 +12558,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -12462,7 +12576,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12539,10 +12653,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "consumes": [ "application\/json" ], @@ -12550,7 +12664,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12568,7 +12682,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12647,16 +12761,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -12705,7 +12819,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12753,13 +12867,13 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -12774,7 +12888,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12821,10 +12935,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12832,7 +12946,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12850,7 +12964,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12925,16 +13039,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12952,7 +13066,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -13005,7 +13119,7 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "consumes": [ "application\/json" ], @@ -13013,7 +13127,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -13031,7 +13145,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13131,16 +13245,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -13158,7 +13272,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13206,13 +13320,13 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -13227,7 +13341,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13274,16 +13388,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/logs": { "get": { "summary": "List table logs", - "operationId": "tablesListLogs", + "operationId": "gridsListTableLogs", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get the table activity logs list by its unique ID.", "responses": { @@ -13296,12 +13410,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "listLogs", - "group": "tables", + "method": "listTableLogs", + "group": "grids", "weight": 375, "cookies": false, "type": "", - "demo": "tables\/list-logs.md", + "demo": "grids\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -13352,16 +13466,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -13379,7 +13493,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -13434,7 +13548,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -13442,7 +13556,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13460,7 +13574,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -13475,9 +13589,7 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13503,8 +13615,7 @@ { "name": "createRows", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13596,7 +13707,7 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "consumes": [ "application\/json" ], @@ -13604,7 +13715,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -13622,7 +13733,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13637,8 +13748,7 @@ { "name": "upsertRows", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -13703,7 +13813,7 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "consumes": [ "application\/json" ], @@ -13711,7 +13821,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -13729,7 +13839,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13795,7 +13905,7 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "consumes": [ "application\/json" ], @@ -13803,7 +13913,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -13821,7 +13931,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13880,16 +13990,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13907,7 +14017,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13970,7 +14080,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -13978,7 +14088,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13996,7 +14106,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -14011,9 +14121,7 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -14090,7 +14198,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -14098,7 +14206,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -14116,7 +14224,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -14191,13 +14299,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -14212,7 +14320,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -14262,16 +14370,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/logs": { "get": { "summary": "List row logs", - "operationId": "tablesListRowLogs", + "operationId": "gridsListRowLogs", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get the row activity logs list by its unique ID.", "responses": { @@ -14289,7 +14397,7 @@ "weight": 413, "cookies": false, "type": "", - "demo": "tables\/list-row-logs.md", + "demo": "grids\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -14348,10 +14456,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "consumes": [ "application\/json" ], @@ -14359,7 +14467,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -14377,7 +14485,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14454,10 +14562,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "consumes": [ "application\/json" ], @@ -14465,7 +14573,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -14483,7 +14591,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14560,16 +14668,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/usage": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/usage": { "get": { "summary": "Get table usage stats", - "operationId": "tablesGetUsage", + "operationId": "gridsGetTableUsage", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { @@ -14582,12 +14690,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "getUsage", + "method": "getTableUsage", "group": null, "weight": 376, "cookies": false, "type": "", - "demo": "tables\/get-usage.md", + "demo": "grids\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, @@ -14626,7 +14734,7 @@ "30d", "90d" ], - "x-enum-name": "DatabaseUsageRange", + "x-enum-name": "GridUsageRange", "x-enum-keys": [ "Twenty Four Hours", "Thirty Days", @@ -14646,6 +14754,108 @@ ] } }, + "\/databases\/{databaseId}\/logs": { + "get": { + "summary": "List database logs", + "operationId": "databasesListLogs", + "consumes": [], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Get the database activity logs list by its unique ID.", + "responses": { + "200": { + "description": "Logs List", + "schema": { + "$ref": "#\/definitions\/logList" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "listLogs", + "group": "logs", + "weight": 321, + "cookies": false, + "type": "", + "demo": "databases\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "databases.read", + "platforms": [ + "console" + ], + "packaging": false, + "methods": [ + { + "name": "listLogs", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/logList" + } + ], + "description": "Get the database activity logs list by its unique ID." + }, + { + "name": "listDatabaseLogs", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/logList" + } + ], + "description": "" + } + ], + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", + "required": false, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "default": [], + "in": "query" + } + ] + } + }, "\/databases\/{databaseId}\/usage": { "get": { "summary": "Get database usage stats", @@ -14683,6 +14893,38 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "getDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabase" + } + ], + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "getDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabase" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -16733,7 +16975,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } @@ -43631,9 +43873,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -43676,6 +43933,28 @@ }, "x-example": [], "x-nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -43686,23 +43965,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -43748,27 +44011,18 @@ }, "x-example": [], "x-nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { @@ -45924,6 +46178,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45936,6 +46195,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt" ] }, @@ -45968,6 +46228,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45985,6 +46250,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "framework" ] @@ -46018,6 +46284,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -46035,6 +46306,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "runtime" ] diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index cb96855956..7912caab25 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -1996,7 +1996,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2075,7 +2074,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4224,6 +4222,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4297,6 +4329,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4380,6 +4446,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4440,6 +4540,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4519,6 +4653,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/definitions\/none" + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/definitions\/none" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -7738,9 +7906,8 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -7766,7 +7933,7 @@ { "name": "createDocuments", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -7906,7 +8073,7 @@ { "name": "upsertDocuments", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -8301,9 +8468,8 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -9160,16 +9326,16 @@ ] } }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9182,12 +9348,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -9242,7 +9408,7 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "consumes": [ "application\/json" ], @@ -9250,7 +9416,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -9263,12 +9429,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9347,16 +9513,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -9369,12 +9535,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9416,7 +9582,7 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "consumes": [ "application\/json" ], @@ -9424,7 +9590,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -9437,12 +9603,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9523,13 +9689,13 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -9539,12 +9705,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9585,16 +9751,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -9612,7 +9778,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -9665,10 +9831,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "consumes": [ "application\/json" ], @@ -9676,7 +9842,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -9694,7 +9860,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9772,10 +9938,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "consumes": [ "application\/json" ], @@ -9783,7 +9949,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9801,7 +9967,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9881,10 +10047,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "consumes": [ "application\/json" ], @@ -9892,7 +10058,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -9910,7 +10076,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9988,10 +10154,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "consumes": [ "application\/json" ], @@ -9999,7 +10165,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10017,7 +10183,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10097,10 +10263,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "consumes": [ "application\/json" ], @@ -10108,7 +10274,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10126,7 +10292,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10204,10 +10370,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "consumes": [ "application\/json" ], @@ -10215,7 +10381,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10233,7 +10399,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10313,10 +10479,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "consumes": [ "application\/json" ], @@ -10324,7 +10490,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -10342,7 +10508,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10430,10 +10596,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "consumes": [ "application\/json" ], @@ -10441,7 +10607,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10459,7 +10625,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10549,10 +10715,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "consumes": [ "application\/json" ], @@ -10560,7 +10726,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10578,7 +10744,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10668,10 +10834,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "consumes": [ "application\/json" ], @@ -10679,7 +10845,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10697,7 +10863,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10789,10 +10955,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "consumes": [ "application\/json" ], @@ -10800,7 +10966,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10818,7 +10984,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10908,10 +11074,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "consumes": [ "application\/json" ], @@ -10919,7 +11085,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10937,7 +11103,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11029,10 +11195,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "consumes": [ "application\/json" ], @@ -11040,7 +11206,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11058,7 +11224,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11136,10 +11302,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "consumes": [ "application\/json" ], @@ -11147,7 +11313,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11165,7 +11331,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11245,10 +11411,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "consumes": [ "application\/json" ], @@ -11256,7 +11422,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -11274,7 +11440,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11379,10 +11545,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "consumes": [ "application\/json" ], @@ -11390,7 +11556,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -11408,7 +11574,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11499,10 +11665,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "consumes": [ "application\/json" ], @@ -11510,7 +11676,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11528,7 +11694,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11614,10 +11780,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "consumes": [ "application\/json" ], @@ -11625,7 +11791,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -11643,7 +11809,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11721,10 +11887,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "consumes": [ "application\/json" ], @@ -11732,7 +11898,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11750,7 +11916,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11830,16 +11996,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -11888,7 +12054,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11937,13 +12103,13 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -11958,7 +12124,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12006,10 +12172,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12017,7 +12183,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12035,7 +12201,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12111,16 +12277,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12138,7 +12304,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12192,7 +12358,7 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "consumes": [ "application\/json" ], @@ -12200,7 +12366,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -12218,7 +12384,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12319,16 +12485,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -12346,7 +12512,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12395,13 +12561,13 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -12416,7 +12582,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12464,16 +12630,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -12491,7 +12657,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -12548,7 +12714,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -12556,7 +12722,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -12574,7 +12740,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -12589,9 +12755,8 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -12617,7 +12782,7 @@ { "name": "createRows", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -12712,7 +12877,7 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "consumes": [ "application\/json" ], @@ -12720,7 +12885,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -12738,7 +12903,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12753,7 +12918,7 @@ { "name": "upsertRows", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -12820,7 +12985,7 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "consumes": [ "application\/json" ], @@ -12828,7 +12993,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -12846,7 +13011,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12913,7 +13078,7 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "consumes": [ "application\/json" ], @@ -12921,7 +13086,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -12939,7 +13104,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -12999,16 +13164,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13026,7 +13191,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13091,7 +13256,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -13099,7 +13264,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13117,7 +13282,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -13132,9 +13297,8 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -13213,7 +13377,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -13221,7 +13385,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -13239,7 +13403,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -13316,13 +13480,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -13337,7 +13501,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -13389,10 +13553,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "consumes": [ "application\/json" ], @@ -13400,7 +13564,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -13418,7 +13582,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -13496,10 +13660,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "consumes": [ "application\/json" ], @@ -13507,7 +13671,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -13525,7 +13689,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -15411,7 +15575,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } @@ -33344,9 +33508,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -33389,6 +33568,28 @@ }, "x-example": [], "x-nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -33399,23 +33600,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -33461,27 +33646,18 @@ }, "x-example": [], "x-nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index b28e544566..44f691f055 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -4610,10 +4610,9 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -4845,10 +4844,9 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5108,16 +5106,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -5135,7 +5133,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -5190,7 +5188,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -5198,7 +5196,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5216,7 +5214,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -5230,10 +5228,9 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -5255,30 +5252,6 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." - }, - { - "name": "createRows", - "auth": { - "Admin": [], - "Key": [] - }, - "parameters": [ - "databaseId", - "tableId", - "rows" - ], - "required": [ - "databaseId", - "tableId", - "rows" - ], - "responses": [ - { - "code": 201, - "model": "#\/definitions\/rowList" - } - ], - "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." } ], "auth": { @@ -5351,16 +5324,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -5378,7 +5351,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -5441,7 +5414,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -5449,7 +5422,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5467,7 +5440,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -5481,10 +5454,9 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5561,7 +5533,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -5569,7 +5541,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -5587,7 +5559,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -5662,13 +5634,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -5683,7 +5655,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -5914,7 +5886,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index ba212cba1a..d80f7421ed 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -4716,6 +4716,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4788,6 +4822,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4870,6 +4938,40 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "listUsage", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabases" + } + ], + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "listDatabaseUsage", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabases" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4940,6 +5042,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4999,6 +5135,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -5077,6 +5247,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -8264,10 +8466,9 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8292,9 +8493,9 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8430,9 +8631,9 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -8820,10 +9021,9 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -9930,86 +10130,16 @@ ] } }, - "\/databases\/{databaseId}\/logs": { - "get": { - "summary": "List database logs", - "operationId": "databasesListLogs", - "consumes": [], - "produces": [ - "application\/json" - ], - "tags": [ - "databases" - ], - "description": "Get the database activity logs list by its unique ID.", - "responses": { - "200": { - "description": "Logs List", - "schema": { - "$ref": "#\/definitions\/logList" - } - } - }, - "deprecated": false, - "x-appwrite": { - "method": "listLogs", - "group": "logs", - "weight": 321, - "cookies": false, - "type": "", - "demo": "databases\/list-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "databases.read", - "platforms": [ - "console" - ], - "packaging": false, - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "type": "string", - "x-example": "", - "in": "path" - }, - { - "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", - "required": false, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "default": [], - "in": "query" - } - ] - } - }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -10022,12 +10152,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -10081,7 +10211,7 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "consumes": [ "application\/json" ], @@ -10089,7 +10219,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -10102,12 +10232,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10185,16 +10315,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -10207,12 +10337,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10253,7 +10383,7 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "consumes": [ "application\/json" ], @@ -10261,7 +10391,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -10274,12 +10404,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10359,13 +10489,13 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -10375,12 +10505,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10420,16 +10550,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -10447,7 +10577,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -10499,10 +10629,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "consumes": [ "application\/json" ], @@ -10510,7 +10640,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -10528,7 +10658,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10605,10 +10735,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "consumes": [ "application\/json" ], @@ -10616,7 +10746,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10634,7 +10764,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10713,10 +10843,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "consumes": [ "application\/json" ], @@ -10724,7 +10854,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -10742,7 +10872,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10819,10 +10949,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "consumes": [ "application\/json" ], @@ -10830,7 +10960,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10848,7 +10978,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10927,10 +11057,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "consumes": [ "application\/json" ], @@ -10938,7 +11068,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10956,7 +11086,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11033,10 +11163,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "consumes": [ "application\/json" ], @@ -11044,7 +11174,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11062,7 +11192,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11141,10 +11271,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "consumes": [ "application\/json" ], @@ -11152,7 +11282,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -11170,7 +11300,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11257,10 +11387,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "consumes": [ "application\/json" ], @@ -11268,7 +11398,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11286,7 +11416,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11375,10 +11505,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "consumes": [ "application\/json" ], @@ -11386,7 +11516,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11404,7 +11534,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11493,10 +11623,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "consumes": [ "application\/json" ], @@ -11504,7 +11634,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11522,7 +11652,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11613,10 +11743,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "consumes": [ "application\/json" ], @@ -11624,7 +11754,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11642,7 +11772,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11731,10 +11861,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "consumes": [ "application\/json" ], @@ -11742,7 +11872,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11760,7 +11890,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11851,10 +11981,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "consumes": [ "application\/json" ], @@ -11862,7 +11992,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11880,7 +12010,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11957,10 +12087,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "consumes": [ "application\/json" ], @@ -11968,7 +12098,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11986,7 +12116,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12065,10 +12195,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12076,7 +12206,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12094,7 +12224,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12198,10 +12328,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "consumes": [ "application\/json" ], @@ -12209,7 +12339,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -12227,7 +12357,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12317,10 +12447,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "consumes": [ "application\/json" ], @@ -12328,7 +12458,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12346,7 +12476,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12431,10 +12561,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "consumes": [ "application\/json" ], @@ -12442,7 +12572,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -12460,7 +12590,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12537,10 +12667,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "consumes": [ "application\/json" ], @@ -12548,7 +12678,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12566,7 +12696,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12645,16 +12775,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -12703,7 +12833,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12751,13 +12881,13 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -12772,7 +12902,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12819,10 +12949,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12830,7 +12960,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12848,7 +12978,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12923,16 +13053,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12950,7 +13080,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -13003,7 +13133,7 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "consumes": [ "application\/json" ], @@ -13011,7 +13141,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -13029,7 +13159,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13129,16 +13259,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -13156,7 +13286,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13204,13 +13334,13 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -13225,7 +13355,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13272,16 +13402,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/logs": { "get": { "summary": "List table logs", - "operationId": "tablesListLogs", + "operationId": "gridsListTableLogs", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get the table activity logs list by its unique ID.", "responses": { @@ -13294,12 +13424,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "listLogs", - "group": "tables", + "method": "listTableLogs", + "group": "grids", "weight": 375, "cookies": false, "type": "", - "demo": "tables\/list-logs.md", + "demo": "grids\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -13350,16 +13480,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -13377,7 +13507,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -13432,7 +13562,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -13440,7 +13570,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13458,7 +13588,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -13472,10 +13602,9 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13500,9 +13629,9 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13594,7 +13723,7 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "consumes": [ "application\/json" ], @@ -13602,7 +13731,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -13620,7 +13749,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13634,9 +13763,9 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -13701,7 +13830,7 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "consumes": [ "application\/json" ], @@ -13709,7 +13838,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -13727,7 +13856,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13793,7 +13922,7 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "consumes": [ "application\/json" ], @@ -13801,7 +13930,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -13819,7 +13948,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13878,16 +14007,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13905,7 +14034,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13968,7 +14097,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -13976,7 +14105,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13994,7 +14123,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -14008,10 +14137,9 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -14088,7 +14216,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -14096,7 +14224,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -14114,7 +14242,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -14189,13 +14317,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -14210,7 +14338,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -14260,16 +14388,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/logs": { "get": { "summary": "List row logs", - "operationId": "tablesListRowLogs", + "operationId": "gridsListRowLogs", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get the row activity logs list by its unique ID.", "responses": { @@ -14287,7 +14415,7 @@ "weight": 413, "cookies": false, "type": "", - "demo": "tables\/list-row-logs.md", + "demo": "grids\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -14346,10 +14474,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "consumes": [ "application\/json" ], @@ -14357,7 +14485,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -14375,7 +14503,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14452,10 +14580,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "consumes": [ "application\/json" ], @@ -14463,7 +14591,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -14481,7 +14609,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14558,16 +14686,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/usage": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/usage": { "get": { "summary": "Get table usage stats", - "operationId": "tablesGetUsage", + "operationId": "gridsGetTableUsage", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { @@ -14580,12 +14708,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "getUsage", + "method": "getTableUsage", "group": null, "weight": 376, "cookies": false, "type": "", - "demo": "tables\/get-usage.md", + "demo": "grids\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, @@ -14624,7 +14752,7 @@ "30d", "90d" ], - "x-enum-name": "DatabaseUsageRange", + "x-enum-name": "GridUsageRange", "x-enum-keys": [ "Twenty Four Hours", "Thirty Days", @@ -14644,6 +14772,110 @@ ] } }, + "\/databases\/{databaseId}\/logs": { + "get": { + "summary": "List database logs", + "operationId": "databasesListLogs", + "consumes": [], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Get the database activity logs list by its unique ID.", + "responses": { + "200": { + "description": "Logs List", + "schema": { + "$ref": "#\/definitions\/logList" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "listLogs", + "group": "logs", + "weight": 321, + "cookies": false, + "type": "", + "demo": "databases\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "databases.read", + "platforms": [ + "console" + ], + "packaging": false, + "methods": [ + { + "name": "listLogs", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/logList" + } + ], + "description": "Get the database activity logs list by its unique ID." + }, + { + "name": "listDatabaseLogs", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/logList" + } + ], + "description": "" + } + ], + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", + "required": false, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "default": [], + "in": "query" + } + ] + } + }, "\/databases\/{databaseId}\/usage": { "get": { "summary": "Get database usage stats", @@ -14681,6 +14913,40 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "getDatabaseUsage", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabase" + } + ], + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "getDatabaseUsage", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabase" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -16731,7 +16997,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } @@ -43629,9 +43895,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -43674,6 +43955,28 @@ }, "x-example": [], "x-nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -43684,23 +43987,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -43746,27 +44033,18 @@ }, "x-example": [], "x-nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { @@ -45922,6 +46200,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45934,6 +46217,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt" ] }, @@ -45966,6 +46250,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45983,6 +46272,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "framework" ] @@ -46016,6 +46306,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -46033,6 +46328,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "runtime" ] diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 9bd6c58fcc..3ac203ee2c 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -4222,6 +4222,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4295,6 +4331,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4378,6 +4450,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4438,6 +4546,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4517,6 +4661,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -7735,10 +7913,10 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -7763,8 +7941,9 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -7903,8 +8082,9 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -8298,10 +8478,10 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -9158,16 +9338,16 @@ ] } }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9180,12 +9360,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -9240,7 +9420,7 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "consumes": [ "application\/json" ], @@ -9248,7 +9428,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -9261,12 +9441,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9345,16 +9525,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -9367,12 +9547,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9414,7 +9594,7 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "consumes": [ "application\/json" ], @@ -9422,7 +9602,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -9435,12 +9615,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9521,13 +9701,13 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -9537,12 +9717,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9583,16 +9763,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -9610,7 +9790,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -9663,10 +9843,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "consumes": [ "application\/json" ], @@ -9674,7 +9854,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -9692,7 +9872,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9770,10 +9950,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "consumes": [ "application\/json" ], @@ -9781,7 +9961,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9799,7 +9979,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9879,10 +10059,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "consumes": [ "application\/json" ], @@ -9890,7 +10070,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -9908,7 +10088,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9986,10 +10166,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "consumes": [ "application\/json" ], @@ -9997,7 +10177,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10015,7 +10195,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10095,10 +10275,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "consumes": [ "application\/json" ], @@ -10106,7 +10286,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10124,7 +10304,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10202,10 +10382,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "consumes": [ "application\/json" ], @@ -10213,7 +10393,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10231,7 +10411,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10311,10 +10491,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "consumes": [ "application\/json" ], @@ -10322,7 +10502,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -10340,7 +10520,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10428,10 +10608,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "consumes": [ "application\/json" ], @@ -10439,7 +10619,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10457,7 +10637,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10547,10 +10727,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "consumes": [ "application\/json" ], @@ -10558,7 +10738,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10576,7 +10756,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10666,10 +10846,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "consumes": [ "application\/json" ], @@ -10677,7 +10857,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10695,7 +10875,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10787,10 +10967,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "consumes": [ "application\/json" ], @@ -10798,7 +10978,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10816,7 +10996,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10906,10 +11086,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "consumes": [ "application\/json" ], @@ -10917,7 +11097,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10935,7 +11115,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11027,10 +11207,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "consumes": [ "application\/json" ], @@ -11038,7 +11218,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11056,7 +11236,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11134,10 +11314,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "consumes": [ "application\/json" ], @@ -11145,7 +11325,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11163,7 +11343,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11243,10 +11423,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "consumes": [ "application\/json" ], @@ -11254,7 +11434,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -11272,7 +11452,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11377,10 +11557,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "consumes": [ "application\/json" ], @@ -11388,7 +11568,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -11406,7 +11586,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11497,10 +11677,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "consumes": [ "application\/json" ], @@ -11508,7 +11688,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11526,7 +11706,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11612,10 +11792,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "consumes": [ "application\/json" ], @@ -11623,7 +11803,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -11641,7 +11821,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11719,10 +11899,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "consumes": [ "application\/json" ], @@ -11730,7 +11910,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11748,7 +11928,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11828,16 +12008,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -11886,7 +12066,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11935,13 +12115,13 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -11956,7 +12136,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12004,10 +12184,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12015,7 +12195,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12033,7 +12213,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12109,16 +12289,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12136,7 +12316,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12190,7 +12370,7 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "consumes": [ "application\/json" ], @@ -12198,7 +12378,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -12216,7 +12396,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12317,16 +12497,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -12344,7 +12524,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12393,13 +12573,13 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -12414,7 +12594,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12462,16 +12642,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -12489,7 +12669,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -12546,7 +12726,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -12554,7 +12734,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -12572,7 +12752,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -12586,10 +12766,10 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -12614,8 +12794,9 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -12710,7 +12891,7 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "consumes": [ "application\/json" ], @@ -12718,7 +12899,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -12736,7 +12917,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12750,8 +12931,9 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -12818,7 +13000,7 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "consumes": [ "application\/json" ], @@ -12826,7 +13008,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -12844,7 +13026,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12911,7 +13093,7 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "consumes": [ "application\/json" ], @@ -12919,7 +13101,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -12937,7 +13119,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -12997,16 +13179,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13024,7 +13206,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13089,7 +13271,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -13097,7 +13279,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13115,7 +13297,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -13129,10 +13311,10 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -13211,7 +13393,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -13219,7 +13401,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -13237,7 +13419,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -13314,13 +13496,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -13335,7 +13517,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -13387,10 +13569,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "consumes": [ "application\/json" ], @@ -13398,7 +13580,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -13416,7 +13598,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -13494,10 +13676,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "consumes": [ "application\/json" ], @@ -13505,7 +13687,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -13523,7 +13705,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -15409,7 +15591,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } @@ -33342,9 +33524,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -33387,6 +33584,28 @@ }, "x-example": [], "x-nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -33397,23 +33616,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -33459,27 +33662,18 @@ }, "x-example": [], "x-nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { diff --git a/composer.json b/composer.json index e0c3caf63c..dc13967e21 100644 --- a/composer.json +++ b/composer.json @@ -86,7 +86,7 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "0.41.*", + "appwrite/sdk-generator": "dev-feat-multiple-namespaces", "phpunit/phpunit": "9.*", "swoole/ide-helper": "5.1.2", "phpstan/phpstan": "1.8.*", diff --git a/composer.lock b/composer.lock index c092b802e4..d389212bb6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "497a684d3c93c08d4741f5bb886a5474", + "content-hash": "7f1ef097cd83efca1018c4eb84b7bb05", "packages": [ { "name": "adhocore/jwt", @@ -4810,16 +4810,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "0.41.23", + "version": "dev-feat-multiple-namespaces", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "188dff738ff7b9f1f9209b34ac2092b5456b1001" + "reference": "3130f9a952166f86f680b8385ca4441dcc1b7f0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/188dff738ff7b9f1f9209b34ac2092b5456b1001", - "reference": "188dff738ff7b9f1f9209b34ac2092b5456b1001", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/3130f9a952166f86f680b8385ca4441dcc1b7f0b", + "reference": "3130f9a952166f86f680b8385ca4441dcc1b7f0b", "shasum": "" }, "require": { @@ -4855,9 +4855,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/0.41.23" + "source": "https://github.com/appwrite/sdk-generator/tree/feat-multiple-namespaces" }, - "time": "2025-07-25T06:47:04+00:00" + "time": "2025-07-27T07:52:16+00:00" }, { "name": "doctrine/annotations", @@ -8239,7 +8239,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": {}, + "stability-flags": { + "appwrite/sdk-generator": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index a58f0b3068..3550157309 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -215,6 +215,7 @@ class OpenAPI3 extends Format $additionalMethod = [ 'name' => $methodObj->getMethodName(), + 'namespace' => $methodObj->getNamespace(), 'auth' => \array_slice($methodSecurities, 0, $this->authCount), 'parameters' => [], 'required' => [], @@ -237,10 +238,16 @@ class OpenAPI3 extends Format 'model' => \array_map(fn ($m) => '#/components/schemas/' . $m, $response->getModel()) ]; } else { - $additionalMethod['responses'][] = [ + $responseData = [ 'code' => $response->getCode(), - 'model' => '#/components/schemas/' . $response->getModel() ]; + + // lets not assume stuff here! + if ($response->getCode() !== 204) { + $responseData['model'] = '#/components/schemas/' . $response->getModel(); + } + + $additionalMethod['responses'][] = $responseData; } } diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 4420cc6736..3a98b4e2c0 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -224,6 +224,7 @@ class Swagger2 extends Format $additionalMethod = [ 'name' => $methodObj->getMethodName(), + 'namespace' => $methodObj->getNamespace(), 'auth' => \array_slice($methodSecurities, 0, $this->authCount), 'parameters' => [], 'required' => [], @@ -247,10 +248,16 @@ class Swagger2 extends Format 'model' => \array_map(fn ($m) => '#/definitions/' . $m, $response->getModel()) ]; } else { - $additionalMethod['responses'][] = [ + $responseData = [ 'code' => $response->getCode(), - 'model' => '#/definitions/' . $response->getModel() ]; + + // lets not assume stuff here! + if ($response->getCode() !== 204) { + $responseData['model'] = '#/definitions/' . $response->getModel(); + } + + $additionalMethod['responses'][] = $responseData; } } From d7136e77ea6056d2458a58fa21e52d663cb4d743 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 13:50:34 +0530 Subject: [PATCH 03/24] fix: tests. --- .../{Tables => Grids}/DatabasesBase.php | 598 ++++++++-------- .../DatabasesConsoleClientTest.php | 30 +- .../DatabasesCustomClientTest.php | 100 +-- .../DatabasesCustomServerTest.php | 658 +++++++++--------- .../DatabasesPermissionsGuestTest.php | 38 +- .../DatabasesPermissionsMemberTest.php | 26 +- .../DatabasesPermissionsScope.php | 2 +- .../DatabasesPermissionsTeamTest.php | 18 +- 8 files changed, 735 insertions(+), 735 deletions(-) rename tests/e2e/Services/Databases/{Tables => Grids}/DatabasesBase.php (90%) rename tests/e2e/Services/Databases/{Tables => Grids}/DatabasesConsoleClientTest.php (91%) rename tests/e2e/Services/Databases/{Tables => Grids}/DatabasesCustomClientTest.php (89%) rename tests/e2e/Services/Databases/{Tables => Grids}/DatabasesCustomServerTest.php (87%) rename tests/e2e/Services/Databases/{Tables => Grids}/DatabasesPermissionsGuestTest.php (85%) rename tests/e2e/Services/Databases/{Tables => Grids}/DatabasesPermissionsMemberTest.php (89%) rename tests/e2e/Services/Databases/{Tables => Grids}/DatabasesPermissionsScope.php (98%) rename tests/e2e/Services/Databases/{Tables => Grids}/DatabasesPermissionsTeamTest.php (88%) diff --git a/tests/e2e/Services/Databases/Tables/DatabasesBase.php b/tests/e2e/Services/Databases/Grids/DatabasesBase.php similarity index 90% rename from tests/e2e/Services/Databases/Tables/DatabasesBase.php rename to tests/e2e/Services/Databases/Grids/DatabasesBase.php index 58de6754ef..882d73f63f 100644 --- a/tests/e2e/Services/Databases/Tables/DatabasesBase.php +++ b/tests/e2e/Services/Databases/Grids/DatabasesBase.php @@ -1,6 +1,6 @@ client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $movies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -61,7 +61,7 @@ trait DatabasesBase $this->assertEquals(201, $movies['headers']['status-code']); $this->assertEquals($movies['body']['name'], 'Movies'); - $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -97,7 +97,7 @@ trait DatabasesBase $response = $this->client->call( Client::METHOD_GET, - '/databases/console/tables/' . $data['moviesId'] . '/rows', + '/databases/console/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => 'console', @@ -110,7 +110,7 @@ trait DatabasesBase $response = $this->client->call( Client::METHOD_GET, - '/databases/console/tables/' . $data['moviesId'] . '/rows', + '/databases/console/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', // 'x-appwrite-project' => '', empty header @@ -129,7 +129,7 @@ trait DatabasesBase /** * Test for SUCCESS */ - $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $data['moviesId'], array_merge([ + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -143,7 +143,7 @@ trait DatabasesBase $this->assertFalse($response['body']['enabled']); if ($this->getSide() === 'client') { - $responseCreateDocument = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $responseCreateDocument = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -160,14 +160,14 @@ trait DatabasesBase $this->assertEquals(404, $responseCreateDocument['headers']['status-code']); - $responseListDocument = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $responseListDocument = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(404, $responseListDocument['headers']['status-code']); - $responseGetDocument = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/someID', array_merge([ + $responseGetDocument = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/someID', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -175,7 +175,7 @@ trait DatabasesBase $this->assertEquals(404, $responseGetDocument['headers']['status-code']); } - $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $data['moviesId'], array_merge([ + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -196,7 +196,7 @@ trait DatabasesBase { $databaseId = $data['databaseId']; - $title = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/string', array_merge([ + $title = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -206,7 +206,7 @@ trait DatabasesBase 'required' => true, ]); - $description = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/string', array_merge([ + $description = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -217,7 +217,7 @@ trait DatabasesBase 'default' => '', ]); - $tagline = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/string', array_merge([ + $tagline = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -228,7 +228,7 @@ trait DatabasesBase 'default' => '', ]); - $releaseYear = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/integer', array_merge([ + $releaseYear = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -239,7 +239,7 @@ trait DatabasesBase 'max' => 2200, ]); - $duration = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/integer', array_merge([ + $duration = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -249,7 +249,7 @@ trait DatabasesBase 'min' => 60, ]); - $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/string', array_merge([ + $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -260,7 +260,7 @@ trait DatabasesBase 'array' => true, ]); - $datetime = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/datetime', array_merge([ + $datetime = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/datetime', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -269,7 +269,7 @@ trait DatabasesBase 'required' => false, ]); - $relationship = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/relationship', array_merge([ + $relationship = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -281,7 +281,7 @@ trait DatabasesBase 'twoWayKey' => 'movie' ]); - $integers = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/integer', array_merge([ + $integers = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -353,7 +353,7 @@ trait DatabasesBase // wait for database worker to create attributes sleep(2); - $movies = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'], array_merge([ + $movies = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -380,7 +380,7 @@ trait DatabasesBase public function testListColumns(array $data): void { $databaseId = $data['databaseId']; - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -393,7 +393,7 @@ trait DatabasesBase ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(2, \count($response['body']['columns'])); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -411,7 +411,7 @@ trait DatabasesBase { $databaseId = $data['databaseId']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -427,7 +427,7 @@ trait DatabasesBase $this->assertEquals(201, $table['headers']['status-code']); $this->assertEquals($table['body']['name'], 'patch'); - $attribute = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/tables/'.$table['body']['$id'].'/columns/string', array_merge([ + $attribute = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/grids/tables/'.$table['body']['$id'].'/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -441,7 +441,7 @@ trait DatabasesBase sleep(1); - $index = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/tables/'.$table['body']['$id'].'/indexes', array_merge([ + $index = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/grids/tables/'.$table['body']['$id'].'/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -457,7 +457,7 @@ trait DatabasesBase /** * Update attribute size to exceed Index maximum length */ - $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/'.$databaseId.'/tables/'.$table['body']['$id'].'/columns/string/'.$attribute['body']['key'], array_merge([ + $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/'.$databaseId.'/grids/tables/'.$table['body']['$id'].'/columns/string/'.$attribute['body']['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -482,7 +482,7 @@ trait DatabasesBase 'name' => 'Test Database 2' ]); - $players = $this->client->call(Client::METHOD_POST, '/databases/' . $database['body']['$id'] . '/tables', array_merge([ + $players = $this->client->call(Client::METHOD_POST, '/databases/' . $database['body']['$id'] . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -496,7 +496,7 @@ trait DatabasesBase ]); // Create enum attribute - $attribute = $this->client->call(Client::METHOD_POST, '/databases/' . $database['body']['$id'] . '/tables/' . $players['body']['$id'] . '/columns/enum', array_merge([ + $attribute = $this->client->call(Client::METHOD_POST, '/databases/' . $database['body']['$id'] . '/grids/tables/' . $players['body']['$id'] . '/columns/enum', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -514,7 +514,7 @@ trait DatabasesBase \sleep(2); // Update enum attribute - $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/' . $database['body']['$id'] . '/tables/' . $players['body']['$id'] . '/columns/enum/' . $attribute['body']['key'], array_merge([ + $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/' . $database['body']['$id'] . '/grids/tables/' . $players['body']['$id'] . '/columns/enum/' . $attribute['body']['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -534,7 +534,7 @@ trait DatabasesBase public function testColumnResponseModels(array $data): array { $databaseId = $data['databaseId']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -550,7 +550,7 @@ trait DatabasesBase $tableId = $table['body']['$id']; - $columnsPath = "/databases/" . $databaseId . "/tables/{$tableId}/columns"; + $columnsPath = "/databases/" . $databaseId . "/grids/tables/{$tableId}/columns"; $string = $this->client->call(Client::METHOD_POST, $columnsPath . '/string', array_merge([ 'content-type' => 'application/json', @@ -951,7 +951,7 @@ trait DatabasesBase $this->assertEquals($relationship['body']['twoWay'], $relationshipResponse['body']['twoWay']); $this->assertEquals($relationship['body']['twoWayKey'], $relationshipResponse['body']['twoWayKey']); - $columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns', array_merge([ + $columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1063,7 +1063,7 @@ trait DatabasesBase $this->assertEquals($integersResponse['body']['min'], $columns[11]['min']); $this->assertEquals($integersResponse['body']['max'], $columns[11]['max']); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1178,7 +1178,7 @@ trait DatabasesBase /** * Test for FAILURE */ - $badEnum = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum', array_merge([ + $badEnum = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1202,7 +1202,7 @@ trait DatabasesBase { $databaseId = $data['databaseId']; - $titleIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $titleIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1218,7 +1218,7 @@ trait DatabasesBase $this->assertCount(1, $titleIndex['body']['columns']); $this->assertEquals('title', $titleIndex['body']['columns'][0]); - $releaseYearIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $releaseYearIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1234,7 +1234,7 @@ trait DatabasesBase $this->assertCount(1, $releaseYearIndex['body']['columns']); $this->assertEquals('releaseYear', $releaseYearIndex['body']['columns'][0]); - $releaseWithDate1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $releaseWithDate1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1252,7 +1252,7 @@ trait DatabasesBase $this->assertEquals('$createdAt', $releaseWithDate1['body']['columns'][1]); $this->assertEquals('$updatedAt', $releaseWithDate1['body']['columns'][2]); - $releaseWithDate2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $releaseWithDate2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1269,7 +1269,7 @@ trait DatabasesBase $this->assertEquals('birthDay', $releaseWithDate2['body']['columns'][0]); // Test for failure - $fulltextReleaseYear = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $fulltextReleaseYear = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1282,7 +1282,7 @@ trait DatabasesBase $this->assertEquals(400, $fulltextReleaseYear['headers']['status-code']); $this->assertEquals($fulltextReleaseYear['body']['message'], 'Attribute "releaseYear" cannot be part of a FULLTEXT index, must be of type string'); - $noAttributes = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $noAttributes = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1295,7 +1295,7 @@ trait DatabasesBase $this->assertEquals(400, $noAttributes['headers']['status-code']); $this->assertEquals($noAttributes['body']['message'], 'No attributes provided for index'); - $duplicates = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $duplicates = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1308,7 +1308,7 @@ trait DatabasesBase $this->assertEquals(400, $duplicates['headers']['status-code']); $this->assertEquals($duplicates['body']['message'], 'Duplicate attributes provided'); - $tooLong = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $tooLong = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1321,7 +1321,7 @@ trait DatabasesBase $this->assertEquals(400, $tooLong['headers']['status-code']); $this->assertStringContainsString('Index length is longer than the maximum', $tooLong['body']['message']); - $fulltextArray = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $fulltextArray = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1334,7 +1334,7 @@ trait DatabasesBase $this->assertEquals(400, $fulltextArray['headers']['status-code']); $this->assertEquals('"Fulltext" index is forbidden on array attributes', $fulltextArray['body']['message']); - $actorsArray = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $actorsArray = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1347,7 +1347,7 @@ trait DatabasesBase // Indexes on array attributes are disabled due to MySQL bug $this->assertEquals(400, $actorsArray['headers']['status-code']); - $twoLevelsArray = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $twoLevelsArray = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1361,7 +1361,7 @@ trait DatabasesBase // Indexes on array attributes are disabled due to MySQL bug $this->assertEquals(400, $twoLevelsArray['headers']['status-code']); - $unknown = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $unknown = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1374,7 +1374,7 @@ trait DatabasesBase $this->assertEquals(400, $unknown['headers']['status-code']); $this->assertEquals('Unknown column: Unknown. Verify the column name or create the column.', $unknown['body']['message']); - $index1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $index1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1388,7 +1388,7 @@ trait DatabasesBase // Indexes on array attributes are disabled due to MySQL bug $this->assertEquals(400, $index1['headers']['status-code']); - $index2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $index2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1406,7 +1406,7 @@ trait DatabasesBase */ sleep(2); - $movies = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'], array_merge([ + $movies = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1434,7 +1434,7 @@ trait DatabasesBase $tableId = $data['moviesId']; // Test case for valid lengths - $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$tableId}/indexes", [ + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$tableId}/indexes", [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1447,7 +1447,7 @@ trait DatabasesBase $this->assertEquals(202, $create['headers']['status-code']); // Fetch index and check correct lengths - $index = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/tables/{$tableId}/indexes/lengthTestIndex", [ + $index = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/grids/tables/{$tableId}/indexes/lengthTestIndex", [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1457,7 +1457,7 @@ trait DatabasesBase $this->assertEquals([128, 200], $index['body']['lengths']); // Test case for count of lengths greater than attributes (should throw 400) - $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$tableId}/indexes", [ + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$tableId}/indexes", [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1470,7 +1470,7 @@ trait DatabasesBase $this->assertEquals(400, $create['headers']['status-code']); // Test case for lengths exceeding total of 768 - $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$tableId}/indexes", [ + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$tableId}/indexes", [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1484,7 +1484,7 @@ trait DatabasesBase $this->assertEquals(400, $create['headers']['status-code']); // Test case for negative length values - $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$tableId}/indexes", [ + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$tableId}/indexes", [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1503,7 +1503,7 @@ trait DatabasesBase public function testListIndexes(array $data): void { $databaseId = $data['databaseId']; - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1515,7 +1515,7 @@ trait DatabasesBase ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(2, \count($response['body']['indexes'])); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1534,7 +1534,7 @@ trait DatabasesBase public function testCreateRow(array $data): array { $databaseId = $data['databaseId']; - $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1555,7 +1555,7 @@ trait DatabasesBase ] ]); - $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1578,7 +1578,7 @@ trait DatabasesBase ] ]); - $row3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1601,7 +1601,7 @@ trait DatabasesBase ] ]); - $row4 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row4 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1672,7 +1672,7 @@ trait DatabasesBase { $databaseId = $data['databaseId']; $rowId = ID::unique(); - $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1689,14 +1689,14 @@ trait DatabasesBase $this->assertEquals(200, $row['headers']['status-code']); $this->assertCount(3, $row['body']['$permissions']); - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals('Thor: Ragnarok', $row['body']['title']); - $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1714,7 +1714,7 @@ trait DatabasesBase $this->assertEquals(200, $row['headers']['status-code']); $this->assertEquals('Thor: Love and Thunder', $row['body']['title']); - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -1722,7 +1722,7 @@ trait DatabasesBase $this->assertEquals('Thor: Love and Thunder', $row['body']['title']); // removing permission to read and delete - $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1735,7 +1735,7 @@ trait DatabasesBase ], ]); // shouldn't be able to read as no read permission - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -1748,7 +1748,7 @@ trait DatabasesBase break; } // shouldn't be able to delete as no delete permission - $row = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -1758,7 +1758,7 @@ trait DatabasesBase $this->assertEquals(401, $row['headers']['status-code']); } // giving the delete permission - $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1773,14 +1773,14 @@ trait DatabasesBase ], ]); - $row = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(204, $row['headers']['status-code']); // relationship behaviour - $person = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $person = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1798,7 +1798,7 @@ trait DatabasesBase $this->assertEquals(201, $person['headers']['status-code']); - $library = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $library = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1816,7 +1816,7 @@ trait DatabasesBase $this->assertEquals(201, $library['headers']['status-code']); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1828,7 +1828,7 @@ trait DatabasesBase sleep(1); // Wait for worker - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1842,7 +1842,7 @@ trait DatabasesBase sleep(1); // Wait for worker - $libraryName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $library['body']['$id'] . '/columns/string', array_merge([ + $libraryName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $library['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1858,7 +1858,7 @@ trait DatabasesBase // upserting values $rowId = ID::unique(); - $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows/'.$rowId, array_merge([ + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows/'.$rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1881,7 +1881,7 @@ trait DatabasesBase ]); $this->assertEquals('Library 1', $person1['body']['library']['libraryName']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1895,7 +1895,7 @@ trait DatabasesBase $this->assertEquals('Library 1', $rows['body']['rows'][0]['library']['libraryName']); - $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows/'.$rowId, array_merge([ + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows/'.$rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1919,7 +1919,7 @@ trait DatabasesBase // data should get updated $this->assertEquals('Library 2', $person1['body']['library']['libraryName']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1933,7 +1933,7 @@ trait DatabasesBase $this->assertEquals('Library 2', $rows['body']['rows'][0]['library']['libraryName']); // data should get added - $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows/'.ID::unique(), array_merge([ + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows/'.ID::unique(), array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1957,7 +1957,7 @@ trait DatabasesBase $this->assertEquals('Library 2', $person1['body']['library']['libraryName']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1969,7 +1969,7 @@ trait DatabasesBase $this->assertEquals(2, $rows['body']['total']); // test without passing permissions - $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1982,7 +1982,7 @@ trait DatabasesBase $this->assertEquals(200, $row['headers']['status-code']); $this->assertEquals('Thor: Ragnarok', $row['body']['title']); - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1990,7 +1990,7 @@ trait DatabasesBase $this->assertEquals(200, $row['headers']['status-code']); - $deleteResponse = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ + $deleteResponse = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2159,7 +2159,7 @@ trait DatabasesBase public function testListRows(array $data): array { $databaseId = $data['databaseId']; - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2183,7 +2183,7 @@ trait DatabasesBase $this->assertEquals($data['moviesId'], $row['$tableId']); } - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2199,7 +2199,7 @@ trait DatabasesBase $this->assertCount(3, $rows['body']['rows']); // changing description attribute to be null by default instead of empty string - $patchNull = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/columns/string/description', array_merge([ + $patchNull = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/columns/string/description', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2209,7 +2209,7 @@ trait DatabasesBase ]); // creating a dummy doc with null description - $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2226,7 +2226,7 @@ trait DatabasesBase $this->assertEquals(201, $row1['headers']['status-code']); // fetching docs with cursor after the dummy doc with order attr description which is null - $rowsPaginated = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rowsPaginated = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2239,7 +2239,7 @@ trait DatabasesBase $this->assertEquals(400, $rowsPaginated['headers']['status-code']); // deleting the dummy doc created - $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $row1['body']['$id'], array_merge([ + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $row1['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -2253,7 +2253,7 @@ trait DatabasesBase { $databaseId = $data['databaseId']; foreach ($data['rows'] as $row) { - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $row['$tableId'] . '/rows/' . $row['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $row['$tableId'] . '/rows/' . $row['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -2280,7 +2280,7 @@ trait DatabasesBase $databaseId = $data['databaseId']; $row = $data['rows'][0]; - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $row['$tableId'] . '/rows/' . $row['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $row['$tableId'] . '/rows/' . $row['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2304,7 +2304,7 @@ trait DatabasesBase /** * Test after without order. */ - $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -2315,7 +2315,7 @@ trait DatabasesBase $this->assertEquals('Spider-Man: Homecoming', $base['body']['rows'][2]['title']); $this->assertCount(3, $base['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2329,7 +2329,7 @@ trait DatabasesBase $this->assertEquals($base['body']['rows'][2]['$id'], $rows['body']['rows'][1]['$id']); $this->assertCount(2, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2344,7 +2344,7 @@ trait DatabasesBase /** * Test with ASC order and after. */ - $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2359,7 +2359,7 @@ trait DatabasesBase $this->assertEquals(2019, $base['body']['rows'][2]['releaseYear']); $this->assertCount(3, $base['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2376,7 +2376,7 @@ trait DatabasesBase /** * Test with DESC order and after. */ - $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2391,7 +2391,7 @@ trait DatabasesBase $this->assertEquals(2019, $base['body']['rows'][0]['releaseYear']); $this->assertCount(3, $base['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2408,7 +2408,7 @@ trait DatabasesBase /** * Test after with unknown row. */ - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2423,7 +2423,7 @@ trait DatabasesBase * Test null value for cursor */ - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2446,7 +2446,7 @@ trait DatabasesBase /** * Test before without order. */ - $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -2457,7 +2457,7 @@ trait DatabasesBase $this->assertEquals('Spider-Man: Homecoming', $base['body']['rows'][2]['title']); $this->assertCount(3, $base['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2471,7 +2471,7 @@ trait DatabasesBase $this->assertEquals($base['body']['rows'][1]['$id'], $rows['body']['rows'][1]['$id']); $this->assertCount(2, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2486,7 +2486,7 @@ trait DatabasesBase /** * Test with ASC order and after. */ - $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2501,7 +2501,7 @@ trait DatabasesBase $this->assertEquals(2019, $base['body']['rows'][2]['releaseYear']); $this->assertCount(3, $base['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2518,7 +2518,7 @@ trait DatabasesBase /** * Test with DESC order and after. */ - $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2533,7 +2533,7 @@ trait DatabasesBase $this->assertEquals(2019, $base['body']['rows'][0]['releaseYear']); $this->assertCount(3, $base['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2556,7 +2556,7 @@ trait DatabasesBase public function testListRowsLimitAndOffset(array $data): array { $databaseId = $data['databaseId']; - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2570,7 +2570,7 @@ trait DatabasesBase $this->assertEquals(1944, $rows['body']['rows'][0]['releaseYear']); $this->assertCount(1, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2595,7 +2595,7 @@ trait DatabasesBase public function testRowsListQueries(array $data): array { $databaseId = $data['databaseId']; - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2608,7 +2608,7 @@ trait DatabasesBase $this->assertEquals(1944, $rows['body']['rows'][0]['releaseYear']); $this->assertCount(1, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2621,7 +2621,7 @@ trait DatabasesBase $this->assertEquals(1944, $rows['body']['rows'][0]['releaseYear']); $this->assertCount(1, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2634,7 +2634,7 @@ trait DatabasesBase $this->assertEquals(2017, $rows['body']['rows'][0]['releaseYear']); $this->assertCount(1, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2648,7 +2648,7 @@ trait DatabasesBase $this->assertEquals(2017, $rows['body']['rows'][1]['releaseYear']); $this->assertCount(2, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2660,7 +2660,7 @@ trait DatabasesBase $this->assertEquals(400, $rows['headers']['status-code']); $this->assertEquals('Invalid query: Syntax error', $rows['body']['message']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2672,7 +2672,7 @@ trait DatabasesBase $this->assertEquals(200, $rows['headers']['status-code']); $this->assertEquals(2, $rows['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2684,7 +2684,7 @@ trait DatabasesBase $this->assertCount(1, $rows['body']['rows']); $this->assertEquals('Captain America', $rows['body']['rows'][0]['title']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2697,7 +2697,7 @@ trait DatabasesBase $this->assertEquals('Spider-Man: Far From Home', $rows['body']['rows'][0]['title']); $this->assertEquals('Spider-Man: Homecoming', $rows['body']['rows'][1]['title']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2708,7 +2708,7 @@ trait DatabasesBase $this->assertCount(3, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2719,7 +2719,7 @@ trait DatabasesBase $this->assertCount(0, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2731,7 +2731,7 @@ trait DatabasesBase $this->assertEquals(200, $rows['headers']['status-code']); $this->assertEquals(3, $rows['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2743,7 +2743,7 @@ trait DatabasesBase $this->assertEquals(200, $rows['headers']['status-code']); $this->assertEquals(0, $rows['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2755,7 +2755,7 @@ trait DatabasesBase $this->assertEquals(400, $rows['headers']['status-code']); $this->assertEquals('Invalid query: Query value is invalid for attribute "birthDay"', $rows['body']['message']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2769,7 +2769,7 @@ trait DatabasesBase $this->assertEquals('1975-06-12T18:12:55.000+00:00', $rows['body']['rows'][1]['birthDay']); $this->assertCount(2, $rows['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2790,7 +2790,7 @@ trait DatabasesBase $conditions[] = $i; } - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2807,7 +2807,7 @@ trait DatabasesBase $value .= "[" . $i . "] Too long title to cross 2k chars query limit "; } - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2820,7 +2820,7 @@ trait DatabasesBase //$this->assertEquals(400, $rows['headers']['status-code']); // Todo: Disabled for CL - Uncomment after ProxyDatabase cleanup for find method - // $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + // $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ // 'content-type' => 'application/json', // 'x-appwrite-project' => $this->getProject()['$id'], // ], $this->getHeaders()), [ @@ -2840,7 +2840,7 @@ trait DatabasesBase public function testUpdateRow(array $data): array { $databaseId = $data['databaseId']; - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2874,7 +2874,7 @@ trait DatabasesBase $this->assertContains(Permission::update(Role::user($this->getUser()['$id'])), $row['body']['$permissions']); $this->assertContains(Permission::delete(Role::user($this->getUser()['$id'])), $row['body']['$permissions']); - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2899,7 +2899,7 @@ trait DatabasesBase $this->assertContains(Permission::update(Role::users()), $row['body']['$permissions']); $this->assertContains(Permission::delete(Role::users()), $row['body']['$permissions']); - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -2913,7 +2913,7 @@ trait DatabasesBase $this->assertEquals($row['body']['title'], 'Thor: Ragnarok'); $this->assertEquals($row['body']['releaseYear'], 2017); - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-timestamp' => DateTime::formatTz(DateTime::now()), @@ -2929,7 +2929,7 @@ trait DatabasesBase * Test for failure */ - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-timestamp' => 'invalid', @@ -2943,7 +2943,7 @@ trait DatabasesBase $this->assertEquals('Invalid X-Appwrite-Timestamp header value', $response['body']['message']); $this->assertEquals(Exception::GENERAL_ARGUMENT_INVALID, $response['body']['type']); - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-timestamp' => DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -1000)), @@ -2966,7 +2966,7 @@ trait DatabasesBase public function testDeleteRow(array $data): array { $databaseId = $data['databaseId']; - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2988,21 +2988,21 @@ trait DatabasesBase $this->assertEquals(201, $row['headers']['status-code']); - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(200, $row['headers']['status-code']); - $row = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(204, $row['headers']['status-code']); - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -3026,7 +3026,7 @@ trait DatabasesBase $this->assertEquals('InvalidDocumentDatabase', $database['body']['name']); $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3045,7 +3045,7 @@ trait DatabasesBase $tableId = $table['body']['$id']; - $email = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email', array_merge([ + $email = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3054,7 +3054,7 @@ trait DatabasesBase 'required' => false, ]); - $enum = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum', array_merge([ + $enum = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3064,7 +3064,7 @@ trait DatabasesBase 'required' => false, ]); - $ip = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip', array_merge([ + $ip = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3073,7 +3073,7 @@ trait DatabasesBase 'required' => false, ]); - $url = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url', array_merge([ + $url = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3083,7 +3083,7 @@ trait DatabasesBase 'required' => false, ]); - $range = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $range = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3095,7 +3095,7 @@ trait DatabasesBase ]); // TODO@kodumbeats min and max are rounded in error message - $floatRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float', array_merge([ + $floatRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3106,7 +3106,7 @@ trait DatabasesBase 'max' => 1.4, ]); - $probability = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float', array_merge([ + $probability = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3118,7 +3118,7 @@ trait DatabasesBase 'max' => 1, ]); - $upperBound = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $upperBound = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3128,7 +3128,7 @@ trait DatabasesBase 'max' => 10, ]); - $lowerBound = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $lowerBound = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3142,7 +3142,7 @@ trait DatabasesBase * Test for failure */ - $invalidRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $invalidRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ @@ -3152,7 +3152,7 @@ trait DatabasesBase 'max' => 3, ]); - $defaultArray = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $defaultArray = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ @@ -3162,7 +3162,7 @@ trait DatabasesBase 'array' => true, ]); - $defaultRequired = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $defaultRequired = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3172,7 +3172,7 @@ trait DatabasesBase 'default' => 12 ]); - $enumDefault = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum', array_merge([ + $enumDefault = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3182,7 +3182,7 @@ trait DatabasesBase 'default' => 'south' ]); - $enumDefaultStrict = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum', array_merge([ + $enumDefaultStrict = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3192,7 +3192,7 @@ trait DatabasesBase 'default' => 'NORTH' ]); - $goodDatetime = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime', array_merge([ + $goodDatetime = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3202,7 +3202,7 @@ trait DatabasesBase 'default' => null ]); - $datetimeDefault = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime', array_merge([ + $datetimeDefault = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3234,7 +3234,7 @@ trait DatabasesBase // wait for worker to add attributes sleep(3); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -3246,7 +3246,7 @@ trait DatabasesBase * Test for successful validation */ - $goodEmail = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $goodEmail = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3261,7 +3261,7 @@ trait DatabasesBase ] ]); - $goodEnum = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $goodEnum = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3276,7 +3276,7 @@ trait DatabasesBase ] ]); - $goodIp = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $goodIp = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3291,7 +3291,7 @@ trait DatabasesBase ] ]); - $goodUrl = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $goodUrl = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3306,7 +3306,7 @@ trait DatabasesBase ] ]); - $goodRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $goodRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3321,7 +3321,7 @@ trait DatabasesBase ] ]); - $goodFloatRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $goodFloatRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3336,7 +3336,7 @@ trait DatabasesBase ] ]); - $goodProbability = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $goodProbability = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3351,7 +3351,7 @@ trait DatabasesBase ] ]); - $notTooHigh = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $notTooHigh = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3366,7 +3366,7 @@ trait DatabasesBase ] ]); - $notTooLow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $notTooLow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3395,7 +3395,7 @@ trait DatabasesBase * Test that custom validators reject documents */ - $badEmail = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $badEmail = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3410,7 +3410,7 @@ trait DatabasesBase ] ]); - $badEnum = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $badEnum = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3425,7 +3425,7 @@ trait DatabasesBase ] ]); - $badIp = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $badIp = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3440,7 +3440,7 @@ trait DatabasesBase ] ]); - $badUrl = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $badUrl = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3455,7 +3455,7 @@ trait DatabasesBase ] ]); - $badRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $badRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3470,7 +3470,7 @@ trait DatabasesBase ] ]); - $badFloatRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $badFloatRange = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3485,7 +3485,7 @@ trait DatabasesBase ] ]); - $badProbability = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $badProbability = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3500,7 +3500,7 @@ trait DatabasesBase ] ]); - $tooHigh = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $tooHigh = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3515,7 +3515,7 @@ trait DatabasesBase ] ]); - $tooLow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $tooLow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3530,7 +3530,7 @@ trait DatabasesBase ] ]); - $badTime = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $badTime = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3571,7 +3571,7 @@ trait DatabasesBase public function testDefaultPermissions(array $data): array { $databaseId = $data['databaseId']; - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3604,7 +3604,7 @@ trait DatabasesBase // Updated Permissions - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3632,7 +3632,7 @@ trait DatabasesBase Permission::update(Role::user($this->getUser()['$id'])), ], $row['body']['$permissions']); - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -3649,7 +3649,7 @@ trait DatabasesBase // Reset Permissions - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3668,7 +3668,7 @@ trait DatabasesBase $this->assertEquals([], $row['body']['$permissions']); // Check client side can no longer read the row. - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -3700,7 +3700,7 @@ trait DatabasesBase $databaseId = $database['body']['$id']; $user = $this->getUser()['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3724,7 +3724,7 @@ trait DatabasesBase sleep(2); - $attribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $attribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3740,7 +3740,7 @@ trait DatabasesBase // wait for db to add attribute sleep(2); - $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ + $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3756,7 +3756,7 @@ trait DatabasesBase // wait for db to add attribute sleep(2); - $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3773,7 +3773,7 @@ trait DatabasesBase $this->assertEquals(201, $row1['headers']['status-code']); - $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3789,7 +3789,7 @@ trait DatabasesBase $this->assertEquals(201, $row2['headers']['status-code']); - $row3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', [ + $row3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3806,7 +3806,7 @@ trait DatabasesBase $this->assertEquals(201, $row3['headers']['status-code']); - $rowsUser1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $rowsUser1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -3815,7 +3815,7 @@ trait DatabasesBase $this->assertEquals(3, $rowsUser1['body']['total']); $this->assertCount(3, $rowsUser1['body']['rows']); - $row3GetWithCollectionRead = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row3['body']['$id'], array_merge([ + $row3GetWithCollectionRead = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row3['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -3846,7 +3846,7 @@ trait DatabasesBase ]); $session2 = $session2['cookies']['a_session_' . $this->getProject()['$id']]; - $row3GetWithDocumentRead = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row3['body']['$id'], [ + $row3GetWithDocumentRead = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row3['body']['$id'], [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3856,7 +3856,7 @@ trait DatabasesBase // Current user has no table permissions but has read permission for this row $this->assertEquals(200, $row3GetWithDocumentRead['headers']['status-code']); - $row2GetFailure = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row2['body']['$id'], [ + $row2GetFailure = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row2['body']['$id'], [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3866,7 +3866,7 @@ trait DatabasesBase // Current user has no table or row permissions for this row $this->assertEquals(404, $row2GetFailure['headers']['status-code']); - $rowsUser2 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', [ + $rowsUser2 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3893,7 +3893,7 @@ trait DatabasesBase $databaseId = $database['body']['$id']; $user = $this->getUser()['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3914,7 +3914,7 @@ trait DatabasesBase $tableId = $table['body']['$id']; - $attribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $attribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3929,7 +3929,7 @@ trait DatabasesBase \sleep(2); - $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ + $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3944,7 +3944,7 @@ trait DatabasesBase \sleep(2); - $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3961,7 +3961,7 @@ trait DatabasesBase $this->assertEquals(201, $row1['headers']['status-code']); - $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -3977,7 +3977,7 @@ trait DatabasesBase $this->assertEquals(201, $row2['headers']['status-code']); - $row3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', [ + $row3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3994,7 +3994,7 @@ trait DatabasesBase $this->assertEquals(201, $row3['headers']['status-code']); - $rowsUser1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $rowsUser1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4003,7 +4003,7 @@ trait DatabasesBase $this->assertEquals(3, $rowsUser1['body']['total']); $this->assertCount(3, $rowsUser1['body']['rows']); - $row3GetWithCollectionRead = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row3['body']['$id'], array_merge([ + $row3GetWithCollectionRead = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row3['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4034,7 +4034,7 @@ trait DatabasesBase ]); $session2 = $session2['cookies']['a_session_' . $this->getProject()['$id']]; - $row3GetWithDocumentRead = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row3['body']['$id'], [ + $row3GetWithDocumentRead = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row3['body']['$id'], [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -4044,7 +4044,7 @@ trait DatabasesBase // other2 has no table permissions and row permissions are disabled $this->assertEquals(404, $row3GetWithDocumentRead['headers']['status-code']); - $rowsUser2 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', [ + $rowsUser2 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -4055,7 +4055,7 @@ trait DatabasesBase $this->assertEquals(401, $rowsUser2['headers']['status-code']); // Enable row permissions - $this->client->call(CLient::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $tableId, [ + $this->client->call(CLient::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $tableId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4064,7 +4064,7 @@ trait DatabasesBase 'rowSecurity' => true, ]); - $rowsUser2 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', [ + $rowsUser2 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -4082,7 +4082,7 @@ trait DatabasesBase public function testUniqueIndexDuplicate(array $data): array { $databaseId = $data['databaseId']; - $uniqueIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([ + $uniqueIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4097,7 +4097,7 @@ trait DatabasesBase sleep(2); // test for failure - $duplicate = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $duplicate = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4120,7 +4120,7 @@ trait DatabasesBase $this->assertEquals(409, $duplicate['headers']['status-code']); // Test for exception when updating row to conflict - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4143,7 +4143,7 @@ trait DatabasesBase $this->assertEquals(201, $row['headers']['status-code']); // Test for exception when updating row to conflict - $duplicate = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/rows/' . $row['body']['$id'], array_merge([ + $duplicate = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4182,7 +4182,7 @@ trait DatabasesBase 'x-appwrite-key' => $this->getProject()['apiKey'] ]; - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/tables/' . $data['moviesId'] . '/rows', $headers, [ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['moviesId'] . '/rows', $headers, [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Creation Date Test', @@ -4198,7 +4198,7 @@ trait DatabasesBase \sleep(1); - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, $headers, [ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, $headers, [ 'data' => [ 'title' => 'Updated Date Test', ] @@ -4212,7 +4212,7 @@ trait DatabasesBase \sleep(1); - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/tables/' . $data['moviesId'] . '/rows/' . $rowId, $headers, [ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['moviesId'] . '/rows/' . $rowId, $headers, [ 'data' => [ 'title' => 'Again Updated Date Test', '$createdAt' => '2022-08-01 13:09:23.040', // $createdAt is not updatable @@ -4246,7 +4246,7 @@ trait DatabasesBase $databaseId = $database['body']['$id']; // Create table - $movies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $movies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4268,7 +4268,7 @@ trait DatabasesBase $moviesId = $movies['body']['$id']; // create attribute - $title = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $moviesId . '/columns/string', array_merge([ + $title = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4284,7 +4284,7 @@ trait DatabasesBase sleep(2); // add row - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $moviesId . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4308,7 +4308,7 @@ trait DatabasesBase $this->assertContains(Permission::delete(Role::any()), $row['body']['$permissions']); // Send only read permission - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $moviesId . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4321,7 +4321,7 @@ trait DatabasesBase $this->assertCount(1, $row['body']['$permissions']); // Send only mutation permissions - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $moviesId . '/rows/' . $id, array_merge([ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/rows/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4339,7 +4339,7 @@ trait DatabasesBase } // remove table - $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $moviesId, array_merge([ + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $moviesId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4357,7 +4357,7 @@ trait DatabasesBase /** * Test for SUCCESS */ - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4370,7 +4370,7 @@ trait DatabasesBase $tableId = $table['body']['$id']; - $true = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean', array_merge([ + $true = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4382,7 +4382,7 @@ trait DatabasesBase $this->assertEquals(202, $true['headers']['status-code']); - $false = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean', array_merge([ + $false = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4402,7 +4402,7 @@ trait DatabasesBase { $databaseId = $data['databaseId']; - $person = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $person = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4420,7 +4420,7 @@ trait DatabasesBase $this->assertEquals(201, $person['headers']['status-code']); - $library = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $library = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4437,7 +4437,7 @@ trait DatabasesBase $this->assertEquals(201, $library['headers']['status-code']); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4449,7 +4449,7 @@ trait DatabasesBase sleep(1); // Wait for worker - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4463,7 +4463,7 @@ trait DatabasesBase sleep(1); // Wait for worker - $libraryName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $library['body']['$id'] . '/columns/string', array_merge([ + $libraryName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $library['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4481,7 +4481,7 @@ trait DatabasesBase $this->assertEquals('relationship', $relation['body']['type']); $this->assertEquals('processing', $relation['body']['status']); - $columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/columns', array_merge([ + $columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/columns', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4496,7 +4496,7 @@ trait DatabasesBase $this->assertEquals('person', $columns[1]['twoWayKey']); $this->assertEquals(Database::RELATION_MUTATE_CASCADE, $columns[1]['onDelete']); - $attribute = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/tables/{$person['body']['$id']}/columns/library", array_merge([ + $attribute = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/grids/tables/{$person['body']['$id']}/columns/library", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4513,7 +4513,7 @@ trait DatabasesBase $this->assertEquals('person', $attribute['body']['twoWayKey']); $this->assertEquals(Database::RELATION_MUTATE_CASCADE, $attribute['body']['onDelete']); - $person1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows', array_merge([ + $person1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4537,7 +4537,7 @@ trait DatabasesBase $this->assertEquals('Library 1', $person1['body']['library']['libraryName']); // Create without nested ID - $person2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows', array_merge([ + $person2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4568,7 +4568,7 @@ trait DatabasesBase $this->assertArrayNotHasKey('$internalId', $person1['body']); $this->assertArrayNotHasKey('$internalId', $person1['body']['library']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4582,7 +4582,7 @@ trait DatabasesBase $this->assertEquals('Library 1', $rows['body']['rows'][0]['library']['libraryName']); $this->assertArrayHasKey('fullName', $rows['body']['rows'][0]); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4594,7 +4594,7 @@ trait DatabasesBase $this->assertEquals(400, $rows['headers']['status-code']); $this->assertEquals('Invalid query: Cannot query nested attribute on: library', $rows['body']['message']); - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/columns/library', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/columns/library', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4604,7 +4604,7 @@ trait DatabasesBase $this->assertEquals(204, $response['headers']['status-code']); - $attribute = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/tables/{$person['body']['$id']}/columns/library", array_merge([ + $attribute = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/grids/tables/{$person['body']['$id']}/columns/library", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4612,7 +4612,7 @@ trait DatabasesBase $this->assertEquals(404, $attribute['headers']['status-code']); - $person1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $person['body']['$id'] . '/rows/' . $person1['body']['$id'], array_merge([ + $person1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $person['body']['$id'] . '/rows/' . $person1['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4620,7 +4620,7 @@ trait DatabasesBase $this->assertArrayNotHasKey('library', $person1['body']); //Test Deletion of related twoKey - $columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $library['body']['$id'] . '/columns', array_merge([ + $columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $library['body']['$id'] . '/columns', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4647,7 +4647,7 @@ trait DatabasesBase $libraryCollection = $data['libraryCollection']; // One person can own several libraries - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $personCollection . '/columns/relationship', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $personCollection . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4661,7 +4661,7 @@ trait DatabasesBase sleep(1); - $libraryAttributesResponse = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $libraryCollection . '/columns', array_merge([ + $libraryAttributesResponse = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $libraryCollection . '/columns', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4671,7 +4671,7 @@ trait DatabasesBase $this->assertEquals(2, $libraryAttributesResponse['body']['total']); $this->assertEquals('person_one_to_many', $libraryAttributesResponse['body']['columns'][1]['key']); - $libraryCollectionResponse = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $libraryCollection, array_merge([ + $libraryCollectionResponse = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $libraryCollection, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4680,7 +4680,7 @@ trait DatabasesBase $this->assertIsArray($libraryCollectionResponse['body']['columns']); $this->assertCount(2, $libraryCollectionResponse['body']['columns']); - $attribute = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/tables/{$personCollection}/columns/libraries", array_merge([ + $attribute = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/grids/tables/{$personCollection}/columns/libraries", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4697,7 +4697,7 @@ trait DatabasesBase $this->assertEquals('person_one_to_many', $attribute['body']['twoWayKey']); $this->assertEquals('restrict', $attribute['body']['onDelete']); - $person2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $personCollection . '/rows', array_merge([ + $person2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $personCollection . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4736,7 +4736,7 @@ trait DatabasesBase $this->assertArrayHasKey('libraries', $person2['body']); $this->assertEquals(2, count($person2['body']['libraries'])); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $personCollection . '/rows/' . $person2['body']['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $personCollection . '/rows/' . $person2['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4750,7 +4750,7 @@ trait DatabasesBase $this->assertArrayHasKey('libraries', $response['body']); $this->assertEquals(2, count($response['body']['libraries'])); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $libraryCollection . '/rows/library11', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $libraryCollection . '/rows/library11', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4763,7 +4763,7 @@ trait DatabasesBase $this->assertArrayHasKey('person_one_to_many', $response['body']); $this->assertEquals('person10', $response['body']['person_one_to_many']['$id']); - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $personCollection . '/columns/libraries/relationship', array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $personCollection . '/columns/libraries/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4773,7 +4773,7 @@ trait DatabasesBase $this->assertEquals(200, $response['headers']['status-code']); - $attribute = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/tables/{$personCollection}/columns/libraries", array_merge([ + $attribute = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/grids/tables/{$personCollection}/columns/libraries", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4800,7 +4800,7 @@ trait DatabasesBase $databaseId = $data['databaseId']; // Create album table - $albums = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $albums = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4815,7 +4815,7 @@ trait DatabasesBase ]); // Create album name attribute - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $albums['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $albums['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4826,7 +4826,7 @@ trait DatabasesBase ]); // Create artist table - $artists = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $artists = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4841,7 +4841,7 @@ trait DatabasesBase ]); // Create artist name attribute - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $artists['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $artists['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4852,7 +4852,7 @@ trait DatabasesBase ]); // Create relationship - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $albums['body']['$id'] . '/columns/relationship', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $albums['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4882,7 +4882,7 @@ trait DatabasesBase ]; // Create album - $album = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $albums['body']['$id'] . '/rows', array_merge([ + $album = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $albums['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4904,7 +4904,7 @@ trait DatabasesBase $this->assertEquals($permissions, $album['body']['$permissions']); $this->assertEquals($permissions, $album['body']['artist']['$permissions']); - $album = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $albums['body']['$id'] . '/rows/album1', array_merge([ + $album = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $albums['body']['$id'] . '/rows/album1', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4920,7 +4920,7 @@ trait DatabasesBase $this->assertEquals($permissions, $album['body']['$permissions']); $this->assertEquals($permissions, $album['body']['artist']['$permissions']); - $artist = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $artists['body']['$id'] . '/rows/' . $album['body']['artist']['$id'], array_merge([ + $artist = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $artists['body']['$id'] . '/rows/' . $album['body']['artist']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4952,7 +4952,7 @@ trait DatabasesBase $databaseId = $data['databaseId']; // Create sports table - $sports = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $sports = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4967,7 +4967,7 @@ trait DatabasesBase ]); // Create sport name attribute - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $sports['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $sports['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4978,7 +4978,7 @@ trait DatabasesBase ]); // Create player table - $players = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $players = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4993,7 +4993,7 @@ trait DatabasesBase ]); // Create player name attribute - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $players['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $players['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5004,7 +5004,7 @@ trait DatabasesBase ]); // Create relationship - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $sports['body']['$id'] . '/columns/relationship', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $sports['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5035,7 +5035,7 @@ trait DatabasesBase ]; // Create sport - $sport = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $sports['body']['$id'] . '/rows', array_merge([ + $sport = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $sports['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5065,7 +5065,7 @@ trait DatabasesBase $this->assertEquals($permissions, $sport['body']['players'][0]['$permissions']); $this->assertEquals($permissions, $sport['body']['players'][1]['$permissions']); - $sport = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $sports['body']['$id'] . '/rows/sport1', array_merge([ + $sport = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $sports['body']['$id'] . '/rows/sport1', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5083,7 +5083,7 @@ trait DatabasesBase $this->assertEquals($permissions, $sport['body']['players'][0]['$permissions']); $this->assertEquals($permissions, $sport['body']['players'][1]['$permissions']); - $player = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $players['body']['$id'] . '/rows/' . $sport['body']['players'][0]['$id'], array_merge([ + $player = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $players['body']['$id'] . '/rows/' . $sport['body']['players'][0]['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5112,7 +5112,7 @@ trait DatabasesBase */ public function testValidateOperators(array $data): void { - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['personCollection'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['personCollection'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5131,7 +5131,7 @@ trait DatabasesBase $this->assertEquals('Stevie Wonder', $response['body']['rows'][0]['fullName']); $this->assertEquals(2, count($response['body']['rows'][0]['libraries'])); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['personCollection'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['personCollection'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5155,7 +5155,7 @@ trait DatabasesBase */ public function testSelectQueries(array $data): void { - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['personCollection'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['personCollection'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5170,7 +5170,7 @@ trait DatabasesBase $this->assertArrayNotHasKey('$databaseId', $response['body']['rows'][0]); $this->assertArrayNotHasKey('$tableId', $response['body']['rows'][0]); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['personCollection'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['personCollection'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5184,7 +5184,7 @@ trait DatabasesBase $this->assertArrayNotHasKey('$databaseId', $row); $this->assertArrayNotHasKey('$tableId', $row); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['personCollection'] . '/rows/' . $row['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['personCollection'] . '/rows/' . $row['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5221,7 +5221,7 @@ trait DatabasesBase $databaseId = $database['body']['$id']; // Create Collection - $presidents = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $presidents = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5238,7 +5238,7 @@ trait DatabasesBase $this->assertEquals($presidents['body']['name'], 'USA Presidents'); // Create Attributes - $firstName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $presidents['body']['$id'] . '/columns/string', array_merge([ + $firstName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $presidents['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5249,7 +5249,7 @@ trait DatabasesBase ]); $this->assertEquals(202, $firstName['headers']['status-code']); - $lastName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $presidents['body']['$id'] . '/columns/string', array_merge([ + $lastName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $presidents['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5264,7 +5264,7 @@ trait DatabasesBase // Wait for worker sleep(2); - $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $presidents['body']['$id'] . '/rows', array_merge([ + $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $presidents['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5279,7 +5279,7 @@ trait DatabasesBase ]); $this->assertEquals(201, $row1['headers']['status-code']); - $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $presidents['body']['$id'] . '/rows', array_merge([ + $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $presidents['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5294,7 +5294,7 @@ trait DatabasesBase ]); $this->assertEquals(201, $row2['headers']['status-code']); - $row3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $presidents['body']['$id'] . '/rows', array_merge([ + $row3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $presidents['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5312,7 +5312,7 @@ trait DatabasesBase $rows = $this->client->call( Client::METHOD_GET, - '/databases/' . $databaseId . '/tables/' . $presidents['body']['$id'] . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $presidents['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -5344,7 +5344,7 @@ trait DatabasesBase { $databaseId = $data['databaseId']; - $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5358,7 +5358,7 @@ trait DatabasesBase ], ]); - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5375,7 +5375,7 @@ trait DatabasesBase $table1 = $table1['body']['$id']; $table2 = $table2['body']['$id']; - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1 . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1 . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5385,7 +5385,7 @@ trait DatabasesBase 'required' => true, ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table2 . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table2 . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5395,7 +5395,7 @@ trait DatabasesBase 'required' => true, ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1 . '/columns/relationship', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1 . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5408,7 +5408,7 @@ trait DatabasesBase sleep(1); - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1 . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1 . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ @@ -5423,7 +5423,7 @@ trait DatabasesBase ], ]); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1 . '/rows/' . $row['body']['$id'], array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1 . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ @@ -5440,7 +5440,7 @@ trait DatabasesBase */ public function testTimeout(array $data): void { - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5460,7 +5460,7 @@ trait DatabasesBase 'databaseId' => $table['body']['databaseId'] ]; - $longtext = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/columns/string', array_merge([ + $longtext = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5474,7 +5474,7 @@ trait DatabasesBase $this->assertEquals($longtext['headers']['status-code'], 202); for ($i = 0; $i < 10; $i++) { - $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5490,7 +5490,7 @@ trait DatabasesBase ]); } - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-timeout' => 1, @@ -5518,7 +5518,7 @@ trait DatabasesBase ]); $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5534,7 +5534,7 @@ trait DatabasesBase $tableId = $table['body']['$id']; // Add integer attribute - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5546,7 +5546,7 @@ trait DatabasesBase \sleep(3); // Create row with initial count = 5 - $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5564,7 +5564,7 @@ trait DatabasesBase $docId = $doc['body']['$id']; // Increment by default 1 - $inc = $this->client->call(Client::METHOD_PATCH, "/databases/$databaseId/tables/$tableId/rows/$docId/count/increment", array_merge([ + $inc = $this->client->call(Client::METHOD_PATCH, "/databases/$databaseId/grids/tables/$tableId/rows/$docId/count/increment", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ])); @@ -5572,14 +5572,14 @@ trait DatabasesBase $this->assertEquals(6, $inc['body']['count']); // Verify count = 6 - $get = $this->client->call(Client::METHOD_GET, "/databases/$databaseId/tables/$tableId/rows/$docId", array_merge([ + $get = $this->client->call(Client::METHOD_GET, "/databases/$databaseId/grids/tables/$tableId/rows/$docId", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(6, $get['body']['count']); // Increment by custom value 4 - $inc2 = $this->client->call(Client::METHOD_PATCH, "/databases/$databaseId/tables/$tableId/rows/$docId/count/increment", array_merge([ + $inc2 = $this->client->call(Client::METHOD_PATCH, "/databases/$databaseId/grids/tables/$tableId/rows/$docId/count/increment", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]), [ @@ -5588,21 +5588,21 @@ trait DatabasesBase $this->assertEquals(200, $inc2['headers']['status-code']); $this->assertEquals(10, $inc2['body']['count']); - $get2 = $this->client->call(Client::METHOD_GET, "/databases/$databaseId/tables/$tableId/rows/$docId", array_merge([ + $get2 = $this->client->call(Client::METHOD_GET, "/databases/$databaseId/grids/tables/$tableId/rows/$docId", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(10, $get2['body']['count']); // Test max limit exceeded - $err = $this->client->call(Client::METHOD_PATCH, "/databases/$databaseId/tables/$tableId/rows/$docId/count/increment", array_merge([ + $err = $this->client->call(Client::METHOD_PATCH, "/databases/$databaseId/grids/tables/$tableId/rows/$docId/count/increment", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]), ['max' => 8]); $this->assertEquals(400, $err['headers']['status-code']); // Test attribute not found - $notFound = $this->client->call(Client::METHOD_PATCH, "/databases/$databaseId/tables/$tableId/rows/$docId/unknown/increment", array_merge([ + $notFound = $this->client->call(Client::METHOD_PATCH, "/databases/$databaseId/grids/tables/$tableId/rows/$docId/unknown/increment", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ])); @@ -5622,7 +5622,7 @@ trait DatabasesBase $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5639,7 +5639,7 @@ trait DatabasesBase $tableId = $table['body']['$id']; // Add integer attribute - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5651,7 +5651,7 @@ trait DatabasesBase \sleep(2); // Create row with initial count = 10 - $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5666,21 +5666,21 @@ trait DatabasesBase $rowId = $doc['body']['$id']; // Decrement by default 1 (count = 10 -> 9) - $dec = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId . '/count/decrement', array_merge([ + $dec = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $rowId . '/count/decrement', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ])); $this->assertEquals(200, $dec['headers']['status-code']); $this->assertEquals(9, $dec['body']['count']); - $get = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ + $get = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(9, $get['body']['count']); // Decrement by custom value 3 (count 9 -> 6) - $dec2 = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId . '/count/decrement', array_merge([ + $dec2 = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $rowId . '/count/decrement', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]), [ @@ -5689,21 +5689,21 @@ trait DatabasesBase $this->assertEquals(200, $dec2['headers']['status-code']); $this->assertEquals(6, $dec2['body']['count']); - $get2 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ + $get2 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $rowId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(6, $get2['body']['count']); // Test min limit exceeded - $err = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId . '/count/decrement', array_merge([ + $err = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $rowId . '/count/decrement', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]), ['min' => 7]); $this->assertEquals(400, $err['headers']['status-code']); // Test type error on non-numeric attribute - $typeErr = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId . '/count/decrement', array_merge([ + $typeErr = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $rowId . '/count/decrement', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]), ['value' => 'not-a-number']); diff --git a/tests/e2e/Services/Databases/Tables/DatabasesConsoleClientTest.php b/tests/e2e/Services/Databases/Grids/DatabasesConsoleClientTest.php similarity index 91% rename from tests/e2e/Services/Databases/Tables/DatabasesConsoleClientTest.php rename to tests/e2e/Services/Databases/Grids/DatabasesConsoleClientTest.php index 8a8d8de170..32fe49b6fa 100644 --- a/tests/e2e/Services/Databases/Tables/DatabasesConsoleClientTest.php +++ b/tests/e2e/Services/Databases/Grids/DatabasesConsoleClientTest.php @@ -1,6 +1,6 @@ client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $movies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -65,7 +65,7 @@ class DatabasesConsoleClientTest extends Scope $this->assertFalse($database['body']['enabled']); - $tvShows = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $tvShows = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -83,7 +83,7 @@ class DatabasesConsoleClientTest extends Scope /** * Test when table is disabled but can still modify tables */ - $database = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $movies['body']['$id'], array_merge([ + $database = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $movies['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -109,7 +109,7 @@ class DatabasesConsoleClientTest extends Scope */ $databaseId = $data['databaseId']; - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders())); @@ -131,7 +131,7 @@ class DatabasesConsoleClientTest extends Scope /** * Test when database and table are disabled but can still call get table */ - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $moviesCollectionId, array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $moviesCollectionId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -156,7 +156,7 @@ class DatabasesConsoleClientTest extends Scope /** * Test When database and table are disabled but can still call update table */ - $table = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $moviesCollectionId, array_merge([ + $table = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $moviesCollectionId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -184,7 +184,7 @@ class DatabasesConsoleClientTest extends Scope /** * Test when database and table are disabled but can still call delete table */ - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $tvShowsId, array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $tvShowsId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -245,7 +245,7 @@ class DatabasesConsoleClientTest extends Scope * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/usage', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/usage', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ @@ -254,7 +254,7 @@ class DatabasesConsoleClientTest extends Scope $this->assertEquals(400, $response['headers']['status-code']); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/randomCollectionId/usage', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/randomCollectionId/usage', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ @@ -266,7 +266,7 @@ class DatabasesConsoleClientTest extends Scope /** * Test for SUCCESS */ - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/usage', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/usage', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ @@ -289,7 +289,7 @@ class DatabasesConsoleClientTest extends Scope /** * Test for SUCCESS */ - $logs = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/logs', array_merge([ + $logs = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/logs', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -298,7 +298,7 @@ class DatabasesConsoleClientTest extends Scope $this->assertIsArray($logs['body']['logs']); $this->assertIsNumeric($logs['body']['total']); - $logs = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/logs', array_merge([ + $logs = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/logs', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -310,7 +310,7 @@ class DatabasesConsoleClientTest extends Scope $this->assertLessThanOrEqual(1, count($logs['body']['logs'])); $this->assertIsNumeric($logs['body']['total']); - $logs = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/logs', array_merge([ + $logs = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/logs', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -321,7 +321,7 @@ class DatabasesConsoleClientTest extends Scope $this->assertIsArray($logs['body']['logs']); $this->assertIsNumeric($logs['body']['total']); - $logs = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['moviesId'] . '/logs', array_merge([ + $logs = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['moviesId'] . '/logs', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ diff --git a/tests/e2e/Services/Databases/Tables/DatabasesCustomClientTest.php b/tests/e2e/Services/Databases/Grids/DatabasesCustomClientTest.php similarity index 89% rename from tests/e2e/Services/Databases/Tables/DatabasesCustomClientTest.php rename to tests/e2e/Services/Databases/Grids/DatabasesCustomClientTest.php index 6893588934..e75039b22e 100644 --- a/tests/e2e/Services/Databases/Tables/DatabasesCustomClientTest.php +++ b/tests/e2e/Services/Databases/Grids/DatabasesCustomClientTest.php @@ -1,6 +1,6 @@ client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $movies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -54,7 +54,7 @@ class DatabasesCustomClientTest extends Scope $this->assertContains(Permission::update(Role::user($this->getUser()['$id'])), $movies['body']['$permissions']); $this->assertContains(Permission::delete(Role::user($this->getUser()['$id'])), $movies['body']['$permissions']); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $moviesId . '/columns/string', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -69,7 +69,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(202, $response['headers']['status-code']); // Document aliases write to update, delete - $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $moviesId . '/rows', array_merge([ + $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -91,7 +91,7 @@ class DatabasesCustomClientTest extends Scope */ // Document does not allow create permission - $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $moviesId . '/rows', array_merge([ + $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -133,7 +133,7 @@ class DatabasesCustomClientTest extends Scope $databaseId = $database['body']['$id']; // Create collection - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -146,7 +146,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(201, $response['headers']['status-code']); // Add attribute to collection - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/permissionCheck/columns/string', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/permissionCheck/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -161,7 +161,7 @@ class DatabasesCustomClientTest extends Scope sleep(2); // Creating document by server, give read permission to our user + some other user - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/permissionCheck/rows', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/permissionCheck/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -182,7 +182,7 @@ class DatabasesCustomClientTest extends Scope // Update document // This is the point of this test. We should be allowed to do this action, and it should not fail on permission check - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/permissionCheck/rows/permissionCheckDocument', array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/permissionCheck/rows/permissionCheckDocument', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -194,7 +194,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); // Get name of the document, should be the new one - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/permissionCheck/rows/permissionCheckDocument', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/permissionCheck/rows/permissionCheckDocument', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -203,7 +203,7 @@ class DatabasesCustomClientTest extends Scope // Cleanup to prevent collision with other tests // Delete collection - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/permissionCheck', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/permissionCheck', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -216,7 +216,7 @@ class DatabasesCustomClientTest extends Scope sleep(2); // Make sure collection has been deleted - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/permissionCheck', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/permissionCheck', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -242,7 +242,7 @@ class DatabasesCustomClientTest extends Scope // Creating collection 1 - $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -259,7 +259,7 @@ class DatabasesCustomClientTest extends Scope ]); // Creating collection 2 - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -278,7 +278,7 @@ class DatabasesCustomClientTest extends Scope \sleep(2); // Creating two way relationship between collection 1 and collection 2 from collection 1 - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -294,7 +294,7 @@ class DatabasesCustomClientTest extends Scope \sleep(3); // Update relation from collection 2 to on delete restrict - $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table2['body']['$id'] . '/columns/' . $table1['body']['$id'] . '/relationship', array_merge([ + $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table2['body']['$id'] . '/columns/' . $table1['body']['$id'] . '/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -303,7 +303,7 @@ class DatabasesCustomClientTest extends Scope ]); // Fetching attributes after updating relation to compare - $table1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'], [ + $table1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'], [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -330,7 +330,7 @@ class DatabasesCustomClientTest extends Scope $databaseId = $database['body']['$id']; - $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -346,7 +346,7 @@ class DatabasesCustomClientTest extends Scope ] ]); - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -364,7 +364,7 @@ class DatabasesCustomClientTest extends Scope \sleep(2); - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -382,7 +382,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(202, $relation['headers']['status-code']); $this->assertEquals('same_key', $relation['body']['twoWayKey']); - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -401,7 +401,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals('Attribute with the requested key already exists. Attribute keys must be unique, try again with a different key.', $relation['body']['message']); // twoWayKey is null TwoWayKey is default - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -419,7 +419,7 @@ class DatabasesCustomClientTest extends Scope $this->assertArrayHasKey('twoWayKey', $relation['body']); // twoWayKey is null, TwoWayKey is default, second POST - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -437,7 +437,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(409, $relation['body']['code']); // RelationshipManyToMany - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -456,7 +456,7 @@ class DatabasesCustomClientTest extends Scope $this->assertArrayHasKey('twoWayKey', $relation['body']); // Second RelationshipManyToMany on Same collections - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -490,7 +490,7 @@ class DatabasesCustomClientTest extends Scope $databaseId = $database['body']['$id']; // Creating collection 1 - $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -506,7 +506,7 @@ class DatabasesCustomClientTest extends Scope ]); // Creating collection 2 - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -519,7 +519,7 @@ class DatabasesCustomClientTest extends Scope ] ]); - $table3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table3 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -534,7 +534,7 @@ class DatabasesCustomClientTest extends Scope ] ]); - $table4 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table4 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -547,7 +547,7 @@ class DatabasesCustomClientTest extends Scope ] ]); - $table5 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table5 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -563,7 +563,7 @@ class DatabasesCustomClientTest extends Scope ]); // Creating one to one relationship from collection 1 to colletion 2 - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -576,7 +576,7 @@ class DatabasesCustomClientTest extends Scope ]); // Creating one to one relationship from collection 2 to colletion 3 - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table2['body']['$id'] . '/columns/relationship', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table2['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -589,7 +589,7 @@ class DatabasesCustomClientTest extends Scope ]); // Creating one to one relationship from collection 3 to colletion 4 - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table3['body']['$id'] . '/columns/relationship', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table3['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -602,7 +602,7 @@ class DatabasesCustomClientTest extends Scope ]); // Creating one to one relationship from collection 4 to colletion 5 - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table4['body']['$id'] . '/columns/relationship', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table4['body']['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -614,7 +614,7 @@ class DatabasesCustomClientTest extends Scope 'key' => $table5['body']['$id'] ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -626,7 +626,7 @@ class DatabasesCustomClientTest extends Scope 'default' => null, ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table2['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table2['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -638,7 +638,7 @@ class DatabasesCustomClientTest extends Scope 'default' => null, ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table3['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table3['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -650,7 +650,7 @@ class DatabasesCustomClientTest extends Scope 'default' => null, ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table4['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table4['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -662,7 +662,7 @@ class DatabasesCustomClientTest extends Scope 'default' => null, ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table5['body']['$id'] . '/columns/string', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table5['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -676,7 +676,7 @@ class DatabasesCustomClientTest extends Scope \sleep(2); // Creating parent document with a child reference to test the permissions - $parentDocument = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/rows', array_merge([ + $parentDocument = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -705,7 +705,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(201, $parentDocument['headers']['status-code']); // This is the point of the test. We should not need any authorization permission to update the document with same data. - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -734,7 +734,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals($parentDocument['body'], $response['body']); // Giving update permission of collection 3 to user. - $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/collection3', array_merge([ + $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/collection3', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -751,7 +751,7 @@ class DatabasesCustomClientTest extends Scope ]); // This is the point of this test. We should be allowed to do this action, and it should not fail on permission check - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -780,7 +780,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(11, $response['body'][$table2['body']['$id']]['collection3']['Rating']); // We should not be allowed to update the document as we do not have permission for collection 2. - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -797,7 +797,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(401, $response['headers']['status-code']); // We should not be allowed to update the document as we do not have permission for collection 2. - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table2['body']['$id'] . '/rows/' . $table2['body']['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table2['body']['$id'] . '/rows/' . $table2['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -809,7 +809,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(401, $response['headers']['status-code']); // Removing update permission from collection 3. - $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/collection3', array_merge([ + $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/collection3', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -825,7 +825,7 @@ class DatabasesCustomClientTest extends Scope ]); // Giving update permission to collection 2. - $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/collection2', array_merge([ + $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/collection2', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -842,7 +842,7 @@ class DatabasesCustomClientTest extends Scope ]); // Creating collection 3 new document - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table3['body']['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table3['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -856,7 +856,7 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(201, $response['headers']['status-code']); // We should be allowed to link a new document from collection 3 to collection 2. - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -873,7 +873,7 @@ class DatabasesCustomClientTest extends Scope // We should be allowed to link and create a new document from collection 3 to collection 2. - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1['body']['$id'] . '/rows/' . $table1['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ diff --git a/tests/e2e/Services/Databases/Tables/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/Grids/DatabasesCustomServerTest.php similarity index 87% rename from tests/e2e/Services/Databases/Tables/DatabasesCustomServerTest.php rename to tests/e2e/Services/Databases/Grids/DatabasesCustomServerTest.php index 99f1b58c01..ba137a0b74 100644 --- a/tests/e2e/Services/Databases/Tables/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/Grids/DatabasesCustomServerTest.php @@ -1,6 +1,6 @@ client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $test1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -368,7 +368,7 @@ class DatabasesCustomServerTest extends Scope 'rowSecurity' => true, ]); - $test2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $test2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -384,7 +384,7 @@ class DatabasesCustomServerTest extends Scope 'rowSecurity' => true, ]); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -397,7 +397,7 @@ class DatabasesCustomServerTest extends Scope $base = array_reverse($tables['body']['tables']); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -409,7 +409,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $tables['headers']['status-code']); $this->assertCount(1, $tables['body']['tables']); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -421,7 +421,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $tables['headers']['status-code']); $this->assertCount(1, $tables['body']['tables']); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -433,7 +433,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $tables['headers']['status-code']); $this->assertCount(2, $tables['body']['tables']); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -448,7 +448,7 @@ class DatabasesCustomServerTest extends Scope /** * Test for Order */ - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -464,12 +464,12 @@ class DatabasesCustomServerTest extends Scope /** * Test for After */ - $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -481,7 +481,7 @@ class DatabasesCustomServerTest extends Scope $this->assertCount(1, $tables['body']['tables']); $this->assertEquals($base['body']['tables'][1]['$id'], $tables['body']['tables'][0]['$id']); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -496,12 +496,12 @@ class DatabasesCustomServerTest extends Scope /** * Test for Before */ - $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $base = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -513,7 +513,7 @@ class DatabasesCustomServerTest extends Scope $this->assertCount(1, $tables['body']['tables']); $this->assertEquals($base['body']['tables'][0]['$id'], $tables['body']['tables'][0]['$id']); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -528,7 +528,7 @@ class DatabasesCustomServerTest extends Scope /** * Test for Search */ - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -538,7 +538,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(1, $tables['body']['total']); $this->assertEquals('first', $tables['body']['tables'][0]['$id']); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -549,7 +549,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('Test 1', $tables['body']['tables'][0]['name']); $this->assertEquals('Test 2', $tables['body']['tables'][1]['name']); - $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $tables = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -561,7 +561,7 @@ class DatabasesCustomServerTest extends Scope /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -573,7 +573,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $response['headers']['status-code']); // This table already exists - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -604,7 +604,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -624,7 +624,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $table = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $table = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -652,7 +652,7 @@ class DatabasesCustomServerTest extends Scope */ // Create table - $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -675,7 +675,7 @@ class DatabasesCustomServerTest extends Scope * Test for creating encrypted columns */ - $columnsPath = '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/columns'; + $columnsPath = '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/columns'; $firstName = $this->client->call(Client::METHOD_POST, $columnsPath . '/string', array_merge([ 'content-type' => 'application/json', @@ -714,7 +714,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); // Creating row to ensure cache is purged on schema change - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -732,7 +732,7 @@ class DatabasesCustomServerTest extends Scope ]); // Check row to ensure cache is purged on schema change - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/rows/' . $row['body']['$id'], array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -762,7 +762,7 @@ class DatabasesCustomServerTest extends Scope */ // Create table - $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -781,7 +781,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $actors['headers']['status-code']); $this->assertEquals($actors['body']['name'], 'Actors'); - $firstName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/columns/string', array_merge([ + $firstName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -791,7 +791,7 @@ class DatabasesCustomServerTest extends Scope 'required' => true, ]); - $lastName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/columns/string', array_merge([ + $lastName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -801,7 +801,7 @@ class DatabasesCustomServerTest extends Scope 'required' => true, ]); - $unneeded = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/columns/string', array_merge([ + $unneeded = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -815,7 +815,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); // Creating row to ensure cache is purged on schema change - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -833,7 +833,7 @@ class DatabasesCustomServerTest extends Scope ], ]); - $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/indexes', array_merge([ + $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -848,7 +848,7 @@ class DatabasesCustomServerTest extends Scope // Wait for database worker to finish creating index sleep(2); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'], array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -866,7 +866,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals($table['body']['indexes'][0]['key'], $index['body']['key']); // Delete column - $column = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/columns/' . $unneededId, array_merge([ + $column = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/columns/' . $unneededId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -877,7 +877,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); // Check row to ensure cache is purged on schema change - $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'] . '/rows/' . $row['body']['$id'], array_merge([ + $row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'] . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -885,7 +885,7 @@ class DatabasesCustomServerTest extends Scope $this->assertNotContains($unneededId, $row['body']); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'], array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -910,7 +910,7 @@ class DatabasesCustomServerTest extends Scope public function testDeleteIndex($data): array { $databaseId = $data['databaseId']; - $index = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['tableId'] . '/indexes/' . $data['key'], array_merge([ + $index = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'] . '/indexes/' . $data['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -921,7 +921,7 @@ class DatabasesCustomServerTest extends Scope // Wait for database worker to finish deleting index sleep(2); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['tableId'], array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -938,7 +938,7 @@ class DatabasesCustomServerTest extends Scope public function testDeleteIndexOnDeleteColumn($data) { $databaseId = $data['databaseId']; - $column1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['tableId'] . '/columns/string', array_merge([ + $column1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -948,7 +948,7 @@ class DatabasesCustomServerTest extends Scope 'required' => true, ]); - $column2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['tableId'] . '/columns/string', array_merge([ + $column2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'] . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -965,7 +965,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); - $index1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['tableId'] . '/indexes', array_merge([ + $index1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -976,7 +976,7 @@ class DatabasesCustomServerTest extends Scope 'orders' => ['ASC', 'ASC'], ]); - $index2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['tableId'] . '/indexes', array_merge([ + $index2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -994,7 +994,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); // Expected behavior: deleting column2 will cause index2 to be dropped, and index1 rebuilt with a single key - $deleted = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['tableId'] . '/columns/' . $column2['body']['key'], array_merge([ + $deleted = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'] . '/columns/' . $column2['body']['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1005,7 +1005,7 @@ class DatabasesCustomServerTest extends Scope // wait for database worker to complete sleep(2); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $data['tableId'], array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1020,7 +1020,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals($column1['body']['key'], $table['body']['indexes'][0]['columns'][0]); // Delete column - $deleted = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['tableId'] . '/columns/' . $column1['body']['key'], array_merge([ + $deleted = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['tableId'] . '/columns/' . $column1['body']['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1045,7 +1045,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('invalidRowDatabase', $database['body']['name']); $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1066,7 +1066,7 @@ class DatabasesCustomServerTest extends Scope $tableId = $table['body']['$id']; - $column1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $column1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1076,7 +1076,7 @@ class DatabasesCustomServerTest extends Scope 'required' => true, ]); - $column2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $column2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1093,7 +1093,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); - $index1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ + $index1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1104,7 +1104,7 @@ class DatabasesCustomServerTest extends Scope 'orders' => ['ASC', 'ASC'], ]); - $index2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ + $index2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1122,7 +1122,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); // Expected behavior: deleting column1 would cause index1 to be a duplicate of index2 and automatically removed - $deleted = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $column1['body']['key'], array_merge([ + $deleted = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $column1['body']['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1133,7 +1133,7 @@ class DatabasesCustomServerTest extends Scope // wait for database worker to complete sleep(2); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1148,7 +1148,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals($column2['body']['key'], $table['body']['indexes'][0]['columns'][0]); // Delete column - $deleted = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $column2['body']['key'], array_merge([ + $deleted = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $column2['body']['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1166,7 +1166,7 @@ class DatabasesCustomServerTest extends Scope $tableId = $data['tableId']; // Add Rows to the table - $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $row1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1182,7 +1182,7 @@ class DatabasesCustomServerTest extends Scope ], ]); - $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + $row2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1211,7 +1211,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('Jackson', $row2['body']['lastName']); // Delete the actors table - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1221,7 +1221,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals($response['body'], ""); // Try to get the table and check if it has been deleted - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders())); @@ -1244,7 +1244,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $database['body']['$id']; - $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1255,7 +1255,7 @@ class DatabasesCustomServerTest extends Scope 'permissions' => [], ]); - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1269,7 +1269,7 @@ class DatabasesCustomServerTest extends Scope $table1 = $table1['body']['$id']; $table2 = $table2['body']['$id']; - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1 . '/columns/relationship', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1 . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1282,7 +1282,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); - $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $table2, array_merge([ + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $table2, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1290,7 +1290,7 @@ class DatabasesCustomServerTest extends Scope sleep(2); - $columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1 . '/columns', array_merge([ + $columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1 . '/columns', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -1313,7 +1313,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('invalidRowDatabase', $database['body']['name']); $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1336,7 +1336,7 @@ class DatabasesCustomServerTest extends Scope // Add wide string columns to approach row width limit for ($i = 0; $i < 15; $i++) { - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1351,7 +1351,7 @@ class DatabasesCustomServerTest extends Scope sleep(5); - $tooWide = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $tooWide = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1379,7 +1379,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('invalidRowDatabase', $database['body']['name']); $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1403,7 +1403,7 @@ class DatabasesCustomServerTest extends Scope // add unique columns for indexing for ($i = 0; $i < 64; $i++) { // $this->assertEquals(true, static::getDatabase()->createColumn('indexLimit', "test{$i}", Database::VAR_STRING, 16, true)); - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1418,7 +1418,7 @@ class DatabasesCustomServerTest extends Scope sleep(10); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1439,7 +1439,7 @@ class DatabasesCustomServerTest extends Scope // MariaDB, MySQL, and MongoDB create 6 indexes per new table // Add up to the limit, then check if the next index throws IndexLimitException for ($i = 0; $i < 58; $i++) { - $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ + $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1455,7 +1455,7 @@ class DatabasesCustomServerTest extends Scope sleep(5); - $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $table = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1468,7 +1468,7 @@ class DatabasesCustomServerTest extends Scope $this->assertCount(64, $table['body']['columns']); $this->assertCount(58, $table['body']['indexes']); - $tooMany = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ + $tooMany = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1481,7 +1481,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $tooMany['headers']['status-code']); $this->assertEquals('Index limit exceeded', $tooMany['body']['message']); - $table = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $table = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1503,7 +1503,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $database['headers']['status-code']); $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1519,7 +1519,7 @@ class DatabasesCustomServerTest extends Scope /** * Create String Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1534,7 +1534,7 @@ class DatabasesCustomServerTest extends Scope /** * Create Email Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1548,7 +1548,7 @@ class DatabasesCustomServerTest extends Scope /** * Create IP Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1562,7 +1562,7 @@ class DatabasesCustomServerTest extends Scope /** * Create URL Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1576,7 +1576,7 @@ class DatabasesCustomServerTest extends Scope /** * Create Integer Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1590,7 +1590,7 @@ class DatabasesCustomServerTest extends Scope /** * Create Float Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1602,7 +1602,7 @@ class DatabasesCustomServerTest extends Scope /** * Create Boolean Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1614,7 +1614,7 @@ class DatabasesCustomServerTest extends Scope /** * Create Datetime Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1626,7 +1626,7 @@ class DatabasesCustomServerTest extends Scope /** * Create Enum Column */ - $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum', array_merge([ + $column = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1655,7 +1655,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1666,7 +1666,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1675,7 +1675,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertEquals('lorem', $new['body']['default']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1686,7 +1686,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($column['required']); $this->assertEquals('lorem', $column['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1697,7 +1697,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1706,7 +1706,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertNull($new['body']['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1717,7 +1717,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1729,7 +1729,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1741,7 +1741,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1753,7 +1753,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1764,7 +1764,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1775,7 +1775,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1797,7 +1797,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1808,7 +1808,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1817,7 +1817,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertEquals('torsten@appwrite.io', $new['body']['default']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1829,7 +1829,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('torsten@appwrite.io', $column['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1840,7 +1840,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1849,7 +1849,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertNull($new['body']['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1860,7 +1860,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1872,7 +1872,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1884,7 +1884,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1896,7 +1896,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1907,7 +1907,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1918,7 +1918,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/email/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/email/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1940,7 +1940,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1951,7 +1951,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1960,7 +1960,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertEquals('127.0.0.1', $new['body']['default']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1971,7 +1971,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($column['required']); $this->assertEquals('127.0.0.1', $column['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1982,7 +1982,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1991,7 +1991,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertNull($new['body']['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2002,7 +2002,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2014,7 +2014,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2026,7 +2026,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2038,7 +2038,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2049,7 +2049,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2060,7 +2060,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/ip/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2082,7 +2082,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2093,7 +2093,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2102,7 +2102,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertEquals('http://appwrite.io', $new['body']['default']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2113,7 +2113,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($column['required']); $this->assertEquals('http://appwrite.io', $column['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2124,7 +2124,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2133,7 +2133,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertNull($new['body']['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2144,7 +2144,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2156,7 +2156,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2168,7 +2168,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2180,7 +2180,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2191,7 +2191,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2202,7 +2202,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/url/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/url/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2224,7 +2224,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2237,7 +2237,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2248,7 +2248,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(0, $new['body']['min']); $this->assertEquals(1000, $new['body']['max']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2261,7 +2261,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(0, $column['min']); $this->assertEquals(1000, $column['max']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2274,7 +2274,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2285,7 +2285,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(0, $new['body']['min']); $this->assertEquals(1000, $new['body']['max']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2298,7 +2298,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2309,7 +2309,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(100, $new['body']['min']); $this->assertEquals(2000, $new['body']['max']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2321,7 +2321,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2336,7 +2336,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2350,7 +2350,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2364,7 +2364,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2378,7 +2378,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2392,7 +2392,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2405,7 +2405,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2418,7 +2418,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2432,7 +2432,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::COLUMN_DEFAULT_UNSUPPORTED, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2446,7 +2446,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::COLUMN_VALUE_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2461,7 +2461,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(AppwriteException::COLUMN_VALUE_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2485,7 +2485,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2498,7 +2498,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2509,7 +2509,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(0, $new['body']['min']); $this->assertEquals(1000, $new['body']['max']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2522,7 +2522,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(0, $column['min']); $this->assertEquals(1000, $column['max']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2535,7 +2535,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2546,7 +2546,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(0, $new['body']['min']); $this->assertEquals(1000, $new['body']['max']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2559,7 +2559,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2570,7 +2570,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(123.456, $new['body']['min']); $this->assertEquals(2000, $new['body']['max']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2582,7 +2582,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2597,7 +2597,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2611,7 +2611,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2625,7 +2625,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2639,7 +2639,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2653,7 +2653,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2666,7 +2666,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2679,7 +2679,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2693,7 +2693,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::COLUMN_DEFAULT_UNSUPPORTED, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2707,7 +2707,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::COLUMN_VALUE_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2722,7 +2722,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(AppwriteException::COLUMN_VALUE_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/float/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2746,7 +2746,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2757,7 +2757,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2766,7 +2766,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertEquals(true, $new['body']['default']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2777,7 +2777,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($column['required']); $this->assertEquals(true, $column['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2788,7 +2788,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2797,7 +2797,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertNull($new['body']['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2808,7 +2808,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2820,7 +2820,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2832,7 +2832,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2844,7 +2844,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2855,7 +2855,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2866,7 +2866,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/boolean/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2888,7 +2888,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2899,7 +2899,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2908,7 +2908,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertEquals('1975-06-12 14:12:55+02:00', $new['body']['default']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2919,7 +2919,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($column['required']); $this->assertEquals('1975-06-12 14:12:55+02:00', $column['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2930,7 +2930,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2939,7 +2939,7 @@ class DatabasesCustomServerTest extends Scope $this->assertFalse($new['body']['required']); $this->assertNull($new['body']['default']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2950,7 +2950,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2962,7 +2962,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2974,7 +2974,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2986,7 +2986,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -2997,7 +2997,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3008,7 +3008,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/datetime/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3030,7 +3030,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $data['databaseId']; $tableId = $data['tableId']; - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3042,7 +3042,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3055,7 +3055,7 @@ class DatabasesCustomServerTest extends Scope $this->assertContains('ipsum', $new['body']['elements']); $this->assertContains('dolor', $new['body']['elements']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3070,7 +3070,7 @@ class DatabasesCustomServerTest extends Scope $this->assertContains('ipsum', $column['elements']); $this->assertContains('dolor', $column['elements']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3082,7 +3082,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3095,7 +3095,7 @@ class DatabasesCustomServerTest extends Scope $this->assertContains('ipsum', $new['body']['elements']); $this->assertContains('dolor', $new['body']['elements']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3107,7 +3107,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3122,7 +3122,7 @@ class DatabasesCustomServerTest extends Scope /** * Test against failure */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3135,7 +3135,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::COLUMN_VALUE_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3148,7 +3148,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::COLUMN_VALUE_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3161,7 +3161,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3174,7 +3174,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3187,7 +3187,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3199,7 +3199,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3211,7 +3211,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3223,7 +3223,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $update['headers']['status-code']); $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/enum/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3248,7 +3248,7 @@ class DatabasesCustomServerTest extends Scope $row = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3264,7 +3264,7 @@ class DatabasesCustomServerTest extends Scope ); // Test Resize Up - $column = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $column = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3280,7 +3280,7 @@ class DatabasesCustomServerTest extends Scope // Test create new row with new size $newDoc = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3299,7 +3299,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(2048, strlen($newDoc['body']['string'])); // Test update row with new size - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row['body']['$id'], array_merge([ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3313,7 +3313,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(2048, strlen($row['body']['string'])); // Test Exception on resize down with data that is too large - $column = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $column = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3327,7 +3327,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(AppwriteException::COLUMN_INVALID_RESIZE, $column['body']['type']); // original rows to original size, remove new row - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row['body']['$id'], array_merge([ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3340,7 +3340,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $row['headers']['status-code']); $this->assertEquals('string', $row['body']['string']); - $deleteDoc = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $newDoc['body']['$id'], array_merge([ + $deleteDoc = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $newDoc['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3350,7 +3350,7 @@ class DatabasesCustomServerTest extends Scope // Test Resize Down - $column = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $column = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3366,7 +3366,7 @@ class DatabasesCustomServerTest extends Scope // Test create new row with new size $newDoc = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3385,7 +3385,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(10, strlen($newDoc['body']['string'])); // Test update row with new size - $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row['body']['$id'], array_merge([ + $row = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3401,7 +3401,7 @@ class DatabasesCustomServerTest extends Scope // Try create row with string that is too large $newDoc = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3472,7 +3472,7 @@ class DatabasesCustomServerTest extends Scope /** * Check if Database exists */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/i_dont_exist/tables/' . $tableId . '/columns/' . $key . '/unknown_' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/i_dont_exist/grids/tables/' . $tableId . '/columns/' . $key . '/unknown_' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3484,7 +3484,7 @@ class DatabasesCustomServerTest extends Scope /** * Check if Table exists */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/i_dont_exist/columns/' . $key . '/unknown_' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/i_dont_exist/columns/' . $key . '/unknown_' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3496,7 +3496,7 @@ class DatabasesCustomServerTest extends Scope /** * Check if Column exists */ - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key . '/unknown_' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key . '/unknown_' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3519,7 +3519,7 @@ class DatabasesCustomServerTest extends Scope // Create row to test against $row = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3536,7 +3536,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $row['headers']['status-code']); - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string/' . $key, array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3550,7 +3550,7 @@ class DatabasesCustomServerTest extends Scope $key = 'new_string'; - $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/' . $key, array_merge([ + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3558,7 +3558,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('new_string', $new['body']['key']); - $doc1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $row['body']['$id'], array_merge([ + $doc1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3571,7 +3571,7 @@ class DatabasesCustomServerTest extends Scope // Try and create a new row with the new column $doc2 = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3593,7 +3593,7 @@ class DatabasesCustomServerTest extends Scope // Expect fail, try and create a new row with the old column $doc3 = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -3625,7 +3625,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $database['body']['$id']; - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3641,7 +3641,7 @@ class DatabasesCustomServerTest extends Scope ] ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3679,7 +3679,7 @@ class DatabasesCustomServerTest extends Scope $this->createRelationshipTables(); - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1Id . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3694,7 +3694,7 @@ class DatabasesCustomServerTest extends Scope \sleep(3); - $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id, [ + $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3707,7 +3707,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals($relation['body']['relatedTable'], $table1RelationColumn['relatedTable']); // Create a row for checking later - $originalRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1Id . '/rows', array_merge([ + $originalRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3725,7 +3725,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $originalRow['headers']['status-code']); // Rename the column - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1Id . '/columns/level2' . '/relationship', array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/columns/level2' . '/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3736,7 +3736,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); // Check the row's key has been renamed - $newRow = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id . '/rows/' . $originalRow['body']['$id'], array_merge([ + $newRow = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/rows/' . $originalRow['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3751,7 +3751,7 @@ class DatabasesCustomServerTest extends Scope $this->assertArrayNotHasKey('level2', $newRow['body']); // Check level2 row has been renamed - $level2Row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table2Id . '/rows/' . $newRow['body']['new_level_2'][0]['$id'], array_merge([ + $level2Row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table2Id . '/rows/' . $newRow['body']['new_level_2'][0]['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3761,7 +3761,7 @@ class DatabasesCustomServerTest extends Scope $this->assertNotEmpty($level2Row['body']['level1']); // Check if column was renamed on the parent's side - $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id, [ + $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3772,7 +3772,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('new_level_2', $table1Columns['body']['columns'][0]['key']); // Check if column was renamed on the child's side - $table2Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table2Id, [ + $table2Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table2Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3793,7 +3793,7 @@ class DatabasesCustomServerTest extends Scope $this->createRelationshipTables(); - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1Id . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3808,7 +3808,7 @@ class DatabasesCustomServerTest extends Scope \sleep(3); - $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id, [ + $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3821,7 +3821,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals($relation['body']['relatedTable'], $table1RelationColumn['relatedTable']); // Create a row for checking later - $originalRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1Id . '/rows', array_merge([ + $originalRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3839,7 +3839,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $originalRow['headers']['status-code']); // Rename the column - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1Id . '/columns/level2' . '/relationship', array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/columns/level2' . '/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3850,7 +3850,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); // Check the row's key has been renamed - $newRow = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id . '/rows/' . $originalRow['body']['$id'], array_merge([ + $newRow = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/rows/' . $originalRow['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3865,7 +3865,7 @@ class DatabasesCustomServerTest extends Scope $this->assertArrayNotHasKey('level2', $newRow['body']); // Check level2 row has been renamed - $level2Row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table2Id . '/rows/' . $newRow['body']['new_level_2']['$id'], array_merge([ + $level2Row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table2Id . '/rows/' . $newRow['body']['new_level_2']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3875,7 +3875,7 @@ class DatabasesCustomServerTest extends Scope $this->assertNotEmpty($level2Row['body']['level1']); // Check if column was renamed on the parent's side - $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id, [ + $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3886,7 +3886,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('new_level_2', $table1Columns['body']['columns'][0]['key']); // Check if column was renamed on the child's side - $table2Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table2Id, [ + $table2Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table2Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3907,7 +3907,7 @@ class DatabasesCustomServerTest extends Scope $this->createRelationshipTables(); - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1Id . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3922,7 +3922,7 @@ class DatabasesCustomServerTest extends Scope \sleep(3); - $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id, [ + $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3935,7 +3935,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals($relation['body']['relatedTable'], $table1RelationColumn['relatedTable']); // Create a row for checking later - $originalRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1Id . '/rows', array_merge([ + $originalRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3953,7 +3953,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $originalRow['headers']['status-code']); // Rename the column - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1Id . '/columns/level2' . '/relationship', array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/columns/level2' . '/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3964,7 +3964,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); // Check the row's key has been renamed - $newRow = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id . '/rows/' . $originalRow['body']['$id'], array_merge([ + $newRow = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/rows/' . $originalRow['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3979,7 +3979,7 @@ class DatabasesCustomServerTest extends Scope $this->assertArrayNotHasKey('level2', $newRow['body']); // Check level2 row has been renamed - $level2Row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table2Id . '/rows/' . $newRow['body']['new_level_2']['$id'], array_merge([ + $level2Row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table2Id . '/rows/' . $newRow['body']['new_level_2']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -3993,7 +3993,7 @@ class DatabasesCustomServerTest extends Scope $this->assertNotEmpty($level2Row['body']['level1']); // Check if column was renamed on the parent's side - $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id, [ + $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4004,7 +4004,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('new_level_2', $table1Columns['body']['columns'][0]['key']); // Check if column was renamed on the child's side - $table2Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table2Id, [ + $table2Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table2Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4025,7 +4025,7 @@ class DatabasesCustomServerTest extends Scope $this->createRelationshipTables(); - $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1Id . '/columns/relationship', array_merge([ + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4040,7 +4040,7 @@ class DatabasesCustomServerTest extends Scope \sleep(3); - $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id, [ + $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4053,7 +4053,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals($relation['body']['relatedTable'], $table1RelationColumn['relatedTable']); // Create a row for checking later - $originalRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table1Id . '/rows', array_merge([ + $originalRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4071,7 +4071,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $originalRow['headers']['status-code']); // Rename the column - $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $table1Id . '/columns/level2' . '/relationship', array_merge([ + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/columns/level2' . '/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4082,7 +4082,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $update['headers']['status-code']); // Check the row's key has been renamed - $newRow = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id . '/rows/' . $originalRow['body']['$id'], array_merge([ + $newRow = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id . '/rows/' . $originalRow['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4097,7 +4097,7 @@ class DatabasesCustomServerTest extends Scope $this->assertArrayNotHasKey('level2', $newRow['body']); // Check level2 row has been renamed - $level2Row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table2Id . '/rows/' . $newRow['body']['new_level_2']['$id'], array_merge([ + $level2Row = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table2Id . '/rows/' . $newRow['body']['new_level_2']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4111,7 +4111,7 @@ class DatabasesCustomServerTest extends Scope $this->assertNotEmpty($level2Row['body']['level1']); // Check if column was renamed on the parent's side - $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table1Id, [ + $table1Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table1Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4122,7 +4122,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals('new_level_2', $table1Columns['body']['columns'][0]['key']); // Check if column was renamed on the child's side - $table2Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table2Id, [ + $table2Columns = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table2Id, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4151,7 +4151,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4175,7 +4175,7 @@ class DatabasesCustomServerTest extends Scope ]; // Await column - $numberColumn = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['$id'] . '/columns/integer', array_merge([ + $numberColumn = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['$id'] . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4188,7 +4188,7 @@ class DatabasesCustomServerTest extends Scope sleep(1); - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4211,7 +4211,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $response['headers']['status-code']); $this->assertCount(3, $response['body']['rows']); - $response = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4224,7 +4224,7 @@ class DatabasesCustomServerTest extends Scope $this->assertCount(3, $response['body']['rows']); // TEST SUCCESS - $id is auto-assigned if not included in bulk rows - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4238,7 +4238,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(201, $response['headers']['status-code']); // TEST FAIL - Can't use data and row together - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4256,7 +4256,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $response['headers']['status-code']); // TEST FAIL - Can't use $rowId and create bulk rows - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4272,7 +4272,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $response['headers']['status-code']); // TEST FAIL - Can't include invalid ID in bulk rows - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4287,7 +4287,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $response['headers']['status-code']); // TEST FAIL - Can't miss number in bulk rows - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4305,7 +4305,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $response['headers']['status-code']); // TEST FAIL - Can't push more than APP_LIMIT_DATABASE_BATCH rows - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4318,7 +4318,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(400, $response['headers']['status-code']); // TEST FAIL - Can't include invalid permissions in nested rows - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4332,7 +4332,7 @@ class DatabasesCustomServerTest extends Scope ]); // TEST FAIL - Can't bulk create in a table with relationships - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4343,7 +4343,7 @@ class DatabasesCustomServerTest extends Scope 'permissions' => [], ]); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['$id'] . '/columns/relationship', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4360,7 +4360,7 @@ class DatabasesCustomServerTest extends Scope sleep(1); - $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/tables/{$data['$id']}/rows", array_merge([ + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/grids/tables/{$data['$id']}/rows", array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4389,7 +4389,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4413,7 +4413,7 @@ class DatabasesCustomServerTest extends Scope ]; // Await column - $numberColumn = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['$id'] . '/columns/integer', array_merge([ + $numberColumn = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['$id'] . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4438,7 +4438,7 @@ class DatabasesCustomServerTest extends Scope ]; } - $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4459,7 +4459,7 @@ class DatabasesCustomServerTest extends Scope sleep(5); // TEST: Update all rows - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4484,7 +4484,7 @@ class DatabasesCustomServerTest extends Scope */ sleep(5); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4511,7 +4511,7 @@ class DatabasesCustomServerTest extends Scope } // TEST: Check permissions persist - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4523,7 +4523,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertCount(10, $response['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4542,7 +4542,7 @@ class DatabasesCustomServerTest extends Scope } // TEST: Update rows with limit - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4557,7 +4557,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertCount(5, $response['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4568,7 +4568,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(5, $rows['body']['total']); // TEST: Update rows with offset - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4583,7 +4583,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertCount(5, $response['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4594,7 +4594,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(10, $rows['body']['total']); // TEST: Update rows with equals filter - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4609,7 +4609,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertCount(10, $response['body']['rows']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4620,7 +4620,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(10, $rows['body']['total']); // TEST: Fail - Can't bulk update in a table with relationships - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4631,7 +4631,7 @@ class DatabasesCustomServerTest extends Scope 'permissions' => [], ]); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['$id'] . '/columns/relationship', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4648,7 +4648,7 @@ class DatabasesCustomServerTest extends Scope sleep(1); - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4679,7 +4679,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4703,7 +4703,7 @@ class DatabasesCustomServerTest extends Scope ]; // Await column - $numberColumn = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['$id'] . '/columns/integer', array_merge([ + $numberColumn = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['$id'] . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4728,7 +4728,7 @@ class DatabasesCustomServerTest extends Scope ]; } - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4749,7 +4749,7 @@ class DatabasesCustomServerTest extends Scope $rows[] = ['number' => 11]; // TEST: Upsert all rows - $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4762,7 +4762,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(1000, $response['body']['rows'][0]['number']); $this->assertEquals(11, $response['body']['rows'][1]['number']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ])); @@ -4783,7 +4783,7 @@ class DatabasesCustomServerTest extends Scope } // TEST: Upsert permissions - $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4813,7 +4813,7 @@ class DatabasesCustomServerTest extends Scope ], $response['body']['rows'][1]['$permissions']); // TEST: Fail - Can't bulk upsert in a table with relationships - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4824,7 +4824,7 @@ class DatabasesCustomServerTest extends Scope 'permissions' => [], ]); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['$id'] . '/columns/relationship', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4841,7 +4841,7 @@ class DatabasesCustomServerTest extends Scope sleep(1); - $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4872,7 +4872,7 @@ class DatabasesCustomServerTest extends Scope $databaseId = $database['body']['$id']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4895,7 +4895,7 @@ class DatabasesCustomServerTest extends Scope ]; // Await column - $numberColumn = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['$id'] . '/columns/integer', array_merge([ + $numberColumn = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['$id'] . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -4920,7 +4920,7 @@ class DatabasesCustomServerTest extends Scope ]; } - $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4932,7 +4932,7 @@ class DatabasesCustomServerTest extends Scope $createBulkRows(); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4941,7 +4941,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(11, $rows['body']['total']); // TEST: Delete all rows - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4949,7 +4949,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(11, $response['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4960,7 +4960,7 @@ class DatabasesCustomServerTest extends Scope // TEST: Delete rows with query $createBulkRows(); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4968,7 +4968,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $rows['headers']['status-code']); $this->assertEquals(11, $rows['body']['total']); - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -4980,7 +4980,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(5, $response['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -4993,7 +4993,7 @@ class DatabasesCustomServerTest extends Scope } // Cleanup - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5004,7 +5004,7 @@ class DatabasesCustomServerTest extends Scope // SUCCESS: Delete rows with query $createBulkRows(); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5012,7 +5012,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $rows['headers']['status-code']); $this->assertEquals(11, $rows['body']['total']); - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5024,7 +5024,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(5, $response['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5033,7 +5033,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(6, $rows['body']['total']); // Cleanup - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5044,7 +5044,7 @@ class DatabasesCustomServerTest extends Scope // SUCCESS: Delete Rows with limit query $createBulkRows(); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5052,7 +5052,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $rows['headers']['status-code']); $this->assertEquals(11, $rows['body']['total']); - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5064,7 +5064,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(2, $response['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5073,7 +5073,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(9, $rows['body']['total']); // Cleanup - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5084,7 +5084,7 @@ class DatabasesCustomServerTest extends Scope // SUCCESS: Delete Rows with offset query $createBulkRows(); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5092,7 +5092,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $rows['headers']['status-code']); $this->assertEquals(11, $rows['body']['total']); - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -5104,7 +5104,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(6, $response['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5118,7 +5118,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(4, $lastDoc['number']); // Cleanup - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5129,7 +5129,7 @@ class DatabasesCustomServerTest extends Scope // SUCCESS: Delete 100 rows $createBulkRows(100); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5137,7 +5137,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $rows['headers']['status-code']); $this->assertEquals(100, $rows['body']['total']); - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5145,7 +5145,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(100, $response['body']['total']); - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -5154,7 +5154,7 @@ class DatabasesCustomServerTest extends Scope $this->assertEquals(0, $rows['body']['total']); // TEST: Fail - Can't bulk delete in a table with relationships - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5165,7 +5165,7 @@ class DatabasesCustomServerTest extends Scope 'permissions' => [], ]); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['$id'] . '/columns/relationship', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['$id'] . '/columns/relationship', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -5182,7 +5182,7 @@ class DatabasesCustomServerTest extends Scope sleep(1); - $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/tables/' . $data['$id'] . '/rows', array_merge([ + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/grids/tables/' . $data['$id'] . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); diff --git a/tests/e2e/Services/Databases/Tables/DatabasesPermissionsGuestTest.php b/tests/e2e/Services/Databases/Grids/DatabasesPermissionsGuestTest.php similarity index 85% rename from tests/e2e/Services/Databases/Tables/DatabasesPermissionsGuestTest.php rename to tests/e2e/Services/Databases/Grids/DatabasesPermissionsGuestTest.php index f404cc1bd5..c0c3cdae0b 100644 --- a/tests/e2e/Services/Databases/Tables/DatabasesPermissionsGuestTest.php +++ b/tests/e2e/Services/Databases/Grids/DatabasesPermissionsGuestTest.php @@ -1,6 +1,6 @@ assertEquals('InvalidRowDatabase', $database['body']['name']); $databaseId = $database['body']['$id']; - $publicMovies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', $this->getServerHeader(), [ + $publicMovies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', $this->getServerHeader(), [ 'tableId' => ID::unique(), 'name' => 'Movies', 'permissions' => [ @@ -41,7 +41,7 @@ class DatabasesPermissionsGuestTest extends Scope Permission::delete(Role::any()), ], ]); - $privateMovies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', $this->getServerHeader(), [ + $privateMovies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', $this->getServerHeader(), [ 'tableId' => ID::unique(), 'name' => 'Movies', 'permissions' => [], @@ -51,12 +51,12 @@ class DatabasesPermissionsGuestTest extends Scope $publicTable = ['id' => $publicMovies['body']['$id']]; $privateTable = ['id' => $privateMovies['body']['$id']]; - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $publicTable['id'] . '/columns/string', $this->getServerHeader(), [ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $publicTable['id'] . '/columns/string', $this->getServerHeader(), [ 'key' => 'title', 'size' => 256, 'required' => true, ]); - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $privateTable['id'] . '/columns/string', $this->getServerHeader(), [ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $privateTable['id'] . '/columns/string', $this->getServerHeader(), [ 'key' => 'title', 'size' => 256, 'required' => true, @@ -93,14 +93,14 @@ class DatabasesPermissionsGuestTest extends Scope $privateTableId = $data['privateTableId']; $databaseId = $data['databaseId']; - $publicResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $publicTableId . '/rows', $this->getServerHeader(), [ + $publicResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $publicTableId . '/rows', $this->getServerHeader(), [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Lorem', ], 'permissions' => $permissions, ]); - $privateResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $privateTableId . '/rows', $this->getServerHeader(), [ + $privateResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $privateTableId . '/rows', $this->getServerHeader(), [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Lorem', @@ -114,11 +114,11 @@ class DatabasesPermissionsGuestTest extends Scope $roles = Authorization::getRoles(); Authorization::cleanRoles(); - $publicRows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $publicTableId . '/rows', [ + $publicRows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $publicTableId . '/rows', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]); - $privateRows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $privateTableId . '/rows', [ + $privateRows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $privateTableId . '/rows', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]); @@ -148,7 +148,7 @@ class DatabasesPermissionsGuestTest extends Scope $roles = Authorization::getRoles(); Authorization::cleanRoles(); - $publicResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $publicTableId . '/rows', [ + $publicResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $publicTableId . '/rows', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], [ @@ -161,7 +161,7 @@ class DatabasesPermissionsGuestTest extends Scope $publicRowId = $publicResponse['body']['$id']; $this->assertEquals(201, $publicResponse['headers']['status-code']); - $privateResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $privateTableId . '/rows', [ + $privateResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $privateTableId . '/rows', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], [ @@ -174,7 +174,7 @@ class DatabasesPermissionsGuestTest extends Scope $this->assertEquals(401, $privateResponse['headers']['status-code']); // Create a row in private collection with API key so we can test that update and delete are also not allowed - $privateResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $privateTableId . '/rows', $this->getServerHeader(), [ + $privateResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $privateTableId . '/rows', $this->getServerHeader(), [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Lorem', @@ -184,7 +184,7 @@ class DatabasesPermissionsGuestTest extends Scope $this->assertEquals(201, $privateResponse['headers']['status-code']); $privateRowId = $privateResponse['body']['$id']; - $publicRow = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $publicTableId . '/rows/' . $publicRowId, [ + $publicRow = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $publicTableId . '/rows/' . $publicRowId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], [ @@ -196,7 +196,7 @@ class DatabasesPermissionsGuestTest extends Scope $this->assertEquals(200, $publicRow['headers']['status-code']); $this->assertEquals('Thor: Ragnarok', $publicRow['body']['title']); - $privateRow = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $privateTableId . '/rows/' . $privateRowId, [ + $privateRow = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $privateTableId . '/rows/' . $privateRowId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], [ @@ -207,14 +207,14 @@ class DatabasesPermissionsGuestTest extends Scope $this->assertEquals(401, $privateRow['headers']['status-code']); - $publicRow = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $publicTableId . '/rows/' . $publicRowId, [ + $publicRow = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $publicTableId . '/rows/' . $publicRowId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]); $this->assertEquals(204, $publicRow['headers']['status-code']); - $privateRow = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $privateTableId . '/rows/' . $privateRowId, [ + $privateRow = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $privateTableId . '/rows/' . $privateRowId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ]); @@ -240,7 +240,7 @@ class DatabasesPermissionsGuestTest extends Scope $this->assertEquals('GuestPermissionsWrite', $database['body']['name']); $databaseId = $database['body']['$id']; - $movies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', $this->getServerHeader(), [ + $movies = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', $this->getServerHeader(), [ 'tableId' => ID::unique(), 'name' => 'Movies', 'permissions' => [ @@ -251,7 +251,7 @@ class DatabasesPermissionsGuestTest extends Scope $moviesId = $movies['body']['$id']; - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $moviesId . '/columns/string', $this->getServerHeader(), [ + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/columns/string', $this->getServerHeader(), [ 'key' => 'title', 'size' => 256, 'required' => true, @@ -259,7 +259,7 @@ class DatabasesPermissionsGuestTest extends Scope sleep(1); - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $moviesId . '/rows', [ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $moviesId . '/rows', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], [ diff --git a/tests/e2e/Services/Databases/Tables/DatabasesPermissionsMemberTest.php b/tests/e2e/Services/Databases/Grids/DatabasesPermissionsMemberTest.php similarity index 89% rename from tests/e2e/Services/Databases/Tables/DatabasesPermissionsMemberTest.php rename to tests/e2e/Services/Databases/Grids/DatabasesPermissionsMemberTest.php index f1e5c35482..397f82db41 100644 --- a/tests/e2e/Services/Databases/Tables/DatabasesPermissionsMemberTest.php +++ b/tests/e2e/Services/Databases/Grids/DatabasesPermissionsMemberTest.php @@ -1,6 +1,6 @@ client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', $this->getServerHeader(), [ + $public = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', $this->getServerHeader(), [ 'tableId' => ID::unique(), 'name' => 'Movies', 'permissions' => [ @@ -138,14 +138,14 @@ class DatabasesPermissionsMemberTest extends Scope $this->assertEquals(201, $public['headers']['status-code']); $this->tables = ['public' => $public['body']['$id']]; - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $this->tables['public'] . '/columns/string', $this->getServerHeader(), [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $this->tables['public'] . '/columns/string', $this->getServerHeader(), [ 'key' => 'title', 'size' => 256, 'required' => true, ]); $this->assertEquals(202, $response['headers']['status-code']); - $private = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', $this->getServerHeader(), [ + $private = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', $this->getServerHeader(), [ 'tableId' => ID::unique(), 'name' => 'Private Movies', 'permissions' => [ @@ -159,14 +159,14 @@ class DatabasesPermissionsMemberTest extends Scope $this->assertEquals(201, $private['headers']['status-code']); $this->tables['private'] = $private['body']['$id']; - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $this->tables['private'] . '/columns/string', $this->getServerHeader(), [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $this->tables['private'] . '/columns/string', $this->getServerHeader(), [ 'key' => 'title', 'size' => 256, 'required' => true, ]); $this->assertEquals(202, $response['headers']['status-code']); - $doconly = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', $this->getServerHeader(), [ + $doconly = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', $this->getServerHeader(), [ 'tableId' => ID::unique(), 'name' => 'Row Only Movies', 'permissions' => [], @@ -175,7 +175,7 @@ class DatabasesPermissionsMemberTest extends Scope $this->assertEquals(201, $private['headers']['status-code']); $this->tables['doconly'] = $doconly['body']['$id']; - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $this->tables['doconly'] . '/columns/string', $this->getServerHeader(), [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $this->tables['doconly'] . '/columns/string', $this->getServerHeader(), [ 'key' => 'title', 'size' => 256, 'required' => true, @@ -202,7 +202,7 @@ class DatabasesPermissionsMemberTest extends Scope $tables = $data['tables']; $databaseId = $data['databaseId']; - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tables['public'] . '/rows', $this->getServerHeader(), [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tables['public'] . '/rows', $this->getServerHeader(), [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Lorem', @@ -211,7 +211,7 @@ class DatabasesPermissionsMemberTest extends Scope ]); $this->assertEquals(201, $response['headers']['status-code']); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tables['private'] . '/rows', $this->getServerHeader(), [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tables['private'] . '/rows', $this->getServerHeader(), [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Lorem', @@ -220,7 +220,7 @@ class DatabasesPermissionsMemberTest extends Scope ]); $this->assertEquals(201, $response['headers']['status-code']); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tables['doconly'] . '/rows', $this->getServerHeader(), [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tables['doconly'] . '/rows', $this->getServerHeader(), [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Lorem', @@ -232,7 +232,7 @@ class DatabasesPermissionsMemberTest extends Scope /** * Check "any" permission table */ - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tables['public'] . '/rows', [ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tables['public'] . '/rows', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -245,7 +245,7 @@ class DatabasesPermissionsMemberTest extends Scope /** * Check "users" permission table */ - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tables['private'] . '/rows', [ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tables['private'] . '/rows', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -258,7 +258,7 @@ class DatabasesPermissionsMemberTest extends Scope /** * Check "user:user1" row only permission table */ - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tables['doconly'] . '/rows', [ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tables['doconly'] . '/rows', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], diff --git a/tests/e2e/Services/Databases/Tables/DatabasesPermissionsScope.php b/tests/e2e/Services/Databases/Grids/DatabasesPermissionsScope.php similarity index 98% rename from tests/e2e/Services/Databases/Tables/DatabasesPermissionsScope.php rename to tests/e2e/Services/Databases/Grids/DatabasesPermissionsScope.php index a2bc227c8f..0ab3f83ef1 100644 --- a/tests/e2e/Services/Databases/Tables/DatabasesPermissionsScope.php +++ b/tests/e2e/Services/Databases/Grids/DatabasesPermissionsScope.php @@ -1,6 +1,6 @@ assertEquals(201, $db['headers']['status-code']); - $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/tables', $this->getServerHeader(), [ + $table1 = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/grids/tables', $this->getServerHeader(), [ 'tableId' => ID::custom('table1'), 'name' => 'Table 1', 'permissions' => [ @@ -57,13 +57,13 @@ class DatabasesPermissionsTeamTest extends Scope $this->tables['table1'] = $table1['body']['$id']; - $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/tables/' . $this->tables['table1'] . '/columns/string', $this->getServerHeader(), [ + $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/grids/tables/' . $this->tables['table1'] . '/columns/string', $this->getServerHeader(), [ 'key' => 'title', 'size' => 256, 'required' => true, ]); - $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/tables', $this->getServerHeader(), [ + $table2 = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/grids/tables', $this->getServerHeader(), [ 'tableId' => ID::custom('table2'), 'name' => 'Table 2', 'permissions' => [ @@ -76,7 +76,7 @@ class DatabasesPermissionsTeamTest extends Scope $this->tables['table2'] = $table2['body']['$id']; - $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/tables/' . $this->tables['table2'] . '/columns/string', $this->getServerHeader(), [ + $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/grids/tables/' . $this->tables['table2'] . '/columns/string', $this->getServerHeader(), [ 'key' => 'title', 'size' => 256, 'required' => true, @@ -140,7 +140,7 @@ class DatabasesPermissionsTeamTest extends Scope $this->createTables($this->teams); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/tables/' . $this->tables['table1'] . '/rows', $this->getServerHeader(), [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/grids/tables/' . $this->tables['table1'] . '/rows', $this->getServerHeader(), [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Lorem', @@ -148,7 +148,7 @@ class DatabasesPermissionsTeamTest extends Scope ]); $this->assertEquals(201, $response['headers']['status-code']); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/tables/' . $this->tables['table2'] . '/rows', $this->getServerHeader(), [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/grids/tables/' . $this->tables['table2'] . '/rows', $this->getServerHeader(), [ 'rowId' => ID::unique(), 'data' => [ 'title' => 'Ipsum', @@ -166,7 +166,7 @@ class DatabasesPermissionsTeamTest extends Scope */ public function testReadRows($user, $table, $success, $users) { - $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $this->databaseId . '/tables/' . $table . '/rows', [ + $rows = $this->client->call(Client::METHOD_GET, '/databases/' . $this->databaseId . '/grids/tables/' . $table . '/rows', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -186,7 +186,7 @@ class DatabasesPermissionsTeamTest extends Scope */ public function testWriteRows($user, $table, $success, $users) { - $rows = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/tables/' . $table . '/rows', [ + $rows = $this->client->call(Client::METHOD_POST, '/databases/' . $this->databaseId . '/grids/tables/' . $table . '/rows', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], From 1f31b755823c7ffe516c23aaea2087c1c70457e4 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 14:48:19 +0530 Subject: [PATCH 04/24] fix: tests. --- .github/workflows/tests.yml | 4 ++-- .../Modules/Databases/Http/Databases/Collections/Action.php | 2 +- tests/e2e/Services/GraphQL/{Tables => Grids}/AbuseTest.php | 2 +- tests/e2e/Services/GraphQL/{Tables => Grids}/AuthTest.php | 2 +- .../Services/GraphQL/{Tables => Grids}/DatabaseClientTest.php | 2 +- .../Services/GraphQL/{Tables => Grids}/DatabaseServerTest.php | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename tests/e2e/Services/GraphQL/{Tables => Grids}/AbuseTest.php (99%) rename tests/e2e/Services/GraphQL/{Tables => Grids}/AuthTest.php (99%) rename tests/e2e/Services/GraphQL/{Tables => Grids}/DatabaseClientTest.php (99%) rename tests/e2e/Services/GraphQL/{Tables => Grids}/DatabaseServerTest.php (99%) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cc20d1f6fb..3403973b0d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -146,7 +146,7 @@ jobs: Avatars, Console, Databases/Legacy, - Databases/Tables, + Databases/Grids, Functions, FunctionsSchedule, GraphQL, @@ -216,7 +216,7 @@ jobs: Avatars, Console, Databases/Legacy, - Databases/Tables, + Databases/Grids, Functions, FunctionsSchedule, GraphQL, diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Action.php index 351810fcc6..e7c9814655 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Action.php @@ -56,7 +56,7 @@ abstract class Action extends UtopiaAction */ final protected function getSdkGroup(): string { - return $this->isCollectionsAPI() ? 'collections' : 'grids'; + return $this->isCollectionsAPI() ? 'collections' : 'tables'; } /** diff --git a/tests/e2e/Services/GraphQL/Tables/AbuseTest.php b/tests/e2e/Services/GraphQL/Grids/AbuseTest.php similarity index 99% rename from tests/e2e/Services/GraphQL/Tables/AbuseTest.php rename to tests/e2e/Services/GraphQL/Grids/AbuseTest.php index 88c216dd5a..e89a3e5c29 100644 --- a/tests/e2e/Services/GraphQL/Tables/AbuseTest.php +++ b/tests/e2e/Services/GraphQL/Grids/AbuseTest.php @@ -1,6 +1,6 @@ Date: Sun, 27 Jul 2025 15:23:07 +0530 Subject: [PATCH 05/24] update: graphql tests. --- tests/e2e/Services/GraphQL/Base.php | 158 ++++++++++------- .../e2e/Services/GraphQL/Grids/AbuseTest.php | 2 +- tests/e2e/Services/GraphQL/Grids/AuthTest.php | 16 +- .../GraphQL/Grids/DatabaseClientTest.php | 40 ++--- .../GraphQL/Grids/DatabaseServerTest.php | 160 +++++++++--------- 5 files changed, 211 insertions(+), 165 deletions(-) diff --git a/tests/e2e/Services/GraphQL/Base.php b/tests/e2e/Services/GraphQL/Base.php index 554f84e616..8b6f85a1b1 100644 --- a/tests/e2e/Services/GraphQL/Base.php +++ b/tests/e2e/Services/GraphQL/Base.php @@ -21,7 +21,14 @@ trait Base public static string $UPDATE_COLLECTION = 'update_collection'; public static string $DELETE_COLLECTION = 'delete_collection'; - // Tables + // Grid databases + public static string $GRIDS_CREATE_DATABASE = 'grids_create_database'; + public static string $GRIDS_GET_DATABASES = 'grids_get_databases'; + public static string $GRIDS_GET_DATABASE = 'grids_get_database'; + public static string $GRIDS_UPDATE_DATABASE = 'grids_update_database'; + public static string $GRIDS_DELETE_DATABASE = 'grids_delete_database'; + + // Grid tables public static string $CREATE_TABLE = 'create_table'; public static string $GET_TABLE = 'get_table'; public static string $GET_TABLES = 'list_tables'; @@ -55,7 +62,7 @@ trait Base public static string $GET_ATTRIBUTE = 'get_attribute'; public static string $DELETE_ATTRIBUTE = 'delete_attribute'; - // Columns + // Grids columns public static string $CREATE_STRING_COLUMN = 'create_string_column'; public static string $CREATE_INTEGER_COLUMN = 'create_integer_column'; public static string $CREATE_FLOAT_COLUMN = 'create_float_column'; @@ -88,7 +95,7 @@ trait Base public static string $GET_INDEX = 'get_attribute_index'; public static string $DELETE_INDEX = 'delete_attribute_index'; - // Column Indexes + // Grid column indexes public static string $CREATE_COLUMN_INDEX = 'create_column_index'; public static string $GET_COLUMN_INDEXES = 'get_column_indexes'; public static string $GET_COLUMN_INDEX = 'get_column_index'; @@ -102,13 +109,13 @@ trait Base public static string $UPSERT_DOCUMENT = 'upsert_document'; public static string $DELETE_DOCUMENT = 'delete_document'; - // Documents Bulk APIs + // Documents - Bulk APIs public static string $CREATE_DOCUMENTS = 'create_documents_rest'; public static string $UPDATE_DOCUMENTS = 'update_documents'; public static string $UPSERT_DOCUMENTS = 'upsert_documents'; public static string $DELETE_DOCUMENTS = 'delete_documents'; - // Rows + // Grid rows public static string $CREATE_ROW = 'create_row_rest'; public static string $GET_ROWS = 'list_rows'; public static string $GET_ROW = 'get_row'; @@ -116,7 +123,7 @@ trait Base public static string $UPSERT_ROW = 'upsert_row'; public static string $DELETE_ROW = 'delete_row'; - // Rows Bulk APIs + // Grid rows - Bulk APIs public static string $CREATE_ROWS = 'create_rows_rest'; public static string $UPDATE_ROWS = 'update_rows'; public static string $UPSERT_ROWS = 'upsert_rows'; @@ -534,6 +541,43 @@ trait Base status } }'; + case self::$GRIDS_CREATE_DATABASE: + return 'mutation gridsCreateDatabase($databaseId: String!, $name: String!) { + gridsCreateDatabase(databaseId: $databaseId, name: $name) { + _id + name + } + }'; + case self::$GRIDS_GET_DATABASES: + return 'query gridsListDatabases { + gridsListDatabases { + total + databases { + _id + name + } + } + }'; + case self::$GRIDS_GET_DATABASE: + return 'query gridsGetDatabase($databaseId: String!) { + gridsGetDatabase(databaseId: $databaseId) { + _id + name + } + }'; + case self::$GRIDS_UPDATE_DATABASE: + return 'mutation gridsUpdateDatabase($databaseId: String!, $name: String!) { + gridsUpdateDatabase(databaseId: $databaseId, name: $name) { + _id + name + } + }'; + case self::$GRIDS_DELETE_DATABASE: + return 'mutation gridsDeleteDatabase($databaseId: String!) { + gridsDeleteDatabase(databaseId: $databaseId) { + status + } + }'; case self::$GET_COLLECTION: return 'query getCollection($databaseId: String!, $collectionId: String!) { databasesGetCollection(databaseId: $databaseId, collectionId: $collectionId) { @@ -580,8 +624,8 @@ trait Base } }'; case self::$GET_TABLE: - return 'query tablesGet($databaseId: String!, $tableId: String!) { - tablesGet(databaseId: $databaseId, tableId: $tableId) { + return 'query gridsGetTable($databaseId: String!, $tableId: String!) { + gridsGetTable(databaseId: $databaseId, tableId: $tableId) { _id _permissions rowSecurity @@ -589,8 +633,8 @@ trait Base } }'; case self::$GET_TABLES: - return 'query tablesList($databaseId: String!) { - tablesList(databaseId: $databaseId) { + return 'query gridsListTables($databaseId: String!) { + gridsListTables(databaseId: $databaseId) { total tables { _id @@ -601,8 +645,8 @@ trait Base } }'; case self::$CREATE_TABLE: - return 'mutation tablesCreate($databaseId: String!, $tableId: String!, $name: String!, $rowSecurity: Boolean!, $permissions: [String!]!) { - tablesCreate(databaseId: $databaseId, tableId: $tableId, name: $name, rowSecurity: $rowSecurity, permissions: $permissions) { + return 'mutation gridsCreateTable($databaseId: String!, $tableId: String!, $name: String!, $rowSecurity: Boolean!, $permissions: [String!]!) { + gridsCreateTable(databaseId: $databaseId, tableId: $tableId, name: $name, rowSecurity: $rowSecurity, permissions: $permissions) { _id _permissions rowSecurity @@ -610,8 +654,8 @@ trait Base } }'; case self::$UPDATE_TABLE: - return 'mutation tablesUpdate($databaseId: String!, $tableId: String!, $name: String!, $rowSecurity: Boolean!, $permissions: [String!], $enabled: Boolean) { - tablesUpdate(databaseId: $databaseId, tableId: $tableId, name: $name, rowSecurity: $rowSecurity, permissions: $permissions, enabled: $enabled) { + return 'mutation gridsUpdateTable($databaseId: String!, $tableId: String!, $name: String!, $rowSecurity: Boolean!, $permissions: [String!], $enabled: Boolean) { + gridsUpdateTable(databaseId: $databaseId, tableId: $tableId, name: $name, rowSecurity: $rowSecurity, permissions: $permissions, enabled: $enabled) { _id _permissions rowSecurity @@ -619,8 +663,8 @@ trait Base } }'; case self::$DELETE_TABLE: - return 'mutation tablesDelete($databaseId: String!, $tableId: String!) { - tablesDelete(databaseId: $databaseId, tableId: $tableId) { + return 'mutation gridsDeleteTable($databaseId: String!, $tableId: String!) { + gridsDeleteTable(databaseId: $databaseId, tableId: $tableId) { status } }'; @@ -802,7 +846,7 @@ trait Base }'; case self::$CREATE_STRING_COLUMN: return 'mutation createStringColumn($databaseId: String!, $tableId: String!, $key: String!, $size: Int!, $required: Boolean!, $default: String, $array: Boolean){ - tablesCreateStringColumn(databaseId: $databaseId, tableId: $tableId, key: $key, size: $size, required: $required, default: $default, array: $array) { + gridsCreateStringColumn(databaseId: $databaseId, tableId: $tableId, key: $key, size: $size, required: $required, default: $default, array: $array) { key required default @@ -811,7 +855,7 @@ trait Base }'; case self::$CREATE_INTEGER_COLUMN: return 'mutation createIntegerColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $min: Int, $max: Int, $default: Int, $array: Boolean){ - tablesCreateIntegerColumn(databaseId: $databaseId, tableId: $tableId, key: $key, min: $min, max: $max, required: $required, default: $default, array: $array) { + gridsCreateIntegerColumn(databaseId: $databaseId, tableId: $tableId, key: $key, min: $min, max: $max, required: $required, default: $default, array: $array) { key required min @@ -822,7 +866,7 @@ trait Base }'; case self::$CREATE_FLOAT_COLUMN: return 'mutation createFloatColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $min: Float, $max: Float, $default: Float, $array: Boolean){ - tablesCreateFloatColumn(databaseId: $databaseId, tableId: $tableId, key: $key, min: $min, max: $max, required: $required, default: $default, array: $array) { + gridsCreateFloatColumn(databaseId: $databaseId, tableId: $tableId, key: $key, min: $min, max: $max, required: $required, default: $default, array: $array) { key required min @@ -833,7 +877,7 @@ trait Base }'; case self::$CREATE_BOOLEAN_COLUMN: return 'mutation createBooleanColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: Boolean, $array: Boolean){ - tablesCreateBooleanColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { + gridsCreateBooleanColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { key required default @@ -842,7 +886,7 @@ trait Base }'; case self::$CREATE_URL_COLUMN: return 'mutation createUrlColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String, $array: Boolean){ - tablesCreateUrlColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { + gridsCreateUrlColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { key required default @@ -851,7 +895,7 @@ trait Base }'; case self::$CREATE_EMAIL_COLUMN: return 'mutation createEmailColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String, $array: Boolean){ - tablesCreateEmailColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { + gridsCreateEmailColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { key required default @@ -860,7 +904,7 @@ trait Base }'; case self::$CREATE_IP_COLUMN: return 'mutation createIpColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String, $array: Boolean){ - tablesCreateIpColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { + gridsCreateIpColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { key required default @@ -869,7 +913,7 @@ trait Base }'; case self::$CREATE_ENUM_COLUMN: return 'mutation createEnumColumn($databaseId: String!, $tableId: String!, $key: String!, $elements: [String!]!, $required: Boolean!, $default: String, $array: Boolean){ - tablesCreateEnumColumn(databaseId: $databaseId, tableId: $tableId, key: $key, elements: $elements, required: $required, default: $default, array: $array) { + gridsCreateEnumColumn(databaseId: $databaseId, tableId: $tableId, key: $key, elements: $elements, required: $required, default: $default, array: $array) { key elements required @@ -879,7 +923,7 @@ trait Base }'; case self::$CREATE_DATETIME_COLUMN: return 'mutation createDatetimeColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String, $array: Boolean){ - tablesCreateDatetimeColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { + gridsCreateDatetimeColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default, array: $array) { key required default @@ -888,7 +932,7 @@ trait Base }'; case self::$CREATE_RELATIONSHIP_COLUMN: return 'mutation createRelationshipColumn($databaseId: String!, $tableId: String!, $relatedTableId: String!, $type: String!, $twoWay: Boolean, $key: String, $twoWayKey: String, $onDelete: String){ - tablesCreateRelationshipColumn(databaseId: $databaseId, tableId: $tableId, relatedTableId: $relatedTableId, type: $type, twoWay: $twoWay, key: $key, twoWayKey: $twoWayKey, onDelete: $onDelete) { + gridsCreateRelationshipColumn(databaseId: $databaseId, tableId: $tableId, relatedTableId: $relatedTableId, type: $type, twoWay: $twoWay, key: $key, twoWayKey: $twoWayKey, onDelete: $onDelete) { relatedTable relationType twoWay @@ -899,14 +943,14 @@ trait Base }'; case self::$UPDATE_STRING_COLUMN: return 'mutation updateStringColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String){ - tablesUpdateStringColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { + gridsUpdateStringColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { required default } }'; case self::$UPDATE_INTEGER_COLUMN: return 'mutation updateIntegerColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $min: Int!, $max: Int!, $default: Int){ - tablesUpdateIntegerColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, min: $min, max: $max, default: $default) { + gridsUpdateIntegerColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, min: $min, max: $max, default: $default) { required min max @@ -915,7 +959,7 @@ trait Base }'; case self::$UPDATE_FLOAT_COLUMN: return 'mutation updateFloatColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $min: Float!, $max: Float!, $default: Float){ - tablesUpdateFloatColumn(databaseId: $databaseId, tableId: $tableId, key: $key, min: $min, max: $max, required: $required, default: $default) { + gridsUpdateFloatColumn(databaseId: $databaseId, tableId: $tableId, key: $key, min: $min, max: $max, required: $required, default: $default) { required min max @@ -924,35 +968,35 @@ trait Base }'; case self::$UPDATE_BOOLEAN_COLUMN: return 'mutation updateBooleanColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: Boolean){ - tablesUpdateBooleanColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { + gridsUpdateBooleanColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { required default } }'; case self::$UPDATE_URL_COLUMN: return 'mutation updateUrlColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String){ - tablesUpdateUrlColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { + gridsUpdateUrlColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { required default } }'; case self::$UPDATE_EMAIL_COLUMN: return 'mutation updateEmailColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String){ - tablesUpdateEmailColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { + gridsUpdateEmailColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { required default } }'; case self::$UPDATE_IP_COLUMN: return 'mutation updateIpColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String){ - tablesUpdateIpColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { + gridsUpdateIpColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { required default } }'; case self::$UPDATE_ENUM_COLUMN: return 'mutation updateEnumColumn($databaseId: String!, $tableId: String!, $key: String!, $elements: [String!]!, $required: Boolean!, $default: String){ - tablesUpdateEnumColumn(databaseId: $databaseId, tableId: $tableId, key: $key, elements: $elements, required: $required, default: $default) { + gridsUpdateEnumColumn(databaseId: $databaseId, tableId: $tableId, key: $key, elements: $elements, required: $required, default: $default) { elements required default @@ -960,14 +1004,14 @@ trait Base }'; case self::$UPDATE_DATETIME_COLUMN: return 'mutation updateDatetimeColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $default: String){ - tablesUpdateDatetimeColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { + gridsUpdateDatetimeColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, default: $default) { required default } }'; case self::$UPDATE_RELATIONSHIP_COLUMN: return 'mutation updateRelationshipColumn($databaseId: String!, $tableId: String!, $key: String!, $onDelete: String){ - tablesUpdateRelationshipColumn(databaseId: $databaseId, tableId: $tableId, key: $key, onDelete: $onDelete) { + gridsUpdateRelationshipColumn(databaseId: $databaseId, tableId: $tableId, key: $key, onDelete: $onDelete) { relatedTable relationType twoWay @@ -1011,7 +1055,7 @@ trait Base }'; case self::$CREATE_COLUMN_INDEX: return 'mutation createIndex($databaseId: String!, $tableId: String!, $key: String!, $type: String!, $columns: [String!]!, $orders: [String!]){ - tablesCreateIndex(databaseId: $databaseId, tableId: $tableId, key: $key, type: $type, columns: $columns, orders: $orders) { + gridsCreateIndex(databaseId: $databaseId, tableId: $tableId, key: $key, type: $type, columns: $columns, orders: $orders) { key type status @@ -1019,7 +1063,7 @@ trait Base }'; case self::$GET_COLUMN_INDEXES: return 'query listIndexes($databaseId: String!, $tableId: String!) { - tablesListIndexes(databaseId: $databaseId, tableId: $tableId) { + gridsListIndexes(databaseId: $databaseId, tableId: $tableId) { total indexes { key @@ -1030,7 +1074,7 @@ trait Base }'; case self::$GET_COLUMN_INDEX: return 'query getIndex($databaseId: String!, $tableId: String!, $key: String!) { - tablesGetIndex(databaseId: $databaseId, tableId: $tableId, key: $key) { + gridsGetIndex(databaseId: $databaseId, tableId: $tableId, key: $key) { key type status @@ -1038,7 +1082,7 @@ trait Base }'; case self::$DELETE_COLUMN_INDEX: return 'mutation deleteIndex($databaseId: String!, $tableId: String!, $key: String!) { - tablesDeleteIndex(databaseId: $databaseId, tableId: $tableId, key: $key) { + gridsDeleteIndex(databaseId: $databaseId, tableId: $tableId, key: $key) { status } }'; @@ -1065,7 +1109,7 @@ trait Base }'; case self::$GET_COLUMNS: return 'query listColumns($databaseId: String!, $tableId: String!) { - tablesListColumns(databaseId: $databaseId, tableId: $tableId) { + gridsListColumns(databaseId: $databaseId, tableId: $tableId) { total columns { ...columnProperties @@ -1074,13 +1118,13 @@ trait Base }' . PHP_EOL . self::$FRAGMENT_COLUMNS; case self::$GET_COLUMN: return 'query getColumn($databaseId: String!, $tableId: String!, $key: String!) { - tablesGetColumn(databaseId: $databaseId, tableId: $tableId, key: $key) { + gridsGetColumn(databaseId: $databaseId, tableId: $tableId, key: $key) { ...columnProperties } }' . PHP_EOL . self::$FRAGMENT_COLUMNS; case self::$DELETE_COLUMN: return 'mutation deleteColumn($databaseId: String!, $tableId: String!, $key: String!) { - tablesDeleteColumn(databaseId: $databaseId, tableId: $tableId, key: $key) { + gridsDeleteColumn(databaseId: $databaseId, tableId: $tableId, key: $key) { status } }'; @@ -1127,7 +1171,7 @@ trait Base }'; case self::$CREATE_ROWS: return 'mutation createRows($databaseId: String!, $tableId: String!, $rows: [Json!]!) { - tablesCreateRows(databaseId: $databaseId, tableId: $tableId, rows: $rows) { + gridsCreateRows(databaseId: $databaseId, tableId: $tableId, rows: $rows) { rows { _id _tableId @@ -1138,7 +1182,7 @@ trait Base }'; case self::$GET_ROW: return 'query getRow($databaseId: String!, $tableId: String!, $rowId: String!) { - tablesGetRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId) { + gridsGetRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId) { _id _tableId _permissions @@ -1147,7 +1191,7 @@ trait Base }'; case self::$GET_ROWS: return 'query listRows($databaseId: String!, $tableId: String!, $queries: [String!] = []) { - tablesListRows(databaseId: $databaseId, tableId: $tableId, queries: $queries) { + gridsListRows(databaseId: $databaseId, tableId: $tableId, queries: $queries) { total rows { _id @@ -1160,7 +1204,7 @@ trait Base }'; case self::$CREATE_ROW: return 'mutation createRow($databaseId: String!, $tableId: String!, $rowId: String!, $data: Json!, $permissions: [String!]) { - tablesCreateRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId, data: $data, permissions: $permissions) { + gridsCreateRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId, data: $data, permissions: $permissions) { _id _tableId _permissions @@ -1288,7 +1332,7 @@ trait Base }'; case self::$UPDATE_ROW: return 'mutation updateRow($databaseId: String!, $tableId: String!, $rowId: String!, $data: Json!, $permissions: [String!]) { - tablesUpdateRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId, data: $data, permissions: $permissions) { + gridsUpdateRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId, data: $data, permissions: $permissions) { _id _tableId data @@ -1296,7 +1340,7 @@ trait Base }'; case self::$UPSERT_ROW: return 'mutation upsertRow($databaseId: String!, $tableId: String!, $rowId: String!, $data: Json!, $permissions: [String!] = []) { - tablesUpsertRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId, data: $data, permissions: $permissions) { + gridsUpsertRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId, data: $data, permissions: $permissions) { _id _databaseId _tableId @@ -1305,13 +1349,13 @@ trait Base }'; case self::$DELETE_ROW: return 'mutation deleteRow($databaseId: String!, $tableId: String!, $rowId: String!) { - tablesDeleteRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId) { + gridsDeleteRow(databaseId: $databaseId, tableId: $tableId, rowId: $rowId) { status } }'; case self::$UPDATE_ROWS: return 'mutation updateRows($databaseId: String!, $tableId: String!, $data: Json!, $queries: [String!]) { - tablesUpdateRows(databaseId: $databaseId, tableId: $tableId, data: $data, queries: $queries) { + gridsUpdateRows(databaseId: $databaseId, tableId: $tableId, data: $data, queries: $queries) { total rows { _id @@ -1324,7 +1368,7 @@ trait Base }'; case self::$UPSERT_ROWS: return 'mutation upsertRows($databaseId: String!, $tableId: String!, $rows: [Json!]!) { - tablesUpsertRows(databaseId: $databaseId, tableId: $tableId, rows: $rows) { + gridsUpsertRows(databaseId: $databaseId, tableId: $tableId, rows: $rows) { total rows { _id @@ -1337,7 +1381,7 @@ trait Base }'; case self::$DELETE_ROWS: return 'mutation deleteRows($databaseId: String!, $tableId: String!, $queries: [String!] = []) { - tablesDeleteRows(databaseId: $databaseId, tableId: $tableId, queries: $queries) { + gridsDeleteRows(databaseId: $databaseId, tableId: $tableId, queries: $queries) { total rows { _id @@ -3070,7 +3114,7 @@ trait Base _id name } - tablesCreate(databaseId: $databaseId, tableId: $tableId, name: $tableName, rowSecurity: $rowSecurity, permissions: $tablePermissions) { + gridsCreate(databaseId: $databaseId, tableId: $tableId, name: $tableName, rowSecurity: $rowSecurity, permissions: $tablePermissions) { _id _createdAt _updatedAt @@ -3087,7 +3131,7 @@ trait Base status } } - tablesCreateStringColumn(databaseId: $databaseId, tableId: $tableId, key: "name", size: 255, required: true) { + gridsCreateStringColumn(databaseId: $databaseId, tableId: $tableId, key: "name", size: 255, required: true) { key type status @@ -3096,7 +3140,7 @@ trait Base default array } - tablesCreateIntegerColumn(databaseId: $databaseId, tableId: $tableId, key: "age", min: 0, max: 150, required: true) { + gridsCreateIntegerColumn(databaseId: $databaseId, tableId: $tableId, key: "age", min: 0, max: 150, required: true) { key type status @@ -3106,7 +3150,7 @@ trait Base default array } - tablesCreateBooleanColumn(databaseId: $databaseId, tableId: $tableId, key: "alive", required: false, default: true) { + gridsCreateBooleanColumn(databaseId: $databaseId, tableId: $tableId, key: "alive", required: false, default: true) { key type status diff --git a/tests/e2e/Services/GraphQL/Grids/AbuseTest.php b/tests/e2e/Services/GraphQL/Grids/AbuseTest.php index e89a3e5c29..1a388871bf 100644 --- a/tests/e2e/Services/GraphQL/Grids/AbuseTest.php +++ b/tests/e2e/Services/GraphQL/Grids/AbuseTest.php @@ -155,7 +155,7 @@ class AbuseTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ], $gqlPayload); - $tableId = $response['body']['data']['tablesCreate']['_id']; + $tableId = $response['body']['data']['gridsCreateTable']['_id']; $query = $this->getQuery(self::$CREATE_STRING_COLUMN); $gqlPayload = [ diff --git a/tests/e2e/Services/GraphQL/Grids/AuthTest.php b/tests/e2e/Services/GraphQL/Grids/AuthTest.php index e992616b18..fc6b76818c 100644 --- a/tests/e2e/Services/GraphQL/Grids/AuthTest.php +++ b/tests/e2e/Services/GraphQL/Grids/AuthTest.php @@ -128,7 +128,7 @@ class AuthTest extends Scope 'query' => $query, 'variables' => [ 'databaseId' => $this->database['body']['data']['databasesCreate']['_id'], - 'tableId' => $this->table['body']['data']['tablesCreate']['_id'], + 'tableId' => $this->table['body']['data']['gridsCreateTable']['_id'], 'key' => 'name', 'size' => 256, 'required' => true, @@ -154,7 +154,7 @@ class AuthTest extends Scope 'query' => $query, 'variables' => [ 'databaseId' => $this->database['body']['data']['databasesCreate']['_id'], - 'tableId' => $this->table['body']['data']['tablesCreate']['_id'], + 'tableId' => $this->table['body']['data']['gridsCreateTable']['_id'], 'rowId' => ID::unique(), 'data' => [ 'name' => 'John Doe', @@ -178,8 +178,8 @@ class AuthTest extends Scope 'query' => $query, 'variables' => [ 'databaseId' => $this->database['body']['data']['databasesCreate']['_id'], - 'tableId' => $this->table['body']['data']['tablesCreate']['_id'], - 'rowId' => $row['body']['data']['tablesCreateRow']['_id'], + 'tableId' => $this->table['body']['data']['gridsCreateTable']['_id'], + 'rowId' => $row['body']['data']['gridsCreateRow']['_id'], ] ]; $row = $this->client->call(Client::METHOD_POST, '/graphql', [ @@ -188,7 +188,7 @@ class AuthTest extends Scope 'cookie' => 'a_session_' . $projectId . '=' . $this->token1, ], $gqlPayload); - $this->assertIsArray($row['body']['data']['tablesGetRow']); + $this->assertIsArray($row['body']['data']['gridsGetRow']); $this->assertArrayNotHasKey('errors', $row['body']); // Try to read as account 2 @@ -213,7 +213,7 @@ class AuthTest extends Scope 'query' => $query, 'variables' => [ 'databaseId' => $this->database['body']['data']['databasesCreate']['_id'], - 'tableId' => $this->table['body']['data']['tablesCreate']['_id'], + 'tableId' => $this->table['body']['data']['gridsCreateTable']['_id'], 'rowId' => ID::unique(), 'data' => [ 'name' => 'John Doe', @@ -237,8 +237,8 @@ class AuthTest extends Scope 'query' => $query, 'variables' => [ 'databaseId' => $this->database['body']['data']['databasesCreate']['_id'], - 'tableId' => $this->table['body']['data']['tablesCreate']['_id'], - 'rowId' => $row['body']['data']['tablesCreateRow']['_id'], + 'tableId' => $this->table['body']['data']['gridsCreateTable']['_id'], + 'rowId' => $row['body']['data']['gridsCreateRow']['_id'], ] ]; $row = $this->client->call(Client::METHOD_POST, '/graphql', [ diff --git a/tests/e2e/Services/GraphQL/Grids/DatabaseClientTest.php b/tests/e2e/Services/GraphQL/Grids/DatabaseClientTest.php index 302d35724c..8095692b92 100644 --- a/tests/e2e/Services/GraphQL/Grids/DatabaseClientTest.php +++ b/tests/e2e/Services/GraphQL/Grids/DatabaseClientTest.php @@ -21,7 +21,7 @@ class DatabaseClientTest extends Scope public function testCreateDatabase(): array { $projectId = $this->getProject()['$id']; - $query = $this->getQuery(self::$CREATE_DATABASE); + $query = $this->getQuery(self::$GRIDS_CREATE_DATABASE); $gqlPayload = [ 'query' => $query, 'variables' => [ @@ -38,7 +38,7 @@ class DatabaseClientTest extends Scope $this->assertIsArray($database['body']['data']); $this->assertArrayNotHasKey('errors', $database['body']); - $database = $database['body']['data']['databasesCreate']; + $database = $database['body']['data']['gridsCreateDatabase']; $this->assertEquals('Actors', $database['name']); return $database; @@ -75,7 +75,7 @@ class DatabaseClientTest extends Scope $this->assertIsArray($table['body']['data']); $this->assertArrayNotHasKey('errors', $table['body']); - $table = $table['body']['data']['tablesCreate']; + $table = $table['body']['data']['gridsCreateTable']; $this->assertEquals('Actors', $table['name']); return [ @@ -110,7 +110,7 @@ class DatabaseClientTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateStringColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateStringColumn']); return $data; } @@ -142,7 +142,7 @@ class DatabaseClientTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateIntegerColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateIntegerColumn']); return $data; } @@ -183,7 +183,7 @@ class DatabaseClientTest extends Scope $this->assertArrayNotHasKey('errors', $row['body']); $this->assertIsArray($row['body']['data']); - $row = $row['body']['data']['tablesCreateRow']; + $row = $row['body']['data']['gridsCreateRow']; $this->assertIsArray($row); return [ @@ -216,7 +216,7 @@ class DatabaseClientTest extends Scope $this->assertArrayNotHasKey('errors', $rows['body']); $this->assertIsArray($rows['body']['data']); - $this->assertIsArray($rows['body']['data']['tablesListRows']); + $this->assertIsArray($rows['body']['data']['gridsListRows']); } /** @@ -243,7 +243,7 @@ class DatabaseClientTest extends Scope $this->assertArrayNotHasKey('errors', $row['body']); $this->assertIsArray($row['body']['data']); - $this->assertIsArray($row['body']['data']['tablesGetRow']); + $this->assertIsArray($row['body']['data']['gridsGetRow']); } /** @@ -273,7 +273,7 @@ class DatabaseClientTest extends Scope $this->assertArrayNotHasKey('errors', $row['body']); $this->assertIsArray($row['body']['data']); - $row = $row['body']['data']['tablesUpdateRow']; + $row = $row['body']['data']['gridsUpdateRow']; $this->assertIsArray($row); $this->assertStringContainsString('New Row Name', $row['data']); @@ -319,7 +319,7 @@ class DatabaseClientTest extends Scope ]; // Step 1: Create database - $query = $this->getQuery(self::$CREATE_DATABASE); + $query = $this->getQuery(self::$GRIDS_CREATE_DATABASE); $payload = [ 'query' => $query, 'variables' => [ @@ -330,7 +330,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $databaseId = $res['body']['data']['databasesCreate']['_id']; + $databaseId = $res['body']['data']['gridsCreateDatabase']['_id']; // Step 2: Create table $query = $this->getQuery(self::$CREATE_TABLE); @@ -349,7 +349,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $tableId = $res['body']['data']['tablesCreate']['_id']; + $tableId = $res['body']['data']['gridsCreateTable']['_id']; // Step 3: Create column $query = $this->getQuery(self::$CREATE_STRING_COLUMN); @@ -382,7 +382,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $this->assertCount(10, $res['body']['data']['tablesCreateRows']['rows']); + $this->assertCount(10, $res['body']['data']['gridsCreateRows']['rows']); return compact('databaseId', 'tableId', 'projectId'); } @@ -421,7 +421,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $this->assertCount(10, $res['body']['data']['tablesUpdateRows']['rows']); + $this->assertCount(10, $res['body']['data']['gridsUpdateRows']['rows']); // Step 2: Fetch and validate updated rows $query = $this->getQuery(self::$GET_ROWS); @@ -437,7 +437,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertEquals(200, $res['headers']['status-code']); - $fetched = $res['body']['data']['tablesListRows']; + $fetched = $res['body']['data']['gridsListRows']; $this->assertEquals(10, $fetched['total']); foreach ($fetched['rows'] as $row) { @@ -490,7 +490,7 @@ class DatabaseClientTest extends Scope $response = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $upsertPayload); $this->assertArrayNotHasKey('errors', $response['body']); - $rows = $response['body']['data']['tablesUpsertRows']['rows']; + $rows = $response['body']['data']['gridsUpsertRows']['rows']; $this->assertCount(2, $rows); $rowMap = []; @@ -515,7 +515,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $fetchPayload); $this->assertEquals(200, $res['headers']['status-code']); - $fetched = $res['body']['data']['tablesListRows']; + $fetched = $res['body']['data']['gridsListRows']; $this->assertEquals(11, $fetched['total']); // Step 3: Upsert row with new permissions using `tablesUpsertRow` @@ -534,7 +534,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $updated = $res['body']['data']['tablesUpsertRow']; + $updated = $res['body']['data']['gridsUpsertRow']; $this->assertEquals('Row #10 Patched', json_decode($updated['data'], true)['name']); $this->assertEquals($data['databaseId'], $updated['_databaseId']); $this->assertEquals($data['tableId'], $updated['_tableId']); @@ -566,7 +566,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $deleted = $res['body']['data']['tablesDeleteRows']['rows']; + $deleted = $res['body']['data']['gridsDeleteRows']['rows']; $this->assertIsArray($deleted); $this->assertCount(11, $deleted); @@ -582,7 +582,7 @@ class DatabaseClientTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertEquals(200, $res['headers']['status-code']); - $this->assertEquals(0, $res['body']['data']['tablesListRows']['total']); + $this->assertEquals(0, $res['body']['data']['gridsListRows']['total']); return $data; } diff --git a/tests/e2e/Services/GraphQL/Grids/DatabaseServerTest.php b/tests/e2e/Services/GraphQL/Grids/DatabaseServerTest.php index c59e0a4c6f..aadee9749c 100644 --- a/tests/e2e/Services/GraphQL/Grids/DatabaseServerTest.php +++ b/tests/e2e/Services/GraphQL/Grids/DatabaseServerTest.php @@ -23,7 +23,7 @@ class DatabaseServerTest extends Scope public function testCreateDatabase(): array { $projectId = $this->getProject()['$id']; - $query = $this->getQuery(self::$CREATE_DATABASE); + $query = $this->getQuery(self::$GRIDS_CREATE_DATABASE); $gqlPayload = [ 'query' => $query, 'variables' => [ @@ -39,7 +39,7 @@ class DatabaseServerTest extends Scope $this->assertIsArray($database['body']['data']); $this->assertArrayNotHasKey('errors', $database['body']); - $database = $database['body']['data']['databasesCreate']; + $database = $database['body']['data']['gridsCreateDatabase']; $this->assertEquals('Actors', $database['name']); return $database; @@ -75,7 +75,7 @@ class DatabaseServerTest extends Scope $this->assertIsArray($table['body']['data']); $this->assertArrayNotHasKey('errors', $table['body']); - $table = $table['body']['data']['tablesCreate']; + $table = $table['body']['data']['gridsCreateTable']; $this->assertEquals('Actors', $table['name']); $gqlPayload = [ @@ -101,7 +101,7 @@ class DatabaseServerTest extends Scope $this->assertIsArray($table2['body']['data']); $this->assertArrayNotHasKey('errors', $table2['body']); - $table2 = $table2['body']['data']['tablesCreate']; + $table2 = $table2['body']['data']['gridsCreateTable']; $this->assertEquals('Movies', $table2['name']); return [ @@ -138,7 +138,7 @@ class DatabaseServerTest extends Scope // TODO: @itznotabug - check for `encrypt` attribute in string column's response body as well! $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateStringColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateStringColumn']); return $data; } @@ -171,9 +171,9 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateStringColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateStringColumn']['required']); - $this->assertEquals('Default Value', $column['body']['data']['tablesUpdateStringColumn']['default']); + $this->assertIsArray($column['body']['data']['gridsUpdateStringColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateStringColumn']['required']); + $this->assertEquals('Default Value', $column['body']['data']['gridsUpdateStringColumn']['default']); $this->assertEquals(200, $column['headers']['status-code']); return $data; @@ -206,7 +206,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateIntegerColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateIntegerColumn']); return $data; } @@ -241,11 +241,11 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateIntegerColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateIntegerColumn']['required']); - $this->assertEquals(12, $column['body']['data']['tablesUpdateIntegerColumn']['min']); - $this->assertEquals(160, $column['body']['data']['tablesUpdateIntegerColumn']['max']); - $this->assertEquals(50, $column['body']['data']['tablesUpdateIntegerColumn']['default']); + $this->assertIsArray($column['body']['data']['gridsUpdateIntegerColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateIntegerColumn']['required']); + $this->assertEquals(12, $column['body']['data']['gridsUpdateIntegerColumn']['min']); + $this->assertEquals(160, $column['body']['data']['gridsUpdateIntegerColumn']['max']); + $this->assertEquals(50, $column['body']['data']['gridsUpdateIntegerColumn']['default']); $this->assertEquals(200, $column['headers']['status-code']); return $data; @@ -276,7 +276,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateBooleanColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateBooleanColumn']); return $data; } @@ -309,9 +309,9 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateBooleanColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateBooleanColumn']['required']); - $this->assertTrue($column['body']['data']['tablesUpdateBooleanColumn']['default']); + $this->assertIsArray($column['body']['data']['gridsUpdateBooleanColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateBooleanColumn']['required']); + $this->assertTrue($column['body']['data']['gridsUpdateBooleanColumn']['default']); $this->assertEquals(200, $column['headers']['status-code']); return $data; @@ -345,7 +345,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateFloatColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateFloatColumn']); return $data; } @@ -380,11 +380,11 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateFloatColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateFloatColumn']['required']); - $this->assertEquals(100.0, $column['body']['data']['tablesUpdateFloatColumn']['min']); - $this->assertEquals(1000000.0, $column['body']['data']['tablesUpdateFloatColumn']['max']); - $this->assertEquals(2500.0, $column['body']['data']['tablesUpdateFloatColumn']['default']); + $this->assertIsArray($column['body']['data']['gridsUpdateFloatColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateFloatColumn']['required']); + $this->assertEquals(100.0, $column['body']['data']['gridsUpdateFloatColumn']['min']); + $this->assertEquals(1000000.0, $column['body']['data']['gridsUpdateFloatColumn']['max']); + $this->assertEquals(2500.0, $column['body']['data']['gridsUpdateFloatColumn']['default']); $this->assertEquals(200, $column['headers']['status-code']); return $data; @@ -415,7 +415,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateEmailColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateEmailColumn']); return $data; } @@ -448,9 +448,9 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateEmailColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateEmailColumn']['required']); - $this->assertEquals('torsten@appwrite.io', $column['body']['data']['tablesUpdateEmailColumn']['default']); + $this->assertIsArray($column['body']['data']['gridsUpdateEmailColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateEmailColumn']['required']); + $this->assertEquals('torsten@appwrite.io', $column['body']['data']['gridsUpdateEmailColumn']['default']); $this->assertEquals(200, $column['headers']['status-code']); return $data; @@ -486,7 +486,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateEnumColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateEnumColumn']); return $data; } @@ -525,11 +525,11 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateEnumColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateEnumColumn']['required']); - $this->assertEquals('tech', $column['body']['data']['tablesUpdateEnumColumn']['default']); - $this->assertContains('tech', $column['body']['data']['tablesUpdateEnumColumn']['elements']); - $this->assertNotContains('guest', $column['body']['data']['tablesUpdateEnumColumn']['elements']); + $this->assertIsArray($column['body']['data']['gridsUpdateEnumColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateEnumColumn']['required']); + $this->assertEquals('tech', $column['body']['data']['gridsUpdateEnumColumn']['default']); + $this->assertContains('tech', $column['body']['data']['gridsUpdateEnumColumn']['elements']); + $this->assertNotContains('guest', $column['body']['data']['gridsUpdateEnumColumn']['elements']); $this->assertEquals(200, $column['headers']['status-code']); return $data; @@ -560,7 +560,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateDatetimeColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateDatetimeColumn']); return $data; } @@ -593,9 +593,9 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateDatetimeColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateDatetimeColumn']['required']); - $this->assertEquals('2000-01-01T00:00:00Z', $column['body']['data']['tablesUpdateDatetimeColumn']['default']); + $this->assertIsArray($column['body']['data']['gridsUpdateDatetimeColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateDatetimeColumn']['required']); + $this->assertEquals('2000-01-01T00:00:00Z', $column['body']['data']['gridsUpdateDatetimeColumn']['default']); $this->assertEquals(200, $column['headers']['status-code']); return $data; @@ -628,7 +628,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateRelationshipColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateRelationshipColumn']); return $data; } @@ -659,7 +659,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateRelationshipColumn']); + $this->assertIsArray($column['body']['data']['gridsUpdateRelationshipColumn']); return $data; } @@ -690,7 +690,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateIpColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateIpColumn']); return $data; } @@ -723,9 +723,9 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateIpColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateIpColumn']['required']); - $this->assertEquals('127.0.0.1', $column['body']['data']['tablesUpdateIpColumn']['default']); + $this->assertIsArray($column['body']['data']['gridsUpdateIpColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateIpColumn']['required']); + $this->assertEquals('127.0.0.1', $column['body']['data']['gridsUpdateIpColumn']['default']); $this->assertEquals(200, $column['headers']['status-code']); return $data; @@ -757,7 +757,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesCreateUrlColumn']); + $this->assertIsArray($column['body']['data']['gridsCreateUrlColumn']); return $data; } @@ -790,9 +790,9 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()), $gqlPayload); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesUpdateUrlColumn']); - $this->assertFalse($column['body']['data']['tablesUpdateUrlColumn']['required']); - $this->assertEquals('https://cloud.appwrite.io', $column['body']['data']['tablesUpdateUrlColumn']['default']); + $this->assertIsArray($column['body']['data']['gridsUpdateUrlColumn']); + $this->assertFalse($column['body']['data']['gridsUpdateUrlColumn']['required']); + $this->assertEquals('https://cloud.appwrite.io', $column['body']['data']['gridsUpdateUrlColumn']['default']); $this->assertEquals(200, $column['headers']['status-code']); } @@ -826,12 +826,12 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $index['body']); $this->assertIsArray($index['body']['data']); - $this->assertIsArray($index['body']['data']['tablesCreateIndex']); + $this->assertIsArray($index['body']['data']['gridsCreateIndex']); return [ 'database' => $data['database'], 'table' => $data['table'], - 'index' => $index['body']['data']['tablesCreateIndex'], + 'index' => $index['body']['data']['gridsCreateIndex'], ]; } @@ -877,7 +877,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $row['body']); $this->assertIsArray($row['body']['data']); - $row = $row['body']['data']['tablesCreateRow']; + $row = $row['body']['data']['gridsCreateRow']; $this->assertIsArray($row); return [ @@ -930,7 +930,7 @@ class DatabaseServerTest extends Scope public function testGetDatabases(): void { $projectId = $this->getProject()['$id']; - $query = $this->getQuery(self::$GET_DATABASES); + $query = $this->getQuery(self::$GRIDS_GET_DATABASES); $gqlPayload = [ 'query' => $query, ]; @@ -942,7 +942,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $databases['body']); $this->assertIsArray($databases['body']['data']); - $this->assertIsArray($databases['body']['data']['databasesList']); + $this->assertIsArray($databases['body']['data']['gridsListDatabases']); } /** @@ -952,7 +952,7 @@ class DatabaseServerTest extends Scope public function testGetDatabase($database): void { $projectId = $this->getProject()['$id']; - $query = $this->getQuery(self::$GET_DATABASE); + $query = $this->getQuery(self::$GRIDS_GET_DATABASE); $gqlPayload = [ 'query' => $query, 'variables' => [ @@ -967,7 +967,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $database['body']); $this->assertIsArray($database['body']['data']); - $this->assertIsArray($database['body']['data']['databasesGet']); + $this->assertIsArray($database['body']['data']['gridsGetDatabase']); } /** @@ -990,9 +990,11 @@ class DatabaseServerTest extends Scope 'x-appwrite-project' => $projectId, ], $this->getHeaders()), $gqlPayload); + + $this->assertArrayNotHasKey('errors', $tables['body']); $this->assertIsArray($tables['body']['data']); - $this->assertIsArray($tables['body']['data']['tablesList']); + $this->assertIsArray($tables['body']['data']['gridsListTables']); } /** @@ -1018,7 +1020,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $table['body']); $this->assertIsArray($table['body']['data']); - $this->assertIsArray($table['body']['data']['tablesGet']); + $this->assertIsArray($table['body']['data']['gridsGetTable']); } /** @@ -1045,7 +1047,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $columns['body']); $this->assertIsArray($columns['body']['data']); - $this->assertIsArray($columns['body']['data']['tablesListColumns']); + $this->assertIsArray($columns['body']['data']['gridsListColumns']); } /** @@ -1072,7 +1074,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $column['body']); $this->assertIsArray($column['body']['data']); - $this->assertIsArray($column['body']['data']['tablesGetColumn']); + $this->assertIsArray($column['body']['data']['gridsGetColumn']); } /** @@ -1098,7 +1100,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $indices['body']); $this->assertIsArray($indices['body']['data']); - $this->assertIsArray($indices['body']['data']['tablesListIndexes']); + $this->assertIsArray($indices['body']['data']['gridsListIndexes']); } /** @@ -1125,7 +1127,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $index['body']); $this->assertIsArray($index['body']['data']); - $this->assertIsArray($index['body']['data']['tablesGetIndex']); + $this->assertIsArray($index['body']['data']['gridsGetIndex']); } /** @@ -1151,7 +1153,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $rows['body']); $this->assertIsArray($rows['body']['data']); - $this->assertIsArray($rows['body']['data']['tablesListRows']); + $this->assertIsArray($rows['body']['data']['gridsListRows']); } /** @@ -1178,7 +1180,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $row['body']); $this->assertIsArray($row['body']['data']); - $this->assertIsArray($row['body']['data']['tablesGetRow']); + $this->assertIsArray($row['body']['data']['gridsGetRow']); } // /** @@ -1235,7 +1237,7 @@ class DatabaseServerTest extends Scope public function testUpdateDatabase($database) { $projectId = $this->getProject()['$id']; - $query = $this->getQuery(self::$UPDATE_DATABASE); + $query = $this->getQuery(self::$GRIDS_UPDATE_DATABASE); $gqlPayload = [ 'query' => $query, 'variables' => [ @@ -1251,7 +1253,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $database['body']); $this->assertIsArray($database['body']['data']); - $this->assertIsArray($database['body']['data']['databasesUpdate']); + $this->assertIsArray($database['body']['data']['gridsUpdateDatabase']); } /** @@ -1279,7 +1281,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $table['body']); $this->assertIsArray($table['body']['data']); - $this->assertIsArray($table['body']['data']['tablesUpdate']); + $this->assertIsArray($table['body']['data']['gridsUpdateTable']); } /** @@ -1309,7 +1311,7 @@ class DatabaseServerTest extends Scope $this->assertArrayNotHasKey('errors', $row['body']); $this->assertIsArray($row['body']['data']); - $row = $row['body']['data']['tablesUpdateRow']; + $row = $row['body']['data']['gridsUpdateRow']; $this->assertIsArray($row); $this->assertStringContainsString('New Row Name', $row['data']); } @@ -1450,7 +1452,7 @@ class DatabaseServerTest extends Scope public function testDeleteDatabase($database) { $projectId = $this->getProject()['$id']; - $query = $this->getQuery(self::$DELETE_DATABASE); + $query = $this->getQuery(self::$GRIDS_DELETE_DATABASE); $gqlPayload = [ 'query' => $query, 'variables' => [ @@ -1480,7 +1482,7 @@ class DatabaseServerTest extends Scope ], $this->getHeaders()); // Step 1: Create database - $query = $this->getQuery(self::$CREATE_DATABASE); + $query = $this->getQuery(self::$GRIDS_CREATE_DATABASE); $payload = [ 'query' => $query, 'variables' => [ @@ -1491,7 +1493,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $databaseId = $res['body']['data']['databasesCreate']['_id']; + $databaseId = $res['body']['data']['gridsCreateDatabase']['_id']; // Step 2: Create table $query = $this->getQuery(self::$CREATE_TABLE); @@ -1510,7 +1512,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $tableId = $res['body']['data']['tablesCreate']['_id']; + $tableId = $res['body']['data']['gridsCreateTable']['_id']; // Step 3: Create column $query = $this->getQuery(self::$CREATE_STRING_COLUMN); @@ -1543,7 +1545,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $this->assertCount(10, $res['body']['data']['tablesCreateRows']['rows']); + $this->assertCount(10, $res['body']['data']['gridsCreateRows']['rows']); return compact('databaseId', 'tableId', 'projectId'); } @@ -1581,7 +1583,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $this->assertCount(10, $res['body']['data']['tablesUpdateRows']['rows']); + $this->assertCount(10, $res['body']['data']['gridsUpdateRows']['rows']); // Step 2: Fetch and validate updated rows $query = $this->getQuery(self::$GET_ROWS); @@ -1597,7 +1599,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertEquals(200, $res['headers']['status-code']); - $fetched = $res['body']['data']['tablesListRows']; + $fetched = $res['body']['data']['gridsListRows']; $this->assertEquals(10, $fetched['total']); foreach ($fetched['rows'] as $row) { @@ -1649,7 +1651,7 @@ class DatabaseServerTest extends Scope $response = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $upsertPayload); $this->assertArrayNotHasKey('errors', $response['body']); - $rows = $response['body']['data']['tablesUpsertRows']['rows']; + $rows = $response['body']['data']['gridsUpsertRows']['rows']; $this->assertCount(2, $rows); $rowMap = []; @@ -1674,7 +1676,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $fetchPayload); $this->assertEquals(200, $res['headers']['status-code']); - $fetched = $res['body']['data']['tablesListRows']; + $fetched = $res['body']['data']['gridsListRows']; $this->assertEquals(11, $fetched['total']); // Step 3: Upsert row with new permissions using `tablesUpsertRow` @@ -1693,7 +1695,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $updated = $res['body']['data']['tablesUpsertRow']; + $updated = $res['body']['data']['gridsUpsertRow']; $this->assertEquals('Row #10 Patched', json_decode($updated['data'], true)['name']); $this->assertEquals($data['databaseId'], $updated['_databaseId']); $this->assertEquals($data['tableId'], $updated['_tableId']); @@ -1724,7 +1726,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertArrayNotHasKey('errors', $res['body']); - $deleted = $res['body']['data']['tablesDeleteRows']['rows']; + $deleted = $res['body']['data']['gridsDeleteRows']['rows']; $this->assertIsArray($deleted); $this->assertCount(11, $deleted); @@ -1740,7 +1742,7 @@ class DatabaseServerTest extends Scope $res = $this->client->call(Client::METHOD_POST, '/graphql', $headers, $payload); $this->assertEquals(200, $res['headers']['status-code']); - $this->assertEquals(0, $res['body']['data']['tablesListRows']['total']); + $this->assertEquals(0, $res['body']['data']['gridsListRows']['total']); return $data; } From ba79c5d9df3099d0b3275a4c7e22bf03877bf92e Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 16:31:10 +0530 Subject: [PATCH 06/24] update: docs. --- .../references/grids/create-boolean-column.md | 1 + docs/references/grids/create-database.md | 1 + .../grids/create-datetime-column.md | 1 + docs/references/grids/create-email-column.md | 1 + docs/references/grids/create-enum-column.md | 1 + docs/references/grids/create-float-column.md | 1 + docs/references/grids/create-index.md | 2 ++ .../references/grids/create-integer-column.md | 1 + docs/references/grids/create-ip-column.md | 1 + .../grids/create-relationship-column.md | 1 + docs/references/grids/create-row.md | 1 + docs/references/grids/create-rows.md | 1 + docs/references/grids/create-string-column.md | 1 + docs/references/grids/create-table.md | 1 + docs/references/grids/create-url-column.md | 1 + docs/references/grids/decrement-row-column.md | 1 + docs/references/grids/delete-column.md | 1 + docs/references/grids/delete-database.md | 1 + docs/references/grids/delete-index.md | 1 + docs/references/grids/delete-row.md | 1 + docs/references/grids/delete-rows.md | 1 + docs/references/grids/delete-table.md | 1 + docs/references/grids/get-column.md | 1 + docs/references/grids/get-database-usage.md | 1 + docs/references/grids/get-database.md | 1 + docs/references/grids/get-index.md | 1 + docs/references/grids/get-logs.md | 1 + docs/references/grids/get-row-logs.md | 1 + docs/references/grids/get-row.md | 1 + docs/references/grids/get-table-logs.md | 1 + docs/references/grids/get-table-usage.md | 1 + docs/references/grids/get-table.md | 1 + docs/references/grids/increment-row-column.md | 1 + docs/references/grids/list-columns.md | 1 + docs/references/grids/list-database-usage.md | 1 + docs/references/grids/list-databases.md | 1 + docs/references/grids/list-indexes.md | 1 + docs/references/grids/list-rows.md | 1 + docs/references/grids/list-tables.md | 1 + .../references/grids/update-boolean-column.md | 1 + docs/references/grids/update-database.md | 1 + .../grids/update-datetime-column.md | 1 + docs/references/grids/update-email-column.md | 1 + docs/references/grids/update-enum-column.md | 1 + docs/references/grids/update-float-column.md | 1 + .../references/grids/update-integer-column.md | 1 + docs/references/grids/update-ip-column.md | 1 + .../grids/update-relationship-column.md | 1 + docs/references/grids/update-row.md | 1 + docs/references/grids/update-rows.md | 1 + docs/references/grids/update-string-column.md | 1 + docs/references/grids/update-table.md | 1 + docs/references/grids/update-url-column.md | 1 + docs/references/grids/upsert-row.md | 1 + docs/references/grids/upsert-rows.md | 1 + .../Grids/Tables/Columns/Boolean/Create.php | 2 +- .../Grids/Tables/Columns/Boolean/Update.php | 2 +- .../Grids/Tables/Columns/Datetime/Create.php | 2 +- .../Grids/Tables/Columns/Datetime/Update.php | 2 +- .../Http/Grids/Tables/Columns/Delete.php | 2 +- .../Grids/Tables/Columns/Email/Create.php | 2 +- .../Grids/Tables/Columns/Email/Update.php | 2 +- .../Http/Grids/Tables/Columns/Enum/Create.php | 2 +- .../Http/Grids/Tables/Columns/Enum/Update.php | 2 +- .../Grids/Tables/Columns/Float/Create.php | 2 +- .../Grids/Tables/Columns/Float/Update.php | 2 +- .../Http/Grids/Tables/Columns/Get.php | 2 +- .../Http/Grids/Tables/Columns/IP/Create.php | 2 +- .../Http/Grids/Tables/Columns/IP/Update.php | 2 +- .../Grids/Tables/Columns/Integer/Create.php | 2 +- .../Grids/Tables/Columns/Integer/Update.php | 2 +- .../Tables/Columns/Relationship/Create.php | 2 +- .../Tables/Columns/Relationship/Update.php | 2 +- .../Grids/Tables/Columns/String/Create.php | 2 +- .../Grids/Tables/Columns/String/Update.php | 2 +- .../Http/Grids/Tables/Columns/URL/Create.php | 2 +- .../Http/Grids/Tables/Columns/URL/Update.php | 2 +- .../Http/Grids/Tables/Columns/XList.php | 2 +- .../Databases/Http/Grids/Tables/Create.php | 2 +- .../Databases/Http/Grids/Tables/Delete.php | 2 +- .../Databases/Http/Grids/Tables/Get.php | 2 +- .../Http/Grids/Tables/Indexes/Create.php | 2 +- .../Http/Grids/Tables/Indexes/Delete.php | 2 +- .../Http/Grids/Tables/Indexes/Get.php | 2 +- .../Http/Grids/Tables/Indexes/XList.php | 2 +- .../Http/Grids/Tables/Logs/XList.php | 2 +- .../Http/Grids/Tables/Rows/Bulk/Delete.php | 2 +- .../Http/Grids/Tables/Rows/Bulk/Update.php | 2 +- .../Http/Grids/Tables/Rows/Bulk/Upsert.php | 2 +- .../Grids/Tables/Rows/Column/Decrement.php | 2 +- .../Grids/Tables/Rows/Column/Increment.php | 2 +- .../Http/Grids/Tables/Rows/Create.php | 4 +-- .../Http/Grids/Tables/Rows/Delete.php | 2 +- .../Databases/Http/Grids/Tables/Rows/Get.php | 2 +- .../Http/Grids/Tables/Rows/Logs/XList.php | 2 +- .../Http/Grids/Tables/Rows/Update.php | 2 +- .../Http/Grids/Tables/Rows/Upsert.php | 2 +- .../Http/Grids/Tables/Rows/XList.php | 2 +- .../Databases/Http/Grids/Tables/Update.php | 2 +- .../Databases/Http/Grids/Tables/Usage/Get.php | 2 +- .../Databases/Http/Grids/Tables/XList.php | 2 +- .../Platform/Modules/Databases/SDKMethod.php | 32 ++++++++++++------- 102 files changed, 124 insertions(+), 58 deletions(-) create mode 100644 docs/references/grids/create-boolean-column.md create mode 100644 docs/references/grids/create-database.md create mode 100644 docs/references/grids/create-datetime-column.md create mode 100644 docs/references/grids/create-email-column.md create mode 100644 docs/references/grids/create-enum-column.md create mode 100644 docs/references/grids/create-float-column.md create mode 100644 docs/references/grids/create-index.md create mode 100644 docs/references/grids/create-integer-column.md create mode 100644 docs/references/grids/create-ip-column.md create mode 100644 docs/references/grids/create-relationship-column.md create mode 100644 docs/references/grids/create-row.md create mode 100644 docs/references/grids/create-rows.md create mode 100644 docs/references/grids/create-string-column.md create mode 100644 docs/references/grids/create-table.md create mode 100644 docs/references/grids/create-url-column.md create mode 100644 docs/references/grids/decrement-row-column.md create mode 100644 docs/references/grids/delete-column.md create mode 100644 docs/references/grids/delete-database.md create mode 100644 docs/references/grids/delete-index.md create mode 100644 docs/references/grids/delete-row.md create mode 100644 docs/references/grids/delete-rows.md create mode 100644 docs/references/grids/delete-table.md create mode 100644 docs/references/grids/get-column.md create mode 100644 docs/references/grids/get-database-usage.md create mode 100644 docs/references/grids/get-database.md create mode 100644 docs/references/grids/get-index.md create mode 100644 docs/references/grids/get-logs.md create mode 100644 docs/references/grids/get-row-logs.md create mode 100644 docs/references/grids/get-row.md create mode 100644 docs/references/grids/get-table-logs.md create mode 100644 docs/references/grids/get-table-usage.md create mode 100644 docs/references/grids/get-table.md create mode 100644 docs/references/grids/increment-row-column.md create mode 100644 docs/references/grids/list-columns.md create mode 100644 docs/references/grids/list-database-usage.md create mode 100644 docs/references/grids/list-databases.md create mode 100644 docs/references/grids/list-indexes.md create mode 100644 docs/references/grids/list-rows.md create mode 100644 docs/references/grids/list-tables.md create mode 100644 docs/references/grids/update-boolean-column.md create mode 100644 docs/references/grids/update-database.md create mode 100644 docs/references/grids/update-datetime-column.md create mode 100644 docs/references/grids/update-email-column.md create mode 100644 docs/references/grids/update-enum-column.md create mode 100644 docs/references/grids/update-float-column.md create mode 100644 docs/references/grids/update-integer-column.md create mode 100644 docs/references/grids/update-ip-column.md create mode 100644 docs/references/grids/update-relationship-column.md create mode 100644 docs/references/grids/update-row.md create mode 100644 docs/references/grids/update-rows.md create mode 100644 docs/references/grids/update-string-column.md create mode 100644 docs/references/grids/update-table.md create mode 100644 docs/references/grids/update-url-column.md create mode 100644 docs/references/grids/upsert-row.md create mode 100644 docs/references/grids/upsert-rows.md diff --git a/docs/references/grids/create-boolean-column.md b/docs/references/grids/create-boolean-column.md new file mode 100644 index 0000000000..c528ede1a2 --- /dev/null +++ b/docs/references/grids/create-boolean-column.md @@ -0,0 +1 @@ +Create a boolean column. diff --git a/docs/references/grids/create-database.md b/docs/references/grids/create-database.md new file mode 100644 index 0000000000..b608485341 --- /dev/null +++ b/docs/references/grids/create-database.md @@ -0,0 +1 @@ +Create a new Database. diff --git a/docs/references/grids/create-datetime-column.md b/docs/references/grids/create-datetime-column.md new file mode 100644 index 0000000000..ad92750639 --- /dev/null +++ b/docs/references/grids/create-datetime-column.md @@ -0,0 +1 @@ +Create a date time column according to the ISO 8601 standard. \ No newline at end of file diff --git a/docs/references/grids/create-email-column.md b/docs/references/grids/create-email-column.md new file mode 100644 index 0000000000..91aa5c9326 --- /dev/null +++ b/docs/references/grids/create-email-column.md @@ -0,0 +1 @@ +Create an email column. diff --git a/docs/references/grids/create-enum-column.md b/docs/references/grids/create-enum-column.md new file mode 100644 index 0000000000..b9e5a3ebe4 --- /dev/null +++ b/docs/references/grids/create-enum-column.md @@ -0,0 +1 @@ +Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column. \ No newline at end of file diff --git a/docs/references/grids/create-float-column.md b/docs/references/grids/create-float-column.md new file mode 100644 index 0000000000..0b133eef28 --- /dev/null +++ b/docs/references/grids/create-float-column.md @@ -0,0 +1 @@ +Create a float column. Optionally, minimum and maximum values can be provided. diff --git a/docs/references/grids/create-index.md b/docs/references/grids/create-index.md new file mode 100644 index 0000000000..6ce853a217 --- /dev/null +++ b/docs/references/grids/create-index.md @@ -0,0 +1,2 @@ +Creates an index on the columns listed. Your index should include all the columns you will query in a single request. +Columns can be `key`, `fulltext`, and `unique`. \ No newline at end of file diff --git a/docs/references/grids/create-integer-column.md b/docs/references/grids/create-integer-column.md new file mode 100644 index 0000000000..5f51b3965a --- /dev/null +++ b/docs/references/grids/create-integer-column.md @@ -0,0 +1 @@ +Create an integer column. Optionally, minimum and maximum values can be provided. diff --git a/docs/references/grids/create-ip-column.md b/docs/references/grids/create-ip-column.md new file mode 100644 index 0000000000..012431dbae --- /dev/null +++ b/docs/references/grids/create-ip-column.md @@ -0,0 +1 @@ +Create IP address column. diff --git a/docs/references/grids/create-relationship-column.md b/docs/references/grids/create-relationship-column.md new file mode 100644 index 0000000000..d87d8bccf8 --- /dev/null +++ b/docs/references/grids/create-relationship-column.md @@ -0,0 +1 @@ +Create relationship column. [Learn more about relationship columns](https://appwrite.io/docs/databases-relationships#relationship-columns). diff --git a/docs/references/grids/create-row.md b/docs/references/grids/create-row.md new file mode 100644 index 0000000000..a07abfa04d --- /dev/null +++ b/docs/references/grids/create-row.md @@ -0,0 +1 @@ +Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/grids/create-rows.md b/docs/references/grids/create-rows.md new file mode 100644 index 0000000000..cea67913b4 --- /dev/null +++ b/docs/references/grids/create-rows.md @@ -0,0 +1 @@ +Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/grids/create-string-column.md b/docs/references/grids/create-string-column.md new file mode 100644 index 0000000000..7395e26a11 --- /dev/null +++ b/docs/references/grids/create-string-column.md @@ -0,0 +1 @@ +Create a string column. diff --git a/docs/references/grids/create-table.md b/docs/references/grids/create-table.md new file mode 100644 index 0000000000..263638ea00 --- /dev/null +++ b/docs/references/grids/create-table.md @@ -0,0 +1 @@ +Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/grids/create-url-column.md b/docs/references/grids/create-url-column.md new file mode 100644 index 0000000000..e731d758ce --- /dev/null +++ b/docs/references/grids/create-url-column.md @@ -0,0 +1 @@ +Create a URL column. diff --git a/docs/references/grids/decrement-row-column.md b/docs/references/grids/decrement-row-column.md new file mode 100644 index 0000000000..b7b32d6148 --- /dev/null +++ b/docs/references/grids/decrement-row-column.md @@ -0,0 +1 @@ +Decrement a specific column of a row by a given value. \ No newline at end of file diff --git a/docs/references/grids/delete-column.md b/docs/references/grids/delete-column.md new file mode 100644 index 0000000000..efba8b1d77 --- /dev/null +++ b/docs/references/grids/delete-column.md @@ -0,0 +1 @@ +Deletes a column. \ No newline at end of file diff --git a/docs/references/grids/delete-database.md b/docs/references/grids/delete-database.md new file mode 100644 index 0000000000..605fa290d3 --- /dev/null +++ b/docs/references/grids/delete-database.md @@ -0,0 +1 @@ +Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database. \ No newline at end of file diff --git a/docs/references/grids/delete-index.md b/docs/references/grids/delete-index.md new file mode 100644 index 0000000000..c5b8f49e5f --- /dev/null +++ b/docs/references/grids/delete-index.md @@ -0,0 +1 @@ +Delete an index. \ No newline at end of file diff --git a/docs/references/grids/delete-row.md b/docs/references/grids/delete-row.md new file mode 100644 index 0000000000..c0b9dfbdaf --- /dev/null +++ b/docs/references/grids/delete-row.md @@ -0,0 +1 @@ +Delete a row by its unique ID. \ No newline at end of file diff --git a/docs/references/grids/delete-rows.md b/docs/references/grids/delete-rows.md new file mode 100644 index 0000000000..9d5189ce76 --- /dev/null +++ b/docs/references/grids/delete-rows.md @@ -0,0 +1 @@ +Bulk delete rows using queries, if no queries are passed then all rows are deleted. \ No newline at end of file diff --git a/docs/references/grids/delete-table.md b/docs/references/grids/delete-table.md new file mode 100644 index 0000000000..ad74ca3233 --- /dev/null +++ b/docs/references/grids/delete-table.md @@ -0,0 +1 @@ +Delete a table by its unique ID. Only users with write permissions have access to delete this resource. \ No newline at end of file diff --git a/docs/references/grids/get-column.md b/docs/references/grids/get-column.md new file mode 100644 index 0000000000..cd8b8797a9 --- /dev/null +++ b/docs/references/grids/get-column.md @@ -0,0 +1 @@ +Get column by ID. \ No newline at end of file diff --git a/docs/references/grids/get-database-usage.md b/docs/references/grids/get-database-usage.md new file mode 100644 index 0000000000..d9298f4814 --- /dev/null +++ b/docs/references/grids/get-database-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/grids/get-database.md b/docs/references/grids/get-database.md new file mode 100644 index 0000000000..24183f6f6b --- /dev/null +++ b/docs/references/grids/get-database.md @@ -0,0 +1 @@ +Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata. \ No newline at end of file diff --git a/docs/references/grids/get-index.md b/docs/references/grids/get-index.md new file mode 100644 index 0000000000..cdea5b4f27 --- /dev/null +++ b/docs/references/grids/get-index.md @@ -0,0 +1 @@ +Get index by ID. \ No newline at end of file diff --git a/docs/references/grids/get-logs.md b/docs/references/grids/get-logs.md new file mode 100644 index 0000000000..8e49da4603 --- /dev/null +++ b/docs/references/grids/get-logs.md @@ -0,0 +1 @@ +Get the database activity logs list by its unique ID. \ No newline at end of file diff --git a/docs/references/grids/get-row-logs.md b/docs/references/grids/get-row-logs.md new file mode 100644 index 0000000000..1d494ed53e --- /dev/null +++ b/docs/references/grids/get-row-logs.md @@ -0,0 +1 @@ +Get the row activity logs list by its unique ID. \ No newline at end of file diff --git a/docs/references/grids/get-row.md b/docs/references/grids/get-row.md new file mode 100644 index 0000000000..6a30fa472c --- /dev/null +++ b/docs/references/grids/get-row.md @@ -0,0 +1 @@ +Get a row by its unique ID. This endpoint response returns a JSON object with the row data. \ No newline at end of file diff --git a/docs/references/grids/get-table-logs.md b/docs/references/grids/get-table-logs.md new file mode 100644 index 0000000000..8b00c7f317 --- /dev/null +++ b/docs/references/grids/get-table-logs.md @@ -0,0 +1 @@ +Get the table activity logs list by its unique ID. \ No newline at end of file diff --git a/docs/references/grids/get-table-usage.md b/docs/references/grids/get-table-usage.md new file mode 100644 index 0000000000..08e28af0a6 --- /dev/null +++ b/docs/references/grids/get-table-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/grids/get-table.md b/docs/references/grids/get-table.md new file mode 100644 index 0000000000..67b8428431 --- /dev/null +++ b/docs/references/grids/get-table.md @@ -0,0 +1 @@ +Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata. \ No newline at end of file diff --git a/docs/references/grids/increment-row-column.md b/docs/references/grids/increment-row-column.md new file mode 100644 index 0000000000..7a19b3fbc7 --- /dev/null +++ b/docs/references/grids/increment-row-column.md @@ -0,0 +1 @@ +Increment a specific column of a row by a given value. \ No newline at end of file diff --git a/docs/references/grids/list-columns.md b/docs/references/grids/list-columns.md new file mode 100644 index 0000000000..aacf373082 --- /dev/null +++ b/docs/references/grids/list-columns.md @@ -0,0 +1 @@ +List columns in the table. \ No newline at end of file diff --git a/docs/references/grids/list-database-usage.md b/docs/references/grids/list-database-usage.md new file mode 100644 index 0000000000..2bf5ed81e1 --- /dev/null +++ b/docs/references/grids/list-database-usage.md @@ -0,0 +1 @@ +List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/grids/list-databases.md b/docs/references/grids/list-databases.md new file mode 100644 index 0000000000..d93fb9d7a8 --- /dev/null +++ b/docs/references/grids/list-databases.md @@ -0,0 +1 @@ +Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results. \ No newline at end of file diff --git a/docs/references/grids/list-indexes.md b/docs/references/grids/list-indexes.md new file mode 100644 index 0000000000..a0c7b2f861 --- /dev/null +++ b/docs/references/grids/list-indexes.md @@ -0,0 +1 @@ +List indexes in the table. \ No newline at end of file diff --git a/docs/references/grids/list-rows.md b/docs/references/grids/list-rows.md new file mode 100644 index 0000000000..68185fc192 --- /dev/null +++ b/docs/references/grids/list-rows.md @@ -0,0 +1 @@ +Get a list of all the user's rows in a given table. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/grids/list-tables.md b/docs/references/grids/list-tables.md new file mode 100644 index 0000000000..e14795eeac --- /dev/null +++ b/docs/references/grids/list-tables.md @@ -0,0 +1 @@ +Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results. \ No newline at end of file diff --git a/docs/references/grids/update-boolean-column.md b/docs/references/grids/update-boolean-column.md new file mode 100644 index 0000000000..f5167d97b6 --- /dev/null +++ b/docs/references/grids/update-boolean-column.md @@ -0,0 +1 @@ +Update a boolean column. Changing the `default` value will not update already existing rows. \ No newline at end of file diff --git a/docs/references/grids/update-database.md b/docs/references/grids/update-database.md new file mode 100644 index 0000000000..4e99bf2e07 --- /dev/null +++ b/docs/references/grids/update-database.md @@ -0,0 +1 @@ +Update a database by its unique ID. \ No newline at end of file diff --git a/docs/references/grids/update-datetime-column.md b/docs/references/grids/update-datetime-column.md new file mode 100644 index 0000000000..e793b41921 --- /dev/null +++ b/docs/references/grids/update-datetime-column.md @@ -0,0 +1 @@ +Update a date time column. Changing the `default` value will not update already existing rows. \ No newline at end of file diff --git a/docs/references/grids/update-email-column.md b/docs/references/grids/update-email-column.md new file mode 100644 index 0000000000..0db17e29bd --- /dev/null +++ b/docs/references/grids/update-email-column.md @@ -0,0 +1 @@ +Update an email column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/grids/update-enum-column.md b/docs/references/grids/update-enum-column.md new file mode 100644 index 0000000000..df172cbc38 --- /dev/null +++ b/docs/references/grids/update-enum-column.md @@ -0,0 +1 @@ +Update an enum column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/grids/update-float-column.md b/docs/references/grids/update-float-column.md new file mode 100644 index 0000000000..4e0eb9ddb2 --- /dev/null +++ b/docs/references/grids/update-float-column.md @@ -0,0 +1 @@ +Update a float column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/grids/update-integer-column.md b/docs/references/grids/update-integer-column.md new file mode 100644 index 0000000000..0f2a07ea6e --- /dev/null +++ b/docs/references/grids/update-integer-column.md @@ -0,0 +1 @@ +Update an integer column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/grids/update-ip-column.md b/docs/references/grids/update-ip-column.md new file mode 100644 index 0000000000..115c87a7e1 --- /dev/null +++ b/docs/references/grids/update-ip-column.md @@ -0,0 +1 @@ +Update an ip column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/grids/update-relationship-column.md b/docs/references/grids/update-relationship-column.md new file mode 100644 index 0000000000..dfdcd8ae5a --- /dev/null +++ b/docs/references/grids/update-relationship-column.md @@ -0,0 +1 @@ +Update relationship column. [Learn more about relationship columns](https://appwrite.io/docs/databases-relationships#relationship-columns). diff --git a/docs/references/grids/update-row.md b/docs/references/grids/update-row.md new file mode 100644 index 0000000000..b532ea411d --- /dev/null +++ b/docs/references/grids/update-row.md @@ -0,0 +1 @@ +Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated. \ No newline at end of file diff --git a/docs/references/grids/update-rows.md b/docs/references/grids/update-rows.md new file mode 100644 index 0000000000..334b91aec1 --- /dev/null +++ b/docs/references/grids/update-rows.md @@ -0,0 +1 @@ +Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated. \ No newline at end of file diff --git a/docs/references/grids/update-string-column.md b/docs/references/grids/update-string-column.md new file mode 100644 index 0000000000..617214b4c9 --- /dev/null +++ b/docs/references/grids/update-string-column.md @@ -0,0 +1 @@ +Update a string column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/grids/update-table.md b/docs/references/grids/update-table.md new file mode 100644 index 0000000000..bbd676d3b8 --- /dev/null +++ b/docs/references/grids/update-table.md @@ -0,0 +1 @@ +Update a table by its unique ID. \ No newline at end of file diff --git a/docs/references/grids/update-url-column.md b/docs/references/grids/update-url-column.md new file mode 100644 index 0000000000..6080d71509 --- /dev/null +++ b/docs/references/grids/update-url-column.md @@ -0,0 +1 @@ +Update an url column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/grids/upsert-row.md b/docs/references/grids/upsert-row.md new file mode 100644 index 0000000000..1132afd53c --- /dev/null +++ b/docs/references/grids/upsert-row.md @@ -0,0 +1 @@ +Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/grids/upsert-rows.md b/docs/references/grids/upsert-rows.md new file mode 100644 index 0000000000..21aa3da1ef --- /dev/null +++ b/docs/references/grids/upsert-rows.md @@ -0,0 +1 @@ +Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Create.php index 214afbe546..baa4eaa146 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Create.php @@ -40,7 +40,7 @@ class Create extends BooleanCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-boolean-column.md', + description: '/docs/references/grids/create-boolean-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Update.php index 3353005c59..2ea5314163 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Boolean/Update.php @@ -42,7 +42,7 @@ class Update extends BooleanUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-boolean-column.md', + description: '/docs/references/grids/update-boolean-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Create.php index bcc5967586..501cc044d4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Create.php @@ -42,7 +42,7 @@ class Create extends DatetimeCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-datetime-column.md', + description: '/docs/references/grids/create-datetime-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Update.php index bd92a0f14d..34384e4d35 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Datetime/Update.php @@ -44,7 +44,7 @@ class Update extends DatetimeUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-datetime-column.md', + description: '/docs/references/grids/update-datetime-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Delete.php index be764d58a8..d0934b799f 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Delete.php @@ -41,7 +41,7 @@ class Delete extends AttributesDelete namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/delete-column.md', + description: '/docs/references/grids/delete-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Create.php index a5baa6fc89..841d18016f 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Create.php @@ -41,7 +41,7 @@ class Create extends EmailCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-email-column.md', + description: '/docs/references/grids/create-email-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Update.php index 2e7dec9e63..f162a18494 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Email/Update.php @@ -43,7 +43,7 @@ class Update extends EmailUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-email-column.md', + description: '/docs/references/grids/update-email-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Create.php index e420b340d2..430d3f0220 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Create.php @@ -43,7 +43,7 @@ class Create extends EnumCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-enum-column.md', + description: '/docs/references/grids/create-enum-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Update.php index b9337eb2b0..6562742937 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Enum/Update.php @@ -45,7 +45,7 @@ class Update extends EnumUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-enum-column.md', + description: '/docs/references/grids/update-enum-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Create.php index e0d9a41930..4dd9c53950 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Create.php @@ -41,7 +41,7 @@ class Create extends FloatCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-float-column.md', + description: '/docs/references/grids/create-float-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Update.php index 4cdc2ff319..3130e8ba2e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Float/Update.php @@ -43,7 +43,7 @@ class Update extends FloatUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-float-column.md', + description: '/docs/references/grids/update-float-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Get.php index 5151c69d42..295a4ff530 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Get.php @@ -47,7 +47,7 @@ class Get extends AttributesGet namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/get-column.md', + description: '/docs/references/grids/get-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Create.php index cfba713edc..beae222ceb 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Create.php @@ -41,7 +41,7 @@ class Create extends IPCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-ip-column.md', + description: '/docs/references/grids/create-ip-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Update.php index f9f31c8336..c187c06801 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/IP/Update.php @@ -43,7 +43,7 @@ class Update extends IPUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-ip-column.md', + description: '/docs/references/grids/update-ip-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Create.php index 22ea591e82..f97f4079ee 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Create.php @@ -41,7 +41,7 @@ class Create extends IntegerCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-integer-column.md', + description: '/docs/references/grids/create-integer-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Update.php index e5224b070a..ad4832ed10 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Integer/Update.php @@ -43,7 +43,7 @@ class Update extends IntegerUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-integer-column.md', + description: '/docs/references/grids/update-integer-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Create.php index c89fcc4650..c340d1c574 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Create.php @@ -42,7 +42,7 @@ class Create extends RelationshipCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-relationship-column.md', + description: '/docs/references/grids/create-relationship-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Update.php index 6b147c1db1..0811025ae3 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/Relationship/Update.php @@ -42,7 +42,7 @@ class Update extends RelationshipUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-relationship-column.md', + description: '/docs/references/grids/update-relationship-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Create.php index 89565e3425..4ae844fd84 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Create.php @@ -43,7 +43,7 @@ class Create extends StringCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-string-column.md', + description: '/docs/references/grids/create-string-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Update.php index b4e457cb89..ed54ae9139 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/String/Update.php @@ -45,7 +45,7 @@ class Update extends StringUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-string-column.md', + description: '/docs/references/grids/update-string-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Create.php index 1bff31b06f..7ae3214cb9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Create.php @@ -41,7 +41,7 @@ class Create extends URLCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-url-column.md', + description: '/docs/references/grids/create-url-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Update.php index 30810446da..17570a9842 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/URL/Update.php @@ -43,7 +43,7 @@ class Update extends URLUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-url-column.md', + description: '/docs/references/grids/update-url-column.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php index 719418cc49..0aec9998bd 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php @@ -36,7 +36,7 @@ class XList extends AttributesXList namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/list-attributes.md', + description: '/docs/references/grids/list-attributes.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Create.php index ac10781653..15aec531e7 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Create.php @@ -43,7 +43,7 @@ class Create extends CollectionCreate namespace: $this->getSdkNamespace(), group: null, name: self::getName(), - description: '/docs/references/databases/create-table.md', + description: '/docs/references/grids/create-table.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Delete.php index 1da68e63bc..cb2923f572 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Delete.php @@ -39,7 +39,7 @@ class Delete extends CollectionDelete namespace: $this->getSdkNamespace(), group: null, name: self::getName(), - description: '/docs/references/databases/delete-table.md', + description: '/docs/references/grids/delete-table.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Get.php index a161a544db..3ac36d27ca 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Get.php @@ -36,7 +36,7 @@ class Get extends CollectionGet namespace: $this->getSdkNamespace(), group: null, name: self::getName(), - description: '/docs/references/databases/get-table.md', + description: '/docs/references/grids/get-table.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Create.php index e280cba295..3d9c8709a6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Create.php @@ -45,7 +45,7 @@ class Create extends IndexCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: 'createIndex', // getName needs to be different from parent action to avoid conflict in path name - description: '/docs/references/databases/create-index.md', + description: '/docs/references/grids/create-index.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Delete.php index 21185a21b6..a2c23ea60b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Delete.php @@ -44,7 +44,7 @@ class Delete extends IndexDelete namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: 'deleteIndex', // getName needs to be different from parent action to avoid conflict in path name - description: '/docs/references/databases/delete-index.md', + description: '/docs/references/grids/delete-index.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Get.php index 66d57cc839..f2c7cbcb94 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/Get.php @@ -37,7 +37,7 @@ class Get extends IndexGet namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: 'getIndex', // getName needs to be different from parent action to avoid conflict in path name - description: '/docs/references/databases/get-index.md', + description: '/docs/references/grids/get-index.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/XList.php index 85b913c331..4ec7da0a41 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Indexes/XList.php @@ -37,7 +37,7 @@ class XList extends IndexXList namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: 'listIndexes', // getName needs to be different from parent action to avoid conflict in path name - description: '/docs/references/databases/list-indexes.md', + description: '/docs/references/grids/list-indexes.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Logs/XList.php index acac561c80..1c24a23175 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Logs/XList.php @@ -33,7 +33,7 @@ class XList extends CollectionLogXList namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/get-table-logs.md', + description: '/docs/references/grids/get-table-logs.md', auth: [AuthType::ADMIN], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Delete.php index 87de8e0e49..4837d30e46 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Delete.php @@ -43,7 +43,7 @@ class Delete extends DocumentsDelete namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/delete-rows.md', + description: '/docs/references/grids/delete-rows.md', auth: [AuthType::ADMIN, AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Update.php index c28d49f934..c72d82d65d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Update.php @@ -44,7 +44,7 @@ class Update extends DocumentsUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-rows.md', + description: '/docs/references/grids/update-rows.md', auth: [AuthType::ADMIN, AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Upsert.php index db6c7b4140..b85ee87782 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Bulk/Upsert.php @@ -44,7 +44,7 @@ class Upsert extends DocumentsUpsert namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/upsert-rows.md', + description: '/docs/references/grids/upsert-rows.md', auth: [AuthType::ADMIN, AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Decrement.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Decrement.php index f265cc663b..fd642de09e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Decrement.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Decrement.php @@ -44,7 +44,7 @@ class Decrement extends DecrementDocumentAttribute namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/decrement-row-column.md', + description: '/docs/references/grids/decrement-row-column.md', auth: [AuthType::ADMIN, AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Increment.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Increment.php index c343260871..b3af9bb1b9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Increment.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Column/Increment.php @@ -44,7 +44,7 @@ class Increment extends IncrementDocumentAttribute namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/increment-row-column.md', + description: '/docs/references/grids/increment-row-column.md', auth: [AuthType::ADMIN, AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Create.php index bd616e40f1..56933b882c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Create.php @@ -53,7 +53,7 @@ class Create extends DocumentCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/create-row.md', + description: '/docs/references/grids/create-row.md', auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], responses: [ new SDKResponse( @@ -74,7 +74,7 @@ class Create extends DocumentCreate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: $this->getBulkActionName(self::getName()), - description: '/docs/references/databases/create-rows.md', + description: '/docs/references/grids/create-rows.md', auth: [AuthType::ADMIN, AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Delete.php index a2ce5fcecd..b1f93164df 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Delete.php @@ -48,7 +48,7 @@ class Delete extends DocumentDelete namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/delete-row.md', + description: '/docs/references/grids/delete-row.md', auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Get.php index b628f0e54f..1015e01819 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Get.php @@ -38,7 +38,7 @@ class Get extends DocumentGet namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/get-row.md', + description: '/docs/references/grids/get-row.md', auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Logs/XList.php index c6fa34637e..4522b3005f 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Logs/XList.php @@ -33,7 +33,7 @@ class XList extends DocumentLogXList namespace: $this->getSdkNamespace(), group: 'logs', name: self::getName(), - description: '/docs/references/databases/get-row-logs.md', + description: '/docs/references/grids/get-row-logs.md', auth: [AuthType::ADMIN], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Update.php index e7b18cfd20..f9b1ce693e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Update.php @@ -45,7 +45,7 @@ class Update extends DocumentUpdate namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/update-row.md', + description: '/docs/references/grids/update-row.md', auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Upsert.php index 5e5683e84d..145217e03b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/Upsert.php @@ -46,7 +46,7 @@ class Upsert extends DocumentUpsert namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/upsert-row.md', + description: '/docs/references/grids/upsert-row.md', auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/XList.php index 16a0c139da..d2589e4b63 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Rows/XList.php @@ -38,7 +38,7 @@ class XList extends DocumentXList namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/databases/list-rows.md', + description: '/docs/references/grids/list-rows.md', auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Update.php index ba5f2ad3ee..bbc82aa52d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Update.php @@ -42,7 +42,7 @@ class Update extends CollectionUpdate namespace: $this->getSdkNamespace(), group: null, name: self::getName(), - description: '/docs/references/databases/update-table.md', + description: '/docs/references/grids/update-table.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Usage/Get.php index 7246070e1e..015c2c2592 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Usage/Get.php @@ -37,7 +37,7 @@ class Get extends CollectionUsageGet namespace: $this->getSdkNamespace(), group: null, name: self::getName(), - description: '/docs/references/databases/get-table-usage.md', + description: '/docs/references/grids/get-table-usage.md', auth: [AuthType::ADMIN], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/XList.php index b6dd9f7fb5..fd329ea6aa 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/XList.php @@ -38,7 +38,7 @@ class XList extends CollectionXList namespace: $this->getSdkNamespace(), group: null, name: self::getName(), - description: '/docs/references/databases/list-tables.md', + description: '/docs/references/grids/list-tables.md', auth: [AuthType::KEY], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/SDKMethod.php b/src/Appwrite/Platform/Modules/Databases/SDKMethod.php index 62825a0b08..e3f12776c2 100644 --- a/src/Appwrite/Platform/Modules/Databases/SDKMethod.php +++ b/src/Appwrite/Platform/Modules/Databases/SDKMethod.php @@ -7,6 +7,17 @@ use Appwrite\SDK\Method; class SDKMethod { + private const array SDK_INFO_MAP = [ + 'create' => ['name' => 'createDatabase', 'docs' => 'create-database'], + 'list' => ['name' => 'listDatabases', 'docs' => 'list-databases'], + 'get' => ['name' => 'getDatabase', 'docs' => 'get-database'], + 'update' => ['name' => 'updateDatabase', 'docs' => 'update-database'], + 'delete' => ['name' => 'deleteDatabase', 'docs' => 'delete-database'], + 'listLogs' => ['name' => 'listDatabaseLogs', 'docs' => 'list-database-logs'], + 'listUsage' => ['name' => 'listDatabaseUsage', 'docs' => 'list-database-usage'], + 'getDatabaseUsage' => ['name' => 'getDatabaseUsage', 'docs' => 'get-database-usage'], + ]; + /** * @return Method[] */ @@ -43,20 +54,19 @@ class SDKMethod private static function transformNameForGrids(string $original): string { - return match ($original) { - 'create' => 'createDatabase', - 'list' => 'listDatabases', - 'get' => 'getDatabase', - 'update' => 'updateDatabase', - 'delete' => 'deleteDatabase', - 'listLogs' => 'listDatabaseLogs', - 'listUsage' => 'listDatabaseUsage', - default => $original /* `getDatabaseUsage` is already correct! */ - }; + return self::SDK_INFO_MAP[$original]['name'] ?? $original; } private static function transformDocsPathForGrids(string $original): string { - return str_replace('/databases/', '/grids/', $original); + $path = str_replace('/databases/', '/grids/', $original); + + foreach (self::SDK_INFO_MAP as $from => $mapped) { + if (str_ends_with($path, "/$from.md")) { + return substr($path, 0, -strlen("$from.md")) . $mapped['docs'] . '.md'; + } + } + + return $path; } } From 5b1a750dd102909f39d393a9b2c8ff4d32811828 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 16:40:36 +0530 Subject: [PATCH 07/24] regen: specs and fix file name. --- app/config/specs/open-api3-1.8.x-client.json | 16 +- app/config/specs/open-api3-1.8.x-console.json | 144 ++++++++++-------- app/config/specs/open-api3-1.8.x-server.json | 126 ++++++++------- app/config/specs/open-api3-latest-client.json | 12 +- .../specs/open-api3-latest-console.json | 114 +++++++------- app/config/specs/open-api3-latest-server.json | 102 ++++++------- app/config/specs/swagger2-1.8.x-client.json | 16 +- app/config/specs/swagger2-1.8.x-console.json | 144 ++++++++++-------- app/config/specs/swagger2-1.8.x-server.json | 126 ++++++++------- app/config/specs/swagger2-latest-client.json | 12 +- app/config/specs/swagger2-latest-console.json | 114 +++++++------- app/config/specs/swagger2-latest-server.json | 102 ++++++------- .../Http/Grids/Tables/Columns/XList.php | 2 +- 13 files changed, 557 insertions(+), 473 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index c07936d6e0..75f4d5713b 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -4473,6 +4473,7 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { "Project": [] }, @@ -4715,6 +4716,7 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { "Project": [] }, @@ -5018,7 +5020,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -5103,7 +5105,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5117,6 +5119,7 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { "Project": [] }, @@ -5242,7 +5245,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -5337,7 +5340,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5351,6 +5354,7 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { "Project": [] }, @@ -5460,7 +5464,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5559,7 +5563,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 7e398d78d6..dca688f77a 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -4559,6 +4559,7 @@ "methods": [ { "name": "list", + "namespace": "databases", "auth": { "Project": [] }, @@ -4574,6 +4575,7 @@ }, { "name": "listDatabases", + "namespace": "grids", "auth": { "Project": [] }, @@ -4585,7 +4587,7 @@ "model": "#\/components\/schemas\/databaseList" } ], - "description": "" + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." } ], "auth": { @@ -4664,6 +4666,7 @@ "methods": [ { "name": "create", + "namespace": "databases", "auth": { "Project": [] }, @@ -4679,6 +4682,7 @@ }, { "name": "createDatabase", + "namespace": "grids", "auth": { "Project": [] }, @@ -4690,7 +4694,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Create a new Database.\n" } ], "auth": { @@ -4775,6 +4779,7 @@ "methods": [ { "name": "listUsage", + "namespace": "databases", "auth": { "Project": [] }, @@ -4790,6 +4795,7 @@ }, { "name": "listDatabaseUsage", + "namespace": "grids", "auth": { "Project": [] }, @@ -4879,6 +4885,7 @@ "methods": [ { "name": "get", + "namespace": "databases", "auth": { "Project": [] }, @@ -4894,6 +4901,7 @@ }, { "name": "getDatabase", + "namespace": "grids", "auth": { "Project": [] }, @@ -4905,7 +4913,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." } ], "auth": { @@ -4970,6 +4978,7 @@ "methods": [ { "name": "update", + "namespace": "databases", "auth": { "Project": [] }, @@ -4985,6 +4994,7 @@ }, { "name": "updateDatabase", + "namespace": "grids", "auth": { "Project": [] }, @@ -4996,7 +5006,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Update a database by its unique ID." } ], "auth": { @@ -5078,6 +5088,7 @@ "methods": [ { "name": "delete", + "namespace": "databases", "auth": { "Project": [] }, @@ -5085,14 +5096,14 @@ "required": [], "responses": [ { - "code": 204, - "model": "#\/components\/schemas\/none" + "code": 204 } ], "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." }, { "name": "deleteDatabase", + "namespace": "grids", "auth": { "Project": [] }, @@ -5100,11 +5111,10 @@ "required": [], "responses": [ { - "code": 204, - "model": "#\/components\/schemas\/none" + "code": 204 } ], - "description": "" + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." } ], "auth": { @@ -8336,6 +8346,7 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { "Project": [] }, @@ -8362,6 +8373,7 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { "Project": [] }, @@ -8499,6 +8511,7 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { "Project": [] }, @@ -8905,6 +8918,7 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { "Project": [] }, @@ -10097,7 +10111,7 @@ "cookies": false, "type": "", "demo": "grids\/list-tables.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10180,7 +10194,7 @@ "cookies": false, "type": "", "demo": "grids\/create-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10284,7 +10298,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10353,7 +10367,7 @@ "cookies": false, "type": "", "demo": "grids\/update-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10452,7 +10466,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10502,7 +10516,7 @@ "tags": [ "grids" ], - "description": "List attributes in the collection.", + "description": "List columns in the table.", "responses": { "200": { "description": "Columns List", @@ -10523,7 +10537,7 @@ "cookies": false, "type": "", "demo": "grids\/list-columns.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10607,7 +10621,7 @@ "cookies": false, "type": "", "demo": "grids\/create-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10713,7 +10727,7 @@ "cookies": false, "type": "", "demo": "grids\/update-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10824,7 +10838,7 @@ "cookies": false, "type": "", "demo": "grids\/create-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10930,7 +10944,7 @@ "cookies": false, "type": "", "demo": "grids\/update-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11041,7 +11055,7 @@ "cookies": false, "type": "", "demo": "grids\/create-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11147,7 +11161,7 @@ "cookies": false, "type": "", "demo": "grids\/update-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11258,7 +11272,7 @@ "cookies": false, "type": "", "demo": "grids\/create-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11373,7 +11387,7 @@ "cookies": false, "type": "", "demo": "grids\/update-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11493,7 +11507,7 @@ "cookies": false, "type": "", "demo": "grids\/create-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11609,7 +11623,7 @@ "cookies": false, "type": "", "demo": "grids\/update-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11730,7 +11744,7 @@ "cookies": false, "type": "", "demo": "grids\/create-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11846,7 +11860,7 @@ "cookies": false, "type": "", "demo": "grids\/update-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11967,7 +11981,7 @@ "cookies": false, "type": "", "demo": "grids\/create-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12073,7 +12087,7 @@ "cookies": false, "type": "", "demo": "grids\/update-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12184,7 +12198,7 @@ "cookies": false, "type": "", "demo": "grids\/create-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12315,7 +12329,7 @@ "cookies": false, "type": "", "demo": "grids\/create-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12432,7 +12446,7 @@ "cookies": false, "type": "", "demo": "grids\/update-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12548,7 +12562,7 @@ "cookies": false, "type": "", "demo": "grids\/create-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12654,7 +12668,7 @@ "cookies": false, "type": "", "demo": "grids\/update-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12796,7 +12810,7 @@ "cookies": false, "type": "", "demo": "grids\/get-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12867,7 +12881,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12947,7 +12961,7 @@ "cookies": false, "type": "", "demo": "grids\/update-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13034,7 +13048,7 @@ "tags": [ "grids" ], - "description": "List indexes in the collection.", + "description": "List indexes in the table.", "responses": { "200": { "description": "Column Indexes List", @@ -13055,7 +13069,7 @@ "cookies": false, "type": "", "demo": "grids\/list-indexes.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13116,7 +13130,7 @@ "tags": [ "grids" ], - "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", + "description": "Creates an index on the columns listed. Your index should include all the columns you will query in a single request.\nColumns can be `key`, `fulltext`, and `unique`.", "responses": { "202": { "description": "Index", @@ -13137,7 +13151,7 @@ "cookies": false, "type": "", "demo": "grids\/create-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13265,7 +13279,7 @@ "cookies": false, "type": "", "demo": "grids\/get-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13336,7 +13350,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13411,12 +13425,12 @@ "deprecated": false, "x-appwrite": { "method": "listTableLogs", - "group": "grids", + "group": "tables", "weight": 375, "cookies": false, "type": "", "demo": "grids\/list-table-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13499,7 +13513,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13584,7 +13598,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13598,6 +13612,7 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { "Project": [] }, @@ -13624,6 +13639,7 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { "Project": [] }, @@ -13744,7 +13760,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13757,6 +13773,7 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { "Project": [] }, @@ -13853,7 +13870,7 @@ "cookies": false, "type": "", "demo": "grids\/update-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13947,7 +13964,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14038,7 +14055,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14133,7 +14150,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14147,6 +14164,7 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { "Project": [] }, @@ -14256,7 +14274,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14355,7 +14373,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14439,7 +14457,7 @@ "cookies": false, "type": "", "demo": "grids\/list-row-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14532,7 +14550,7 @@ "cookies": false, "type": "", "demo": "grids\/decrement-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14644,7 +14662,7 @@ "cookies": false, "type": "", "demo": "grids\/increment-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14756,7 +14774,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14860,6 +14878,7 @@ "methods": [ { "name": "listLogs", + "namespace": "databases", "auth": { "Project": [] }, @@ -14875,6 +14894,7 @@ }, { "name": "listDatabaseLogs", + "namespace": "grids", "auth": { "Project": [] }, @@ -14886,7 +14906,7 @@ "model": "#\/components\/schemas\/logList" } ], - "description": "" + "description": "Get the database activity logs list by its unique ID." } ], "auth": { @@ -14965,6 +14985,7 @@ "methods": [ { "name": "getDatabaseUsage", + "namespace": "databases", "auth": { "Project": [] }, @@ -14980,6 +15001,7 @@ }, { "name": "getDatabaseUsage", + "namespace": "grids", "auth": { "Project": [] }, @@ -14991,7 +15013,7 @@ "model": "#\/components\/schemas\/usageDatabase" } ], - "description": "" + "description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." } ], "auth": { diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 0fde42be4e..c824247c5b 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -4077,6 +4077,7 @@ "methods": [ { "name": "list", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4093,6 +4094,7 @@ }, { "name": "listDatabases", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4105,7 +4107,7 @@ "model": "#\/components\/schemas\/databaseList" } ], - "description": "" + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." } ], "auth": { @@ -4185,6 +4187,7 @@ "methods": [ { "name": "create", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4201,6 +4204,7 @@ }, { "name": "createDatabase", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4213,7 +4217,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Create a new Database.\n" } ], "auth": { @@ -4299,6 +4303,7 @@ "methods": [ { "name": "get", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4315,6 +4320,7 @@ }, { "name": "getDatabase", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4327,7 +4333,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." } ], "auth": { @@ -4393,6 +4399,7 @@ "methods": [ { "name": "update", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4409,6 +4416,7 @@ }, { "name": "updateDatabase", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4421,7 +4429,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Update a database by its unique ID." } ], "auth": { @@ -4504,6 +4512,7 @@ "methods": [ { "name": "delete", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4512,14 +4521,14 @@ "required": [], "responses": [ { - "code": 204, - "model": "#\/components\/schemas\/none" + "code": 204 } ], "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." }, { "name": "deleteDatabase", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4528,11 +4537,10 @@ "required": [], "responses": [ { - "code": 204, - "model": "#\/components\/schemas\/none" + "code": 204 } ], - "description": "" + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." } ], "auth": { @@ -7795,6 +7803,7 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { "Project": [], "Session": [] @@ -7822,6 +7831,7 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -7962,6 +7972,7 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -8374,6 +8385,7 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { "Project": [], "Session": [] @@ -9299,7 +9311,7 @@ "cookies": false, "type": "", "demo": "grids\/list-tables.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9383,7 +9395,7 @@ "cookies": false, "type": "", "demo": "grids\/create-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9488,7 +9500,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9558,7 +9570,7 @@ "cookies": false, "type": "", "demo": "grids\/update-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9658,7 +9670,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9709,7 +9721,7 @@ "tags": [ "grids" ], - "description": "List attributes in the collection.", + "description": "List columns in the table.", "responses": { "200": { "description": "Columns List", @@ -9730,7 +9742,7 @@ "cookies": false, "type": "", "demo": "grids\/list-columns.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9815,7 +9827,7 @@ "cookies": false, "type": "", "demo": "grids\/create-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9922,7 +9934,7 @@ "cookies": false, "type": "", "demo": "grids\/update-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10034,7 +10046,7 @@ "cookies": false, "type": "", "demo": "grids\/create-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10141,7 +10153,7 @@ "cookies": false, "type": "", "demo": "grids\/update-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10253,7 +10265,7 @@ "cookies": false, "type": "", "demo": "grids\/create-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10360,7 +10372,7 @@ "cookies": false, "type": "", "demo": "grids\/update-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10472,7 +10484,7 @@ "cookies": false, "type": "", "demo": "grids\/create-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10588,7 +10600,7 @@ "cookies": false, "type": "", "demo": "grids\/update-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10709,7 +10721,7 @@ "cookies": false, "type": "", "demo": "grids\/create-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10826,7 +10838,7 @@ "cookies": false, "type": "", "demo": "grids\/update-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10948,7 +10960,7 @@ "cookies": false, "type": "", "demo": "grids\/create-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11065,7 +11077,7 @@ "cookies": false, "type": "", "demo": "grids\/update-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11187,7 +11199,7 @@ "cookies": false, "type": "", "demo": "grids\/create-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11294,7 +11306,7 @@ "cookies": false, "type": "", "demo": "grids\/update-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11406,7 +11418,7 @@ "cookies": false, "type": "", "demo": "grids\/create-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11538,7 +11550,7 @@ "cookies": false, "type": "", "demo": "grids\/create-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11656,7 +11668,7 @@ "cookies": false, "type": "", "demo": "grids\/update-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11773,7 +11785,7 @@ "cookies": false, "type": "", "demo": "grids\/create-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11880,7 +11892,7 @@ "cookies": false, "type": "", "demo": "grids\/update-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12023,7 +12035,7 @@ "cookies": false, "type": "", "demo": "grids\/get-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12095,7 +12107,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12176,7 +12188,7 @@ "cookies": false, "type": "", "demo": "grids\/update-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12264,7 +12276,7 @@ "tags": [ "grids" ], - "description": "List indexes in the collection.", + "description": "List indexes in the table.", "responses": { "200": { "description": "Column Indexes List", @@ -12285,7 +12297,7 @@ "cookies": false, "type": "", "demo": "grids\/list-indexes.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12347,7 +12359,7 @@ "tags": [ "grids" ], - "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", + "description": "Creates an index on the columns listed. Your index should include all the columns you will query in a single request.\nColumns can be `key`, `fulltext`, and `unique`.", "responses": { "202": { "description": "Index", @@ -12368,7 +12380,7 @@ "cookies": false, "type": "", "demo": "grids\/create-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12497,7 +12509,7 @@ "cookies": false, "type": "", "demo": "grids\/get-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12569,7 +12581,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12650,7 +12662,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12737,7 +12749,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -12751,6 +12763,7 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { "Project": [], "Session": [] @@ -12778,6 +12791,7 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -12901,7 +12915,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -12914,6 +12928,7 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -13012,7 +13027,7 @@ "cookies": false, "type": "", "demo": "grids\/update-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13107,7 +13122,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13199,7 +13214,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13296,7 +13311,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13310,6 +13325,7 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { "Project": [], "Session": [] @@ -13422,7 +13438,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13523,7 +13539,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13609,7 +13625,7 @@ "cookies": false, "type": "", "demo": "grids\/decrement-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13722,7 +13738,7 @@ "cookies": false, "type": "", "demo": "grids\/increment-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 556775e236..75f4d5713b 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -5020,7 +5020,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -5105,7 +5105,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5245,7 +5245,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -5340,7 +5340,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5464,7 +5464,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5563,7 +5563,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 85fa04f2cb..dca688f77a 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -4587,7 +4587,7 @@ "model": "#\/components\/schemas\/databaseList" } ], - "description": "" + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." } ], "auth": { @@ -4694,7 +4694,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Create a new Database.\n" } ], "auth": { @@ -4913,7 +4913,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." } ], "auth": { @@ -5006,7 +5006,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Update a database by its unique ID." } ], "auth": { @@ -5114,7 +5114,7 @@ "code": 204 } ], - "description": "" + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." } ], "auth": { @@ -10111,7 +10111,7 @@ "cookies": false, "type": "", "demo": "grids\/list-tables.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10194,7 +10194,7 @@ "cookies": false, "type": "", "demo": "grids\/create-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10298,7 +10298,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10367,7 +10367,7 @@ "cookies": false, "type": "", "demo": "grids\/update-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10466,7 +10466,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10516,7 +10516,7 @@ "tags": [ "grids" ], - "description": "List attributes in the collection.", + "description": "List columns in the table.", "responses": { "200": { "description": "Columns List", @@ -10537,7 +10537,7 @@ "cookies": false, "type": "", "demo": "grids\/list-columns.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10621,7 +10621,7 @@ "cookies": false, "type": "", "demo": "grids\/create-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10727,7 +10727,7 @@ "cookies": false, "type": "", "demo": "grids\/update-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10838,7 +10838,7 @@ "cookies": false, "type": "", "demo": "grids\/create-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10944,7 +10944,7 @@ "cookies": false, "type": "", "demo": "grids\/update-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11055,7 +11055,7 @@ "cookies": false, "type": "", "demo": "grids\/create-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11161,7 +11161,7 @@ "cookies": false, "type": "", "demo": "grids\/update-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11272,7 +11272,7 @@ "cookies": false, "type": "", "demo": "grids\/create-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11387,7 +11387,7 @@ "cookies": false, "type": "", "demo": "grids\/update-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11507,7 +11507,7 @@ "cookies": false, "type": "", "demo": "grids\/create-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11623,7 +11623,7 @@ "cookies": false, "type": "", "demo": "grids\/update-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11744,7 +11744,7 @@ "cookies": false, "type": "", "demo": "grids\/create-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11860,7 +11860,7 @@ "cookies": false, "type": "", "demo": "grids\/update-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11981,7 +11981,7 @@ "cookies": false, "type": "", "demo": "grids\/create-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12087,7 +12087,7 @@ "cookies": false, "type": "", "demo": "grids\/update-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12198,7 +12198,7 @@ "cookies": false, "type": "", "demo": "grids\/create-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12329,7 +12329,7 @@ "cookies": false, "type": "", "demo": "grids\/create-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12446,7 +12446,7 @@ "cookies": false, "type": "", "demo": "grids\/update-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12562,7 +12562,7 @@ "cookies": false, "type": "", "demo": "grids\/create-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12668,7 +12668,7 @@ "cookies": false, "type": "", "demo": "grids\/update-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12810,7 +12810,7 @@ "cookies": false, "type": "", "demo": "grids\/get-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12881,7 +12881,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12961,7 +12961,7 @@ "cookies": false, "type": "", "demo": "grids\/update-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13048,7 +13048,7 @@ "tags": [ "grids" ], - "description": "List indexes in the collection.", + "description": "List indexes in the table.", "responses": { "200": { "description": "Column Indexes List", @@ -13069,7 +13069,7 @@ "cookies": false, "type": "", "demo": "grids\/list-indexes.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13130,7 +13130,7 @@ "tags": [ "grids" ], - "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", + "description": "Creates an index on the columns listed. Your index should include all the columns you will query in a single request.\nColumns can be `key`, `fulltext`, and `unique`.", "responses": { "202": { "description": "Index", @@ -13151,7 +13151,7 @@ "cookies": false, "type": "", "demo": "grids\/create-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13279,7 +13279,7 @@ "cookies": false, "type": "", "demo": "grids\/get-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13350,7 +13350,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13425,12 +13425,12 @@ "deprecated": false, "x-appwrite": { "method": "listTableLogs", - "group": "grids", + "group": "tables", "weight": 375, "cookies": false, "type": "", "demo": "grids\/list-table-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13513,7 +13513,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13598,7 +13598,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13760,7 +13760,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13870,7 +13870,7 @@ "cookies": false, "type": "", "demo": "grids\/update-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13964,7 +13964,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14055,7 +14055,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14150,7 +14150,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14274,7 +14274,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14373,7 +14373,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14457,7 +14457,7 @@ "cookies": false, "type": "", "demo": "grids\/list-row-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14550,7 +14550,7 @@ "cookies": false, "type": "", "demo": "grids\/decrement-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14662,7 +14662,7 @@ "cookies": false, "type": "", "demo": "grids\/increment-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14774,7 +14774,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14906,7 +14906,7 @@ "model": "#\/components\/schemas\/logList" } ], - "description": "" + "description": "Get the database activity logs list by its unique ID." } ], "auth": { @@ -15013,7 +15013,7 @@ "model": "#\/components\/schemas\/usageDatabase" } ], - "description": "" + "description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." } ], "auth": { diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 551c765683..c824247c5b 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -4107,7 +4107,7 @@ "model": "#\/components\/schemas\/databaseList" } ], - "description": "" + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." } ], "auth": { @@ -4217,7 +4217,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Create a new Database.\n" } ], "auth": { @@ -4333,7 +4333,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." } ], "auth": { @@ -4429,7 +4429,7 @@ "model": "#\/components\/schemas\/database" } ], - "description": "" + "description": "Update a database by its unique ID." } ], "auth": { @@ -4540,7 +4540,7 @@ "code": 204 } ], - "description": "" + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." } ], "auth": { @@ -9311,7 +9311,7 @@ "cookies": false, "type": "", "demo": "grids\/list-tables.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9395,7 +9395,7 @@ "cookies": false, "type": "", "demo": "grids\/create-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9500,7 +9500,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9570,7 +9570,7 @@ "cookies": false, "type": "", "demo": "grids\/update-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9670,7 +9670,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9721,7 +9721,7 @@ "tags": [ "grids" ], - "description": "List attributes in the collection.", + "description": "List columns in the table.", "responses": { "200": { "description": "Columns List", @@ -9742,7 +9742,7 @@ "cookies": false, "type": "", "demo": "grids\/list-columns.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9827,7 +9827,7 @@ "cookies": false, "type": "", "demo": "grids\/create-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9934,7 +9934,7 @@ "cookies": false, "type": "", "demo": "grids\/update-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10046,7 +10046,7 @@ "cookies": false, "type": "", "demo": "grids\/create-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10153,7 +10153,7 @@ "cookies": false, "type": "", "demo": "grids\/update-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10265,7 +10265,7 @@ "cookies": false, "type": "", "demo": "grids\/create-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10372,7 +10372,7 @@ "cookies": false, "type": "", "demo": "grids\/update-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10484,7 +10484,7 @@ "cookies": false, "type": "", "demo": "grids\/create-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10600,7 +10600,7 @@ "cookies": false, "type": "", "demo": "grids\/update-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10721,7 +10721,7 @@ "cookies": false, "type": "", "demo": "grids\/create-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10838,7 +10838,7 @@ "cookies": false, "type": "", "demo": "grids\/update-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10960,7 +10960,7 @@ "cookies": false, "type": "", "demo": "grids\/create-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11077,7 +11077,7 @@ "cookies": false, "type": "", "demo": "grids\/update-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11199,7 +11199,7 @@ "cookies": false, "type": "", "demo": "grids\/create-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11306,7 +11306,7 @@ "cookies": false, "type": "", "demo": "grids\/update-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11418,7 +11418,7 @@ "cookies": false, "type": "", "demo": "grids\/create-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11550,7 +11550,7 @@ "cookies": false, "type": "", "demo": "grids\/create-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11668,7 +11668,7 @@ "cookies": false, "type": "", "demo": "grids\/update-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11785,7 +11785,7 @@ "cookies": false, "type": "", "demo": "grids\/create-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11892,7 +11892,7 @@ "cookies": false, "type": "", "demo": "grids\/update-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12035,7 +12035,7 @@ "cookies": false, "type": "", "demo": "grids\/get-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12107,7 +12107,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12188,7 +12188,7 @@ "cookies": false, "type": "", "demo": "grids\/update-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12276,7 +12276,7 @@ "tags": [ "grids" ], - "description": "List indexes in the collection.", + "description": "List indexes in the table.", "responses": { "200": { "description": "Column Indexes List", @@ -12297,7 +12297,7 @@ "cookies": false, "type": "", "demo": "grids\/list-indexes.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12359,7 +12359,7 @@ "tags": [ "grids" ], - "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", + "description": "Creates an index on the columns listed. Your index should include all the columns you will query in a single request.\nColumns can be `key`, `fulltext`, and `unique`.", "responses": { "202": { "description": "Index", @@ -12380,7 +12380,7 @@ "cookies": false, "type": "", "demo": "grids\/create-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12509,7 +12509,7 @@ "cookies": false, "type": "", "demo": "grids\/get-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12581,7 +12581,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12662,7 +12662,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12749,7 +12749,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -12915,7 +12915,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13027,7 +13027,7 @@ "cookies": false, "type": "", "demo": "grids\/update-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13122,7 +13122,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13214,7 +13214,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13311,7 +13311,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13438,7 +13438,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13539,7 +13539,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13625,7 +13625,7 @@ "cookies": false, "type": "", "demo": "grids\/decrement-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13738,7 +13738,7 @@ "cookies": false, "type": "", "demo": "grids\/increment-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index 8572eaaa7f..938ba76f53 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -4610,6 +4610,7 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { "Project": [] }, @@ -4843,6 +4844,7 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { "Project": [] }, @@ -5132,7 +5134,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -5213,7 +5215,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5226,6 +5228,7 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { "Project": [] }, @@ -5349,7 +5352,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -5438,7 +5441,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5451,6 +5454,7 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { "Project": [] }, @@ -5556,7 +5560,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5652,7 +5656,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index ecf5fcc4a1..b4a61db855 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -4719,6 +4719,7 @@ "methods": [ { "name": "list", + "namespace": "databases", "auth": { "Project": [] }, @@ -4734,6 +4735,7 @@ }, { "name": "listDatabases", + "namespace": "grids", "auth": { "Project": [] }, @@ -4745,7 +4747,7 @@ "model": "#\/definitions\/databaseList" } ], - "description": "" + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." } ], "auth": { @@ -4823,6 +4825,7 @@ "methods": [ { "name": "create", + "namespace": "databases", "auth": { "Project": [] }, @@ -4838,6 +4841,7 @@ }, { "name": "createDatabase", + "namespace": "grids", "auth": { "Project": [] }, @@ -4849,7 +4853,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Create a new Database.\n" } ], "auth": { @@ -4937,6 +4941,7 @@ "methods": [ { "name": "listUsage", + "namespace": "databases", "auth": { "Project": [] }, @@ -4952,6 +4957,7 @@ }, { "name": "listDatabaseUsage", + "namespace": "grids", "auth": { "Project": [] }, @@ -5039,6 +5045,7 @@ "methods": [ { "name": "get", + "namespace": "databases", "auth": { "Project": [] }, @@ -5054,6 +5061,7 @@ }, { "name": "getDatabase", + "namespace": "grids", "auth": { "Project": [] }, @@ -5065,7 +5073,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." } ], "auth": { @@ -5130,6 +5138,7 @@ "methods": [ { "name": "update", + "namespace": "databases", "auth": { "Project": [] }, @@ -5145,6 +5154,7 @@ }, { "name": "updateDatabase", + "namespace": "grids", "auth": { "Project": [] }, @@ -5156,7 +5166,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Update a database by its unique ID." } ], "auth": { @@ -5240,6 +5250,7 @@ "methods": [ { "name": "delete", + "namespace": "databases", "auth": { "Project": [] }, @@ -5247,14 +5258,14 @@ "required": [], "responses": [ { - "code": 204, - "model": "#\/definitions\/none" + "code": 204 } ], "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." }, { "name": "deleteDatabase", + "namespace": "grids", "auth": { "Project": [] }, @@ -5262,11 +5273,10 @@ "required": [], "responses": [ { - "code": 204, - "model": "#\/definitions\/none" + "code": 204 } ], - "description": "" + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." } ], "auth": { @@ -8456,6 +8466,7 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { "Project": [] }, @@ -8482,6 +8493,7 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { "Project": [] }, @@ -8619,6 +8631,7 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { "Project": [] }, @@ -9008,6 +9021,7 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { "Project": [] }, @@ -10144,7 +10158,7 @@ "cookies": false, "type": "", "demo": "grids\/list-tables.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10224,7 +10238,7 @@ "cookies": false, "type": "", "demo": "grids\/create-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10329,7 +10343,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10396,7 +10410,7 @@ "cookies": false, "type": "", "demo": "grids\/update-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10497,7 +10511,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10547,7 +10561,7 @@ "tags": [ "grids" ], - "description": "List attributes in the collection.", + "description": "List columns in the table.", "responses": { "200": { "description": "Columns List", @@ -10564,7 +10578,7 @@ "cookies": false, "type": "", "demo": "grids\/list-columns.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10645,7 +10659,7 @@ "cookies": false, "type": "", "demo": "grids\/create-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10751,7 +10765,7 @@ "cookies": false, "type": "", "demo": "grids\/update-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10859,7 +10873,7 @@ "cookies": false, "type": "", "demo": "grids\/create-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10965,7 +10979,7 @@ "cookies": false, "type": "", "demo": "grids\/update-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11073,7 +11087,7 @@ "cookies": false, "type": "", "demo": "grids\/create-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11179,7 +11193,7 @@ "cookies": false, "type": "", "demo": "grids\/update-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11287,7 +11301,7 @@ "cookies": false, "type": "", "demo": "grids\/create-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11403,7 +11417,7 @@ "cookies": false, "type": "", "demo": "grids\/update-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11521,7 +11535,7 @@ "cookies": false, "type": "", "demo": "grids\/create-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11639,7 +11653,7 @@ "cookies": false, "type": "", "demo": "grids\/update-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11759,7 +11773,7 @@ "cookies": false, "type": "", "demo": "grids\/create-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11877,7 +11891,7 @@ "cookies": false, "type": "", "demo": "grids\/update-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11997,7 +12011,7 @@ "cookies": false, "type": "", "demo": "grids\/create-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12103,7 +12117,7 @@ "cookies": false, "type": "", "demo": "grids\/update-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12211,7 +12225,7 @@ "cookies": false, "type": "", "demo": "grids\/create-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12344,7 +12358,7 @@ "cookies": false, "type": "", "demo": "grids\/create-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12463,7 +12477,7 @@ "cookies": false, "type": "", "demo": "grids\/update-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12577,7 +12591,7 @@ "cookies": false, "type": "", "demo": "grids\/create-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12683,7 +12697,7 @@ "cookies": false, "type": "", "demo": "grids\/update-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12820,7 +12834,7 @@ "cookies": false, "type": "", "demo": "grids\/get-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12889,7 +12903,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12965,7 +12979,7 @@ "cookies": false, "type": "", "demo": "grids\/update-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13050,7 +13064,7 @@ "tags": [ "grids" ], - "description": "List indexes in the collection.", + "description": "List indexes in the table.", "responses": { "200": { "description": "Column Indexes List", @@ -13067,7 +13081,7 @@ "cookies": false, "type": "", "demo": "grids\/list-indexes.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13129,7 +13143,7 @@ "tags": [ "grids" ], - "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", + "description": "Creates an index on the columns listed. Your index should include all the columns you will query in a single request.\nColumns can be `key`, `fulltext`, and `unique`.", "responses": { "202": { "description": "Index", @@ -13146,7 +13160,7 @@ "cookies": false, "type": "", "demo": "grids\/create-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13273,7 +13287,7 @@ "cookies": false, "type": "", "demo": "grids\/get-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13342,7 +13356,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13411,12 +13425,12 @@ "deprecated": false, "x-appwrite": { "method": "listTableLogs", - "group": "grids", + "group": "tables", "weight": 375, "cookies": false, "type": "", "demo": "grids\/list-table-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13494,7 +13508,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13575,7 +13589,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13588,6 +13602,7 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { "Project": [] }, @@ -13614,6 +13629,7 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { "Project": [] }, @@ -13734,7 +13750,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13747,6 +13763,7 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { "Project": [] }, @@ -13840,7 +13857,7 @@ "cookies": false, "type": "", "demo": "grids\/update-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13932,7 +13949,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14018,7 +14035,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14107,7 +14124,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14120,6 +14137,7 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { "Project": [] }, @@ -14225,7 +14243,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14321,7 +14339,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14398,7 +14416,7 @@ "cookies": false, "type": "", "demo": "grids\/list-row-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14486,7 +14504,7 @@ "cookies": false, "type": "", "demo": "grids\/decrement-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14592,7 +14610,7 @@ "cookies": false, "type": "", "demo": "grids\/increment-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14696,7 +14714,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14794,6 +14812,7 @@ "methods": [ { "name": "listLogs", + "namespace": "databases", "auth": { "Project": [] }, @@ -14809,6 +14828,7 @@ }, { "name": "listDatabaseLogs", + "namespace": "grids", "auth": { "Project": [] }, @@ -14820,7 +14840,7 @@ "model": "#\/definitions\/logList" } ], - "description": "" + "description": "Get the database activity logs list by its unique ID." } ], "auth": { @@ -14896,6 +14916,7 @@ "methods": [ { "name": "getDatabaseUsage", + "namespace": "databases", "auth": { "Project": [] }, @@ -14911,6 +14932,7 @@ }, { "name": "getDatabaseUsage", + "namespace": "grids", "auth": { "Project": [] }, @@ -14922,7 +14944,7 @@ "model": "#\/definitions\/usageDatabase" } ], - "description": "" + "description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." } ], "auth": { diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index 7912caab25..709c263b96 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -4225,6 +4225,7 @@ "methods": [ { "name": "list", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4241,6 +4242,7 @@ }, { "name": "listDatabases", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4253,7 +4255,7 @@ "model": "#\/definitions\/databaseList" } ], - "description": "" + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." } ], "auth": { @@ -4332,6 +4334,7 @@ "methods": [ { "name": "create", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4348,6 +4351,7 @@ }, { "name": "createDatabase", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4360,7 +4364,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Create a new Database.\n" } ], "auth": { @@ -4449,6 +4453,7 @@ "methods": [ { "name": "get", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4465,6 +4470,7 @@ }, { "name": "getDatabase", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4477,7 +4483,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." } ], "auth": { @@ -4543,6 +4549,7 @@ "methods": [ { "name": "update", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4559,6 +4566,7 @@ }, { "name": "updateDatabase", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4571,7 +4579,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Update a database by its unique ID." } ], "auth": { @@ -4656,6 +4664,7 @@ "methods": [ { "name": "delete", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -4664,14 +4673,14 @@ "required": [], "responses": [ { - "code": 204, - "model": "#\/definitions\/none" + "code": 204 } ], "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." }, { "name": "deleteDatabase", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -4680,11 +4689,10 @@ "required": [], "responses": [ { - "code": 204, - "model": "#\/definitions\/none" + "code": 204 } ], - "description": "" + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." } ], "auth": { @@ -7905,6 +7913,7 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { "Project": [], "Session": [] @@ -7932,6 +7941,7 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -8072,6 +8082,7 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { "Project": [], "Key": [] @@ -8467,6 +8478,7 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { "Project": [], "Session": [] @@ -9354,7 +9366,7 @@ "cookies": false, "type": "", "demo": "grids\/list-tables.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9435,7 +9447,7 @@ "cookies": false, "type": "", "demo": "grids\/create-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9541,7 +9553,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9609,7 +9621,7 @@ "cookies": false, "type": "", "demo": "grids\/update-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9711,7 +9723,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9762,7 +9774,7 @@ "tags": [ "grids" ], - "description": "List attributes in the collection.", + "description": "List columns in the table.", "responses": { "200": { "description": "Columns List", @@ -9779,7 +9791,7 @@ "cookies": false, "type": "", "demo": "grids\/list-columns.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9861,7 +9873,7 @@ "cookies": false, "type": "", "demo": "grids\/create-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9968,7 +9980,7 @@ "cookies": false, "type": "", "demo": "grids\/update-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10077,7 +10089,7 @@ "cookies": false, "type": "", "demo": "grids\/create-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10184,7 +10196,7 @@ "cookies": false, "type": "", "demo": "grids\/update-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10293,7 +10305,7 @@ "cookies": false, "type": "", "demo": "grids\/create-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10400,7 +10412,7 @@ "cookies": false, "type": "", "demo": "grids\/update-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10509,7 +10521,7 @@ "cookies": false, "type": "", "demo": "grids\/create-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10626,7 +10638,7 @@ "cookies": false, "type": "", "demo": "grids\/update-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10745,7 +10757,7 @@ "cookies": false, "type": "", "demo": "grids\/create-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10864,7 +10876,7 @@ "cookies": false, "type": "", "demo": "grids\/update-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10985,7 +10997,7 @@ "cookies": false, "type": "", "demo": "grids\/create-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11104,7 +11116,7 @@ "cookies": false, "type": "", "demo": "grids\/update-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11225,7 +11237,7 @@ "cookies": false, "type": "", "demo": "grids\/create-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11332,7 +11344,7 @@ "cookies": false, "type": "", "demo": "grids\/update-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11441,7 +11453,7 @@ "cookies": false, "type": "", "demo": "grids\/create-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11575,7 +11587,7 @@ "cookies": false, "type": "", "demo": "grids\/create-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11695,7 +11707,7 @@ "cookies": false, "type": "", "demo": "grids\/update-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11810,7 +11822,7 @@ "cookies": false, "type": "", "demo": "grids\/create-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11917,7 +11929,7 @@ "cookies": false, "type": "", "demo": "grids\/update-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12055,7 +12067,7 @@ "cookies": false, "type": "", "demo": "grids\/get-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12125,7 +12137,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12202,7 +12214,7 @@ "cookies": false, "type": "", "demo": "grids\/update-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12288,7 +12300,7 @@ "tags": [ "grids" ], - "description": "List indexes in the collection.", + "description": "List indexes in the table.", "responses": { "200": { "description": "Column Indexes List", @@ -12305,7 +12317,7 @@ "cookies": false, "type": "", "demo": "grids\/list-indexes.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12368,7 +12380,7 @@ "tags": [ "grids" ], - "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", + "description": "Creates an index on the columns listed. Your index should include all the columns you will query in a single request.\nColumns can be `key`, `fulltext`, and `unique`.", "responses": { "202": { "description": "Index", @@ -12385,7 +12397,7 @@ "cookies": false, "type": "", "demo": "grids\/create-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12513,7 +12525,7 @@ "cookies": false, "type": "", "demo": "grids\/get-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12583,7 +12595,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12658,7 +12670,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12741,7 +12753,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -12754,6 +12766,7 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { "Project": [], "Session": [] @@ -12781,6 +12794,7 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -12904,7 +12918,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -12917,6 +12931,7 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { "Project": [], "Key": [] @@ -13012,7 +13027,7 @@ "cookies": false, "type": "", "demo": "grids\/update-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13105,7 +13120,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13192,7 +13207,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13283,7 +13298,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13296,6 +13311,7 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { "Project": [], "Session": [] @@ -13404,7 +13420,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13502,7 +13518,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13583,7 +13599,7 @@ "cookies": false, "type": "", "demo": "grids\/decrement-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13690,7 +13706,7 @@ "cookies": false, "type": "", "demo": "grids\/increment-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index 44f691f055..938ba76f53 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -5134,7 +5134,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -5215,7 +5215,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5352,7 +5352,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -5441,7 +5441,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5560,7 +5560,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -5656,7 +5656,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index d80f7421ed..b4a61db855 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -4747,7 +4747,7 @@ "model": "#\/definitions\/databaseList" } ], - "description": "" + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." } ], "auth": { @@ -4853,7 +4853,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Create a new Database.\n" } ], "auth": { @@ -5073,7 +5073,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." } ], "auth": { @@ -5166,7 +5166,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Update a database by its unique ID." } ], "auth": { @@ -5276,7 +5276,7 @@ "code": 204 } ], - "description": "" + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." } ], "auth": { @@ -10158,7 +10158,7 @@ "cookies": false, "type": "", "demo": "grids\/list-tables.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10238,7 +10238,7 @@ "cookies": false, "type": "", "demo": "grids\/create-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10343,7 +10343,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10410,7 +10410,7 @@ "cookies": false, "type": "", "demo": "grids\/update-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10511,7 +10511,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10561,7 +10561,7 @@ "tags": [ "grids" ], - "description": "List attributes in the collection.", + "description": "List columns in the table.", "responses": { "200": { "description": "Columns List", @@ -10578,7 +10578,7 @@ "cookies": false, "type": "", "demo": "grids\/list-columns.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10659,7 +10659,7 @@ "cookies": false, "type": "", "demo": "grids\/create-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10765,7 +10765,7 @@ "cookies": false, "type": "", "demo": "grids\/update-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10873,7 +10873,7 @@ "cookies": false, "type": "", "demo": "grids\/create-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10979,7 +10979,7 @@ "cookies": false, "type": "", "demo": "grids\/update-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11087,7 +11087,7 @@ "cookies": false, "type": "", "demo": "grids\/create-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11193,7 +11193,7 @@ "cookies": false, "type": "", "demo": "grids\/update-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11301,7 +11301,7 @@ "cookies": false, "type": "", "demo": "grids\/create-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11417,7 +11417,7 @@ "cookies": false, "type": "", "demo": "grids\/update-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11535,7 +11535,7 @@ "cookies": false, "type": "", "demo": "grids\/create-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11653,7 +11653,7 @@ "cookies": false, "type": "", "demo": "grids\/update-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11773,7 +11773,7 @@ "cookies": false, "type": "", "demo": "grids\/create-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11891,7 +11891,7 @@ "cookies": false, "type": "", "demo": "grids\/update-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12011,7 +12011,7 @@ "cookies": false, "type": "", "demo": "grids\/create-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12117,7 +12117,7 @@ "cookies": false, "type": "", "demo": "grids\/update-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12225,7 +12225,7 @@ "cookies": false, "type": "", "demo": "grids\/create-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12358,7 +12358,7 @@ "cookies": false, "type": "", "demo": "grids\/create-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12477,7 +12477,7 @@ "cookies": false, "type": "", "demo": "grids\/update-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12591,7 +12591,7 @@ "cookies": false, "type": "", "demo": "grids\/create-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12697,7 +12697,7 @@ "cookies": false, "type": "", "demo": "grids\/update-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12834,7 +12834,7 @@ "cookies": false, "type": "", "demo": "grids\/get-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12903,7 +12903,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12979,7 +12979,7 @@ "cookies": false, "type": "", "demo": "grids\/update-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13064,7 +13064,7 @@ "tags": [ "grids" ], - "description": "List indexes in the collection.", + "description": "List indexes in the table.", "responses": { "200": { "description": "Column Indexes List", @@ -13081,7 +13081,7 @@ "cookies": false, "type": "", "demo": "grids\/list-indexes.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13143,7 +13143,7 @@ "tags": [ "grids" ], - "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", + "description": "Creates an index on the columns listed. Your index should include all the columns you will query in a single request.\nColumns can be `key`, `fulltext`, and `unique`.", "responses": { "202": { "description": "Index", @@ -13160,7 +13160,7 @@ "cookies": false, "type": "", "demo": "grids\/create-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13287,7 +13287,7 @@ "cookies": false, "type": "", "demo": "grids\/get-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13356,7 +13356,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13425,12 +13425,12 @@ "deprecated": false, "x-appwrite": { "method": "listTableLogs", - "group": "grids", + "group": "tables", "weight": 375, "cookies": false, "type": "", "demo": "grids\/list-table-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13508,7 +13508,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13589,7 +13589,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13750,7 +13750,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13857,7 +13857,7 @@ "cookies": false, "type": "", "demo": "grids\/update-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13949,7 +13949,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14035,7 +14035,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14124,7 +14124,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14243,7 +14243,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14339,7 +14339,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14416,7 +14416,7 @@ "cookies": false, "type": "", "demo": "grids\/list-row-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14504,7 +14504,7 @@ "cookies": false, "type": "", "demo": "grids\/decrement-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14610,7 +14610,7 @@ "cookies": false, "type": "", "demo": "grids\/increment-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -14714,7 +14714,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14840,7 +14840,7 @@ "model": "#\/definitions\/logList" } ], - "description": "" + "description": "Get the database activity logs list by its unique ID." } ], "auth": { @@ -14944,7 +14944,7 @@ "model": "#\/definitions\/usageDatabase" } ], - "description": "" + "description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." } ], "auth": { diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 3ac203ee2c..709c263b96 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -4255,7 +4255,7 @@ "model": "#\/definitions\/databaseList" } ], - "description": "" + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." } ], "auth": { @@ -4364,7 +4364,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Create a new Database.\n" } ], "auth": { @@ -4483,7 +4483,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." } ], "auth": { @@ -4579,7 +4579,7 @@ "model": "#\/definitions\/database" } ], - "description": "" + "description": "Update a database by its unique ID." } ], "auth": { @@ -4692,7 +4692,7 @@ "code": 204 } ], - "description": "" + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." } ], "auth": { @@ -9366,7 +9366,7 @@ "cookies": false, "type": "", "demo": "grids\/list-tables.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9447,7 +9447,7 @@ "cookies": false, "type": "", "demo": "grids\/create-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9553,7 +9553,7 @@ "cookies": false, "type": "", "demo": "grids\/get-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9621,7 +9621,7 @@ "cookies": false, "type": "", "demo": "grids\/update-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9723,7 +9723,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-table.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9774,7 +9774,7 @@ "tags": [ "grids" ], - "description": "List attributes in the collection.", + "description": "List columns in the table.", "responses": { "200": { "description": "Columns List", @@ -9791,7 +9791,7 @@ "cookies": false, "type": "", "demo": "grids\/list-columns.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9873,7 +9873,7 @@ "cookies": false, "type": "", "demo": "grids\/create-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9980,7 +9980,7 @@ "cookies": false, "type": "", "demo": "grids\/update-boolean-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10089,7 +10089,7 @@ "cookies": false, "type": "", "demo": "grids\/create-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10196,7 +10196,7 @@ "cookies": false, "type": "", "demo": "grids\/update-datetime-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10305,7 +10305,7 @@ "cookies": false, "type": "", "demo": "grids\/create-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10412,7 +10412,7 @@ "cookies": false, "type": "", "demo": "grids\/update-email-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10521,7 +10521,7 @@ "cookies": false, "type": "", "demo": "grids\/create-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10638,7 +10638,7 @@ "cookies": false, "type": "", "demo": "grids\/update-enum-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10757,7 +10757,7 @@ "cookies": false, "type": "", "demo": "grids\/create-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10876,7 +10876,7 @@ "cookies": false, "type": "", "demo": "grids\/update-float-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10997,7 +10997,7 @@ "cookies": false, "type": "", "demo": "grids\/create-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11116,7 +11116,7 @@ "cookies": false, "type": "", "demo": "grids\/update-integer-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11237,7 +11237,7 @@ "cookies": false, "type": "", "demo": "grids\/create-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11344,7 +11344,7 @@ "cookies": false, "type": "", "demo": "grids\/update-ip-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11453,7 +11453,7 @@ "cookies": false, "type": "", "demo": "grids\/create-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11587,7 +11587,7 @@ "cookies": false, "type": "", "demo": "grids\/create-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11707,7 +11707,7 @@ "cookies": false, "type": "", "demo": "grids\/update-string-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11822,7 +11822,7 @@ "cookies": false, "type": "", "demo": "grids\/create-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11929,7 +11929,7 @@ "cookies": false, "type": "", "demo": "grids\/update-url-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12067,7 +12067,7 @@ "cookies": false, "type": "", "demo": "grids\/get-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12137,7 +12137,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12214,7 +12214,7 @@ "cookies": false, "type": "", "demo": "grids\/update-relationship-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12300,7 +12300,7 @@ "tags": [ "grids" ], - "description": "List indexes in the collection.", + "description": "List indexes in the table.", "responses": { "200": { "description": "Column Indexes List", @@ -12317,7 +12317,7 @@ "cookies": false, "type": "", "demo": "grids\/list-indexes.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12380,7 +12380,7 @@ "tags": [ "grids" ], - "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", + "description": "Creates an index on the columns listed. Your index should include all the columns you will query in a single request.\nColumns can be `key`, `fulltext`, and `unique`.", "responses": { "202": { "description": "Index", @@ -12397,7 +12397,7 @@ "cookies": false, "type": "", "demo": "grids\/create-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12525,7 +12525,7 @@ "cookies": false, "type": "", "demo": "grids\/get-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12595,7 +12595,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-index.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12670,7 +12670,7 @@ "cookies": false, "type": "", "demo": "grids\/list-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12753,7 +12753,7 @@ "cookies": false, "type": "", "demo": "grids\/create-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -12918,7 +12918,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13027,7 +13027,7 @@ "cookies": false, "type": "", "demo": "grids\/update-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13120,7 +13120,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-rows.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13207,7 +13207,7 @@ "cookies": false, "type": "", "demo": "grids\/get-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13298,7 +13298,7 @@ "cookies": false, "type": "", "demo": "grids\/upsert-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13420,7 +13420,7 @@ "cookies": false, "type": "", "demo": "grids\/update-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13518,7 +13518,7 @@ "cookies": false, "type": "", "demo": "grids\/delete-row.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13599,7 +13599,7 @@ "cookies": false, "type": "", "demo": "grids\/decrement-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -13706,7 +13706,7 @@ "cookies": false, "type": "", "demo": "grids\/increment-row-column.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php index 0aec9998bd..d8b6e39ac6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Grids/Tables/Columns/XList.php @@ -36,7 +36,7 @@ class XList extends AttributesXList namespace: $this->getSdkNamespace(), group: $this->getSdkGroup(), name: self::getName(), - description: '/docs/references/grids/list-attributes.md', + description: '/docs/references/grids/list-columns.md', auth: [AuthType::KEY], responses: [ new SDKResponse( From e4a02b0d74031a41026e5cc99261ea14275cbfc8 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 16:40:55 +0530 Subject: [PATCH 08/24] delete: tables examples. --- .../client-android/java/tables/create-row.md | 28 ---------------- .../client-android/java/tables/create-rows.md | 25 -------------- .../client-android/java/tables/delete-row.md | 24 -------------- .../client-android/java/tables/get-row.md | 25 -------------- .../client-android/java/tables/list-rows.md | 24 -------------- .../client-android/java/tables/update-row.md | 26 --------------- .../client-android/java/tables/upsert-row.md | 26 --------------- .../kotlin/tables/create-row.md | 19 ----------- .../kotlin/tables/create-rows.md | 16 --------- .../kotlin/tables/delete-row.md | 15 --------- .../client-android/kotlin/tables/get-row.md | 16 --------- .../client-android/kotlin/tables/list-rows.md | 15 --------- .../kotlin/tables/update-row.md | 17 ---------- .../kotlin/tables/upsert-row.md | 17 ---------- .../examples/tables/create-row.md | 18 ---------- .../examples/tables/create-rows.md | 15 --------- .../examples/tables/delete-row.md | 14 -------- .../client-apple/examples/tables/get-row.md | 15 --------- .../client-apple/examples/tables/list-rows.md | 14 -------- .../examples/tables/update-row.md | 16 --------- .../examples/tables/upsert-row.md | 16 --------- .../examples/tables/create-row.md | 17 ---------- .../examples/tables/create-rows.md | 14 -------- .../examples/tables/delete-row.md | 13 -------- .../client-flutter/examples/tables/get-row.md | 14 -------- .../examples/tables/list-rows.md | 13 -------- .../examples/tables/update-row.md | 15 --------- .../examples/tables/upsert-row.md | 15 --------- .../examples/tables/create-row.md | 18 ---------- .../examples/tables/create-rows.md | 19 ----------- .../examples/tables/delete-row.md | 9 ----- .../client-graphql/examples/tables/get-row.md | 0 .../examples/tables/list-rows.md | 0 .../examples/tables/update-row.md | 18 ---------- .../examples/tables/upsert-row.md | 16 --------- .../examples/tables/create-row.md | 19 ----------- .../examples/tables/create-rows.md | 16 --------- .../examples/tables/delete-row.md | 15 --------- .../examples/tables/get-row.md | 16 --------- .../examples/tables/list-rows.md | 15 --------- .../examples/tables/update-row.md | 17 ---------- .../examples/tables/upsert-row.md | 17 ---------- .../client-rest/examples/tables/create-row.md | 13 -------- .../examples/tables/create-rows.md | 11 ------- .../client-rest/examples/tables/delete-row.md | 8 ----- .../client-rest/examples/tables/get-row.md | 6 ---- .../client-rest/examples/tables/list-rows.md | 6 ---- .../client-rest/examples/tables/update-row.md | 12 ------- .../client-rest/examples/tables/upsert-row.md | 8 ----- .../client-web/examples/tables/create-row.md | 19 ----------- .../client-web/examples/tables/create-rows.md | 16 --------- .../client-web/examples/tables/delete-row.md | 15 --------- .../client-web/examples/tables/get-row.md | 16 --------- .../client-web/examples/tables/list-rows.md | 15 --------- .../client-web/examples/tables/update-row.md | 17 ---------- .../client-web/examples/tables/upsert-row.md | 17 ---------- .../examples/tables/create-boolean-column.md | 7 ---- .../examples/tables/create-datetime-column.md | 7 ---- .../examples/tables/create-email-column.md | 7 ---- .../examples/tables/create-enum-column.md | 8 ----- .../examples/tables/create-float-column.md | 9 ----- .../examples/tables/create-index.md | 8 ----- .../examples/tables/create-integer-column.md | 9 ----- .../examples/tables/create-ip-column.md | 7 ---- .../tables/create-relationship-column.md | 9 ----- .../console-cli/examples/tables/create-row.md | 6 ---- .../examples/tables/create-rows.md | 4 --- .../examples/tables/create-string-column.md | 9 ----- .../examples/tables/create-url-column.md | 7 ---- .../console-cli/examples/tables/create.md | 7 ---- .../examples/tables/decrement-row-column.md | 7 ---- .../examples/tables/delete-column.md | 4 --- .../examples/tables/delete-index.md | 4 --- .../console-cli/examples/tables/delete-row.md | 4 --- .../examples/tables/delete-rows.md | 4 --- .../console-cli/examples/tables/delete.md | 3 -- .../console-cli/examples/tables/get-column.md | 4 --- .../console-cli/examples/tables/get-index.md | 4 --- .../console-cli/examples/tables/get-row.md | 5 --- .../examples/tables/get-table-usage.md | 4 --- .../console-cli/examples/tables/get-usage.md | 4 --- .../1.8.x/console-cli/examples/tables/get.md | 3 -- .../examples/tables/increment-row-column.md | 7 ---- .../examples/tables/list-columns.md | 4 --- .../examples/tables/list-indexes.md | 4 --- .../console-cli/examples/tables/list-logs.md | 4 --- .../examples/tables/list-row-logs.md | 5 --- .../console-cli/examples/tables/list-rows.md | 4 --- .../1.8.x/console-cli/examples/tables/list.md | 4 --- .../examples/tables/update-boolean-column.md | 7 ---- .../examples/tables/update-datetime-column.md | 7 ---- .../examples/tables/update-email-column.md | 7 ---- .../examples/tables/update-enum-column.md | 8 ----- .../examples/tables/update-float-column.md | 9 ----- .../examples/tables/update-integer-column.md | 9 ----- .../examples/tables/update-ip-column.md | 7 ---- .../tables/update-relationship-column.md | 6 ---- .../console-cli/examples/tables/update-row.md | 6 ---- .../examples/tables/update-rows.md | 5 --- .../examples/tables/update-string-column.md | 8 ----- .../examples/tables/update-url-column.md | 7 ---- .../console-cli/examples/tables/update.md | 7 ---- .../console-cli/examples/tables/upsert-row.md | 4 --- .../examples/tables/upsert-rows.md | 3 -- .../examples/tables/create-boolean-column.md | 18 ---------- .../examples/tables/create-datetime-column.md | 18 ---------- .../examples/tables/create-email-column.md | 18 ---------- .../examples/tables/create-enum-column.md | 19 ----------- .../examples/tables/create-float-column.md | 20 ----------- .../examples/tables/create-index.md | 19 ----------- .../examples/tables/create-integer-column.md | 20 ----------- .../examples/tables/create-ip-column.md | 18 ---------- .../tables/create-relationship-column.md | 20 ----------- .../console-web/examples/tables/create-row.md | 19 ----------- .../examples/tables/create-rows.md | 16 --------- .../examples/tables/create-string-column.md | 20 ----------- .../examples/tables/create-url-column.md | 18 ---------- .../console-web/examples/tables/create.md | 18 ---------- .../examples/tables/decrement-row-column.md | 18 ---------- .../examples/tables/delete-column.md | 15 --------- .../examples/tables/delete-index.md | 15 --------- .../console-web/examples/tables/delete-row.md | 15 --------- .../examples/tables/delete-rows.md | 15 --------- .../console-web/examples/tables/delete.md | 14 -------- .../console-web/examples/tables/get-column.md | 15 --------- .../console-web/examples/tables/get-index.md | 15 --------- .../console-web/examples/tables/get-row.md | 16 --------- .../examples/tables/get-table-usage.md | 15 --------- .../console-web/examples/tables/get-usage.md | 15 --------- .../1.8.x/console-web/examples/tables/get.md | 14 -------- .../examples/tables/increment-row-column.md | 18 ---------- .../examples/tables/list-columns.md | 15 --------- .../examples/tables/list-indexes.md | 15 --------- .../console-web/examples/tables/list-logs.md | 15 --------- .../examples/tables/list-row-logs.md | 16 --------- .../console-web/examples/tables/list-rows.md | 15 --------- .../1.8.x/console-web/examples/tables/list.md | 15 --------- .../examples/tables/update-boolean-column.md | 18 ---------- .../examples/tables/update-datetime-column.md | 18 ---------- .../examples/tables/update-email-column.md | 18 ---------- .../examples/tables/update-enum-column.md | 19 ----------- .../examples/tables/update-float-column.md | 20 ----------- .../examples/tables/update-integer-column.md | 20 ----------- .../examples/tables/update-ip-column.md | 18 ---------- .../tables/update-relationship-column.md | 17 ---------- .../console-web/examples/tables/update-row.md | 17 ---------- .../examples/tables/update-rows.md | 16 --------- .../examples/tables/update-string-column.md | 19 ----------- .../examples/tables/update-url-column.md | 18 ---------- .../console-web/examples/tables/update.md | 18 ---------- .../console-web/examples/tables/upsert-row.md | 17 ---------- .../examples/tables/upsert-rows.md | 15 --------- .../examples/tables/create-boolean-column.md | 17 ---------- .../examples/tables/create-datetime-column.md | 17 ---------- .../examples/tables/create-email-column.md | 17 ---------- .../examples/tables/create-enum-column.md | 18 ---------- .../examples/tables/create-float-column.md | 19 ----------- .../examples/tables/create-index.md | 18 ---------- .../examples/tables/create-integer-column.md | 19 ----------- .../examples/tables/create-ip-column.md | 17 ---------- .../tables/create-relationship-column.md | 19 ----------- .../server-dart/examples/tables/create-row.md | 17 ---------- .../examples/tables/create-rows.md | 14 -------- .../examples/tables/create-string-column.md | 19 ----------- .../examples/tables/create-url-column.md | 17 ---------- .../server-dart/examples/tables/create.md | 17 ---------- .../examples/tables/decrement-row-column.md | 17 ---------- .../examples/tables/delete-column.md | 14 -------- .../examples/tables/delete-index.md | 14 -------- .../server-dart/examples/tables/delete-row.md | 14 -------- .../examples/tables/delete-rows.md | 14 -------- .../server-dart/examples/tables/delete.md | 13 -------- .../server-dart/examples/tables/get-column.md | 14 -------- .../server-dart/examples/tables/get-index.md | 14 -------- .../server-dart/examples/tables/get-row.md | 15 --------- .../1.8.x/server-dart/examples/tables/get.md | 13 -------- .../examples/tables/increment-row-column.md | 17 ---------- .../examples/tables/list-columns.md | 14 -------- .../examples/tables/list-indexes.md | 14 -------- .../server-dart/examples/tables/list-rows.md | 14 -------- .../1.8.x/server-dart/examples/tables/list.md | 14 -------- .../examples/tables/update-boolean-column.md | 17 ---------- .../examples/tables/update-datetime-column.md | 17 ---------- .../examples/tables/update-email-column.md | 17 ---------- .../examples/tables/update-enum-column.md | 18 ---------- .../examples/tables/update-float-column.md | 19 ----------- .../examples/tables/update-integer-column.md | 19 ----------- .../examples/tables/update-ip-column.md | 17 ---------- .../tables/update-relationship-column.md | 16 --------- .../server-dart/examples/tables/update-row.md | 16 --------- .../examples/tables/update-rows.md | 15 --------- .../examples/tables/update-string-column.md | 18 ---------- .../examples/tables/update-url-column.md | 17 ---------- .../server-dart/examples/tables/update.md | 17 ---------- .../server-dart/examples/tables/upsert-row.md | 15 --------- .../examples/tables/upsert-rows.md | 13 -------- .../examples/tables/create-boolean-column.md | 17 ---------- .../examples/tables/create-datetime-column.md | 17 ---------- .../examples/tables/create-email-column.md | 17 ---------- .../examples/tables/create-enum-column.md | 18 ---------- .../examples/tables/create-float-column.md | 19 ----------- .../examples/tables/create-index.md | 18 ---------- .../examples/tables/create-integer-column.md | 19 ----------- .../examples/tables/create-ip-column.md | 17 ---------- .../tables/create-relationship-column.md | 19 ----------- .../server-deno/examples/tables/create-row.md | 17 ---------- .../examples/tables/create-rows.md | 14 -------- .../examples/tables/create-string-column.md | 19 ----------- .../examples/tables/create-url-column.md | 17 ---------- .../server-deno/examples/tables/create.md | 17 ---------- .../examples/tables/decrement-row-column.md | 17 ---------- .../examples/tables/delete-column.md | 14 -------- .../examples/tables/delete-index.md | 14 -------- .../server-deno/examples/tables/delete-row.md | 14 -------- .../examples/tables/delete-rows.md | 14 -------- .../server-deno/examples/tables/delete.md | 13 -------- .../server-deno/examples/tables/get-column.md | 14 -------- .../server-deno/examples/tables/get-index.md | 14 -------- .../server-deno/examples/tables/get-row.md | 15 --------- .../1.8.x/server-deno/examples/tables/get.md | 13 -------- .../examples/tables/increment-row-column.md | 17 ---------- .../examples/tables/list-columns.md | 14 -------- .../examples/tables/list-indexes.md | 14 -------- .../server-deno/examples/tables/list-rows.md | 14 -------- .../1.8.x/server-deno/examples/tables/list.md | 14 -------- .../examples/tables/update-boolean-column.md | 17 ---------- .../examples/tables/update-datetime-column.md | 17 ---------- .../examples/tables/update-email-column.md | 17 ---------- .../examples/tables/update-enum-column.md | 18 ---------- .../examples/tables/update-float-column.md | 19 ----------- .../examples/tables/update-integer-column.md | 19 ----------- .../examples/tables/update-ip-column.md | 17 ---------- .../tables/update-relationship-column.md | 16 --------- .../server-deno/examples/tables/update-row.md | 16 --------- .../examples/tables/update-rows.md | 15 --------- .../examples/tables/update-string-column.md | 18 ---------- .../examples/tables/update-url-column.md | 17 ---------- .../server-deno/examples/tables/update.md | 17 ---------- .../server-deno/examples/tables/upsert-row.md | 15 --------- .../examples/tables/upsert-rows.md | 13 -------- .../examples/tables/create-boolean-column.md | 19 ----------- .../examples/tables/create-datetime-column.md | 19 ----------- .../examples/tables/create-email-column.md | 19 ----------- .../examples/tables/create-enum-column.md | 20 ----------- .../examples/tables/create-float-column.md | 21 ------------ .../examples/tables/create-index.md | 21 ------------ .../examples/tables/create-integer-column.md | 21 ------------ .../examples/tables/create-ip-column.md | 19 ----------- .../tables/create-relationship-column.md | 22 ------------- .../examples/tables/create-row.md | 19 ----------- .../examples/tables/create-rows.md | 16 --------- .../examples/tables/create-string-column.md | 21 ------------ .../examples/tables/create-url-column.md | 19 ----------- .../server-dotnet/examples/tables/create.md | 19 ----------- .../examples/tables/decrement-row-column.md | 19 ----------- .../examples/tables/delete-column.md | 16 --------- .../examples/tables/delete-index.md | 16 --------- .../examples/tables/delete-row.md | 16 --------- .../examples/tables/delete-rows.md | 16 --------- .../server-dotnet/examples/tables/delete.md | 15 --------- .../examples/tables/get-column.md | 16 --------- .../examples/tables/get-index.md | 16 --------- .../server-dotnet/examples/tables/get-row.md | 17 ---------- .../server-dotnet/examples/tables/get.md | 15 --------- .../examples/tables/increment-row-column.md | 19 ----------- .../examples/tables/list-columns.md | 16 --------- .../examples/tables/list-indexes.md | 16 --------- .../examples/tables/list-rows.md | 16 --------- .../server-dotnet/examples/tables/list.md | 16 --------- .../examples/tables/update-boolean-column.md | 19 ----------- .../examples/tables/update-datetime-column.md | 19 ----------- .../examples/tables/update-email-column.md | 19 ----------- .../examples/tables/update-enum-column.md | 20 ----------- .../examples/tables/update-float-column.md | 21 ------------ .../examples/tables/update-integer-column.md | 21 ------------ .../examples/tables/update-ip-column.md | 19 ----------- .../tables/update-relationship-column.md | 19 ----------- .../examples/tables/update-row.md | 18 ---------- .../examples/tables/update-rows.md | 17 ---------- .../examples/tables/update-string-column.md | 20 ----------- .../examples/tables/update-url-column.md | 19 ----------- .../server-dotnet/examples/tables/update.md | 19 ----------- .../examples/tables/upsert-row.md | 17 ---------- .../examples/tables/upsert-rows.md | 15 --------- .../examples/tables/create-boolean-column.md | 31 ----------------- .../examples/tables/create-datetime-column.md | 31 ----------------- .../examples/tables/create-email-column.md | 31 ----------------- .../examples/tables/create-enum-column.md | 32 ------------------ .../examples/tables/create-float-column.md | 33 ------------------- .../server-go/examples/tables/create-index.md | 32 ------------------ .../examples/tables/create-integer-column.md | 33 ------------------- .../examples/tables/create-ip-column.md | 31 ----------------- .../tables/create-relationship-column.md | 33 ------------------- .../server-go/examples/tables/create-row.md | 31 ----------------- .../server-go/examples/tables/create-rows.md | 28 ---------------- .../examples/tables/create-string-column.md | 33 ------------------- .../examples/tables/create-url-column.md | 31 ----------------- .../1.8.x/server-go/examples/tables/create.md | 31 ----------------- .../examples/tables/decrement-row-column.md | 31 ----------------- .../examples/tables/delete-column.md | 28 ---------------- .../server-go/examples/tables/delete-index.md | 28 ---------------- .../server-go/examples/tables/delete-row.md | 28 ---------------- .../server-go/examples/tables/delete-rows.md | 28 ---------------- .../1.8.x/server-go/examples/tables/delete.md | 27 --------------- .../server-go/examples/tables/get-column.md | 28 ---------------- .../server-go/examples/tables/get-index.md | 28 ---------------- .../server-go/examples/tables/get-row.md | 29 ---------------- .../1.8.x/server-go/examples/tables/get.md | 27 --------------- .../examples/tables/increment-row-column.md | 31 ----------------- .../server-go/examples/tables/list-columns.md | 28 ---------------- .../server-go/examples/tables/list-indexes.md | 28 ---------------- .../server-go/examples/tables/list-rows.md | 28 ---------------- .../1.8.x/server-go/examples/tables/list.md | 28 ---------------- .../examples/tables/update-boolean-column.md | 31 ----------------- .../examples/tables/update-datetime-column.md | 31 ----------------- .../examples/tables/update-email-column.md | 31 ----------------- .../examples/tables/update-enum-column.md | 32 ------------------ .../examples/tables/update-float-column.md | 33 ------------------- .../examples/tables/update-integer-column.md | 33 ------------------- .../examples/tables/update-ip-column.md | 31 ----------------- .../tables/update-relationship-column.md | 30 ----------------- .../server-go/examples/tables/update-row.md | 30 ----------------- .../server-go/examples/tables/update-rows.md | 29 ---------------- .../examples/tables/update-string-column.md | 32 ------------------ .../examples/tables/update-url-column.md | 31 ----------------- .../1.8.x/server-go/examples/tables/update.md | 31 ----------------- .../server-go/examples/tables/upsert-row.md | 29 ---------------- .../server-go/examples/tables/upsert-rows.md | 27 --------------- .../examples/tables/create-boolean-column.md | 20 ----------- .../examples/tables/create-datetime-column.md | 21 ------------ .../examples/tables/create-email-column.md | 21 ------------ .../examples/tables/create-enum-column.md | 23 ------------- .../examples/tables/create-float-column.md | 24 -------------- .../examples/tables/create-index.md | 21 ------------ .../examples/tables/create-integer-column.md | 24 -------------- .../examples/tables/create-ip-column.md | 21 ------------ .../tables/create-relationship-column.md | 27 --------------- .../examples/tables/create-row.md | 18 ---------- .../examples/tables/create-rows.md | 19 ----------- .../examples/tables/create-string-column.md | 24 -------------- .../examples/tables/create-url-column.md | 21 ------------ .../server-graphql/examples/tables/create.md | 31 ----------------- .../examples/tables/decrement-row-column.md | 19 ----------- .../examples/tables/delete-column.md | 9 ----- .../examples/tables/delete-index.md | 9 ----- .../examples/tables/delete-row.md | 9 ----- .../examples/tables/delete-rows.md | 19 ----------- .../server-graphql/examples/tables/delete.md | 8 ----- .../examples/tables/get-column.md | 0 .../examples/tables/get-index.md | 0 .../server-graphql/examples/tables/get-row.md | 0 .../server-graphql/examples/tables/get.md | 0 .../examples/tables/increment-row-column.md | 19 ----------- .../examples/tables/list-columns.md | 0 .../examples/tables/list-indexes.md | 0 .../examples/tables/list-rows.md | 0 .../server-graphql/examples/tables/list.md | 0 .../examples/tables/update-boolean-column.md | 20 ----------- .../examples/tables/update-datetime-column.md | 21 ------------ .../examples/tables/update-email-column.md | 21 ------------ .../examples/tables/update-enum-column.md | 23 ------------- .../examples/tables/update-float-column.md | 24 -------------- .../examples/tables/update-integer-column.md | 24 -------------- .../examples/tables/update-ip-column.md | 21 ------------ .../tables/update-relationship-column.md | 24 -------------- .../examples/tables/update-row.md | 18 ---------- .../examples/tables/update-rows.md | 20 ----------- .../examples/tables/update-string-column.md | 23 ------------- .../examples/tables/update-url-column.md | 21 ------------ .../server-graphql/examples/tables/update.md | 31 ----------------- .../examples/tables/upsert-row.md | 16 --------- .../examples/tables/upsert-rows.md | 18 ---------- .../java/tables/create-boolean-column.md | 28 ---------------- .../java/tables/create-datetime-column.md | 28 ---------------- .../java/tables/create-email-column.md | 28 ---------------- .../java/tables/create-enum-column.md | 29 ---------------- .../java/tables/create-float-column.md | 30 ----------------- .../server-kotlin/java/tables/create-index.md | 30 ----------------- .../java/tables/create-integer-column.md | 30 ----------------- .../java/tables/create-ip-column.md | 28 ---------------- .../java/tables/create-relationship-column.md | 31 ----------------- .../server-kotlin/java/tables/create-row.md | 28 ---------------- .../server-kotlin/java/tables/create-rows.md | 25 -------------- .../java/tables/create-string-column.md | 30 ----------------- .../java/tables/create-url-column.md | 28 ---------------- .../1.8.x/server-kotlin/java/tables/create.md | 28 ---------------- .../java/tables/decrement-row-column.md | 28 ---------------- .../java/tables/delete-column.md | 25 -------------- .../server-kotlin/java/tables/delete-index.md | 25 -------------- .../server-kotlin/java/tables/delete-row.md | 25 -------------- .../server-kotlin/java/tables/delete-rows.md | 25 -------------- .../1.8.x/server-kotlin/java/tables/delete.md | 24 -------------- .../server-kotlin/java/tables/get-column.md | 25 -------------- .../server-kotlin/java/tables/get-index.md | 25 -------------- .../server-kotlin/java/tables/get-row.md | 26 --------------- .../1.8.x/server-kotlin/java/tables/get.md | 24 -------------- .../java/tables/increment-row-column.md | 28 ---------------- .../server-kotlin/java/tables/list-columns.md | 25 -------------- .../server-kotlin/java/tables/list-indexes.md | 25 -------------- .../server-kotlin/java/tables/list-rows.md | 25 -------------- .../1.8.x/server-kotlin/java/tables/list.md | 25 -------------- .../java/tables/update-boolean-column.md | 28 ---------------- .../java/tables/update-datetime-column.md | 28 ---------------- .../java/tables/update-email-column.md | 28 ---------------- .../java/tables/update-enum-column.md | 29 ---------------- .../java/tables/update-float-column.md | 30 ----------------- .../java/tables/update-integer-column.md | 30 ----------------- .../java/tables/update-ip-column.md | 28 ---------------- .../java/tables/update-relationship-column.md | 27 --------------- .../server-kotlin/java/tables/update-row.md | 27 --------------- .../server-kotlin/java/tables/update-rows.md | 26 --------------- .../java/tables/update-string-column.md | 29 ---------------- .../java/tables/update-url-column.md | 28 ---------------- .../1.8.x/server-kotlin/java/tables/update.md | 28 ---------------- .../server-kotlin/java/tables/upsert-row.md | 26 --------------- .../server-kotlin/java/tables/upsert-rows.md | 24 -------------- .../kotlin/tables/create-boolean-column.md | 19 ----------- .../kotlin/tables/create-datetime-column.md | 19 ----------- .../kotlin/tables/create-email-column.md | 19 ----------- .../kotlin/tables/create-enum-column.md | 20 ----------- .../kotlin/tables/create-float-column.md | 21 ------------ .../kotlin/tables/create-index.md | 21 ------------ .../kotlin/tables/create-integer-column.md | 21 ------------ .../kotlin/tables/create-ip-column.md | 19 ----------- .../tables/create-relationship-column.md | 22 ------------- .../server-kotlin/kotlin/tables/create-row.md | 19 ----------- .../kotlin/tables/create-rows.md | 16 --------- .../kotlin/tables/create-string-column.md | 21 ------------ .../kotlin/tables/create-url-column.md | 19 ----------- .../server-kotlin/kotlin/tables/create.md | 19 ----------- .../kotlin/tables/decrement-row-column.md | 19 ----------- .../kotlin/tables/delete-column.md | 16 --------- .../kotlin/tables/delete-index.md | 16 --------- .../server-kotlin/kotlin/tables/delete-row.md | 16 --------- .../kotlin/tables/delete-rows.md | 16 --------- .../server-kotlin/kotlin/tables/delete.md | 15 --------- .../server-kotlin/kotlin/tables/get-column.md | 16 --------- .../server-kotlin/kotlin/tables/get-index.md | 16 --------- .../server-kotlin/kotlin/tables/get-row.md | 17 ---------- .../1.8.x/server-kotlin/kotlin/tables/get.md | 15 --------- .../kotlin/tables/increment-row-column.md | 19 ----------- .../kotlin/tables/list-columns.md | 16 --------- .../kotlin/tables/list-indexes.md | 16 --------- .../server-kotlin/kotlin/tables/list-rows.md | 16 --------- .../1.8.x/server-kotlin/kotlin/tables/list.md | 16 --------- .../kotlin/tables/update-boolean-column.md | 19 ----------- .../kotlin/tables/update-datetime-column.md | 19 ----------- .../kotlin/tables/update-email-column.md | 19 ----------- .../kotlin/tables/update-enum-column.md | 20 ----------- .../kotlin/tables/update-float-column.md | 21 ------------ .../kotlin/tables/update-integer-column.md | 21 ------------ .../kotlin/tables/update-ip-column.md | 19 ----------- .../tables/update-relationship-column.md | 18 ---------- .../server-kotlin/kotlin/tables/update-row.md | 18 ---------- .../kotlin/tables/update-rows.md | 17 ---------- .../kotlin/tables/update-string-column.md | 20 ----------- .../kotlin/tables/update-url-column.md | 19 ----------- .../server-kotlin/kotlin/tables/update.md | 19 ----------- .../server-kotlin/kotlin/tables/upsert-row.md | 17 ---------- .../kotlin/tables/upsert-rows.md | 15 --------- .../examples/tables/create-boolean-column.md | 17 ---------- .../examples/tables/create-datetime-column.md | 17 ---------- .../examples/tables/create-email-column.md | 17 ---------- .../examples/tables/create-enum-column.md | 18 ---------- .../examples/tables/create-float-column.md | 19 ----------- .../examples/tables/create-index.md | 18 ---------- .../examples/tables/create-integer-column.md | 19 ----------- .../examples/tables/create-ip-column.md | 17 ---------- .../tables/create-relationship-column.md | 19 ----------- .../examples/tables/create-row.md | 17 ---------- .../examples/tables/create-rows.md | 14 -------- .../examples/tables/create-string-column.md | 19 ----------- .../examples/tables/create-url-column.md | 17 ---------- .../server-nodejs/examples/tables/create.md | 17 ---------- .../examples/tables/decrement-row-column.md | 17 ---------- .../examples/tables/delete-column.md | 14 -------- .../examples/tables/delete-index.md | 14 -------- .../examples/tables/delete-row.md | 14 -------- .../examples/tables/delete-rows.md | 14 -------- .../server-nodejs/examples/tables/delete.md | 13 -------- .../examples/tables/get-column.md | 14 -------- .../examples/tables/get-index.md | 14 -------- .../server-nodejs/examples/tables/get-row.md | 15 --------- .../server-nodejs/examples/tables/get.md | 13 -------- .../examples/tables/increment-row-column.md | 17 ---------- .../examples/tables/list-columns.md | 14 -------- .../examples/tables/list-indexes.md | 14 -------- .../examples/tables/list-rows.md | 14 -------- .../server-nodejs/examples/tables/list.md | 14 -------- .../examples/tables/update-boolean-column.md | 17 ---------- .../examples/tables/update-datetime-column.md | 17 ---------- .../examples/tables/update-email-column.md | 17 ---------- .../examples/tables/update-enum-column.md | 18 ---------- .../examples/tables/update-float-column.md | 19 ----------- .../examples/tables/update-integer-column.md | 19 ----------- .../examples/tables/update-ip-column.md | 17 ---------- .../tables/update-relationship-column.md | 16 --------- .../examples/tables/update-row.md | 16 --------- .../examples/tables/update-rows.md | 15 --------- .../examples/tables/update-string-column.md | 18 ---------- .../examples/tables/update-url-column.md | 17 ---------- .../server-nodejs/examples/tables/update.md | 17 ---------- .../examples/tables/upsert-row.md | 15 --------- .../examples/tables/upsert-rows.md | 13 -------- .../examples/tables/create-boolean-column.md | 20 ----------- .../examples/tables/create-datetime-column.md | 20 ----------- .../examples/tables/create-email-column.md | 20 ----------- .../examples/tables/create-enum-column.md | 21 ------------ .../examples/tables/create-float-column.md | 22 ------------- .../examples/tables/create-index.md | 22 ------------- .../examples/tables/create-integer-column.md | 22 ------------- .../examples/tables/create-ip-column.md | 20 ----------- .../tables/create-relationship-column.md | 23 ------------- .../server-php/examples/tables/create-row.md | 20 ----------- .../server-php/examples/tables/create-rows.md | 17 ---------- .../examples/tables/create-string-column.md | 22 ------------- .../examples/tables/create-url-column.md | 20 ----------- .../server-php/examples/tables/create.md | 20 ----------- .../examples/tables/decrement-row-column.md | 20 ----------- .../examples/tables/delete-column.md | 17 ---------- .../examples/tables/delete-index.md | 17 ---------- .../server-php/examples/tables/delete-row.md | 17 ---------- .../server-php/examples/tables/delete-rows.md | 17 ---------- .../server-php/examples/tables/delete.md | 16 --------- .../server-php/examples/tables/get-column.md | 17 ---------- .../server-php/examples/tables/get-index.md | 17 ---------- .../server-php/examples/tables/get-row.md | 18 ---------- .../1.8.x/server-php/examples/tables/get.md | 16 --------- .../examples/tables/increment-row-column.md | 20 ----------- .../examples/tables/list-columns.md | 17 ---------- .../examples/tables/list-indexes.md | 17 ---------- .../server-php/examples/tables/list-rows.md | 17 ---------- .../1.8.x/server-php/examples/tables/list.md | 17 ---------- .../examples/tables/update-boolean-column.md | 20 ----------- .../examples/tables/update-datetime-column.md | 20 ----------- .../examples/tables/update-email-column.md | 20 ----------- .../examples/tables/update-enum-column.md | 21 ------------ .../examples/tables/update-float-column.md | 22 ------------- .../examples/tables/update-integer-column.md | 22 ------------- .../examples/tables/update-ip-column.md | 20 ----------- .../tables/update-relationship-column.md | 19 ----------- .../server-php/examples/tables/update-row.md | 19 ----------- .../server-php/examples/tables/update-rows.md | 18 ---------- .../examples/tables/update-string-column.md | 21 ------------ .../examples/tables/update-url-column.md | 20 ----------- .../server-php/examples/tables/update.md | 20 ----------- .../server-php/examples/tables/upsert-row.md | 18 ---------- .../server-php/examples/tables/upsert-rows.md | 16 --------- .../examples/tables/create-boolean-column.md | 18 ---------- .../examples/tables/create-datetime-column.md | 18 ---------- .../examples/tables/create-email-column.md | 18 ---------- .../examples/tables/create-enum-column.md | 19 ----------- .../examples/tables/create-float-column.md | 20 ----------- .../examples/tables/create-index.md | 20 ----------- .../examples/tables/create-integer-column.md | 20 ----------- .../examples/tables/create-ip-column.md | 18 ---------- .../tables/create-relationship-column.md | 21 ------------ .../examples/tables/create-row.md | 18 ---------- .../examples/tables/create-rows.md | 15 --------- .../examples/tables/create-string-column.md | 20 ----------- .../examples/tables/create-url-column.md | 18 ---------- .../server-python/examples/tables/create.md | 18 ---------- .../examples/tables/decrement-row-column.md | 18 ---------- .../examples/tables/delete-column.md | 15 --------- .../examples/tables/delete-index.md | 15 --------- .../examples/tables/delete-row.md | 15 --------- .../examples/tables/delete-rows.md | 15 --------- .../server-python/examples/tables/delete.md | 14 -------- .../examples/tables/get-column.md | 15 --------- .../examples/tables/get-index.md | 15 --------- .../server-python/examples/tables/get-row.md | 16 --------- .../server-python/examples/tables/get.md | 14 -------- .../examples/tables/increment-row-column.md | 18 ---------- .../examples/tables/list-columns.md | 15 --------- .../examples/tables/list-indexes.md | 15 --------- .../examples/tables/list-rows.md | 15 --------- .../server-python/examples/tables/list.md | 15 --------- .../examples/tables/update-boolean-column.md | 18 ---------- .../examples/tables/update-datetime-column.md | 18 ---------- .../examples/tables/update-email-column.md | 18 ---------- .../examples/tables/update-enum-column.md | 19 ----------- .../examples/tables/update-float-column.md | 20 ----------- .../examples/tables/update-integer-column.md | 20 ----------- .../examples/tables/update-ip-column.md | 18 ---------- .../tables/update-relationship-column.md | 17 ---------- .../examples/tables/update-row.md | 17 ---------- .../examples/tables/update-rows.md | 16 --------- .../examples/tables/update-string-column.md | 19 ----------- .../examples/tables/update-url-column.md | 18 ---------- .../server-python/examples/tables/update.md | 18 ---------- .../examples/tables/upsert-row.md | 16 --------- .../examples/tables/upsert-rows.md | 14 -------- .../examples/tables/create-boolean-column.md | 13 -------- .../examples/tables/create-datetime-column.md | 13 -------- .../examples/tables/create-email-column.md | 13 -------- .../examples/tables/create-enum-column.md | 14 -------- .../examples/tables/create-float-column.md | 15 --------- .../examples/tables/create-index.md | 14 -------- .../examples/tables/create-integer-column.md | 15 --------- .../examples/tables/create-ip-column.md | 13 -------- .../tables/create-relationship-column.md | 15 --------- .../server-rest/examples/tables/create-row.md | 14 -------- .../examples/tables/create-rows.md | 12 ------- .../examples/tables/create-string-column.md | 15 --------- .../examples/tables/create-url-column.md | 13 -------- .../server-rest/examples/tables/create.md | 14 -------- .../examples/tables/decrement-row-column.md | 11 ------- .../examples/tables/delete-column.md | 7 ---- .../examples/tables/delete-index.md | 7 ---- .../server-rest/examples/tables/delete-row.md | 9 ----- .../examples/tables/delete-rows.md | 10 ------ .../server-rest/examples/tables/delete.md | 7 ---- .../server-rest/examples/tables/get-column.md | 5 --- .../server-rest/examples/tables/get-index.md | 5 --- .../server-rest/examples/tables/get-row.md | 7 ---- .../1.8.x/server-rest/examples/tables/get.md | 5 --- .../examples/tables/increment-row-column.md | 11 ------- .../examples/tables/list-columns.md | 5 --- .../examples/tables/list-indexes.md | 5 --- .../server-rest/examples/tables/list-rows.md | 7 ---- .../1.8.x/server-rest/examples/tables/list.md | 5 --- .../examples/tables/update-boolean-column.md | 12 ------- .../examples/tables/update-datetime-column.md | 12 ------- .../examples/tables/update-email-column.md | 12 ------- .../examples/tables/update-enum-column.md | 13 -------- .../examples/tables/update-float-column.md | 14 -------- .../examples/tables/update-integer-column.md | 14 -------- .../examples/tables/update-ip-column.md | 12 ------- .../tables/update-relationship-column.md | 11 ------- .../server-rest/examples/tables/update-row.md | 13 -------- .../examples/tables/update-rows.md | 11 ------- .../examples/tables/update-string-column.md | 13 -------- .../examples/tables/update-url-column.md | 12 ------- .../server-rest/examples/tables/update.md | 13 -------- .../server-rest/examples/tables/upsert-row.md | 9 ----- .../examples/tables/upsert-rows.md | 7 ---- .../examples/tables/create-boolean-column.md | 19 ----------- .../examples/tables/create-datetime-column.md | 19 ----------- .../examples/tables/create-email-column.md | 19 ----------- .../examples/tables/create-enum-column.md | 20 ----------- .../examples/tables/create-float-column.md | 21 ------------ .../examples/tables/create-index.md | 21 ------------ .../examples/tables/create-integer-column.md | 21 ------------ .../examples/tables/create-ip-column.md | 19 ----------- .../tables/create-relationship-column.md | 22 ------------- .../server-ruby/examples/tables/create-row.md | 19 ----------- .../examples/tables/create-rows.md | 16 --------- .../examples/tables/create-string-column.md | 21 ------------ .../examples/tables/create-url-column.md | 19 ----------- .../server-ruby/examples/tables/create.md | 19 ----------- .../examples/tables/decrement-row-column.md | 19 ----------- .../examples/tables/delete-column.md | 16 --------- .../examples/tables/delete-index.md | 16 --------- .../server-ruby/examples/tables/delete-row.md | 16 --------- .../examples/tables/delete-rows.md | 16 --------- .../server-ruby/examples/tables/delete.md | 15 --------- .../server-ruby/examples/tables/get-column.md | 16 --------- .../server-ruby/examples/tables/get-index.md | 16 --------- .../server-ruby/examples/tables/get-row.md | 17 ---------- .../1.8.x/server-ruby/examples/tables/get.md | 15 --------- .../examples/tables/increment-row-column.md | 19 ----------- .../examples/tables/list-columns.md | 16 --------- .../examples/tables/list-indexes.md | 16 --------- .../server-ruby/examples/tables/list-rows.md | 16 --------- .../1.8.x/server-ruby/examples/tables/list.md | 16 --------- .../examples/tables/update-boolean-column.md | 19 ----------- .../examples/tables/update-datetime-column.md | 19 ----------- .../examples/tables/update-email-column.md | 19 ----------- .../examples/tables/update-enum-column.md | 20 ----------- .../examples/tables/update-float-column.md | 21 ------------ .../examples/tables/update-integer-column.md | 21 ------------ .../examples/tables/update-ip-column.md | 19 ----------- .../tables/update-relationship-column.md | 18 ---------- .../server-ruby/examples/tables/update-row.md | 18 ---------- .../examples/tables/update-rows.md | 17 ---------- .../examples/tables/update-string-column.md | 20 ----------- .../examples/tables/update-url-column.md | 19 ----------- .../server-ruby/examples/tables/update.md | 19 ----------- .../server-ruby/examples/tables/upsert-row.md | 17 ---------- .../examples/tables/upsert-rows.md | 15 --------- .../examples/tables/create-boolean-column.md | 18 ---------- .../examples/tables/create-datetime-column.md | 18 ---------- .../examples/tables/create-email-column.md | 18 ---------- .../examples/tables/create-enum-column.md | 19 ----------- .../examples/tables/create-float-column.md | 20 ----------- .../examples/tables/create-index.md | 20 ----------- .../examples/tables/create-integer-column.md | 20 ----------- .../examples/tables/create-ip-column.md | 18 ---------- .../tables/create-relationship-column.md | 21 ------------ .../examples/tables/create-row.md | 18 ---------- .../examples/tables/create-rows.md | 15 --------- .../examples/tables/create-string-column.md | 20 ----------- .../examples/tables/create-url-column.md | 18 ---------- .../server-swift/examples/tables/create.md | 18 ---------- .../examples/tables/decrement-row-column.md | 18 ---------- .../examples/tables/delete-column.md | 15 --------- .../examples/tables/delete-index.md | 15 --------- .../examples/tables/delete-row.md | 15 --------- .../examples/tables/delete-rows.md | 15 --------- .../server-swift/examples/tables/delete.md | 14 -------- .../examples/tables/get-column.md | 15 --------- .../server-swift/examples/tables/get-index.md | 15 --------- .../server-swift/examples/tables/get-row.md | 16 --------- .../1.8.x/server-swift/examples/tables/get.md | 14 -------- .../examples/tables/increment-row-column.md | 18 ---------- .../examples/tables/list-columns.md | 15 --------- .../examples/tables/list-indexes.md | 15 --------- .../server-swift/examples/tables/list-rows.md | 15 --------- .../server-swift/examples/tables/list.md | 15 --------- .../examples/tables/update-boolean-column.md | 18 ---------- .../examples/tables/update-datetime-column.md | 18 ---------- .../examples/tables/update-email-column.md | 18 ---------- .../examples/tables/update-enum-column.md | 19 ----------- .../examples/tables/update-float-column.md | 20 ----------- .../examples/tables/update-integer-column.md | 20 ----------- .../examples/tables/update-ip-column.md | 18 ---------- .../tables/update-relationship-column.md | 18 ---------- .../examples/tables/update-row.md | 17 ---------- .../examples/tables/update-rows.md | 16 --------- .../examples/tables/update-string-column.md | 19 ----------- .../examples/tables/update-url-column.md | 18 ---------- .../server-swift/examples/tables/update.md | 18 ---------- .../examples/tables/upsert-row.md | 16 --------- .../examples/tables/upsert-rows.md | 14 -------- .../databases/create-boolean-column.md | 1 - .../databases/create-datetime-column.md | 1 - .../databases/create-email-column.md | 1 - .../databases/create-enum-column.md | 1 - .../databases/create-float-column.md | 1 - .../databases/create-integer-column.md | 1 - docs/references/databases/create-ip-column.md | 1 - .../databases/create-relationship-column.md | 1 - docs/references/databases/create-row.md | 1 - docs/references/databases/create-rows.md | 1 - .../databases/create-string-column.md | 1 - docs/references/databases/create-table.md | 1 - .../references/databases/create-url-column.md | 1 - .../databases/decrement-row-column.md | 1 - docs/references/databases/delete-column.md | 1 - docs/references/databases/delete-row.md | 1 - docs/references/databases/delete-rows.md | 1 - docs/references/databases/delete-table.md | 1 - docs/references/databases/get-column.md | 1 - docs/references/databases/get-row-logs.md | 1 - docs/references/databases/get-row.md | 1 - docs/references/databases/get-table-logs.md | 1 - docs/references/databases/get-table-usage.md | 1 - docs/references/databases/get-table.md | 1 - .../databases/increment-row-column.md | 1 - docs/references/databases/list-columns.md | 1 - docs/references/databases/list-rows.md | 1 - docs/references/databases/list-tables.md | 1 - .../databases/update-boolean-column.md | 1 - .../databases/update-datetime-column.md | 1 - .../databases/update-email-column.md | 1 - .../databases/update-enum-column.md | 1 - .../databases/update-float-column.md | 1 - .../databases/update-integer-column.md | 1 - docs/references/databases/update-ip-column.md | 1 - .../databases/update-relationship-column.md | 1 - docs/references/databases/update-row.md | 1 - docs/references/databases/update-rows.md | 1 - .../databases/update-string-column.md | 1 - docs/references/databases/update-table.md | 1 - .../references/databases/update-url-column.md | 1 - docs/references/databases/upsert-row.md | 1 - docs/references/databases/upsert-rows.md | 1 - 767 files changed, 12655 deletions(-) delete mode 100644 docs/examples/1.8.x/client-android/java/tables/create-row.md delete mode 100644 docs/examples/1.8.x/client-android/java/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/client-android/java/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/client-android/java/tables/get-row.md delete mode 100644 docs/examples/1.8.x/client-android/java/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/client-android/java/tables/update-row.md delete mode 100644 docs/examples/1.8.x/client-android/java/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/create-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/get-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/update-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/client-web/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/client-web/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-table-usage.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-usage.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-logs.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-usage.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-logs.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/get.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/list.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-index.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete-index.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/get-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/get-index.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/get-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/get.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/list-columns.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/list-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/list.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/tables/upsert-rows.md delete mode 100644 docs/references/databases/create-boolean-column.md delete mode 100644 docs/references/databases/create-datetime-column.md delete mode 100644 docs/references/databases/create-email-column.md delete mode 100644 docs/references/databases/create-enum-column.md delete mode 100644 docs/references/databases/create-float-column.md delete mode 100644 docs/references/databases/create-integer-column.md delete mode 100644 docs/references/databases/create-ip-column.md delete mode 100644 docs/references/databases/create-relationship-column.md delete mode 100644 docs/references/databases/create-row.md delete mode 100644 docs/references/databases/create-rows.md delete mode 100644 docs/references/databases/create-string-column.md delete mode 100644 docs/references/databases/create-table.md delete mode 100644 docs/references/databases/create-url-column.md delete mode 100644 docs/references/databases/decrement-row-column.md delete mode 100644 docs/references/databases/delete-column.md delete mode 100644 docs/references/databases/delete-row.md delete mode 100644 docs/references/databases/delete-rows.md delete mode 100644 docs/references/databases/delete-table.md delete mode 100644 docs/references/databases/get-column.md delete mode 100644 docs/references/databases/get-row-logs.md delete mode 100644 docs/references/databases/get-row.md delete mode 100644 docs/references/databases/get-table-logs.md delete mode 100644 docs/references/databases/get-table-usage.md delete mode 100644 docs/references/databases/get-table.md delete mode 100644 docs/references/databases/increment-row-column.md delete mode 100644 docs/references/databases/list-columns.md delete mode 100644 docs/references/databases/list-rows.md delete mode 100644 docs/references/databases/list-tables.md delete mode 100644 docs/references/databases/update-boolean-column.md delete mode 100644 docs/references/databases/update-datetime-column.md delete mode 100644 docs/references/databases/update-email-column.md delete mode 100644 docs/references/databases/update-enum-column.md delete mode 100644 docs/references/databases/update-float-column.md delete mode 100644 docs/references/databases/update-integer-column.md delete mode 100644 docs/references/databases/update-ip-column.md delete mode 100644 docs/references/databases/update-relationship-column.md delete mode 100644 docs/references/databases/update-row.md delete mode 100644 docs/references/databases/update-rows.md delete mode 100644 docs/references/databases/update-string-column.md delete mode 100644 docs/references/databases/update-table.md delete mode 100644 docs/references/databases/update-url-column.md delete mode 100644 docs/references/databases/upsert-row.md delete mode 100644 docs/references/databases/upsert-rows.md diff --git a/docs/examples/1.8.x/client-android/java/tables/create-row.md b/docs/examples/1.8.x/client-android/java/tables/create-row.md deleted file mode 100644 index 8102b82c75..0000000000 --- a/docs/examples/1.8.x/client-android/java/tables/create-row.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT(""); // Your secret JSON Web Token - -Tables tables = new Tables(client); - -tables.createRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/tables/create-rows.md b/docs/examples/1.8.x/client-android/java/tables/create-rows.md deleted file mode 100644 index 26f5d67789..0000000000 --- a/docs/examples/1.8.x/client-android/java/tables/create-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey(""); // - -Tables tables = new Tables(client); - -tables.createRows( - "", // databaseId - "", // tableId - listOf(), // rows - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/tables/delete-row.md b/docs/examples/1.8.x/client-android/java/tables/delete-row.md deleted file mode 100644 index 596a8b7aca..0000000000 --- a/docs/examples/1.8.x/client-android/java/tables/delete-row.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Tables tables = new Tables(client); - -tables.deleteRow( - "", // databaseId - "", // tableId - "", // rowId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/tables/get-row.md b/docs/examples/1.8.x/client-android/java/tables/get-row.md deleted file mode 100644 index 882a195376..0000000000 --- a/docs/examples/1.8.x/client-android/java/tables/get-row.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Tables tables = new Tables(client); - -tables.getRow( - "", // databaseId - "", // tableId - "", // rowId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/tables/list-rows.md b/docs/examples/1.8.x/client-android/java/tables/list-rows.md deleted file mode 100644 index 4d37570246..0000000000 --- a/docs/examples/1.8.x/client-android/java/tables/list-rows.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Tables tables = new Tables(client); - -tables.listRows( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/tables/update-row.md b/docs/examples/1.8.x/client-android/java/tables/update-row.md deleted file mode 100644 index 0421c9cffb..0000000000 --- a/docs/examples/1.8.x/client-android/java/tables/update-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Tables tables = new Tables(client); - -tables.updateRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/tables/upsert-row.md b/docs/examples/1.8.x/client-android/java/tables/upsert-row.md deleted file mode 100644 index a8be0cfc6c..0000000000 --- a/docs/examples/1.8.x/client-android/java/tables/upsert-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT(""); // Your secret JSON Web Token - -Tables tables = new Tables(client); - -tables.upsertRow( - "", // databaseId - "", // tableId - "", // rowId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/create-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/create-row.md deleted file mode 100644 index 8c581bf1d5..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/tables/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT("") // Your secret JSON Web Token - -val tables = Tables(client) - -val result = tables.createRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), - permissions = listOf("read("any")"), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/create-rows.md b/docs/examples/1.8.x/client-android/kotlin/tables/create-rows.md deleted file mode 100644 index 1fde9c50cf..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/tables/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey("") // - -val tables = Tables(client) - -val result = tables.createRows( - databaseId = "", - tableId = "", - rows = listOf(), -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md deleted file mode 100644 index ffa3229f30..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val tables = Tables(client) - -val result = tables.deleteRow( - databaseId = "", - tableId = "", - rowId = "", -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/get-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/get-row.md deleted file mode 100644 index 15dabff397..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/tables/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val tables = Tables(client) - -val result = tables.getRow( - databaseId = "", - tableId = "", - rowId = "", - queries = listOf(), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md b/docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md deleted file mode 100644 index ff36543938..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val tables = Tables(client) - -val result = tables.listRows( - databaseId = "", - tableId = "", - queries = listOf(), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/update-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/update-row.md deleted file mode 100644 index e9b515cef4..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/tables/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val tables = Tables(client) - -val result = tables.updateRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), // (optional) - permissions = listOf("read("any")"), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/upsert-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/upsert-row.md deleted file mode 100644 index 6b7cb6666b..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/tables/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT("") // Your secret JSON Web Token - -val tables = Tables(client) - -val result = tables.upsertRow( - databaseId = "", - tableId = "", - rowId = "", -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/tables/create-row.md b/docs/examples/1.8.x/client-apple/examples/tables/create-row.md deleted file mode 100644 index 533cf2d555..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/tables/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT("") // Your secret JSON Web Token - -let tables = Tables(client) - -let row = try await tables.createRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/tables/create-rows.md b/docs/examples/1.8.x/client-apple/examples/tables/create-rows.md deleted file mode 100644 index effd748aa0..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/tables/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey("") // - -let tables = Tables(client) - -let rowList = try await tables.createRows( - databaseId: "", - tableId: "", - rows: [] -) - diff --git a/docs/examples/1.8.x/client-apple/examples/tables/delete-row.md b/docs/examples/1.8.x/client-apple/examples/tables/delete-row.md deleted file mode 100644 index 7d12ec4f4c..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/tables/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let tables = Tables(client) - -let result = try await tables.deleteRow( - databaseId: "", - tableId: "", - rowId: "" -) - diff --git a/docs/examples/1.8.x/client-apple/examples/tables/get-row.md b/docs/examples/1.8.x/client-apple/examples/tables/get-row.md deleted file mode 100644 index 93fbef9e7c..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/tables/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let tables = Tables(client) - -let row = try await tables.getRow( - databaseId: "", - tableId: "", - rowId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/tables/list-rows.md b/docs/examples/1.8.x/client-apple/examples/tables/list-rows.md deleted file mode 100644 index 31545cce4d..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/tables/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let tables = Tables(client) - -let rowList = try await tables.listRows( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/tables/update-row.md b/docs/examples/1.8.x/client-apple/examples/tables/update-row.md deleted file mode 100644 index 601c4f0a77..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/tables/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let tables = Tables(client) - -let row = try await tables.updateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-apple/examples/tables/upsert-row.md deleted file mode 100644 index eabcb181c3..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/tables/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT("") // Your secret JSON Web Token - -let tables = Tables(client) - -let row = try await tables.upsertRow( - databaseId: "", - tableId: "", - rowId: "" -) - diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/create-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/create-row.md deleted file mode 100644 index ac9923d813..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/tables/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token - -Tables tables = Tables(client); - -Row result = await tables.createRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, - permissions: ["read("any")"], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/create-rows.md b/docs/examples/1.8.x/client-flutter/examples/tables/create-rows.md deleted file mode 100644 index 38c4c7503d..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/tables/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // - -Tables tables = Tables(client); - -RowList result = await tables.createRows( - databaseId: '', - tableId: '', - rows: [], -); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md deleted file mode 100644 index 4187c4766d..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Tables tables = Tables(client); - -await tables.deleteRow( - databaseId: '', - tableId: '', - rowId: '', -); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/get-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/get-row.md deleted file mode 100644 index 8d8c52caa6..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/tables/get-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Tables tables = Tables(client); - -Row result = await tables.getRow( - databaseId: '', - tableId: '', - rowId: '', - queries: [], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md b/docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md deleted file mode 100644 index f770bbbd92..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Tables tables = Tables(client); - -RowList result = await tables.listRows( - databaseId: '', - tableId: '', - queries: [], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/update-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/update-row.md deleted file mode 100644 index f43ba5e689..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/tables/update-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Tables tables = Tables(client); - -Row result = await tables.updateRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, // optional - permissions: ["read("any")"], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/upsert-row.md deleted file mode 100644 index 26a872b692..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/tables/upsert-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token - -Tables tables = Tables(client); - -Row result = await tables.upsertRow( - databaseId: '', - tableId: '', - rowId: '', -); diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/create-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/create-row.md deleted file mode 100644 index c88a7f36cf..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/tables/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - tablesCreateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md b/docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md deleted file mode 100644 index a4ae62cfae..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - tablesCreateRows( - databaseId: "", - tableId: "", - rows: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md deleted file mode 100644 index f3a35c1df1..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - tablesDeleteRow( - databaseId: "", - tableId: "", - rowId: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/get-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/get-row.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/list-rows.md b/docs/examples/1.8.x/client-graphql/examples/tables/list-rows.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/update-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/update-row.md deleted file mode 100644 index 8449d8499b..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/tables/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - tablesUpdateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/upsert-row.md deleted file mode 100644 index 480d7651bd..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/tables/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -mutation { - tablesUpsertRow( - databaseId: "", - tableId: "", - rowId: "" - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/create-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/create-row.md deleted file mode 100644 index 75de1c2a39..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/tables/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token - -const tables = new Tables(client); - -const result = await tables.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/create-rows.md b/docs/examples/1.8.x/client-react-native/examples/tables/create-rows.md deleted file mode 100644 index 165aa4cb71..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/tables/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // - -const tables = new Tables(client); - -const result = await tables.createRows( - '', // databaseId - '', // tableId - [] // rows -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md deleted file mode 100644 index 9746f85ea0..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/get-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/get-row.md deleted file mode 100644 index b9434e3957..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/tables/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md b/docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md deleted file mode 100644 index 75f81a1435..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/update-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/update-row.md deleted file mode 100644 index 7bb36dd254..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/tables/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/upsert-row.md deleted file mode 100644 index f176425abb..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/tables/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token - -const tables = new Tables(client); - -const result = await tables.upsertRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/tables/create-row.md b/docs/examples/1.8.x/client-rest/examples/tables/create-row.md deleted file mode 100644 index c4166b8b80..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/tables/create-row.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "rowId": "", - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/tables/create-rows.md b/docs/examples/1.8.x/client-rest/examples/tables/create-rows.md deleted file mode 100644 index 0935afd11e..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/tables/create-rows.md +++ /dev/null @@ -1,11 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "rows": [] -} diff --git a/docs/examples/1.8.x/client-rest/examples/tables/delete-row.md b/docs/examples/1.8.x/client-rest/examples/tables/delete-row.md deleted file mode 100644 index 954303d17a..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/tables/delete-row.md +++ /dev/null @@ -1,8 +0,0 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/client-rest/examples/tables/get-row.md b/docs/examples/1.8.x/client-rest/examples/tables/get-row.md deleted file mode 100644 index fc09601df7..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/tables/get-row.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/tables/list-rows.md b/docs/examples/1.8.x/client-rest/examples/tables/list-rows.md deleted file mode 100644 index de214e7cea..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/tables/list-rows.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/tables/update-row.md b/docs/examples/1.8.x/client-rest/examples/tables/update-row.md deleted file mode 100644 index f09f639e60..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/tables/update-row.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-rest/examples/tables/upsert-row.md deleted file mode 100644 index 60528077ef..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/tables/upsert-row.md +++ /dev/null @@ -1,8 +0,0 @@ -PUT /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/client-web/examples/tables/create-row.md b/docs/examples/1.8.x/client-web/examples/tables/create-row.md deleted file mode 100644 index f7b54d1894..0000000000 --- a/docs/examples/1.8.x/client-web/examples/tables/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token - -const tables = new Tables(client); - -const result = await tables.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/create-rows.md b/docs/examples/1.8.x/client-web/examples/tables/create-rows.md deleted file mode 100644 index 79d7d3f311..0000000000 --- a/docs/examples/1.8.x/client-web/examples/tables/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // - -const tables = new Tables(client); - -const result = await tables.createRows( - '', // databaseId - '', // tableId - [] // rows -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/delete-row.md b/docs/examples/1.8.x/client-web/examples/tables/delete-row.md deleted file mode 100644 index 5c6c4b96d9..0000000000 --- a/docs/examples/1.8.x/client-web/examples/tables/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/get-row.md b/docs/examples/1.8.x/client-web/examples/tables/get-row.md deleted file mode 100644 index 708b3d96cc..0000000000 --- a/docs/examples/1.8.x/client-web/examples/tables/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/list-rows.md b/docs/examples/1.8.x/client-web/examples/tables/list-rows.md deleted file mode 100644 index f82d358f0d..0000000000 --- a/docs/examples/1.8.x/client-web/examples/tables/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/update-row.md b/docs/examples/1.8.x/client-web/examples/tables/update-row.md deleted file mode 100644 index 0e0c5a012e..0000000000 --- a/docs/examples/1.8.x/client-web/examples/tables/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-web/examples/tables/upsert-row.md deleted file mode 100644 index f111fefd71..0000000000 --- a/docs/examples/1.8.x/client-web/examples/tables/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token - -const tables = new Tables(client); - -const result = await tables.upsertRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md deleted file mode 100644 index 88e6bf8853..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables createBooleanColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-datetime-column.md deleted file mode 100644 index de28b7537c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables createDatetimeColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md deleted file mode 100644 index 23b672e62d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables createEmailColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md deleted file mode 100644 index 4cd3e1d241..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite tables createEnumColumn \ - --databaseId \ - --tableId \ - --key '' \ - --elements one two three \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md deleted file mode 100644 index 9c69e29e91..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite tables createFloatColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-index.md b/docs/examples/1.8.x/console-cli/examples/tables/create-index.md deleted file mode 100644 index 4c6d641727..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-index.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite tables createIndex \ - --databaseId \ - --tableId \ - --key '' \ - --type key \ - --columns one two three \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md deleted file mode 100644 index afab48e803..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite tables createIntegerColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md deleted file mode 100644 index 000b54b918..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables createIpColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md deleted file mode 100644 index 4ce3342768..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite tables createRelationshipColumn \ - --databaseId \ - --tableId \ - --relatedTableId \ - --type oneToOne \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-row.md b/docs/examples/1.8.x/console-cli/examples/tables/create-row.md deleted file mode 100644 index e446de157b..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-row.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite tables createRow \ - --databaseId \ - --tableId \ - --rowId \ - --data '{ "key": "value" }' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/create-rows.md deleted file mode 100644 index cb7c68dd7b..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables createRows \ - --databaseId \ - --tableId \ - --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md deleted file mode 100644 index 4df1792a34..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite tables createStringColumn \ - --databaseId \ - --tableId \ - --key '' \ - --size 1 \ - --required false \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md deleted file mode 100644 index fcb81491bd..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables createUrlColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create.md b/docs/examples/1.8.x/console-cli/examples/tables/create.md deleted file mode 100644 index 09f52f16a1..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/create.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables create \ - --databaseId \ - --tableId \ - --name \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md deleted file mode 100644 index 73743c21ce..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables decrementRowColumn \ - --databaseId \ - --tableId \ - --rowId \ - --column '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-column.md b/docs/examples/1.8.x/console-cli/examples/tables/delete-column.md deleted file mode 100644 index e659af54d0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete-column.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables deleteColumn \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-index.md b/docs/examples/1.8.x/console-cli/examples/tables/delete-index.md deleted file mode 100644 index 0de1e417d3..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete-index.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables deleteIndex \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-row.md b/docs/examples/1.8.x/console-cli/examples/tables/delete-row.md deleted file mode 100644 index d6918be89e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete-row.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables deleteRow \ - --databaseId \ - --tableId \ - --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md deleted file mode 100644 index 579586b561..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables deleteRows \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete.md b/docs/examples/1.8.x/console-cli/examples/tables/delete.md deleted file mode 100644 index 0f189e09f1..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite tables delete \ - --databaseId \ - --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-column.md b/docs/examples/1.8.x/console-cli/examples/tables/get-column.md deleted file mode 100644 index 33a94b5ebc..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-column.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables getColumn \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-index.md b/docs/examples/1.8.x/console-cli/examples/tables/get-index.md deleted file mode 100644 index e956175e09..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-index.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables getIndex \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-row.md b/docs/examples/1.8.x/console-cli/examples/tables/get-row.md deleted file mode 100644 index 5b3b64bfbc..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-row.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite tables getRow \ - --databaseId \ - --tableId \ - --rowId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-table-usage.md b/docs/examples/1.8.x/console-cli/examples/tables/get-table-usage.md deleted file mode 100644 index f766a418a0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-table-usage.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables getTableUsage \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-usage.md b/docs/examples/1.8.x/console-cli/examples/tables/get-usage.md deleted file mode 100644 index ca955ce6df..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-usage.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables getUsage \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get.md b/docs/examples/1.8.x/console-cli/examples/tables/get.md deleted file mode 100644 index a41e6c10ed..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/get.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite tables get \ - --databaseId \ - --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md b/docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md deleted file mode 100644 index da73950231..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables incrementRowColumn \ - --databaseId \ - --tableId \ - --rowId \ - --column '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-columns.md b/docs/examples/1.8.x/console-cli/examples/tables/list-columns.md deleted file mode 100644 index 0439d58127..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-columns.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables listColumns \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md deleted file mode 100644 index b5fd85b911..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables listIndexes \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md b/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md deleted file mode 100644 index 08c4ff0f8d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables listLogs \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md b/docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md deleted file mode 100644 index e7a8c5b8ce..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite tables listRowLogs \ - --databaseId \ - --tableId \ - --rowId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/list-rows.md deleted file mode 100644 index 2a6d69d574..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables listRows \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list.md b/docs/examples/1.8.x/console-cli/examples/tables/list.md deleted file mode 100644 index 1c58d9ed03..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/list.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables list \ - --databaseId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md deleted file mode 100644 index 7d736f35e5..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables updateBooleanColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default false \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md deleted file mode 100644 index 3da3e4a919..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables updateDatetimeColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default '' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md deleted file mode 100644 index df718b8d9a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables updateEmailColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default email@example.com \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md deleted file mode 100644 index 55c55fc2bd..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite tables updateEnumColumn \ - --databaseId \ - --tableId \ - --key '' \ - --elements one two three \ - --required false \ - --default \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md deleted file mode 100644 index 99667a8447..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite tables updateFloatColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default null \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md deleted file mode 100644 index 098efa0e3e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite tables updateIntegerColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default null \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md deleted file mode 100644 index 50eadc3fff..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables updateIpColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default '' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md deleted file mode 100644 index 43e0c0ae6e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite tables updateRelationshipColumn \ - --databaseId \ - --tableId \ - --key '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-row.md b/docs/examples/1.8.x/console-cli/examples/tables/update-row.md deleted file mode 100644 index d5cd0fe4ee..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-row.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite tables updateRow \ - --databaseId \ - --tableId \ - --rowId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/update-rows.md deleted file mode 100644 index 173d608d5a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-rows.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite tables updateRows \ - --databaseId \ - --tableId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md deleted file mode 100644 index 3feaa734ec..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite tables updateStringColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md deleted file mode 100644 index 2df1ab14d7..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables updateUrlColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default https://example.com \ - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update.md b/docs/examples/1.8.x/console-cli/examples/tables/update.md deleted file mode 100644 index a1550287c8..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/update.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite tables update \ - --databaseId \ - --tableId \ - --name \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/tables/upsert-row.md b/docs/examples/1.8.x/console-cli/examples/tables/upsert-row.md deleted file mode 100644 index 0281a89b20..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/upsert-row.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite tables upsertRow \ - --databaseId \ - --tableId \ - --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md deleted file mode 100644 index 828caf8f10..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite tables upsertRows \ - --databaseId \ - --tableId diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md deleted file mode 100644 index bf0cca08c1..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md deleted file mode 100644 index c9eb3af82c..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-email-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-email-column.md deleted file mode 100644 index 3952161779..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md deleted file mode 100644 index 7b16da6c14..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-float-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-float-column.md deleted file mode 100644 index 6608864efe..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-index.md b/docs/examples/1.8.x/console-web/examples/tables/create-index.md deleted file mode 100644 index c303dd289d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-index.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables, IndexType } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createIndex( - '', // databaseId - '', // tableId - '', // key - IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md deleted file mode 100644 index 0490b71189..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md deleted file mode 100644 index 644f520032..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md deleted file mode 100644 index 5658eec690..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Tables, RelationshipType, RelationMutate } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createRelationshipColumn( - '', // databaseId - '', // tableId - '', // relatedTableId - RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - RelationMutate.Cascade // onDelete (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-row.md b/docs/examples/1.8.x/console-web/examples/tables/create-row.md deleted file mode 100644 index ba18cb6fba..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token - -const tables = new Tables(client); - -const result = await tables.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-rows.md b/docs/examples/1.8.x/console-web/examples/tables/create-rows.md deleted file mode 100644 index bd7f984ee3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const result = await tables.createRows( - '', // databaseId - '', // tableId - [] // rows -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-string-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-string-column.md deleted file mode 100644 index 6c1fbd7c99..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createStringColumn( - '', // databaseId - '', // tableId - '', // key - 1, // size - false, // required - '', // default (optional) - false, // array (optional) - false // encrypt (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-url-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-url-column.md deleted file mode 100644 index 88e1fc584d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.createUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create.md b/docs/examples/1.8.x/console-web/examples/tables/create.md deleted file mode 100644 index a7bda74508..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.create( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md deleted file mode 100644 index 35cb78686c..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.decrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // min (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-column.md b/docs/examples/1.8.x/console-web/examples/tables/delete-column.md deleted file mode 100644 index 642856448a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.deleteColumn( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-index.md b/docs/examples/1.8.x/console-web/examples/tables/delete-index.md deleted file mode 100644 index f517513909..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.deleteIndex( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-row.md b/docs/examples/1.8.x/console-web/examples/tables/delete-row.md deleted file mode 100644 index accbb3092a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-rows.md b/docs/examples/1.8.x/console-web/examples/tables/delete-rows.md deleted file mode 100644 index adbb613a35..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.deleteRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete.md b/docs/examples/1.8.x/console-web/examples/tables/delete.md deleted file mode 100644 index f235d8dda0..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.delete( - '', // databaseId - '' // tableId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-column.md b/docs/examples/1.8.x/console-web/examples/tables/get-column.md deleted file mode 100644 index 7bd7f2db30..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.getColumn( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-index.md b/docs/examples/1.8.x/console-web/examples/tables/get-index.md deleted file mode 100644 index dc8c3362cf..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.getIndex( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-row.md b/docs/examples/1.8.x/console-web/examples/tables/get-row.md deleted file mode 100644 index f37558d4ff..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md b/docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md deleted file mode 100644 index 4e6ca3270d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables, } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.getTableUsage( - '', // databaseId - '', // tableId - .24h // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-usage.md b/docs/examples/1.8.x/console-web/examples/tables/get-usage.md deleted file mode 100644 index 0f9d31c92d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/get-usage.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables, DatabaseUsageRange } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.getUsage( - '', // databaseId - '', // tableId - DatabaseUsageRange.TwentyFourHours // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get.md b/docs/examples/1.8.x/console-web/examples/tables/get.md deleted file mode 100644 index 2b8951582a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.get( - '', // databaseId - '' // tableId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md b/docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md deleted file mode 100644 index ed9710a0e3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.incrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // max (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-columns.md b/docs/examples/1.8.x/console-web/examples/tables/list-columns.md deleted file mode 100644 index 91348c4e61..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.listColumns( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-indexes.md b/docs/examples/1.8.x/console-web/examples/tables/list-indexes.md deleted file mode 100644 index 0ae874663d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.listIndexes( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-logs.md b/docs/examples/1.8.x/console-web/examples/tables/list-logs.md deleted file mode 100644 index 04d6c2300c..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/list-logs.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.listLogs( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md b/docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md deleted file mode 100644 index 691e589a77..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.listRowLogs( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-rows.md b/docs/examples/1.8.x/console-web/examples/tables/list-rows.md deleted file mode 100644 index 79f5e242a5..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list.md b/docs/examples/1.8.x/console-web/examples/tables/list.md deleted file mode 100644 index e8eb3c3dd6..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/list.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.list( - '', // databaseId - [], // queries (optional) - '' // search (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md deleted file mode 100644 index e4bb9012e6..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md deleted file mode 100644 index d24683aafb..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-email-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-email-column.md deleted file mode 100644 index b9e2483191..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md deleted file mode 100644 index bfe084212c..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-float-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-float-column.md deleted file mode 100644 index 9075e31e69..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md deleted file mode 100644 index c45e4735a9..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md deleted file mode 100644 index f7cdb490dc..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md deleted file mode 100644 index 192eac7175..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables, RelationMutate } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateRelationshipColumn( - '', // databaseId - '', // tableId - '', // key - RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-row.md b/docs/examples/1.8.x/console-web/examples/tables/update-row.md deleted file mode 100644 index 0db00657c2..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-rows.md b/docs/examples/1.8.x/console-web/examples/tables/update-rows.md deleted file mode 100644 index 72b2244f75..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateRows( - '', // databaseId - '', // tableId - {}, // data (optional) - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-string-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-string-column.md deleted file mode 100644 index 8f6b3b5dad..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateStringColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - 1, // size (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-url-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-url-column.md deleted file mode 100644 index a2cb65d700..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.updateUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update.md b/docs/examples/1.8.x/console-web/examples/tables/update.md deleted file mode 100644 index f0552604af..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/update.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const tables = new Tables(client); - -const result = await tables.update( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/upsert-row.md b/docs/examples/1.8.x/console-web/examples/tables/upsert-row.md deleted file mode 100644 index f1cb65e675..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token - -const tables = new Tables(client); - -const result = await tables.upsertRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/upsert-rows.md b/docs/examples/1.8.x/console-web/examples/tables/upsert-rows.md deleted file mode 100644 index 2d818cdbca..0000000000 --- a/docs/examples/1.8.x/console-web/examples/tables/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const result = await tables.upsertRows( - '', // databaseId - '' // tableId -); - -console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md deleted file mode 100644 index 5b3e987b9b..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnBoolean result = await tables.createBooleanColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: false, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md deleted file mode 100644 index 1ad3fa250d..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnDatetime result = await tables.createDatetimeColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md deleted file mode 100644 index fa7ec71410..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnEmail result = await tables.createEmailColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 'email@example.com', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md deleted file mode 100644 index 5ab6bcc774..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnEnum result = await tables.createEnumColumn( - databaseId: '', - tableId: '', - key: '', - elements: [], - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md deleted file mode 100644 index 43331187ea..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnFloat result = await tables.createFloatColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - min: 0, // (optional) - max: 0, // (optional) - xdefault: 0, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-index.md b/docs/examples/1.8.x/server-dart/examples/tables/create-index.md deleted file mode 100644 index d76c46959f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnIndex result = await tables.createIndex( - databaseId: '', - tableId: '', - key: '', - type: IndexType.key, - columns: [], - orders: [], // (optional) - lengths: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md deleted file mode 100644 index 3304325af7..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnInteger result = await tables.createIntegerColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - min: 0, // (optional) - max: 0, // (optional) - xdefault: 0, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md deleted file mode 100644 index 68c7abf754..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnIp result = await tables.createIpColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md deleted file mode 100644 index a059740bf8..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnRelationship result = await tables.createRelationshipColumn( - databaseId: '', - tableId: '', - relatedTableId: '', - type: RelationshipType.oneToOne, - twoWay: false, // (optional) - key: '', // (optional) - twoWayKey: '', // (optional) - onDelete: RelationMutate.cascade, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-row.md b/docs/examples/1.8.x/server-dart/examples/tables/create-row.md deleted file mode 100644 index 1ce1e1db7a..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token - -Tables tables = Tables(client); - -Row result = await tables.createRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, - permissions: ["read("any")"], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/create-rows.md deleted file mode 100644 index 219f2d2d33..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -RowList result = await tables.createRows( - databaseId: '', - tableId: '', - rows: [], -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md deleted file mode 100644 index 17e192b27e..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnString result = await tables.createStringColumn( - databaseId: '', - tableId: '', - key: '', - size: 1, - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) - encrypt: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md deleted file mode 100644 index d3692fc7ac..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnUrl result = await tables.createUrlColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 'https://example.com', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create.md b/docs/examples/1.8.x/server-dart/examples/tables/create.md deleted file mode 100644 index c3a4b2a989..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/create.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -Table result = await tables.create( - databaseId: '', - tableId: '', - name: '', - permissions: ["read("any")"], // (optional) - rowSecurity: false, // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md deleted file mode 100644 index 33d296110c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -Row result = await tables.decrementRowColumn( - databaseId: '', - tableId: '', - rowId: '', - column: '', - value: 0, // (optional) - min: 0, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-column.md b/docs/examples/1.8.x/server-dart/examples/tables/delete-column.md deleted file mode 100644 index 466564f618..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -await tables.deleteColumn( - databaseId: '', - tableId: '', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-index.md b/docs/examples/1.8.x/server-dart/examples/tables/delete-index.md deleted file mode 100644 index f2dfdbe74b..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -await tables.deleteIndex( - databaseId: '', - tableId: '', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-row.md b/docs/examples/1.8.x/server-dart/examples/tables/delete-row.md deleted file mode 100644 index b84c1b7a9f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Tables tables = Tables(client); - -await tables.deleteRow( - databaseId: '', - tableId: '', - rowId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md deleted file mode 100644 index 41dc3a9520..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -await tables.deleteRows( - databaseId: '', - tableId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete.md b/docs/examples/1.8.x/server-dart/examples/tables/delete.md deleted file mode 100644 index 07c9815422..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -await tables.delete( - databaseId: '', - tableId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get-column.md b/docs/examples/1.8.x/server-dart/examples/tables/get-column.md deleted file mode 100644 index 087139c87d..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - - result = await tables.getColumn( - databaseId: '', - tableId: '', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get-index.md b/docs/examples/1.8.x/server-dart/examples/tables/get-index.md deleted file mode 100644 index 3f79deef2f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnIndex result = await tables.getIndex( - databaseId: '', - tableId: '', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get-row.md b/docs/examples/1.8.x/server-dart/examples/tables/get-row.md deleted file mode 100644 index 7efd04a69d..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Tables tables = Tables(client); - -Row result = await tables.getRow( - databaseId: '', - tableId: '', - rowId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get.md b/docs/examples/1.8.x/server-dart/examples/tables/get.md deleted file mode 100644 index d02f9ff9d2..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -Table result = await tables.get( - databaseId: '', - tableId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md deleted file mode 100644 index 188ab5d1ad..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -Row result = await tables.incrementRowColumn( - databaseId: '', - tableId: '', - rowId: '', - column: '', - value: 0, // (optional) - max: 0, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list-columns.md b/docs/examples/1.8.x/server-dart/examples/tables/list-columns.md deleted file mode 100644 index 7b2d479ea3..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnList result = await tables.listColumns( - databaseId: '', - tableId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md deleted file mode 100644 index e7418de3bc..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnIndexList result = await tables.listIndexes( - databaseId: '', - tableId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/list-rows.md deleted file mode 100644 index 05f9567ac2..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Tables tables = Tables(client); - -RowList result = await tables.listRows( - databaseId: '', - tableId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list.md b/docs/examples/1.8.x/server-dart/examples/tables/list.md deleted file mode 100644 index 51a19c099d..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -TableList result = await tables.list( - databaseId: '', - queries: [], // (optional) - search: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md deleted file mode 100644 index c452238d7c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnBoolean result = await tables.updateBooleanColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: false, - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md deleted file mode 100644 index 5b41d7e532..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnDatetime result = await tables.updateDatetimeColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md deleted file mode 100644 index 444649a4fd..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnEmail result = await tables.updateEmailColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 'email@example.com', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md deleted file mode 100644 index 2e0566418a..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnEnum result = await tables.updateEnumColumn( - databaseId: '', - tableId: '', - key: '', - elements: [], - xrequired: false, - xdefault: '', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md deleted file mode 100644 index 199d3840d6..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnFloat result = await tables.updateFloatColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 0, - min: 0, // (optional) - max: 0, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md deleted file mode 100644 index 479e63d870..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnInteger result = await tables.updateIntegerColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 0, - min: 0, // (optional) - max: 0, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md deleted file mode 100644 index 837ae4e606..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnIp result = await tables.updateIpColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md deleted file mode 100644 index 45745627ef..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnRelationship result = await tables.updateRelationshipColumn( - databaseId: '', - tableId: '', - key: '', - onDelete: RelationMutate.cascade, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-row.md b/docs/examples/1.8.x/server-dart/examples/tables/update-row.md deleted file mode 100644 index 436329235a..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Tables tables = Tables(client); - -Row result = await tables.updateRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, // (optional) - permissions: ["read("any")"], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/update-rows.md deleted file mode 100644 index 3d2aaf3e28..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -RowList result = await tables.updateRows( - databaseId: '', - tableId: '', - data: {}, // (optional) - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md deleted file mode 100644 index dbd569feac..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnString result = await tables.updateStringColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', - size: 1, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md deleted file mode 100644 index 8630c718b5..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -ColumnUrl result = await tables.updateUrlColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 'https://example.com', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update.md b/docs/examples/1.8.x/server-dart/examples/tables/update.md deleted file mode 100644 index 28ce03cd6c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/update.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -Table result = await tables.update( - databaseId: '', - tableId: '', - name: '', - permissions: ["read("any")"], // (optional) - rowSecurity: false, // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-dart/examples/tables/upsert-row.md deleted file mode 100644 index 47f93f2434..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/upsert-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token - -Tables tables = Tables(client); - -Row result = await tables.upsertRow( - databaseId: '', - tableId: '', - rowId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/upsert-rows.md deleted file mode 100644 index 73ceffa917..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/tables/upsert-rows.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key - -Tables tables = Tables(client); - -RowList result = await tables.upsertRows( - databaseId: '', - tableId: '', -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md deleted file mode 100644 index 3f9abc8c05..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md deleted file mode 100644 index 898b67a787..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md deleted file mode 100644 index 82872e4087..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md deleted file mode 100644 index afbb8d00aa..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md deleted file mode 100644 index 44658bbaa9..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-index.md b/docs/examples/1.8.x/server-deno/examples/tables/create-index.md deleted file mode 100644 index c255189881..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables, IndexType } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createIndex( - '', // databaseId - '', // tableId - '', // key - IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md deleted file mode 100644 index 0f1721b24a..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md deleted file mode 100644 index ca96de6293..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md deleted file mode 100644 index 8c7e26e62c..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createRelationshipColumn( - '', // databaseId - '', // tableId - '', // relatedTableId - RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - RelationMutate.Cascade // onDelete (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-row.md b/docs/examples/1.8.x/server-deno/examples/tables/create-row.md deleted file mode 100644 index 12cec49af0..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token - -const tables = new Tables(client); - -const response = await tables.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/create-rows.md deleted file mode 100644 index 6c4f7d5627..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createRows( - '', // databaseId - '', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md deleted file mode 100644 index db7ac8a760..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createStringColumn( - '', // databaseId - '', // tableId - '', // key - 1, // size - false, // required - '', // default (optional) - false, // array (optional) - false // encrypt (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md deleted file mode 100644 index 8d6f127c00..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.createUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create.md b/docs/examples/1.8.x/server-deno/examples/tables/create.md deleted file mode 100644 index 9c75c22c3d..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/create.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.create( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md deleted file mode 100644 index e561acc529..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.decrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // min (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-column.md b/docs/examples/1.8.x/server-deno/examples/tables/delete-column.md deleted file mode 100644 index 89900bfbf0..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.deleteColumn( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-index.md b/docs/examples/1.8.x/server-deno/examples/tables/delete-index.md deleted file mode 100644 index a17791cef2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.deleteIndex( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-row.md b/docs/examples/1.8.x/server-deno/examples/tables/delete-row.md deleted file mode 100644 index 8f30eae2d2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const tables = new Tables(client); - -const response = await tables.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md deleted file mode 100644 index c5aa88f9a2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.deleteRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete.md b/docs/examples/1.8.x/server-deno/examples/tables/delete.md deleted file mode 100644 index 36df1373dc..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.delete( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get-column.md b/docs/examples/1.8.x/server-deno/examples/tables/get-column.md deleted file mode 100644 index 8a56af67e7..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.getColumn( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get-index.md b/docs/examples/1.8.x/server-deno/examples/tables/get-index.md deleted file mode 100644 index 61105dc661..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.getIndex( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get-row.md b/docs/examples/1.8.x/server-deno/examples/tables/get-row.md deleted file mode 100644 index 674ea3e648..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const tables = new Tables(client); - -const response = await tables.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get.md b/docs/examples/1.8.x/server-deno/examples/tables/get.md deleted file mode 100644 index cc1dcb8c51..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.get( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md deleted file mode 100644 index 9779d8776e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.incrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // max (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list-columns.md b/docs/examples/1.8.x/server-deno/examples/tables/list-columns.md deleted file mode 100644 index 63ec0777bb..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.listColumns( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md deleted file mode 100644 index 587d19f362..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.listIndexes( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/list-rows.md deleted file mode 100644 index 6db6bea439..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const tables = new Tables(client); - -const response = await tables.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list.md b/docs/examples/1.8.x/server-deno/examples/tables/list.md deleted file mode 100644 index d4da8409c9..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.list( - '', // databaseId - [], // queries (optional) - '' // search (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md deleted file mode 100644 index 8710c27ede..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md deleted file mode 100644 index e1ca760e31..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md deleted file mode 100644 index b0e25348d4..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md deleted file mode 100644 index 8771213a79..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md deleted file mode 100644 index a2e6f55c1f..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md deleted file mode 100644 index 51ea17f943..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md deleted file mode 100644 index 4a5a1d0f81..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md deleted file mode 100644 index c83b82037a..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateRelationshipColumn( - '', // databaseId - '', // tableId - '', // key - RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-row.md b/docs/examples/1.8.x/server-deno/examples/tables/update-row.md deleted file mode 100644 index 13da5615e7..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const tables = new Tables(client); - -const response = await tables.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/update-rows.md deleted file mode 100644 index 1bc0a18b98..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateRows( - '', // databaseId - '', // tableId - {}, // data (optional) - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md deleted file mode 100644 index 00dd310b1e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateStringColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - 1, // size (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md deleted file mode 100644 index 2ebf80a356..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.updateUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update.md b/docs/examples/1.8.x/server-deno/examples/tables/update.md deleted file mode 100644 index 43b51bd284..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/update.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.update( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-deno/examples/tables/upsert-row.md deleted file mode 100644 index 45e932c7f6..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/upsert-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token - -const tables = new Tables(client); - -const response = await tables.upsertRow( - '', // databaseId - '', // tableId - '' // rowId -); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/upsert-rows.md deleted file mode 100644 index 9e3f542051..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/tables/upsert-rows.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key - -const tables = new Tables(client); - -const response = await tables.upsertRows( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md deleted file mode 100644 index 1492487721..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnBoolean result = await tables.CreateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md deleted file mode 100644 index 6a1e07b907..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnDatetime result = await tables.CreateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md deleted file mode 100644 index a4740484f5..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnEmail result = await tables.CreateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md deleted file mode 100644 index 9529ad1331..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnEnum result = await tables.CreateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: new List(), - required: false, - default: "", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md deleted file mode 100644 index f8146ce272..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnFloat result = await tables.CreateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md deleted file mode 100644 index 4ea3817da2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnIndex result = await tables.CreateIndex( - databaseId: "", - tableId: "", - key: "", - type: IndexType.Key, - columns: new List(), - orders: new List(), // optional - lengths: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md deleted file mode 100644 index 6090426792..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnInteger result = await tables.CreateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md deleted file mode 100644 index b5e5067e6f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnIp result = await tables.CreateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md deleted file mode 100644 index 7c4cba49dd..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnRelationship result = await tables.CreateRelationshipColumn( - databaseId: "", - tableId: "", - relatedTableId: "", - type: RelationshipType.OneToOne, - twoWay: false, // optional - key: "", // optional - twoWayKey: "", // optional - onDelete: RelationMutate.Cascade // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-row.md deleted file mode 100644 index 642bfe457c..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetSession("") // The user session to authenticate with - .SetKey("") // Your secret API key - .SetJWT(""); // Your secret JSON Web Token - -Tables tables = new Tables(client); - -Row result = await tables.CreateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [object], - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-rows.md deleted file mode 100644 index 1d44dc51ed..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetAdmin("") // - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -RowList result = await tables.CreateRows( - databaseId: "", - tableId: "", - rows: new List() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md deleted file mode 100644 index e623ac0789..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnString result = await tables.CreateStringColumn( - databaseId: "", - tableId: "", - key: "", - size: 1, - required: false, - default: "", // optional - array: false, // optional - encrypt: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md deleted file mode 100644 index 7a0fbd0a83..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnUrl result = await tables.CreateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create.md deleted file mode 100644 index 694f4101a7..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -Table result = await tables.Create( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md deleted file mode 100644 index 220fb2b18a..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -Row result = await tables.DecrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, // optional - min: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md deleted file mode 100644 index ca8987eec9..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -await tables.DeleteColumn( - databaseId: "", - tableId: "", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md deleted file mode 100644 index ba7a024167..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -await tables.DeleteIndex( - databaseId: "", - tableId: "", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md deleted file mode 100644 index 95bae6ad6b..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Tables tables = new Tables(client); - -await tables.DeleteRow( - databaseId: "", - tableId: "", - rowId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md deleted file mode 100644 index 46a6e0ba94..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -await tables.DeleteRows( - databaseId: "", - tableId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete.md deleted file mode 100644 index bcff3ea05a..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -await tables.Delete( - databaseId: "", - tableId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md deleted file mode 100644 index 71ebb81aef..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - - result = await tables.GetColumn( - databaseId: "", - tableId: "", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md b/docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md deleted file mode 100644 index f5b886e3e9..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnIndex result = await tables.GetIndex( - databaseId: "", - tableId: "", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md deleted file mode 100644 index 474b3342c9..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Tables tables = new Tables(client); - -Row result = await tables.GetRow( - databaseId: "", - tableId: "", - rowId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get.md b/docs/examples/1.8.x/server-dotnet/examples/tables/get.md deleted file mode 100644 index 1e86d228a6..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/get.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -Table result = await tables.Get( - databaseId: "", - tableId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md deleted file mode 100644 index e8ccd8ca78..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -Row result = await tables.IncrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, // optional - max: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md b/docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md deleted file mode 100644 index fe8c739cf9..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnList result = await tables.ListColumns( - databaseId: "", - tableId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md deleted file mode 100644 index 907a21048f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnIndexList result = await tables.ListIndexes( - databaseId: "", - tableId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md deleted file mode 100644 index 474c597a1c..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Tables tables = new Tables(client); - -RowList result = await tables.ListRows( - databaseId: "", - tableId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list.md b/docs/examples/1.8.x/server-dotnet/examples/tables/list.md deleted file mode 100644 index 2871a927c4..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/list.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -TableList result = await tables.List( - databaseId: "", - queries: new List(), // optional - search: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md deleted file mode 100644 index 5c610fbe7a..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnBoolean result = await tables.UpdateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md deleted file mode 100644 index 754d0f1ae6..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnDatetime result = await tables.UpdateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md deleted file mode 100644 index 6000c54e8f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnEmail result = await tables.UpdateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md deleted file mode 100644 index 2eaa1a51a1..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnEnum result = await tables.UpdateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: new List(), - required: false, - default: "", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md deleted file mode 100644 index 7d18d8e624..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnFloat result = await tables.UpdateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md deleted file mode 100644 index 0b3b85652c..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnInteger result = await tables.UpdateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md deleted file mode 100644 index ccdd0d5235..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnIp result = await tables.UpdateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md deleted file mode 100644 index be6aa31f73..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnRelationship result = await tables.UpdateRelationshipColumn( - databaseId: "", - tableId: "", - key: "", - onDelete: RelationMutate.Cascade, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md deleted file mode 100644 index d049ccf805..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Tables tables = new Tables(client); - -Row result = await tables.UpdateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [object], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md deleted file mode 100644 index 9d2c51c4b3..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -RowList result = await tables.UpdateRows( - databaseId: "", - tableId: "", - data: [object], // optional - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md deleted file mode 100644 index da280e7d8c..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnString result = await tables.UpdateStringColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - size: 1, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md deleted file mode 100644 index 1ce961da2b..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -ColumnUrl result = await tables.UpdateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update.md deleted file mode 100644 index 584c61c6bb..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -Table result = await tables.Update( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-row.md deleted file mode 100644 index a73c4e2402..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetSession("") // The user session to authenticate with - .SetKey("") // Your secret API key - .SetJWT(""); // Your secret JSON Web Token - -Tables tables = new Tables(client); - -Row result = await tables.UpsertRow( - databaseId: "", - tableId: "", - rowId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-rows.md deleted file mode 100644 index 07e5e927c6..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetAdmin("") // - .SetKey(""); // Your secret API key - -Tables tables = new Tables(client); - -RowList result = await tables.UpsertRows( - databaseId: "", - tableId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md deleted file mode 100644 index 70a666257f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateBooleanColumn( - "", - "", - "", - false, - tables.WithCreateBooleanColumnDefault(false), - tables.WithCreateBooleanColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md deleted file mode 100644 index beb8bd09e6..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateDatetimeColumn( - "", - "", - "", - false, - tables.WithCreateDatetimeColumnDefault(""), - tables.WithCreateDatetimeColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-email-column.md deleted file mode 100644 index 449cc0e88a..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-email-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateEmailColumn( - "", - "", - "", - false, - tables.WithCreateEmailColumnDefault("email@example.com"), - tables.WithCreateEmailColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md deleted file mode 100644 index 8f3bb84bb7..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateEnumColumn( - "", - "", - "", - []interface{}{}, - false, - tables.WithCreateEnumColumnDefault(""), - tables.WithCreateEnumColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-float-column.md deleted file mode 100644 index eeabd851b9..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-float-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateFloatColumn( - "", - "", - "", - false, - tables.WithCreateFloatColumnMin(0), - tables.WithCreateFloatColumnMax(0), - tables.WithCreateFloatColumnDefault(0), - tables.WithCreateFloatColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-index.md b/docs/examples/1.8.x/server-go/examples/tables/create-index.md deleted file mode 100644 index 1737b29f6f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-index.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateIndex( - "", - "", - "", - "key", - []interface{}{}, - tables.WithCreateIndexOrders([]interface{}{}), - tables.WithCreateIndexLengths([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md deleted file mode 100644 index 45a81f6415..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateIntegerColumn( - "", - "", - "", - false, - tables.WithCreateIntegerColumnMin(0), - tables.WithCreateIntegerColumnMax(0), - tables.WithCreateIntegerColumnDefault(0), - tables.WithCreateIntegerColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md deleted file mode 100644 index f6d203d65e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateIpColumn( - "", - "", - "", - false, - tables.WithCreateIpColumnDefault(""), - tables.WithCreateIpColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md deleted file mode 100644 index e2e6de59de..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateRelationshipColumn( - "", - "", - "", - "oneToOne", - tables.WithCreateRelationshipColumnTwoWay(false), - tables.WithCreateRelationshipColumnKey(""), - tables.WithCreateRelationshipColumnTwoWayKey(""), - tables.WithCreateRelationshipColumnOnDelete("cascade"), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-row.md b/docs/examples/1.8.x/server-go/examples/tables/create-row.md deleted file mode 100644 index 329f2a1c9c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-row.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithSession("") // The user session to authenticate with - client.WithKey("") // Your secret API key - client.WithJWT("") // Your secret JSON Web Token - ) - - service := tables.New(client) - response, error := service.CreateRow( - "", - "", - "", - map[string]interface{}{}, - tables.WithCreateRowPermissions(interface{}{"read("any")"}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-rows.md b/docs/examples/1.8.x/server-go/examples/tables/create-rows.md deleted file mode 100644 index 7d32206bea..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithAdmin("") // - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateRows( - "", - "", - []interface{}{}, - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-string-column.md deleted file mode 100644 index afb41e2728..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-string-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateStringColumn( - "", - "", - "", - 1, - false, - tables.WithCreateStringColumnDefault(""), - tables.WithCreateStringColumnArray(false), - tables.WithCreateStringColumnEncrypt(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-url-column.md deleted file mode 100644 index c4e30e30cd..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create-url-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.CreateUrlColumn( - "", - "", - "", - false, - tables.WithCreateUrlColumnDefault("https://example.com"), - tables.WithCreateUrlColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create.md b/docs/examples/1.8.x/server-go/examples/tables/create.md deleted file mode 100644 index 672824daa6..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/create.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.Create( - "", - "", - "", - tables.WithCreatePermissions(interface{}{"read("any")"}), - tables.WithCreateRowSecurity(false), - tables.WithCreateEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md deleted file mode 100644 index 8ef1d26a59..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.DecrementRowColumn( - "", - "", - "", - "", - tables.WithDecrementRowColumnValue(0), - tables.WithDecrementRowColumnMin(0), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-column.md b/docs/examples/1.8.x/server-go/examples/tables/delete-column.md deleted file mode 100644 index f66fc199c3..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/delete-column.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.DeleteColumn( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-index.md b/docs/examples/1.8.x/server-go/examples/tables/delete-index.md deleted file mode 100644 index 1dddeef4e8..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/delete-index.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.DeleteIndex( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-row.md b/docs/examples/1.8.x/server-go/examples/tables/delete-row.md deleted file mode 100644 index 9f55934e41..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/delete-row.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := tables.New(client) - response, error := service.DeleteRow( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-go/examples/tables/delete-rows.md deleted file mode 100644 index 3ad38f8067..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/delete-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.DeleteRows( - "", - "", - tables.WithDeleteRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete.md b/docs/examples/1.8.x/server-go/examples/tables/delete.md deleted file mode 100644 index 9637acc51d..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/delete.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.Delete( - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/get-column.md b/docs/examples/1.8.x/server-go/examples/tables/get-column.md deleted file mode 100644 index 292d22800e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/get-column.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.GetColumn( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/get-index.md b/docs/examples/1.8.x/server-go/examples/tables/get-index.md deleted file mode 100644 index 077e823195..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/get-index.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.GetIndex( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/get-row.md b/docs/examples/1.8.x/server-go/examples/tables/get-row.md deleted file mode 100644 index a224c60d98..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/get-row.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := tables.New(client) - response, error := service.GetRow( - "", - "", - "", - tables.WithGetRowQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/get.md b/docs/examples/1.8.x/server-go/examples/tables/get.md deleted file mode 100644 index 60304a8fd0..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/get.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.Get( - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md deleted file mode 100644 index 5d8b2f5578..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.IncrementRowColumn( - "", - "", - "", - "", - tables.WithIncrementRowColumnValue(0), - tables.WithIncrementRowColumnMax(0), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/list-columns.md b/docs/examples/1.8.x/server-go/examples/tables/list-columns.md deleted file mode 100644 index 25712ef2a7..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/list-columns.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.ListColumns( - "", - "", - tables.WithListColumnsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-go/examples/tables/list-indexes.md deleted file mode 100644 index 0be8e81164..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/list-indexes.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.ListIndexes( - "", - "", - tables.WithListIndexesQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/list-rows.md b/docs/examples/1.8.x/server-go/examples/tables/list-rows.md deleted file mode 100644 index aadbcf1dad..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/list-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := tables.New(client) - response, error := service.ListRows( - "", - "", - tables.WithListRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/list.md b/docs/examples/1.8.x/server-go/examples/tables/list.md deleted file mode 100644 index 1942b7a2d2..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/list.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.List( - "", - tables.WithListQueries([]interface{}{}), - tables.WithListSearch(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md deleted file mode 100644 index c76c3bb1cc..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateBooleanColumn( - "", - "", - "", - false, - false, - tables.WithUpdateBooleanColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md deleted file mode 100644 index e093904ad5..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateDatetimeColumn( - "", - "", - "", - false, - "", - tables.WithUpdateDatetimeColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-email-column.md deleted file mode 100644 index 08845b5149..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-email-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateEmailColumn( - "", - "", - "", - false, - "email@example.com", - tables.WithUpdateEmailColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md deleted file mode 100644 index e639f850ba..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateEnumColumn( - "", - "", - "", - []interface{}{}, - false, - "", - tables.WithUpdateEnumColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-float-column.md deleted file mode 100644 index 83fa3777c2..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-float-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateFloatColumn( - "", - "", - "", - false, - 0, - tables.WithUpdateFloatColumnMin(0), - tables.WithUpdateFloatColumnMax(0), - tables.WithUpdateFloatColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md deleted file mode 100644 index 5bbea02709..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateIntegerColumn( - "", - "", - "", - false, - 0, - tables.WithUpdateIntegerColumnMin(0), - tables.WithUpdateIntegerColumnMax(0), - tables.WithUpdateIntegerColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md deleted file mode 100644 index f67711aaed..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateIpColumn( - "", - "", - "", - false, - "", - tables.WithUpdateIpColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md deleted file mode 100644 index 1ec20edbb6..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateRelationshipColumn( - "", - "", - "", - tables.WithUpdateRelationshipColumnOnDelete("cascade"), - tables.WithUpdateRelationshipColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-row.md b/docs/examples/1.8.x/server-go/examples/tables/update-row.md deleted file mode 100644 index 8ef1189769..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-row.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := tables.New(client) - response, error := service.UpdateRow( - "", - "", - "", - tables.WithUpdateRowData(map[string]interface{}{}), - tables.WithUpdateRowPermissions(interface{}{"read("any")"}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-rows.md b/docs/examples/1.8.x/server-go/examples/tables/update-rows.md deleted file mode 100644 index 7579e32851..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-rows.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateRows( - "", - "", - tables.WithUpdateRowsData(map[string]interface{}{}), - tables.WithUpdateRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-string-column.md deleted file mode 100644 index 0a21b05e19..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-string-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateStringColumn( - "", - "", - "", - false, - "", - tables.WithUpdateStringColumnSize(1), - tables.WithUpdateStringColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-url-column.md deleted file mode 100644 index aeb0541648..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update-url-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpdateUrlColumn( - "", - "", - "", - false, - "https://example.com", - tables.WithUpdateUrlColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update.md b/docs/examples/1.8.x/server-go/examples/tables/update.md deleted file mode 100644 index 7a75c10713..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/update.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.Update( - "", - "", - "", - tables.WithUpdatePermissions(interface{}{"read("any")"}), - tables.WithUpdateRowSecurity(false), - tables.WithUpdateEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-go/examples/tables/upsert-row.md deleted file mode 100644 index 9bc9f00f8b..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/upsert-row.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithSession("") // The user session to authenticate with - client.WithKey("") // Your secret API key - client.WithJWT("") // Your secret JSON Web Token - ) - - service := tables.New(client) - response, error := service.UpsertRow( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-go/examples/tables/upsert-rows.md deleted file mode 100644 index bc5a4db007..0000000000 --- a/docs/examples/1.8.x/server-go/examples/tables/upsert-rows.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithAdmin("") // - client.WithKey("") // Your secret API key - ) - - service := tables.New(client) - response, error := service.UpsertRows( - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md deleted file mode 100644 index 564b1a964c..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - tablesCreateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md deleted file mode 100644 index 34055c27fa..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesCreateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md deleted file mode 100644 index a45001d0be..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesCreateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md deleted file mode 100644 index 5d1c516e3a..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - tablesCreateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: [], - required: false, - default: "", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - elements - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md deleted file mode 100644 index 09bf481a33..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - tablesCreateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, - max: 0, - default: 0, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-index.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-index.md deleted file mode 100644 index bc47403c64..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesCreateIndex( - databaseId: "", - tableId: "", - key: "", - type: "key", - columns: [], - orders: [], - lengths: [] - ) { - key - type - status - error - columns - lengths - orders - _createdAt - _updatedAt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md deleted file mode 100644 index 04273b18b5..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - tablesCreateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, - max: 0, - default: 0, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md deleted file mode 100644 index c2f07c760b..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesCreateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md deleted file mode 100644 index 8e56bd3867..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,27 +0,0 @@ -mutation { - tablesCreateRelationshipColumn( - databaseId: "", - tableId: "", - relatedTableId: "", - type: "oneToOne", - twoWay: false, - key: "", - twoWayKey: "", - onDelete: "cascade" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - relatedTable - relationType - twoWay - twoWayKey - onDelete - side - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-row.md deleted file mode 100644 index c88a7f36cf..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - tablesCreateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md deleted file mode 100644 index a4ae62cfae..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - tablesCreateRows( - databaseId: "", - tableId: "", - rows: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md deleted file mode 100644 index b0b11c2610..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - tablesCreateStringColumn( - databaseId: "", - tableId: "", - key: "", - size: 1, - required: false, - default: "", - array: false, - encrypt: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - size - default - encrypt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md deleted file mode 100644 index 134208b432..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesCreateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create.md b/docs/examples/1.8.x/server-graphql/examples/tables/create.md deleted file mode 100644 index 73af2c4a8c..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create.md +++ /dev/null @@ -1,31 +0,0 @@ -mutation { - tablesCreate( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], - rowSecurity: false, - enabled: false - ) { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - rowSecurity - columns - indexes { - key - type - status - error - columns - lengths - orders - _createdAt - _updatedAt - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md deleted file mode 100644 index 4ee58849ff..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - tablesDecrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, - min: 0 - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md deleted file mode 100644 index 2c2ab098d6..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - tablesDeleteColumn( - databaseId: "", - tableId: "", - key: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md deleted file mode 100644 index c95db41fd6..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - tablesDeleteIndex( - databaseId: "", - tableId: "", - key: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md deleted file mode 100644 index f3a35c1df1..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - tablesDeleteRow( - databaseId: "", - tableId: "", - rowId: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md deleted file mode 100644 index 1ee227b7e5..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - tablesDeleteRows( - databaseId: "", - tableId: "", - queries: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete.md deleted file mode 100644 index 1749422f6a..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - tablesDelete( - databaseId: "", - tableId: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/get-column.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-index.md b/docs/examples/1.8.x/server-graphql/examples/tables/get-index.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/get-row.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get.md b/docs/examples/1.8.x/server-graphql/examples/tables/get.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md deleted file mode 100644 index f84f149672..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - tablesIncrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, - max: 0 - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-columns.md b/docs/examples/1.8.x/server-graphql/examples/tables/list-columns.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-graphql/examples/tables/list-indexes.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/list-rows.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list.md b/docs/examples/1.8.x/server-graphql/examples/tables/list.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md deleted file mode 100644 index 541abd97cc..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - tablesUpdateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md deleted file mode 100644 index 01714377a4..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesUpdateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md deleted file mode 100644 index ffb3a21e66..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesUpdateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md deleted file mode 100644 index 45ddb00d6f..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - tablesUpdateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: [], - required: false, - default: "", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - elements - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md deleted file mode 100644 index f592a53858..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - tablesUpdateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, - max: 0, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md deleted file mode 100644 index a51f02d4d7..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - tablesUpdateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, - max: 0, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md deleted file mode 100644 index c353c79105..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesUpdateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md deleted file mode 100644 index e94800345b..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - tablesUpdateRelationshipColumn( - databaseId: "", - tableId: "", - key: "", - onDelete: "cascade", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - relatedTable - relationType - twoWay - twoWayKey - onDelete - side - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-row.md deleted file mode 100644 index 8449d8499b..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - tablesUpdateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md deleted file mode 100644 index 510648f6e1..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - tablesUpdateRows( - databaseId: "", - tableId: "", - data: "{}", - queries: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md deleted file mode 100644 index 0771d9a6af..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - tablesUpdateStringColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - size: 1, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - size - default - encrypt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md deleted file mode 100644 index a5c4a4432d..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - tablesUpdateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update.md b/docs/examples/1.8.x/server-graphql/examples/tables/update.md deleted file mode 100644 index 4aa434c3ed..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update.md +++ /dev/null @@ -1,31 +0,0 @@ -mutation { - tablesUpdate( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], - rowSecurity: false, - enabled: false - ) { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - rowSecurity - columns - indexes { - key - type - status - error - columns - lengths - orders - _createdAt - _updatedAt - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/upsert-row.md deleted file mode 100644 index 480d7651bd..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -mutation { - tablesUpsertRow( - databaseId: "", - tableId: "", - rowId: "" - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/upsert-rows.md deleted file mode 100644 index 6015470c16..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/tables/upsert-rows.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - tablesUpsertRows( - databaseId: "", - tableId: "" - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md deleted file mode 100644 index 2336ee90e0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createBooleanColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - false, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md deleted file mode 100644 index dd3df83dbf..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createDatetimeColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md deleted file mode 100644 index 3b130d1ecd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createEmailColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "email@example.com", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md deleted file mode 100644 index 73c6e1c7de..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createEnumColumn( - "", // databaseId - "", // tableId - "", // key - listOf(), // elements - false, // required - "", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md deleted file mode 100644 index dd6f207ff4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createFloatColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - 0, // min (optional) - 0, // max (optional) - 0, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-index.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-index.md deleted file mode 100644 index 2a4df003c0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-index.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; -import io.appwrite.enums.IndexType; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createIndex( - "", // databaseId - "", // tableId - "", // key - IndexType.KEY, // type - listOf(), // columns - listOf(), // orders (optional) - listOf(), // lengths (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md deleted file mode 100644 index 3546ac8174..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createIntegerColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - 0, // min (optional) - 0, // max (optional) - 0, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md deleted file mode 100644 index 825d8b0c5c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createIpColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md deleted file mode 100644 index 7a0b50a541..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md +++ /dev/null @@ -1,31 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; -import io.appwrite.enums.RelationshipType; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createRelationshipColumn( - "", // databaseId - "", // tableId - "", // relatedTableId - RelationshipType.ONETOONE, // type - false, // twoWay (optional) - "", // key (optional) - "", // twoWayKey (optional) - RelationMutate.CASCADE, // onDelete (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-row.md deleted file mode 100644 index 7ba3678aad..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-row.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT(""); // Your secret JSON Web Token - -Tables tables = new Tables(client); - -tables.createRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-rows.md deleted file mode 100644 index c20aa2c11f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createRows( - "", // databaseId - "", // tableId - listOf(), // rows - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md deleted file mode 100644 index b8cb626601..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createStringColumn( - "", // databaseId - "", // tableId - "", // key - 1, // size - false, // required - "", // default (optional) - false, // array (optional) - false, // encrypt (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md deleted file mode 100644 index 91e90c8bc4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.createUrlColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "https://example.com", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create.md b/docs/examples/1.8.x/server-kotlin/java/tables/create.md deleted file mode 100644 index 6a9faf06dd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.create( - "", // databaseId - "", // tableId - "", // name - listOf("read("any")"), // permissions (optional) - false, // rowSecurity (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md deleted file mode 100644 index 9e79f36e14..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.decrementRowColumn( - "", // databaseId - "", // tableId - "", // rowId - "", // column - 0, // value (optional) - 0, // min (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md deleted file mode 100644 index f14390c905..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.deleteColumn( - "", // databaseId - "", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md deleted file mode 100644 index 1b22eb00d8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.deleteIndex( - "", // databaseId - "", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md deleted file mode 100644 index a48745a225..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Tables tables = new Tables(client); - -tables.deleteRow( - "", // databaseId - "", // tableId - "", // rowId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md deleted file mode 100644 index 6a86321fad..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.deleteRows( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete.md deleted file mode 100644 index e777c7292e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.delete( - "", // databaseId - "", // tableId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/get-column.md deleted file mode 100644 index b4f7e1298f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/get-column.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.getColumn( - "", // databaseId - "", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get-index.md b/docs/examples/1.8.x/server-kotlin/java/tables/get-index.md deleted file mode 100644 index 5bcd59d4cd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/get-index.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.getIndex( - "", // databaseId - "", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/get-row.md deleted file mode 100644 index 7f72c25cd8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/get-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Tables tables = new Tables(client); - -tables.getRow( - "", // databaseId - "", // tableId - "", // rowId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get.md b/docs/examples/1.8.x/server-kotlin/java/tables/get.md deleted file mode 100644 index 6f3c639450..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/get.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.get( - "", // databaseId - "", // tableId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md deleted file mode 100644 index f9c828398a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.incrementRowColumn( - "", // databaseId - "", // tableId - "", // rowId - "", // column - 0, // value (optional) - 0, // max (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md b/docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md deleted file mode 100644 index 05e1960021..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.listColumns( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md b/docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md deleted file mode 100644 index c9bd445fe8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.listIndexes( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md deleted file mode 100644 index 8cbc356556..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Tables tables = new Tables(client); - -tables.listRows( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list.md b/docs/examples/1.8.x/server-kotlin/java/tables/list.md deleted file mode 100644 index c3e0c559aa..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/list.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.list( - "", // databaseId - listOf(), // queries (optional) - "", // search (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md deleted file mode 100644 index 647190e7bc..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateBooleanColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - false, // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md deleted file mode 100644 index 38e0e60da5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateDatetimeColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md deleted file mode 100644 index 918884e0b3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateEmailColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "email@example.com", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md deleted file mode 100644 index b1bbc83520..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateEnumColumn( - "", // databaseId - "", // tableId - "", // key - listOf(), // elements - false, // required - "", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md deleted file mode 100644 index 977c23727c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateFloatColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - 0, // default - 0, // min (optional) - 0, // max (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md deleted file mode 100644 index d2ad81d0eb..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateIntegerColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - 0, // default - 0, // min (optional) - 0, // max (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md deleted file mode 100644 index cd6e67bc2c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateIpColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md deleted file mode 100644 index e0dc185e0e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateRelationshipColumn( - "", // databaseId - "", // tableId - "", // key - RelationMutate.CASCADE, // onDelete (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-row.md deleted file mode 100644 index 8270c3fa9b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-row.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Tables tables = new Tables(client); - -tables.updateRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md deleted file mode 100644 index a51878508f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateRows( - "", // databaseId - "", // tableId - mapOf( "a" to "b" ), // data (optional) - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md deleted file mode 100644 index 31e279d068..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateStringColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default - 1, // size (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md deleted file mode 100644 index 201e578ac6..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.updateUrlColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "https://example.com", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update.md b/docs/examples/1.8.x/server-kotlin/java/tables/update.md deleted file mode 100644 index cf560cb461..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.update( - "", // databaseId - "", // tableId - "", // name - listOf("read("any")"), // permissions (optional) - false, // rowSecurity (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/upsert-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/upsert-row.md deleted file mode 100644 index 11127c5bfa..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/upsert-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT(""); // Your secret JSON Web Token - -Tables tables = new Tables(client); - -tables.upsertRow( - "", // databaseId - "", // tableId - "", // rowId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/upsert-rows.md deleted file mode 100644 index 14b382263b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/tables/upsert-rows.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey(""); // Your secret API key - -Tables tables = new Tables(client); - -tables.upsertRows( - "", // databaseId - "", // tableId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md deleted file mode 100644 index 68b8dc51bd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createBooleanColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = false, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md deleted file mode 100644 index 8740a71d3c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createDatetimeColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md deleted file mode 100644 index 34a6cb669f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createEmailColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "email@example.com", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md deleted file mode 100644 index d3d2fc9286..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createEnumColumn( - databaseId = "", - tableId = "", - key = "", - elements = listOf(), - required = false, - default = "", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md deleted file mode 100644 index 8540430cea..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createFloatColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - min = 0, // optional - max = 0, // optional - default = 0, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md deleted file mode 100644 index 053c88a93a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables -import io.appwrite.enums.IndexType - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createIndex( - databaseId = "", - tableId = "", - key = "", - type = IndexType.KEY, - columns = listOf(), - orders = listOf(), // optional - lengths = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md deleted file mode 100644 index 1222746259..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createIntegerColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - min = 0, // optional - max = 0, // optional - default = 0, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md deleted file mode 100644 index 277c756d24..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createIpColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md deleted file mode 100644 index aa07fac6a8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables -import io.appwrite.enums.RelationshipType - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createRelationshipColumn( - databaseId = "", - tableId = "", - relatedTableId = "", - type = RelationshipType.ONETOONE, - twoWay = false, // optional - key = "", // optional - twoWayKey = "", // optional - onDelete = "cascade" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md deleted file mode 100644 index 5df0890f99..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token - -val tables = Tables(client) - -val response = tables.createRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), - permissions = listOf("read("any")") // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-rows.md deleted file mode 100644 index f549d6fb8c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createRows( - databaseId = "", - tableId = "", - rows = listOf() -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md deleted file mode 100644 index d82026c31d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createStringColumn( - databaseId = "", - tableId = "", - key = "", - size = 1, - required = false, - default = "", // optional - array = false, // optional - encrypt = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md deleted file mode 100644 index 42f50e9ec9..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.createUrlColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "https://example.com", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md deleted file mode 100644 index 3dc1d1a37d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.create( - databaseId = "", - tableId = "", - name = "", - permissions = listOf("read("any")"), // optional - rowSecurity = false, // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md deleted file mode 100644 index f78f7bbed7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.decrementRowColumn( - databaseId = "", - tableId = "", - rowId = "", - column = "", - value = 0, // optional - min = 0 // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md deleted file mode 100644 index d41f2ceabf..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.deleteColumn( - databaseId = "", - tableId = "", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md deleted file mode 100644 index 7af6648f2f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.deleteIndex( - databaseId = "", - tableId = "", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md deleted file mode 100644 index d182ccff95..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val tables = Tables(client) - -val response = tables.deleteRow( - databaseId = "", - tableId = "", - rowId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md deleted file mode 100644 index 54ff6b690c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.deleteRows( - databaseId = "", - tableId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md deleted file mode 100644 index 5cbd03226a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.delete( - databaseId = "", - tableId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md deleted file mode 100644 index 6f4d65b4dc..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.getColumn( - databaseId = "", - tableId = "", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md deleted file mode 100644 index 660502f228..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.getIndex( - databaseId = "", - tableId = "", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md deleted file mode 100644 index cbaaa6c3e9..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val tables = Tables(client) - -val response = tables.getRow( - databaseId = "", - tableId = "", - rowId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md deleted file mode 100644 index ff6d354c15..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.get( - databaseId = "", - tableId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md deleted file mode 100644 index 7917b7f939..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.incrementRowColumn( - databaseId = "", - tableId = "", - rowId = "", - column = "", - value = 0, // optional - max = 0 // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md deleted file mode 100644 index 4c1765193d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.listColumns( - databaseId = "", - tableId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md deleted file mode 100644 index bcd1fe75ab..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.listIndexes( - databaseId = "", - tableId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md deleted file mode 100644 index 38b776acb8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val tables = Tables(client) - -val response = tables.listRows( - databaseId = "", - tableId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md deleted file mode 100644 index 37b03445da..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.list( - databaseId = "", - queries = listOf(), // optional - search = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md deleted file mode 100644 index 10a0422d2d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateBooleanColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = false, - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md deleted file mode 100644 index 69ccf0354e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateDatetimeColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md deleted file mode 100644 index 593a89b4ce..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateEmailColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "email@example.com", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md deleted file mode 100644 index b672e3e155..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateEnumColumn( - databaseId = "", - tableId = "", - key = "", - elements = listOf(), - required = false, - default = "", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md deleted file mode 100644 index 005c4e64a5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateFloatColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = 0, - min = 0, // optional - max = 0, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md deleted file mode 100644 index 39da19d562..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateIntegerColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = 0, - min = 0, // optional - max = 0, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md deleted file mode 100644 index 40e54bcdfd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateIpColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md deleted file mode 100644 index d4c36e8802..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateRelationshipColumn( - databaseId = "", - tableId = "", - key = "", - onDelete = "cascade", // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md deleted file mode 100644 index 6d3d9a47f7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val tables = Tables(client) - -val response = tables.updateRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), // optional - permissions = listOf("read("any")") // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md deleted file mode 100644 index aac87c19b0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateRows( - databaseId = "", - tableId = "", - data = mapOf( "a" to "b" ), // optional - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md deleted file mode 100644 index bb5b1f4bcf..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateStringColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", - size = 1, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md deleted file mode 100644 index 07f43e3907..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.updateUrlColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "https://example.com", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md deleted file mode 100644 index 381532316d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.update( - databaseId = "", - tableId = "", - name = "", - permissions = listOf("read("any")"), // optional - rowSecurity = false, // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-row.md deleted file mode 100644 index 6e02b3abe9..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token - -val tables = Tables(client) - -val response = tables.upsertRow( - databaseId = "", - tableId = "", - rowId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-rows.md deleted file mode 100644 index d639e3d30b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey("") // Your secret API key - -val tables = Tables(client) - -val response = tables.upsertRows( - databaseId = "", - tableId = "" -) diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md deleted file mode 100644 index 64893d77a8..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md deleted file mode 100644 index 0d63244727..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md deleted file mode 100644 index 2257fdd7d6..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md deleted file mode 100644 index dbc75feea5..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md deleted file mode 100644 index 690b5849eb..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md deleted file mode 100644 index aef047ba5f..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createIndex( - '', // databaseId - '', // tableId - '', // key - sdk.IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md deleted file mode 100644 index 05e66b548c..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md deleted file mode 100644 index 69b5c635d2..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md deleted file mode 100644 index b6e7fa517f..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createRelationshipColumn( - '', // databaseId - '', // tableId - '', // relatedTableId - sdk.RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - sdk.RelationMutate.Cascade // onDelete (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-row.md deleted file mode 100644 index 84da608d41..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token - -const tables = new sdk.Tables(client); - -const result = await tables.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-rows.md deleted file mode 100644 index 6a6918b8df..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createRows( - '', // databaseId - '', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md deleted file mode 100644 index 8e14cb45c9..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createStringColumn( - '', // databaseId - '', // tableId - '', // key - 1, // size - false, // required - '', // default (optional) - false, // array (optional) - false // encrypt (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md deleted file mode 100644 index 73cdfa3710..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.createUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create.md deleted file mode 100644 index 54d6bc61bd..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.create( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md deleted file mode 100644 index 2e7df6aa92..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.decrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // min (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md deleted file mode 100644 index a892c61baa..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.deleteColumn( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md deleted file mode 100644 index f6bc7919db..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.deleteIndex( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md deleted file mode 100644 index 5bc60cd6cb..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const tables = new sdk.Tables(client); - -const result = await tables.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md deleted file mode 100644 index 11b16b71ae..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.deleteRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete.md deleted file mode 100644 index fed3eee5a4..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.delete( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md deleted file mode 100644 index daa20e17e2..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.getColumn( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md b/docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md deleted file mode 100644 index 56ba871d67..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.getIndex( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md deleted file mode 100644 index df952d9595..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const tables = new sdk.Tables(client); - -const result = await tables.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get.md b/docs/examples/1.8.x/server-nodejs/examples/tables/get.md deleted file mode 100644 index b078574b5c..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/get.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.get( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md deleted file mode 100644 index bb5856c74a..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.incrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // max (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md b/docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md deleted file mode 100644 index f9af43bea5..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.listColumns( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md deleted file mode 100644 index 7eaf4b8710..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.listIndexes( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md deleted file mode 100644 index aa5b341649..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const tables = new sdk.Tables(client); - -const result = await tables.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list.md b/docs/examples/1.8.x/server-nodejs/examples/tables/list.md deleted file mode 100644 index 872a98df08..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/list.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.list( - '', // databaseId - [], // queries (optional) - '' // search (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md deleted file mode 100644 index 84ff5d2bef..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md deleted file mode 100644 index c02559a171..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md deleted file mode 100644 index 9560b60e29..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md deleted file mode 100644 index 861fce6add..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md deleted file mode 100644 index 01845ca3cc..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md deleted file mode 100644 index 0b7432247f..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md deleted file mode 100644 index 6ba5eccf3e..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md deleted file mode 100644 index 3409b8caad..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateRelationshipColumn( - '', // databaseId - '', // tableId - '', // key - sdk.RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md deleted file mode 100644 index ff8e98eb38..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const tables = new sdk.Tables(client); - -const result = await tables.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md deleted file mode 100644 index 72cef07202..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateRows( - '', // databaseId - '', // tableId - {}, // data (optional) - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md deleted file mode 100644 index f9445a50c1..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateStringColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - 1, // size (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md deleted file mode 100644 index c6ffdf3044..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.updateUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update.md deleted file mode 100644 index 4fd981ffbf..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.update( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-row.md deleted file mode 100644 index 2b08d56785..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-row.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token - -const tables = new sdk.Tables(client); - -const result = await tables.upsertRow( - '', // databaseId - '', // tableId - '' // rowId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-rows.md deleted file mode 100644 index 75d681dbf0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-rows.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key - -const tables = new sdk.Tables(client); - -const result = await tables.upsertRows( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md deleted file mode 100644 index 28339753ac..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createBooleanColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: false, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md deleted file mode 100644 index d7f18f2ede..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createDatetimeColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-email-column.md deleted file mode 100644 index 15ec2cf2e5..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-email-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createEmailColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: 'email@example.com', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md deleted file mode 100644 index aa2b6138f7..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md +++ /dev/null @@ -1,21 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createEnumColumn( - databaseId: '', - tableId: '', - key: '', - elements: [], - required: false, - default: '', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-float-column.md deleted file mode 100644 index 1f620dc887..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-float-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createFloatColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - min: null, // optional - max: null, // optional - default: null, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-index.md b/docs/examples/1.8.x/server-php/examples/tables/create-index.md deleted file mode 100644 index 9844e041d4..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-index.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createIndex( - databaseId: '', - tableId: '', - key: '', - type: IndexType::KEY(), - columns: [], - orders: [], // optional - lengths: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md deleted file mode 100644 index 185f12c5cb..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createIntegerColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - min: null, // optional - max: null, // optional - default: null, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md deleted file mode 100644 index 1f74e4dd72..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createIpColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md deleted file mode 100644 index c86b4c558a..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,23 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createRelationshipColumn( - databaseId: '', - tableId: '', - relatedTableId: '', - type: RelationshipType::ONETOONE(), - twoWay: false, // optional - key: '', // optional - twoWayKey: '', // optional - onDelete: RelationMutate::CASCADE() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-row.md b/docs/examples/1.8.x/server-php/examples/tables/create-row.md deleted file mode 100644 index 6b64a7e058..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-row.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setSession('') // The user session to authenticate with - ->setKey('') // Your secret API key - ->setJWT(''); // Your secret JSON Web Token - -$tables = new Tables($client); - -$result = $tables->createRow( - databaseId: '', - tableId: '', - rowId: '', - data: [], - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-rows.md b/docs/examples/1.8.x/server-php/examples/tables/create-rows.md deleted file mode 100644 index a1bf72ad13..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setAdmin('') // - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createRows( - databaseId: '', - tableId: '', - rows: [] -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-string-column.md deleted file mode 100644 index 085aff25c8..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-string-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createStringColumn( - databaseId: '', - tableId: '', - key: '', - size: 1, - required: false, - default: '', // optional - array: false, // optional - encrypt: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-url-column.md deleted file mode 100644 index d0bdb55dd4..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create-url-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->createUrlColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: 'https://example.com', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create.md b/docs/examples/1.8.x/server-php/examples/tables/create.md deleted file mode 100644 index 773d7a24eb..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/create.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->create( - databaseId: '', - tableId: '', - name: '', - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md deleted file mode 100644 index b0c44b6d0a..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->decrementRowColumn( - databaseId: '', - tableId: '', - rowId: '', - column: '', - value: null, // optional - min: null // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-column.md b/docs/examples/1.8.x/server-php/examples/tables/delete-column.md deleted file mode 100644 index 9bd6738cb7..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/delete-column.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->deleteColumn( - databaseId: '', - tableId: '', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-index.md b/docs/examples/1.8.x/server-php/examples/tables/delete-index.md deleted file mode 100644 index bbd748433a..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/delete-index.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->deleteIndex( - databaseId: '', - tableId: '', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-row.md b/docs/examples/1.8.x/server-php/examples/tables/delete-row.md deleted file mode 100644 index 0c4ab6ef40..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/delete-row.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$tables = new Tables($client); - -$result = $tables->deleteRow( - databaseId: '', - tableId: '', - rowId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-php/examples/tables/delete-rows.md deleted file mode 100644 index b0c984cc17..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/delete-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->deleteRows( - databaseId: '', - tableId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete.md b/docs/examples/1.8.x/server-php/examples/tables/delete.md deleted file mode 100644 index f145eedc91..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->delete( - databaseId: '', - tableId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/get-column.md b/docs/examples/1.8.x/server-php/examples/tables/get-column.md deleted file mode 100644 index b8b676564e..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/get-column.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->getColumn( - databaseId: '', - tableId: '', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/get-index.md b/docs/examples/1.8.x/server-php/examples/tables/get-index.md deleted file mode 100644 index 5d1139d596..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/get-index.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->getIndex( - databaseId: '', - tableId: '', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/get-row.md b/docs/examples/1.8.x/server-php/examples/tables/get-row.md deleted file mode 100644 index ccde387b89..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/get-row.md +++ /dev/null @@ -1,18 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$tables = new Tables($client); - -$result = $tables->getRow( - databaseId: '', - tableId: '', - rowId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/get.md b/docs/examples/1.8.x/server-php/examples/tables/get.md deleted file mode 100644 index d07ef7338a..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->get( - databaseId: '', - tableId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md deleted file mode 100644 index aa5a3c0d53..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->incrementRowColumn( - databaseId: '', - tableId: '', - rowId: '', - column: '', - value: null, // optional - max: null // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/list-columns.md b/docs/examples/1.8.x/server-php/examples/tables/list-columns.md deleted file mode 100644 index 0338567240..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/list-columns.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->listColumns( - databaseId: '', - tableId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-php/examples/tables/list-indexes.md deleted file mode 100644 index df1f8c6aca..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/list-indexes.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->listIndexes( - databaseId: '', - tableId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/list-rows.md b/docs/examples/1.8.x/server-php/examples/tables/list-rows.md deleted file mode 100644 index 2041d72b05..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/list-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$tables = new Tables($client); - -$result = $tables->listRows( - databaseId: '', - tableId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/list.md b/docs/examples/1.8.x/server-php/examples/tables/list.md deleted file mode 100644 index 37df0a4baa..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/list.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->list( - databaseId: '', - queries: [], // optional - search: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md deleted file mode 100644 index 8ad80506d8..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateBooleanColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: false, - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md deleted file mode 100644 index 5185357f17..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateDatetimeColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-email-column.md deleted file mode 100644 index 7acbb811eb..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-email-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateEmailColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: 'email@example.com', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md deleted file mode 100644 index 478905af67..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md +++ /dev/null @@ -1,21 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateEnumColumn( - databaseId: '', - tableId: '', - key: '', - elements: [], - required: false, - default: '', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-float-column.md deleted file mode 100644 index 1d9c5fd997..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-float-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateFloatColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: null, - min: null, // optional - max: null, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md deleted file mode 100644 index f6998db0a2..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateIntegerColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: null, - min: null, // optional - max: null, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md deleted file mode 100644 index e7906fbd0f..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateIpColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md deleted file mode 100644 index d6505c77f1..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateRelationshipColumn( - databaseId: '', - tableId: '', - key: '', - onDelete: RelationMutate::CASCADE(), // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-row.md b/docs/examples/1.8.x/server-php/examples/tables/update-row.md deleted file mode 100644 index 921c43d935..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-row.md +++ /dev/null @@ -1,19 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$tables = new Tables($client); - -$result = $tables->updateRow( - databaseId: '', - tableId: '', - rowId: '', - data: [], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-rows.md b/docs/examples/1.8.x/server-php/examples/tables/update-rows.md deleted file mode 100644 index f61fa2b17d..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-rows.md +++ /dev/null @@ -1,18 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateRows( - databaseId: '', - tableId: '', - data: [], // optional - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-string-column.md deleted file mode 100644 index 8856ec19c1..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateStringColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', - size: 1, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-url-column.md deleted file mode 100644 index faa46d1806..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update-url-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->updateUrlColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: 'https://example.com', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update.md b/docs/examples/1.8.x/server-php/examples/tables/update.md deleted file mode 100644 index 39f076b8f8..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/update.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->update( - databaseId: '', - tableId: '', - name: '', - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-php/examples/tables/upsert-row.md deleted file mode 100644 index 2bddd9b5b3..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setSession('') // The user session to authenticate with - ->setKey('') // Your secret API key - ->setJWT(''); // Your secret JSON Web Token - -$tables = new Tables($client); - -$result = $tables->upsertRow( - databaseId: '', - tableId: '', - rowId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-php/examples/tables/upsert-rows.md deleted file mode 100644 index 5ed5f028a9..0000000000 --- a/docs/examples/1.8.x/server-php/examples/tables/upsert-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setAdmin('') // - ->setKey(''); // Your secret API key - -$tables = new Tables($client); - -$result = $tables->upsertRows( - databaseId: '', - tableId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md deleted file mode 100644 index cfbaa3b0ee..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_boolean_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = False, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md deleted file mode 100644 index a9f76b5e5f..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_datetime_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-email-column.md deleted file mode 100644 index 73ac0faad6..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_email_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = 'email@example.com', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md deleted file mode 100644 index 2013c39fa0..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_enum_column( - database_id = '', - table_id = '', - key = '', - elements = [], - required = False, - default = '', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-float-column.md deleted file mode 100644 index a56a196093..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_float_column( - database_id = '', - table_id = '', - key = '', - required = False, - min = None, # optional - max = None, # optional - default = None, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-index.md b/docs/examples/1.8.x/server-python/examples/tables/create-index.md deleted file mode 100644 index 69086af0b0..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-index.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables -from appwrite.enums import IndexType - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_index( - database_id = '', - table_id = '', - key = '', - type = IndexType.KEY, - columns = [], - orders = [], # optional - lengths = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md deleted file mode 100644 index d52b14bc5c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_integer_column( - database_id = '', - table_id = '', - key = '', - required = False, - min = None, # optional - max = None, # optional - default = None, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md deleted file mode 100644 index b5c7ef56db..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_ip_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md deleted file mode 100644 index 187271f887..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,21 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables -from appwrite.enums import RelationshipType - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_relationship_column( - database_id = '', - table_id = '', - related_table_id = '', - type = RelationshipType.ONETOONE, - two_way = False, # optional - key = '', # optional - two_way_key = '', # optional - on_delete = RelationMutate.CASCADE # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-row.md b/docs/examples/1.8.x/server-python/examples/tables/create-row.md deleted file mode 100644 index 8850a974b8..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_session('') # The user session to authenticate with -client.set_key('') # Your secret API key -client.set_jwt('') # Your secret JSON Web Token - -tables = Tables(client) - -result = tables.create_row( - database_id = '', - table_id = '', - row_id = '', - data = {}, - permissions = ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-rows.md b/docs/examples/1.8.x/server-python/examples/tables/create-rows.md deleted file mode 100644 index 3fae165081..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_admin('') # -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_rows( - database_id = '', - table_id = '', - rows = [] -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-string-column.md deleted file mode 100644 index 1308fea2ad..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_string_column( - database_id = '', - table_id = '', - key = '', - size = 1, - required = False, - default = '', # optional - array = False, # optional - encrypt = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-url-column.md deleted file mode 100644 index f15c3e0574..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create_url_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = 'https://example.com', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create.md b/docs/examples/1.8.x/server-python/examples/tables/create.md deleted file mode 100644 index 3a02843c4d..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/create.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.create( - database_id = '', - table_id = '', - name = '', - permissions = ["read("any")"], # optional - row_security = False, # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md deleted file mode 100644 index bf027d6e76..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.decrement_row_column( - database_id = '', - table_id = '', - row_id = '', - column = '', - value = None, # optional - min = None # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-column.md b/docs/examples/1.8.x/server-python/examples/tables/delete-column.md deleted file mode 100644 index cf2dd6d5e5..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.delete_column( - database_id = '', - table_id = '', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-index.md b/docs/examples/1.8.x/server-python/examples/tables/delete-index.md deleted file mode 100644 index 5f78d1ce1d..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.delete_index( - database_id = '', - table_id = '', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-row.md b/docs/examples/1.8.x/server-python/examples/tables/delete-row.md deleted file mode 100644 index 40a8b09fcf..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -tables = Tables(client) - -result = tables.delete_row( - database_id = '', - table_id = '', - row_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-python/examples/tables/delete-rows.md deleted file mode 100644 index 236aea1c9b..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.delete_rows( - database_id = '', - table_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete.md b/docs/examples/1.8.x/server-python/examples/tables/delete.md deleted file mode 100644 index de48bfc2b5..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.delete( - database_id = '', - table_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/get-column.md b/docs/examples/1.8.x/server-python/examples/tables/get-column.md deleted file mode 100644 index 4bd4617142..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.get_column( - database_id = '', - table_id = '', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/get-index.md b/docs/examples/1.8.x/server-python/examples/tables/get-index.md deleted file mode 100644 index cf88017fbe..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.get_index( - database_id = '', - table_id = '', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/get-row.md b/docs/examples/1.8.x/server-python/examples/tables/get-row.md deleted file mode 100644 index 25fefb23fd..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -tables = Tables(client) - -result = tables.get_row( - database_id = '', - table_id = '', - row_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/get.md b/docs/examples/1.8.x/server-python/examples/tables/get.md deleted file mode 100644 index 789410cfb7..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.get( - database_id = '', - table_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md deleted file mode 100644 index cfb923029e..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.increment_row_column( - database_id = '', - table_id = '', - row_id = '', - column = '', - value = None, # optional - max = None # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/list-columns.md b/docs/examples/1.8.x/server-python/examples/tables/list-columns.md deleted file mode 100644 index d9c5b16468..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.list_columns( - database_id = '', - table_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-python/examples/tables/list-indexes.md deleted file mode 100644 index 0b0bb585e7..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.list_indexes( - database_id = '', - table_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/list-rows.md b/docs/examples/1.8.x/server-python/examples/tables/list-rows.md deleted file mode 100644 index 2ece6f6cf7..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -tables = Tables(client) - -result = tables.list_rows( - database_id = '', - table_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/list.md b/docs/examples/1.8.x/server-python/examples/tables/list.md deleted file mode 100644 index 55a99e996d..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/list.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.list( - database_id = '', - queries = [], # optional - search = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md deleted file mode 100644 index 1bc7a4afac..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_boolean_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = False, - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md deleted file mode 100644 index 157ff44a7b..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_datetime_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-email-column.md deleted file mode 100644 index 8b9e4cad36..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_email_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = 'email@example.com', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md deleted file mode 100644 index b46971beac..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_enum_column( - database_id = '', - table_id = '', - key = '', - elements = [], - required = False, - default = '', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-float-column.md deleted file mode 100644 index 243a26f0aa..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_float_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = None, - min = None, # optional - max = None, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md deleted file mode 100644 index 99b55c17a7..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_integer_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = None, - min = None, # optional - max = None, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md deleted file mode 100644 index 2fb470ae6e..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_ip_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md deleted file mode 100644 index 35a307c7e2..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_relationship_column( - database_id = '', - table_id = '', - key = '', - on_delete = RelationMutate.CASCADE, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-row.md b/docs/examples/1.8.x/server-python/examples/tables/update-row.md deleted file mode 100644 index 4a71fc97f2..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -tables = Tables(client) - -result = tables.update_row( - database_id = '', - table_id = '', - row_id = '', - data = {}, # optional - permissions = ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-rows.md b/docs/examples/1.8.x/server-python/examples/tables/update-rows.md deleted file mode 100644 index a834346678..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_rows( - database_id = '', - table_id = '', - data = {}, # optional - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-string-column.md deleted file mode 100644 index 252c26433e..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_string_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', - size = 1, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-url-column.md deleted file mode 100644 index 235e2f3bc4..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update_url_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = 'https://example.com', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update.md b/docs/examples/1.8.x/server-python/examples/tables/update.md deleted file mode 100644 index c567bd5500..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/update.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.update( - database_id = '', - table_id = '', - name = '', - permissions = ["read("any")"], # optional - row_security = False, # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-python/examples/tables/upsert-row.md deleted file mode 100644 index e418708bc3..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_session('') # The user session to authenticate with -client.set_key('') # Your secret API key -client.set_jwt('') # Your secret JSON Web Token - -tables = Tables(client) - -result = tables.upsert_row( - database_id = '', - table_id = '', - row_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-python/examples/tables/upsert-rows.md deleted file mode 100644 index 85c2e94d69..0000000000 --- a/docs/examples/1.8.x/server-python/examples/tables/upsert-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.tables import Tables - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_admin('') # -client.set_key('') # Your secret API key - -tables = Tables(client) - -result = tables.upsert_rows( - database_id = '', - table_id = '' -) diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md deleted file mode 100644 index 4152d8538f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/boolean HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": false, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md deleted file mode 100644 index d5318d96db..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/datetime HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": , - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md deleted file mode 100644 index b213fa6ceb..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/email HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": "email@example.com", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md deleted file mode 100644 index 125f617f1f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/enum HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "elements": [], - "required": false, - "default": "", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md deleted file mode 100644 index 2e010318ff..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/float HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "min": 0, - "max": 0, - "default": 0, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-index.md b/docs/examples/1.8.x/server-rest/examples/tables/create-index.md deleted file mode 100644 index eaddec973a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/indexes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "type": "key", - "columns": [], - "orders": [], - "lengths": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md deleted file mode 100644 index f284dc03ef..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/integer HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "min": 0, - "max": 0, - "default": 0, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md deleted file mode 100644 index 8def17fc27..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/ip HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": , - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md deleted file mode 100644 index d8feb21916..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/relationship HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "relatedTableId": "", - "type": "oneToOne", - "twoWay": false, - "key": , - "twoWayKey": , - "onDelete": "cascade" -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-row.md b/docs/examples/1.8.x/server-rest/examples/tables/create-row.md deleted file mode 100644 index 075be16fa4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-row.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - -{ - "rowId": "", - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/create-rows.md deleted file mode 100644 index ad3d6983cc..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-rows.md +++ /dev/null @@ -1,12 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - -{ - "rows": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md deleted file mode 100644 index e654a05e3a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/string HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "size": 1, - "required": false, - "default": "", - "array": false, - "encrypt": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md deleted file mode 100644 index d98d77c68d..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/url HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": "https://example.com", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create.md b/docs/examples/1.8.x/server-rest/examples/tables/create.md deleted file mode 100644 index 14e1f6ec05..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/create.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/tables HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "tableId": "", - "name": "", - "permissions": ["read(\"any\")"], - "rowSecurity": false, - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md deleted file mode 100644 index a76efb3a69..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "value": 0, - "min": 0 -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete-column.md b/docs/examples/1.8.x/server-rest/examples/tables/delete-column.md deleted file mode 100644 index 2bda57366c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete-column.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/columns/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete-index.md b/docs/examples/1.8.x/server-rest/examples/tables/delete-index.md deleted file mode 100644 index ffffc38c64..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete-index.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete-row.md b/docs/examples/1.8.x/server-rest/examples/tables/delete-row.md deleted file mode 100644 index f10adef821..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md deleted file mode 100644 index fcaf8fb472..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md +++ /dev/null @@ -1,10 +0,0 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "queries": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete.md b/docs/examples/1.8.x/server-rest/examples/tables/delete.md deleted file mode 100644 index 379bead1ad..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - diff --git a/docs/examples/1.8.x/server-rest/examples/tables/get-column.md b/docs/examples/1.8.x/server-rest/examples/tables/get-column.md deleted file mode 100644 index 31d1856539..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/get-column.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/columns/{key} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/get-index.md b/docs/examples/1.8.x/server-rest/examples/tables/get-index.md deleted file mode 100644 index 076058d7f3..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/get-index.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/get-row.md b/docs/examples/1.8.x/server-rest/examples/tables/get-row.md deleted file mode 100644 index 0b827f18a8..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/get-row.md +++ /dev/null @@ -1,7 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/get.md b/docs/examples/1.8.x/server-rest/examples/tables/get.md deleted file mode 100644 index 74877ec0c0..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/get.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md deleted file mode 100644 index 480645c39c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "value": 0, - "max": 0 -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/list-columns.md b/docs/examples/1.8.x/server-rest/examples/tables/list-columns.md deleted file mode 100644 index 152b36ca26..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/list-columns.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/columns HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-rest/examples/tables/list-indexes.md deleted file mode 100644 index ee10a85d5e..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/list-indexes.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/indexes HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/list-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/list-rows.md deleted file mode 100644 index 46e69ab609..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/list-rows.md +++ /dev/null @@ -1,7 +0,0 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/list.md b/docs/examples/1.8.x/server-rest/examples/tables/list.md deleted file mode 100644 index e856ef7241..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/list.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/tables HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md deleted file mode 100644 index e4a1c4602a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/boolean/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": false, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md deleted file mode 100644 index 6b531dc604..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/datetime/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": , - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md deleted file mode 100644 index 531aa7a31a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/email/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": "email@example.com", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md deleted file mode 100644 index b02936fc5a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/enum/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "elements": [], - "required": false, - "default": "", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md deleted file mode 100644 index 313acb6c20..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md +++ /dev/null @@ -1,14 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/float/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "min": 0, - "max": 0, - "default": 0, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md deleted file mode 100644 index a2552e93ff..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md +++ /dev/null @@ -1,14 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/integer/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "min": 0, - "max": 0, - "default": 0, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md deleted file mode 100644 index b3cef978e2..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/ip/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": , - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md deleted file mode 100644 index 19fed27fdf..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/{key}/relationship HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "onDelete": "cascade", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-row.md b/docs/examples/1.8.x/server-rest/examples/tables/update-row.md deleted file mode 100644 index 20c92d746b..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-row.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/update-rows.md deleted file mode 100644 index 249653070c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-rows.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "data": {}, - "queries": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md deleted file mode 100644 index 7a25ee52e8..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/string/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": "", - "size": 1, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md deleted file mode 100644 index 2097e91d85..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/url/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": "https://example.com", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update.md b/docs/examples/1.8.x/server-rest/examples/tables/update.md deleted file mode 100644 index 786a36cf3c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/update.md +++ /dev/null @@ -1,13 +0,0 @@ -PUT /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "name": "", - "permissions": ["read(\"any\")"], - "rowSecurity": false, - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-rest/examples/tables/upsert-row.md deleted file mode 100644 index 7edca8018c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/upsert-row.md +++ /dev/null @@ -1,9 +0,0 @@ -PUT /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md deleted file mode 100644 index cfcb914866..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md +++ /dev/null @@ -1,7 +0,0 @@ -PUT /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Key: - diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md deleted file mode 100644 index 7df3908513..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_boolean_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: false, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md deleted file mode 100644 index 2d65509184..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_datetime_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md deleted file mode 100644 index 01f7ad43b5..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_email_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: 'email@example.com', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md deleted file mode 100644 index 97fcb589e4..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_enum_column( - database_id: '', - table_id: '', - key: '', - elements: [], - required: false, - default: '', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md deleted file mode 100644 index 9df32a3f5b..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_float_column( - database_id: '', - table_id: '', - key: '', - required: false, - min: null, # optional - max: null, # optional - default: null, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-index.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-index.md deleted file mode 100644 index 3c8dfdfb6b..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_index( - database_id: '', - table_id: '', - key: '', - type: IndexType::KEY, - columns: [], - orders: [], # optional - lengths: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md deleted file mode 100644 index d0c5c78108..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_integer_column( - database_id: '', - table_id: '', - key: '', - required: false, - min: null, # optional - max: null, # optional - default: null, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md deleted file mode 100644 index 0c97840a27..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_ip_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md deleted file mode 100644 index 8f7fb841aa..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_relationship_column( - database_id: '', - table_id: '', - related_table_id: '', - type: RelationshipType::ONETOONE, - two_way: false, # optional - key: '', # optional - two_way_key: '', # optional - on_delete: RelationMutate::CASCADE # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-row.md deleted file mode 100644 index a625249700..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_session('') # The user session to authenticate with - .set_key('') # Your secret API key - .set_jwt('') # Your secret JSON Web Token - -tables = Tables.new(client) - -result = tables.create_row( - database_id: '', - table_id: '', - row_id: '', - data: {}, - permissions: ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-rows.md deleted file mode 100644 index 2e78b96cbc..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_admin('') # - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_rows( - database_id: '', - table_id: '', - rows: [] -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md deleted file mode 100644 index d47cf49e0c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_string_column( - database_id: '', - table_id: '', - key: '', - size: 1, - required: false, - default: '', # optional - array: false, # optional - encrypt: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md deleted file mode 100644 index fcfebac7a8..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create_url_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: 'https://example.com', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create.md b/docs/examples/1.8.x/server-ruby/examples/tables/create.md deleted file mode 100644 index 5a255fafac..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.create( - database_id: '', - table_id: '', - name: '', - permissions: ["read("any")"], # optional - row_security: false, # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md deleted file mode 100644 index e22afcb0ad..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.decrement_row_column( - database_id: '', - table_id: '', - row_id: '', - column: '', - value: null, # optional - min: null # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md deleted file mode 100644 index 245864053f..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.delete_column( - database_id: '', - table_id: '', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md deleted file mode 100644 index 54bd5455aa..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.delete_index( - database_id: '', - table_id: '', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md deleted file mode 100644 index 9841fc2d2f..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -tables = Tables.new(client) - -result = tables.delete_row( - database_id: '', - table_id: '', - row_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md deleted file mode 100644 index 7be1e4bc70..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.delete_rows( - database_id: '', - table_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete.md deleted file mode 100644 index ca607f2b6b..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.delete( - database_id: '', - table_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/get-column.md deleted file mode 100644 index 1a1469d005..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.get_column( - database_id: '', - table_id: '', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get-index.md b/docs/examples/1.8.x/server-ruby/examples/tables/get-index.md deleted file mode 100644 index 7d762ce8ae..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.get_index( - database_id: '', - table_id: '', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/get-row.md deleted file mode 100644 index 4526bb7316..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -tables = Tables.new(client) - -result = tables.get_row( - database_id: '', - table_id: '', - row_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get.md b/docs/examples/1.8.x/server-ruby/examples/tables/get.md deleted file mode 100644 index 22ba02aebc..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/get.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.get( - database_id: '', - table_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md deleted file mode 100644 index c0a91d4b62..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.increment_row_column( - database_id: '', - table_id: '', - row_id: '', - column: '', - value: null, # optional - max: null # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md b/docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md deleted file mode 100644 index 7e851564c2..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.list_columns( - database_id: '', - table_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md deleted file mode 100644 index 0789291071..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.list_indexes( - database_id: '', - table_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md deleted file mode 100644 index bc9a0a49f6..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -tables = Tables.new(client) - -result = tables.list_rows( - database_id: '', - table_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list.md b/docs/examples/1.8.x/server-ruby/examples/tables/list.md deleted file mode 100644 index 7cf987ebb9..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/list.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.list( - database_id: '', - queries: [], # optional - search: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md deleted file mode 100644 index a09b365cd1..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_boolean_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: false, - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md deleted file mode 100644 index 55e0484b4c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_datetime_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md deleted file mode 100644 index 285cd6655a..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_email_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: 'email@example.com', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md deleted file mode 100644 index 90773ed9e4..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_enum_column( - database_id: '', - table_id: '', - key: '', - elements: [], - required: false, - default: '', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md deleted file mode 100644 index 0bb992bd3c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_float_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: null, - min: null, # optional - max: null, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md deleted file mode 100644 index 35f8c471a8..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_integer_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: null, - min: null, # optional - max: null, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md deleted file mode 100644 index 2ad1840a9d..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_ip_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md deleted file mode 100644 index de86fd53d7..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_relationship_column( - database_id: '', - table_id: '', - key: '', - on_delete: RelationMutate::CASCADE, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-row.md deleted file mode 100644 index 500927dcf0..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -tables = Tables.new(client) - -result = tables.update_row( - database_id: '', - table_id: '', - row_id: '', - data: {}, # optional - permissions: ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md deleted file mode 100644 index 8cee1810be..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_rows( - database_id: '', - table_id: '', - data: {}, # optional - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md deleted file mode 100644 index 2240f49555..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_string_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', - size: 1, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md deleted file mode 100644 index 0947a78a9e..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update_url_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: 'https://example.com', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update.md b/docs/examples/1.8.x/server-ruby/examples/tables/update.md deleted file mode 100644 index 003d3d041c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.update( - database_id: '', - table_id: '', - name: '', - permissions: ["read("any")"], # optional - row_security: false, # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/upsert-row.md deleted file mode 100644 index d96172e1ec..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_session('') # The user session to authenticate with - .set_key('') # Your secret API key - .set_jwt('') # Your secret JSON Web Token - -tables = Tables.new(client) - -result = tables.upsert_row( - database_id: '', - table_id: '', - row_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/upsert-rows.md deleted file mode 100644 index 8987b1ee0e..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/tables/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_admin('') # - .set_key('') # Your secret API key - -tables = Tables.new(client) - -result = tables.upsert_rows( - database_id: '', - table_id: '' -) diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md deleted file mode 100644 index 1b9627afac..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnBoolean = try await tables.createBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md deleted file mode 100644 index e002fb8042..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnDatetime = try await tables.createDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md deleted file mode 100644 index 338493dbc5..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnEmail = try await tables.createEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md deleted file mode 100644 index a6a9fff2c4..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnEnum = try await tables.createEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: [], - required: false, - default: "", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md deleted file mode 100644 index 12e4062454..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnFloat = try await tables.createFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-index.md b/docs/examples/1.8.x/server-swift/examples/tables/create-index.md deleted file mode 100644 index 03dea1ac48..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-index.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnIndex = try await tables.createIndex( - databaseId: "", - tableId: "", - key: "", - type: .key, - columns: [], - orders: [], // optional - lengths: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md deleted file mode 100644 index 6c04294025..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnInteger = try await tables.createIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md deleted file mode 100644 index 2cd0b2795f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnIp = try await tables.createIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md deleted file mode 100644 index 66b993cf9a..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnRelationship = try await tables.createRelationshipColumn( - databaseId: "", - tableId: "", - relatedTableId: "", - type: .oneToOne, - twoWay: false, // optional - key: "", // optional - twoWayKey: "", // optional - onDelete: .cascade // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-row.md b/docs/examples/1.8.x/server-swift/examples/tables/create-row.md deleted file mode 100644 index a736355127..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token - -let tables = Tables(client) - -let row = try await tables.createRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/create-rows.md deleted file mode 100644 index ee2095f08f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey("") // Your secret API key - -let tables = Tables(client) - -let rowList = try await tables.createRows( - databaseId: "", - tableId: "", - rows: [] -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md deleted file mode 100644 index e83ffdf367..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnString = try await tables.createStringColumn( - databaseId: "", - tableId: "", - key: "", - size: 1, - required: false, - default: "", // optional - array: false, // optional - encrypt: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md deleted file mode 100644 index 150b51309d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnUrl = try await tables.createUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create.md b/docs/examples/1.8.x/server-swift/examples/tables/create.md deleted file mode 100644 index 0843dfd242..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let table = try await tables.create( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md deleted file mode 100644 index ef24324780..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let row = try await tables.decrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, // optional - min: 0 // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-column.md b/docs/examples/1.8.x/server-swift/examples/tables/delete-column.md deleted file mode 100644 index 07f825ddbe..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let result = try await tables.deleteColumn( - databaseId: "", - tableId: "", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-index.md b/docs/examples/1.8.x/server-swift/examples/tables/delete-index.md deleted file mode 100644 index b6d2e5bfea..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let result = try await tables.deleteIndex( - databaseId: "", - tableId: "", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-row.md b/docs/examples/1.8.x/server-swift/examples/tables/delete-row.md deleted file mode 100644 index 92bc38777e..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let tables = Tables(client) - -let result = try await tables.deleteRow( - databaseId: "", - tableId: "", - rowId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md deleted file mode 100644 index d27fbce85f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let rowList = try await tables.deleteRows( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete.md b/docs/examples/1.8.x/server-swift/examples/tables/delete.md deleted file mode 100644 index aefa1d8cda..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let result = try await tables.delete( - databaseId: "", - tableId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get-column.md b/docs/examples/1.8.x/server-swift/examples/tables/get-column.md deleted file mode 100644 index 653f79dce7..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let result = try await tables.getColumn( - databaseId: "", - tableId: "", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get-index.md b/docs/examples/1.8.x/server-swift/examples/tables/get-index.md deleted file mode 100644 index 6835f56aa0..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnIndex = try await tables.getIndex( - databaseId: "", - tableId: "", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get-row.md b/docs/examples/1.8.x/server-swift/examples/tables/get-row.md deleted file mode 100644 index e2ff10f09a..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let tables = Tables(client) - -let row = try await tables.getRow( - databaseId: "", - tableId: "", - rowId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get.md b/docs/examples/1.8.x/server-swift/examples/tables/get.md deleted file mode 100644 index 610bf42529..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let table = try await tables.get( - databaseId: "", - tableId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md deleted file mode 100644 index 6ea883d612..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let row = try await tables.incrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, // optional - max: 0 // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list-columns.md b/docs/examples/1.8.x/server-swift/examples/tables/list-columns.md deleted file mode 100644 index 88c86137a4..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnList = try await tables.listColumns( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md deleted file mode 100644 index 2ea8e99eca..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnIndexList = try await tables.listIndexes( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/list-rows.md deleted file mode 100644 index ca2e5b0d4b..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let tables = Tables(client) - -let rowList = try await tables.listRows( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list.md b/docs/examples/1.8.x/server-swift/examples/tables/list.md deleted file mode 100644 index e135b50289..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/list.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let tableList = try await tables.list( - databaseId: "", - queries: [], // optional - search: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md deleted file mode 100644 index e0d1ea2f9f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnBoolean = try await tables.updateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md deleted file mode 100644 index f09e27920b..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnDatetime = try await tables.updateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md deleted file mode 100644 index f7b8cc4ede..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnEmail = try await tables.updateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md deleted file mode 100644 index 776da72e59..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnEnum = try await tables.updateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: [], - required: false, - default: "", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md deleted file mode 100644 index d6cd34c4b5..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnFloat = try await tables.updateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md deleted file mode 100644 index e1265cedbf..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnInteger = try await tables.updateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md deleted file mode 100644 index 4f3538bb7a..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnIp = try await tables.updateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md deleted file mode 100644 index 74bfd62750..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnRelationship = try await tables.updateRelationshipColumn( - databaseId: "", - tableId: "", - key: "", - onDelete: .cascade, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-row.md b/docs/examples/1.8.x/server-swift/examples/tables/update-row.md deleted file mode 100644 index 7fa81f6b58..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let tables = Tables(client) - -let row = try await tables.updateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/update-rows.md deleted file mode 100644 index d7cd0697da..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let rowList = try await tables.updateRows( - databaseId: "", - tableId: "", - data: [:], // optional - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md deleted file mode 100644 index ba14d9a96a..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnString = try await tables.updateStringColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - size: 1, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md deleted file mode 100644 index 19015e4c88..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let columnUrl = try await tables.updateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update.md b/docs/examples/1.8.x/server-swift/examples/tables/update.md deleted file mode 100644 index c9840a0a51..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/update.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let tables = Tables(client) - -let table = try await tables.update( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-swift/examples/tables/upsert-row.md deleted file mode 100644 index c5c5b73afc..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token - -let tables = Tables(client) - -let row = try await tables.upsertRow( - databaseId: "", - tableId: "", - rowId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/upsert-rows.md deleted file mode 100644 index 037d927dc9..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/tables/upsert-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey("") // Your secret API key - -let tables = Tables(client) - -let rowList = try await tables.upsertRows( - databaseId: "", - tableId: "" -) - diff --git a/docs/references/databases/create-boolean-column.md b/docs/references/databases/create-boolean-column.md deleted file mode 100644 index c528ede1a2..0000000000 --- a/docs/references/databases/create-boolean-column.md +++ /dev/null @@ -1 +0,0 @@ -Create a boolean column. diff --git a/docs/references/databases/create-datetime-column.md b/docs/references/databases/create-datetime-column.md deleted file mode 100644 index ad92750639..0000000000 --- a/docs/references/databases/create-datetime-column.md +++ /dev/null @@ -1 +0,0 @@ -Create a date time column according to the ISO 8601 standard. \ No newline at end of file diff --git a/docs/references/databases/create-email-column.md b/docs/references/databases/create-email-column.md deleted file mode 100644 index 91aa5c9326..0000000000 --- a/docs/references/databases/create-email-column.md +++ /dev/null @@ -1 +0,0 @@ -Create an email column. diff --git a/docs/references/databases/create-enum-column.md b/docs/references/databases/create-enum-column.md deleted file mode 100644 index b9e5a3ebe4..0000000000 --- a/docs/references/databases/create-enum-column.md +++ /dev/null @@ -1 +0,0 @@ -Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column. \ No newline at end of file diff --git a/docs/references/databases/create-float-column.md b/docs/references/databases/create-float-column.md deleted file mode 100644 index 0b133eef28..0000000000 --- a/docs/references/databases/create-float-column.md +++ /dev/null @@ -1 +0,0 @@ -Create a float column. Optionally, minimum and maximum values can be provided. diff --git a/docs/references/databases/create-integer-column.md b/docs/references/databases/create-integer-column.md deleted file mode 100644 index 5f51b3965a..0000000000 --- a/docs/references/databases/create-integer-column.md +++ /dev/null @@ -1 +0,0 @@ -Create an integer column. Optionally, minimum and maximum values can be provided. diff --git a/docs/references/databases/create-ip-column.md b/docs/references/databases/create-ip-column.md deleted file mode 100644 index 012431dbae..0000000000 --- a/docs/references/databases/create-ip-column.md +++ /dev/null @@ -1 +0,0 @@ -Create IP address column. diff --git a/docs/references/databases/create-relationship-column.md b/docs/references/databases/create-relationship-column.md deleted file mode 100644 index d87d8bccf8..0000000000 --- a/docs/references/databases/create-relationship-column.md +++ /dev/null @@ -1 +0,0 @@ -Create relationship column. [Learn more about relationship columns](https://appwrite.io/docs/databases-relationships#relationship-columns). diff --git a/docs/references/databases/create-row.md b/docs/references/databases/create-row.md deleted file mode 100644 index a07abfa04d..0000000000 --- a/docs/references/databases/create-row.md +++ /dev/null @@ -1 +0,0 @@ -Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/databases/create-rows.md b/docs/references/databases/create-rows.md deleted file mode 100644 index cea67913b4..0000000000 --- a/docs/references/databases/create-rows.md +++ /dev/null @@ -1 +0,0 @@ -Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/databases/create-string-column.md b/docs/references/databases/create-string-column.md deleted file mode 100644 index 7395e26a11..0000000000 --- a/docs/references/databases/create-string-column.md +++ /dev/null @@ -1 +0,0 @@ -Create a string column. diff --git a/docs/references/databases/create-table.md b/docs/references/databases/create-table.md deleted file mode 100644 index 263638ea00..0000000000 --- a/docs/references/databases/create-table.md +++ /dev/null @@ -1 +0,0 @@ -Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/databases/create-url-column.md b/docs/references/databases/create-url-column.md deleted file mode 100644 index e731d758ce..0000000000 --- a/docs/references/databases/create-url-column.md +++ /dev/null @@ -1 +0,0 @@ -Create a URL column. diff --git a/docs/references/databases/decrement-row-column.md b/docs/references/databases/decrement-row-column.md deleted file mode 100644 index b7b32d6148..0000000000 --- a/docs/references/databases/decrement-row-column.md +++ /dev/null @@ -1 +0,0 @@ -Decrement a specific column of a row by a given value. \ No newline at end of file diff --git a/docs/references/databases/delete-column.md b/docs/references/databases/delete-column.md deleted file mode 100644 index efba8b1d77..0000000000 --- a/docs/references/databases/delete-column.md +++ /dev/null @@ -1 +0,0 @@ -Deletes a column. \ No newline at end of file diff --git a/docs/references/databases/delete-row.md b/docs/references/databases/delete-row.md deleted file mode 100644 index c0b9dfbdaf..0000000000 --- a/docs/references/databases/delete-row.md +++ /dev/null @@ -1 +0,0 @@ -Delete a row by its unique ID. \ No newline at end of file diff --git a/docs/references/databases/delete-rows.md b/docs/references/databases/delete-rows.md deleted file mode 100644 index 9d5189ce76..0000000000 --- a/docs/references/databases/delete-rows.md +++ /dev/null @@ -1 +0,0 @@ -Bulk delete rows using queries, if no queries are passed then all rows are deleted. \ No newline at end of file diff --git a/docs/references/databases/delete-table.md b/docs/references/databases/delete-table.md deleted file mode 100644 index ad74ca3233..0000000000 --- a/docs/references/databases/delete-table.md +++ /dev/null @@ -1 +0,0 @@ -Delete a table by its unique ID. Only users with write permissions have access to delete this resource. \ No newline at end of file diff --git a/docs/references/databases/get-column.md b/docs/references/databases/get-column.md deleted file mode 100644 index cd8b8797a9..0000000000 --- a/docs/references/databases/get-column.md +++ /dev/null @@ -1 +0,0 @@ -Get column by ID. \ No newline at end of file diff --git a/docs/references/databases/get-row-logs.md b/docs/references/databases/get-row-logs.md deleted file mode 100644 index 1d494ed53e..0000000000 --- a/docs/references/databases/get-row-logs.md +++ /dev/null @@ -1 +0,0 @@ -Get the row activity logs list by its unique ID. \ No newline at end of file diff --git a/docs/references/databases/get-row.md b/docs/references/databases/get-row.md deleted file mode 100644 index 6a30fa472c..0000000000 --- a/docs/references/databases/get-row.md +++ /dev/null @@ -1 +0,0 @@ -Get a row by its unique ID. This endpoint response returns a JSON object with the row data. \ No newline at end of file diff --git a/docs/references/databases/get-table-logs.md b/docs/references/databases/get-table-logs.md deleted file mode 100644 index 8b00c7f317..0000000000 --- a/docs/references/databases/get-table-logs.md +++ /dev/null @@ -1 +0,0 @@ -Get the table activity logs list by its unique ID. \ No newline at end of file diff --git a/docs/references/databases/get-table-usage.md b/docs/references/databases/get-table-usage.md deleted file mode 100644 index 08e28af0a6..0000000000 --- a/docs/references/databases/get-table-usage.md +++ /dev/null @@ -1 +0,0 @@ -Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/databases/get-table.md b/docs/references/databases/get-table.md deleted file mode 100644 index 67b8428431..0000000000 --- a/docs/references/databases/get-table.md +++ /dev/null @@ -1 +0,0 @@ -Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata. \ No newline at end of file diff --git a/docs/references/databases/increment-row-column.md b/docs/references/databases/increment-row-column.md deleted file mode 100644 index 7a19b3fbc7..0000000000 --- a/docs/references/databases/increment-row-column.md +++ /dev/null @@ -1 +0,0 @@ -Increment a specific column of a row by a given value. \ No newline at end of file diff --git a/docs/references/databases/list-columns.md b/docs/references/databases/list-columns.md deleted file mode 100644 index aacf373082..0000000000 --- a/docs/references/databases/list-columns.md +++ /dev/null @@ -1 +0,0 @@ -List columns in the table. \ No newline at end of file diff --git a/docs/references/databases/list-rows.md b/docs/references/databases/list-rows.md deleted file mode 100644 index 68185fc192..0000000000 --- a/docs/references/databases/list-rows.md +++ /dev/null @@ -1 +0,0 @@ -Get a list of all the user's rows in a given table. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/databases/list-tables.md b/docs/references/databases/list-tables.md deleted file mode 100644 index e14795eeac..0000000000 --- a/docs/references/databases/list-tables.md +++ /dev/null @@ -1 +0,0 @@ -Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results. \ No newline at end of file diff --git a/docs/references/databases/update-boolean-column.md b/docs/references/databases/update-boolean-column.md deleted file mode 100644 index f5167d97b6..0000000000 --- a/docs/references/databases/update-boolean-column.md +++ /dev/null @@ -1 +0,0 @@ -Update a boolean column. Changing the `default` value will not update already existing rows. \ No newline at end of file diff --git a/docs/references/databases/update-datetime-column.md b/docs/references/databases/update-datetime-column.md deleted file mode 100644 index e793b41921..0000000000 --- a/docs/references/databases/update-datetime-column.md +++ /dev/null @@ -1 +0,0 @@ -Update a date time column. Changing the `default` value will not update already existing rows. \ No newline at end of file diff --git a/docs/references/databases/update-email-column.md b/docs/references/databases/update-email-column.md deleted file mode 100644 index 0db17e29bd..0000000000 --- a/docs/references/databases/update-email-column.md +++ /dev/null @@ -1 +0,0 @@ -Update an email column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/databases/update-enum-column.md b/docs/references/databases/update-enum-column.md deleted file mode 100644 index df172cbc38..0000000000 --- a/docs/references/databases/update-enum-column.md +++ /dev/null @@ -1 +0,0 @@ -Update an enum column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/databases/update-float-column.md b/docs/references/databases/update-float-column.md deleted file mode 100644 index 4e0eb9ddb2..0000000000 --- a/docs/references/databases/update-float-column.md +++ /dev/null @@ -1 +0,0 @@ -Update a float column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/databases/update-integer-column.md b/docs/references/databases/update-integer-column.md deleted file mode 100644 index 0f2a07ea6e..0000000000 --- a/docs/references/databases/update-integer-column.md +++ /dev/null @@ -1 +0,0 @@ -Update an integer column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/databases/update-ip-column.md b/docs/references/databases/update-ip-column.md deleted file mode 100644 index 115c87a7e1..0000000000 --- a/docs/references/databases/update-ip-column.md +++ /dev/null @@ -1 +0,0 @@ -Update an ip column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/databases/update-relationship-column.md b/docs/references/databases/update-relationship-column.md deleted file mode 100644 index dfdcd8ae5a..0000000000 --- a/docs/references/databases/update-relationship-column.md +++ /dev/null @@ -1 +0,0 @@ -Update relationship column. [Learn more about relationship columns](https://appwrite.io/docs/databases-relationships#relationship-columns). diff --git a/docs/references/databases/update-row.md b/docs/references/databases/update-row.md deleted file mode 100644 index b532ea411d..0000000000 --- a/docs/references/databases/update-row.md +++ /dev/null @@ -1 +0,0 @@ -Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated. \ No newline at end of file diff --git a/docs/references/databases/update-rows.md b/docs/references/databases/update-rows.md deleted file mode 100644 index 334b91aec1..0000000000 --- a/docs/references/databases/update-rows.md +++ /dev/null @@ -1 +0,0 @@ -Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated. \ No newline at end of file diff --git a/docs/references/databases/update-string-column.md b/docs/references/databases/update-string-column.md deleted file mode 100644 index 617214b4c9..0000000000 --- a/docs/references/databases/update-string-column.md +++ /dev/null @@ -1 +0,0 @@ -Update a string column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/databases/update-table.md b/docs/references/databases/update-table.md deleted file mode 100644 index bbd676d3b8..0000000000 --- a/docs/references/databases/update-table.md +++ /dev/null @@ -1 +0,0 @@ -Update a table by its unique ID. \ No newline at end of file diff --git a/docs/references/databases/update-url-column.md b/docs/references/databases/update-url-column.md deleted file mode 100644 index 6080d71509..0000000000 --- a/docs/references/databases/update-url-column.md +++ /dev/null @@ -1 +0,0 @@ -Update an url column. Changing the `default` value will not update already existing rows. diff --git a/docs/references/databases/upsert-row.md b/docs/references/databases/upsert-row.md deleted file mode 100644 index 1132afd53c..0000000000 --- a/docs/references/databases/upsert-row.md +++ /dev/null @@ -1 +0,0 @@ -Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/databases/upsert-rows.md b/docs/references/databases/upsert-rows.md deleted file mode 100644 index 21aa3da1ef..0000000000 --- a/docs/references/databases/upsert-rows.md +++ /dev/null @@ -1 +0,0 @@ -Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateTable) API or directly from your database console. From 24614225a81c5f451920697363e856e3f2136d78 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 16:58:04 +0530 Subject: [PATCH 09/24] fix: no params on multiple methods. --- .../SDK/Specification/Format/OpenAPI3.php | 20 ++++++++++++++----- .../SDK/Specification/Format/Swagger2.php | 20 ++++++++++++++----- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 3550157309..a9991d7b03 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -223,11 +223,21 @@ class OpenAPI3 extends Format 'description' => ($desc) ? \file_get_contents($desc) : '', ]; - foreach ($methodObj->getParameters() as $parameter) { - $additionalMethod['parameters'][] = $parameter->getName(); - - if (!$parameter->getOptional()) { - $additionalMethod['required'][] = $parameter->getName(); + // If additional method has no parameters, inherit from route + if (empty($methodObj->getParameters())) { + foreach ($route->getParams() as $name => $param) { + $additionalMethod['parameters'][] = $name; + if (!$param['optional']) { + $additionalMethod['required'][] = $name; + } + } + } else { + // Use method's own parameters + foreach ($methodObj->getParameters() as $parameter) { + $additionalMethod['parameters'][] = $parameter->getName(); + if (!$parameter->getOptional()) { + $additionalMethod['required'][] = $parameter->getName(); + } } } diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 3a98b4e2c0..305a10b34b 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -232,11 +232,21 @@ class Swagger2 extends Format 'description' => ($desc) ? \file_get_contents($desc) : '', ]; - foreach ($methodObj->getParameters() as $parameter) { - $additionalMethod['parameters'][] = $parameter->getName(); - - if (!$parameter->getOptional()) { - $additionalMethod['required'][] = $parameter->getName(); + // If additional method has no parameters, inherit from route + if (empty($methodObj->getParameters())) { + foreach ($route->getParams() as $name => $param) { + $additionalMethod['parameters'][] = $name; + if (!$param['optional']) { + $additionalMethod['required'][] = $name; + } + } + } else { + // Use method's own parameters + foreach ($methodObj->getParameters() as $parameter) { + $additionalMethod['parameters'][] = $parameter->getName(); + if (!$parameter->getOptional()) { + $additionalMethod['required'][] = $parameter->getName(); + } } } From 0df9d51b0122b057f5e5b0e7ad965b6d30a4c201 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 17:09:44 +0530 Subject: [PATCH 10/24] update: regen specs. --- app/config/specs/open-api3-1.8.x-client.json | 29 ++- app/config/specs/open-api3-1.8.x-console.json | 183 ++++++++++++++---- app/config/specs/open-api3-1.8.x-server.json | 139 ++++++++++--- app/config/specs/open-api3-latest-client.json | 29 ++- .../specs/open-api3-latest-console.json | 183 ++++++++++++++---- app/config/specs/open-api3-latest-server.json | 139 ++++++++++--- app/config/specs/swagger2-1.8.x-client.json | 29 ++- app/config/specs/swagger2-1.8.x-console.json | 183 ++++++++++++++---- app/config/specs/swagger2-1.8.x-server.json | 139 ++++++++++--- app/config/specs/swagger2-latest-client.json | 29 ++- app/config/specs/swagger2-latest-console.json | 183 ++++++++++++++---- app/config/specs/swagger2-latest-server.json | 139 ++++++++++--- 12 files changed, 1140 insertions(+), 264 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index 75f4d5713b..0853e74dd1 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -4720,8 +4720,19 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -5358,8 +5369,18 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index dca688f77a..4e026f0343 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -4563,7 +4563,10 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4579,7 +4582,10 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4670,8 +4676,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4686,8 +4699,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4783,7 +4803,9 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "range" + ], "required": [], "responses": [ { @@ -4799,7 +4821,9 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "range" + ], "required": [], "responses": [ { @@ -4889,8 +4913,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4905,8 +4933,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4982,8 +5014,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4998,8 +5037,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -5092,8 +5138,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -5107,8 +5157,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -8515,8 +8569,16 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documents" + ], + "required": [ + "databaseId", + "collectionId", + "documents" + ], "responses": [ { "code": 201, @@ -8922,8 +8984,19 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -13777,8 +13850,16 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rows" + ], + "required": [ + "databaseId", + "tableId", + "rows" + ], "responses": [ { "code": 201, @@ -14168,8 +14249,18 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, @@ -14882,8 +14973,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "queries" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14898,8 +14994,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "queries" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14989,8 +15090,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "range" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -15005,8 +15111,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "range" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index c824247c5b..2ad2b3c265 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -4082,7 +4082,10 @@ "Project": [], "Key": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4099,7 +4102,10 @@ "Project": [], "Key": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4192,8 +4198,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4209,8 +4222,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4308,8 +4328,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4325,8 +4349,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4404,8 +4432,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4421,8 +4456,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4517,8 +4559,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -4533,8 +4579,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -7977,8 +8027,16 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documents" + ], + "required": [ + "databaseId", + "collectionId", + "documents" + ], "responses": [ { "code": 201, @@ -8390,8 +8448,19 @@ "Project": [], "Session": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -12933,8 +13002,16 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rows" + ], + "required": [ + "databaseId", + "tableId", + "rows" + ], "responses": [ { "code": 201, @@ -13330,8 +13407,18 @@ "Project": [], "Session": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 75f4d5713b..0853e74dd1 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -4720,8 +4720,19 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -5358,8 +5369,18 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index dca688f77a..4e026f0343 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -4563,7 +4563,10 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4579,7 +4582,10 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4670,8 +4676,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4686,8 +4699,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4783,7 +4803,9 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "range" + ], "required": [], "responses": [ { @@ -4799,7 +4821,9 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "range" + ], "required": [], "responses": [ { @@ -4889,8 +4913,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4905,8 +4933,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4982,8 +5014,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4998,8 +5037,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -5092,8 +5138,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -5107,8 +5157,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -8515,8 +8569,16 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documents" + ], + "required": [ + "databaseId", + "collectionId", + "documents" + ], "responses": [ { "code": 201, @@ -8922,8 +8984,19 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -13777,8 +13850,16 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rows" + ], + "required": [ + "databaseId", + "tableId", + "rows" + ], "responses": [ { "code": 201, @@ -14168,8 +14249,18 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, @@ -14882,8 +14973,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "queries" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14898,8 +14994,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "queries" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14989,8 +15090,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "range" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -15005,8 +15111,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "range" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index c824247c5b..2ad2b3c265 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -4082,7 +4082,10 @@ "Project": [], "Key": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4099,7 +4102,10 @@ "Project": [], "Key": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4192,8 +4198,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4209,8 +4222,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4308,8 +4328,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4325,8 +4349,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4404,8 +4432,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4421,8 +4456,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4517,8 +4559,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -4533,8 +4579,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -7977,8 +8027,16 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documents" + ], + "required": [ + "databaseId", + "collectionId", + "documents" + ], "responses": [ { "code": 201, @@ -8390,8 +8448,19 @@ "Project": [], "Session": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -12933,8 +13002,16 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rows" + ], + "required": [ + "databaseId", + "tableId", + "rows" + ], "responses": [ { "code": 201, @@ -13330,8 +13407,18 @@ "Project": [], "Session": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index 938ba76f53..c25de95c78 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -4848,8 +4848,19 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -5458,8 +5469,18 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index b4a61db855..dadd2fac84 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -4723,7 +4723,10 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4739,7 +4742,10 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4829,8 +4835,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4845,8 +4858,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4945,7 +4965,9 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "range" + ], "required": [], "responses": [ { @@ -4961,7 +4983,9 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "range" + ], "required": [], "responses": [ { @@ -5049,8 +5073,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -5065,8 +5093,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -5142,8 +5174,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -5158,8 +5197,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -5254,8 +5300,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -5269,8 +5319,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -8635,8 +8689,16 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documents" + ], + "required": [ + "databaseId", + "collectionId", + "documents" + ], "responses": [ { "code": 201, @@ -9025,8 +9087,19 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -13767,8 +13840,16 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rows" + ], + "required": [ + "databaseId", + "tableId", + "rows" + ], "responses": [ { "code": 201, @@ -14141,8 +14222,18 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, @@ -14816,8 +14907,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "queries" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14832,8 +14928,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "queries" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14920,8 +15021,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "range" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14936,8 +15042,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "range" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index 709c263b96..ed8068ad87 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -4230,7 +4230,10 @@ "Project": [], "Key": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4247,7 +4250,10 @@ "Project": [], "Key": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4339,8 +4345,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4356,8 +4369,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4458,8 +4478,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4475,8 +4499,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4554,8 +4582,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4571,8 +4606,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4669,8 +4711,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -4685,8 +4731,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -8087,8 +8137,16 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documents" + ], + "required": [ + "databaseId", + "collectionId", + "documents" + ], "responses": [ { "code": 201, @@ -8483,8 +8541,19 @@ "Project": [], "Session": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -12936,8 +13005,16 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rows" + ], + "required": [ + "databaseId", + "tableId", + "rows" + ], "responses": [ { "code": 201, @@ -13316,8 +13393,18 @@ "Project": [], "Session": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index 938ba76f53..c25de95c78 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -4848,8 +4848,19 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -5458,8 +5469,18 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index b4a61db855..dadd2fac84 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -4723,7 +4723,10 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4739,7 +4742,10 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4829,8 +4835,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4845,8 +4858,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4945,7 +4965,9 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "range" + ], "required": [], "responses": [ { @@ -4961,7 +4983,9 @@ "auth": { "Project": [] }, - "parameters": [], + "parameters": [ + "range" + ], "required": [], "responses": [ { @@ -5049,8 +5073,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -5065,8 +5093,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -5142,8 +5174,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -5158,8 +5197,15 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -5254,8 +5300,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -5269,8 +5319,12 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -8635,8 +8689,16 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documents" + ], + "required": [ + "databaseId", + "collectionId", + "documents" + ], "responses": [ { "code": 201, @@ -9025,8 +9087,19 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -13767,8 +13840,16 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rows" + ], + "required": [ + "databaseId", + "tableId", + "rows" + ], "responses": [ { "code": 201, @@ -14141,8 +14222,18 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, @@ -14816,8 +14907,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "queries" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14832,8 +14928,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "queries" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14920,8 +15021,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "range" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -14936,8 +15042,13 @@ "auth": { "Project": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "range" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 709c263b96..ed8068ad87 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -4230,7 +4230,10 @@ "Project": [], "Key": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4247,7 +4250,10 @@ "Project": [], "Key": [] }, - "parameters": [], + "parameters": [ + "queries", + "search" + ], "required": [], "responses": [ { @@ -4339,8 +4345,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4356,8 +4369,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 201, @@ -4458,8 +4478,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4475,8 +4499,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 200, @@ -4554,8 +4582,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4571,8 +4606,15 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "name", + "enabled" + ], + "required": [ + "databaseId", + "name" + ], "responses": [ { "code": 200, @@ -4669,8 +4711,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -4685,8 +4731,12 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId" + ], + "required": [ + "databaseId" + ], "responses": [ { "code": 204 @@ -8087,8 +8137,16 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documents" + ], + "required": [ + "databaseId", + "collectionId", + "documents" + ], "responses": [ { "code": 201, @@ -8483,8 +8541,19 @@ "Project": [], "Session": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], "responses": [ { "code": 201, @@ -12936,8 +13005,16 @@ "Project": [], "Key": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rows" + ], + "required": [ + "databaseId", + "tableId", + "rows" + ], "responses": [ { "code": 201, @@ -13316,8 +13393,18 @@ "Project": [], "Session": [] }, - "parameters": [], - "required": [], + "parameters": [ + "databaseId", + "tableId", + "rowId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "tableId", + "rowId" + ], "responses": [ { "code": 201, From 5ceaf66cc95ef053eb2722078805c0f51f30f396 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 17:14:23 +0530 Subject: [PATCH 11/24] update: regen examples. --- .../client-android/java/databases/create-document.md | 4 +--- .../client-android/java/databases/upsert-document.md | 6 +++--- .../client-android/java/functions/create-execution.md | 2 +- .../client-android/kotlin/databases/create-document.md | 4 +--- .../client-android/kotlin/databases/upsert-document.md | 6 +++--- .../client-android/kotlin/functions/create-execution.md | 2 +- .../client-apple/examples/databases/create-document.md | 4 +--- .../client-apple/examples/databases/upsert-document.md | 8 ++++---- .../client-apple/examples/functions/create-execution.md | 2 +- .../client-flutter/examples/databases/create-document.md | 4 +--- .../client-flutter/examples/databases/upsert-document.md | 6 +++--- .../examples/functions/create-execution.md | 2 +- .../client-graphql/examples/databases/upsert-document.md | 4 +++- .../examples/functions/create-execution.md | 2 +- .../1.8.x/client-graphql/examples/storage/create-file.md | 2 +- .../examples/databases/create-document.md | 4 +--- .../examples/databases/upsert-document.md | 8 ++++---- .../examples/functions/create-execution.md | 2 +- .../examples/account/create-anonymous-session.md | 2 +- .../examples/account/create-email-password-session.md | 2 +- .../client-rest/examples/account/create-email-token.md | 2 +- .../1.8.x/client-rest/examples/account/create-j-w-t.md | 2 +- .../examples/account/create-magic-u-r-l-token.md | 2 +- .../examples/account/create-mfa-authenticator.md | 2 +- .../client-rest/examples/account/create-mfa-challenge.md | 2 +- .../examples/account/create-mfa-recovery-codes.md | 2 +- .../examples/account/create-o-auth2session.md | 2 +- .../client-rest/examples/account/create-o-auth2token.md | 2 +- .../client-rest/examples/account/create-phone-token.md | 2 +- .../examples/account/create-phone-verification.md | 2 +- .../client-rest/examples/account/create-push-target.md | 2 +- .../client-rest/examples/account/create-recovery.md | 2 +- .../1.8.x/client-rest/examples/account/create-session.md | 2 +- .../client-rest/examples/account/create-verification.md | 2 +- .../1.8.x/client-rest/examples/account/create.md | 2 +- .../client-rest/examples/account/delete-identity.md | 2 +- .../examples/account/delete-mfa-authenticator.md | 2 +- .../client-rest/examples/account/delete-push-target.md | 2 +- .../1.8.x/client-rest/examples/account/delete-session.md | 2 +- .../client-rest/examples/account/delete-sessions.md | 2 +- .../examples/account/get-mfa-recovery-codes.md | 2 +- .../1.8.x/client-rest/examples/account/get-prefs.md | 2 +- .../1.8.x/client-rest/examples/account/get-session.md | 2 +- docs/examples/1.8.x/client-rest/examples/account/get.md | 2 +- .../client-rest/examples/account/list-identities.md | 2 +- .../1.8.x/client-rest/examples/account/list-logs.md | 2 +- .../client-rest/examples/account/list-mfa-factors.md | 2 +- .../1.8.x/client-rest/examples/account/list-sessions.md | 2 +- .../1.8.x/client-rest/examples/account/update-email.md | 2 +- .../1.8.x/client-rest/examples/account/update-m-f-a.md | 2 +- .../examples/account/update-magic-u-r-l-session.md | 2 +- .../examples/account/update-mfa-authenticator.md | 2 +- .../client-rest/examples/account/update-mfa-challenge.md | 2 +- .../examples/account/update-mfa-recovery-codes.md | 2 +- .../1.8.x/client-rest/examples/account/update-name.md | 2 +- .../client-rest/examples/account/update-password.md | 2 +- .../client-rest/examples/account/update-phone-session.md | 2 +- .../examples/account/update-phone-verification.md | 2 +- .../1.8.x/client-rest/examples/account/update-phone.md | 2 +- .../1.8.x/client-rest/examples/account/update-prefs.md | 2 +- .../client-rest/examples/account/update-push-target.md | 2 +- .../client-rest/examples/account/update-recovery.md | 2 +- .../1.8.x/client-rest/examples/account/update-session.md | 2 +- .../1.8.x/client-rest/examples/account/update-status.md | 2 +- .../client-rest/examples/account/update-verification.md | 2 +- .../1.8.x/client-rest/examples/avatars/get-browser.md | 2 +- .../client-rest/examples/avatars/get-credit-card.md | 2 +- .../1.8.x/client-rest/examples/avatars/get-favicon.md | 2 +- .../1.8.x/client-rest/examples/avatars/get-flag.md | 2 +- .../1.8.x/client-rest/examples/avatars/get-image.md | 2 +- .../1.8.x/client-rest/examples/avatars/get-initials.md | 2 +- .../1.8.x/client-rest/examples/avatars/get-q-r.md | 2 +- .../client-rest/examples/databases/create-document.md | 2 +- .../client-rest/examples/databases/delete-document.md | 2 +- .../1.8.x/client-rest/examples/databases/get-document.md | 2 +- .../client-rest/examples/databases/list-documents.md | 2 +- .../client-rest/examples/databases/update-document.md | 2 +- .../client-rest/examples/databases/upsert-document.md | 6 +++++- .../client-rest/examples/functions/create-execution.md | 4 ++-- .../client-rest/examples/functions/get-execution.md | 2 +- .../client-rest/examples/functions/list-executions.md | 2 +- .../1.8.x/client-rest/examples/graphql/mutation.md | 2 +- .../examples/1.8.x/client-rest/examples/graphql/query.md | 2 +- docs/examples/1.8.x/client-rest/examples/locale/get.md | 2 +- .../1.8.x/client-rest/examples/locale/list-codes.md | 2 +- .../1.8.x/client-rest/examples/locale/list-continents.md | 2 +- .../client-rest/examples/locale/list-countries-e-u.md | 2 +- .../client-rest/examples/locale/list-countries-phones.md | 2 +- .../1.8.x/client-rest/examples/locale/list-countries.md | 2 +- .../1.8.x/client-rest/examples/locale/list-currencies.md | 2 +- .../1.8.x/client-rest/examples/locale/list-languages.md | 2 +- .../client-rest/examples/messaging/create-subscriber.md | 2 +- .../client-rest/examples/messaging/delete-subscriber.md | 2 +- .../1.8.x/client-rest/examples/storage/create-file.md | 2 +- .../1.8.x/client-rest/examples/storage/delete-file.md | 2 +- .../client-rest/examples/storage/get-file-download.md | 2 +- .../client-rest/examples/storage/get-file-preview.md | 2 +- .../1.8.x/client-rest/examples/storage/get-file-view.md | 2 +- .../1.8.x/client-rest/examples/storage/get-file.md | 2 +- .../1.8.x/client-rest/examples/storage/list-files.md | 2 +- .../1.8.x/client-rest/examples/storage/update-file.md | 2 +- .../client-rest/examples/teams/create-membership.md | 2 +- docs/examples/1.8.x/client-rest/examples/teams/create.md | 2 +- .../client-rest/examples/teams/delete-membership.md | 2 +- docs/examples/1.8.x/client-rest/examples/teams/delete.md | 2 +- .../1.8.x/client-rest/examples/teams/get-membership.md | 2 +- .../1.8.x/client-rest/examples/teams/get-prefs.md | 2 +- docs/examples/1.8.x/client-rest/examples/teams/get.md | 2 +- .../1.8.x/client-rest/examples/teams/list-memberships.md | 2 +- docs/examples/1.8.x/client-rest/examples/teams/list.md | 2 +- .../examples/teams/update-membership-status.md | 2 +- .../client-rest/examples/teams/update-membership.md | 2 +- .../1.8.x/client-rest/examples/teams/update-name.md | 2 +- .../1.8.x/client-rest/examples/teams/update-prefs.md | 2 +- .../client-web/examples/databases/create-document.md | 4 +--- .../client-web/examples/databases/upsert-document.md | 8 ++++---- .../client-web/examples/functions/create-execution.md | 2 +- .../console-cli/examples/databases/upsert-document.md | 4 +++- .../console-cli/examples/databases/upsert-documents.md | 3 ++- .../console-web/examples/databases/create-document.md | 4 +--- .../console-web/examples/databases/create-documents.md | 3 +-- .../console-web/examples/databases/upsert-document.md | 8 ++++---- .../console-web/examples/databases/upsert-documents.md | 6 +++--- .../console-web/examples/functions/create-execution.md | 2 +- .../server-dart/examples/databases/create-document.md | 5 ++--- .../server-dart/examples/databases/create-documents.md | 2 +- .../server-dart/examples/databases/upsert-document.md | 7 ++++--- .../server-dart/examples/databases/upsert-documents.md | 3 ++- .../server-dart/examples/functions/create-execution.md | 2 +- .../server-deno/examples/databases/create-document.md | 5 ++--- .../server-deno/examples/databases/create-documents.md | 2 +- .../server-deno/examples/databases/upsert-document.md | 9 +++++---- .../server-deno/examples/databases/upsert-documents.md | 5 +++-- .../server-deno/examples/functions/create-execution.md | 2 +- .../server-dotnet/examples/databases/create-document.md | 5 ++--- .../server-dotnet/examples/databases/create-documents.md | 2 +- .../server-dotnet/examples/databases/upsert-document.md | 9 +++++---- .../server-dotnet/examples/databases/upsert-documents.md | 5 +++-- .../server-dotnet/examples/functions/create-execution.md | 2 +- .../server-go/examples/databases/create-document.md | 3 +-- .../server-go/examples/databases/create-documents.md | 2 +- .../server-go/examples/databases/upsert-document.md | 5 +++-- .../server-go/examples/databases/upsert-documents.md | 3 ++- .../server-go/examples/functions/create-execution.md | 2 +- .../examples/databases/create-collection.md | 5 +++-- .../server-graphql/examples/databases/create-index.md | 5 +++-- .../examples/databases/update-collection.md | 5 +++-- .../server-graphql/examples/databases/upsert-document.md | 4 +++- .../examples/databases/upsert-documents.md | 3 ++- .../examples/functions/create-deployment.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../server-graphql/examples/sites/create-deployment.md | 2 +- .../1.8.x/server-graphql/examples/storage/create-file.md | 2 +- .../server-kotlin/java/databases/create-document.md | 5 ++--- .../server-kotlin/java/databases/create-documents.md | 2 +- .../server-kotlin/java/databases/upsert-document.md | 7 ++++--- .../server-kotlin/java/databases/upsert-documents.md | 3 ++- .../server-kotlin/java/functions/create-execution.md | 2 +- .../server-kotlin/kotlin/databases/create-document.md | 3 +-- .../server-kotlin/kotlin/databases/create-documents.md | 2 +- .../server-kotlin/kotlin/databases/upsert-document.md | 7 ++++--- .../server-kotlin/kotlin/databases/upsert-documents.md | 5 +++-- .../server-kotlin/kotlin/functions/create-execution.md | 2 +- .../server-nodejs/examples/databases/create-document.md | 5 ++--- .../server-nodejs/examples/databases/create-documents.md | 2 +- .../server-nodejs/examples/databases/upsert-document.md | 9 +++++---- .../server-nodejs/examples/databases/upsert-documents.md | 5 +++-- .../server-nodejs/examples/functions/create-execution.md | 2 +- .../server-php/examples/databases/create-document.md | 5 ++--- .../server-php/examples/databases/create-documents.md | 2 +- .../server-php/examples/databases/upsert-document.md | 9 +++++---- .../server-php/examples/databases/upsert-documents.md | 5 +++-- .../server-php/examples/functions/create-execution.md | 2 +- .../server-python/examples/databases/create-document.md | 3 +-- .../server-python/examples/databases/create-documents.md | 2 +- .../server-python/examples/databases/upsert-document.md | 7 ++++--- .../server-python/examples/databases/upsert-documents.md | 5 +++-- .../server-python/examples/functions/create-execution.md | 2 +- .../examples/account/create-anonymous-session.md | 2 +- .../examples/account/create-email-password-session.md | 2 +- .../server-rest/examples/account/create-email-token.md | 2 +- .../1.8.x/server-rest/examples/account/create-j-w-t.md | 2 +- .../examples/account/create-magic-u-r-l-token.md | 2 +- .../examples/account/create-mfa-authenticator.md | 2 +- .../server-rest/examples/account/create-mfa-challenge.md | 2 +- .../examples/account/create-mfa-recovery-codes.md | 2 +- .../server-rest/examples/account/create-o-auth2token.md | 2 +- .../server-rest/examples/account/create-phone-token.md | 2 +- .../examples/account/create-phone-verification.md | 2 +- .../server-rest/examples/account/create-recovery.md | 2 +- .../1.8.x/server-rest/examples/account/create-session.md | 2 +- .../server-rest/examples/account/create-verification.md | 2 +- .../1.8.x/server-rest/examples/account/create.md | 2 +- .../server-rest/examples/account/delete-identity.md | 2 +- .../examples/account/delete-mfa-authenticator.md | 2 +- .../1.8.x/server-rest/examples/account/delete-session.md | 2 +- .../server-rest/examples/account/delete-sessions.md | 2 +- .../examples/account/get-mfa-recovery-codes.md | 2 +- .../1.8.x/server-rest/examples/account/get-prefs.md | 2 +- .../1.8.x/server-rest/examples/account/get-session.md | 2 +- docs/examples/1.8.x/server-rest/examples/account/get.md | 2 +- .../server-rest/examples/account/list-identities.md | 2 +- .../1.8.x/server-rest/examples/account/list-logs.md | 2 +- .../server-rest/examples/account/list-mfa-factors.md | 2 +- .../1.8.x/server-rest/examples/account/list-sessions.md | 2 +- .../1.8.x/server-rest/examples/account/update-email.md | 2 +- .../1.8.x/server-rest/examples/account/update-m-f-a.md | 2 +- .../examples/account/update-magic-u-r-l-session.md | 2 +- .../examples/account/update-mfa-authenticator.md | 2 +- .../server-rest/examples/account/update-mfa-challenge.md | 2 +- .../examples/account/update-mfa-recovery-codes.md | 2 +- .../1.8.x/server-rest/examples/account/update-name.md | 2 +- .../server-rest/examples/account/update-password.md | 2 +- .../server-rest/examples/account/update-phone-session.md | 2 +- .../examples/account/update-phone-verification.md | 2 +- .../1.8.x/server-rest/examples/account/update-phone.md | 2 +- .../1.8.x/server-rest/examples/account/update-prefs.md | 2 +- .../server-rest/examples/account/update-recovery.md | 2 +- .../1.8.x/server-rest/examples/account/update-session.md | 2 +- .../1.8.x/server-rest/examples/account/update-status.md | 2 +- .../server-rest/examples/account/update-verification.md | 2 +- .../1.8.x/server-rest/examples/avatars/get-browser.md | 2 +- .../server-rest/examples/avatars/get-credit-card.md | 2 +- .../1.8.x/server-rest/examples/avatars/get-favicon.md | 2 +- .../1.8.x/server-rest/examples/avatars/get-flag.md | 2 +- .../1.8.x/server-rest/examples/avatars/get-image.md | 2 +- .../1.8.x/server-rest/examples/avatars/get-initials.md | 2 +- .../1.8.x/server-rest/examples/avatars/get-q-r.md | 2 +- .../examples/databases/create-boolean-attribute.md | 2 +- .../server-rest/examples/databases/create-collection.md | 2 +- .../examples/databases/create-datetime-attribute.md | 2 +- .../server-rest/examples/databases/create-document.md | 2 +- .../server-rest/examples/databases/create-documents.md | 2 +- .../examples/databases/create-email-attribute.md | 2 +- .../examples/databases/create-enum-attribute.md | 2 +- .../examples/databases/create-float-attribute.md | 2 +- .../1.8.x/server-rest/examples/databases/create-index.md | 2 +- .../examples/databases/create-integer-attribute.md | 2 +- .../examples/databases/create-ip-attribute.md | 2 +- .../examples/databases/create-relationship-attribute.md | 2 +- .../examples/databases/create-string-attribute.md | 2 +- .../examples/databases/create-url-attribute.md | 2 +- .../1.8.x/server-rest/examples/databases/create.md | 2 +- .../examples/databases/decrement-document-attribute.md | 2 +- .../server-rest/examples/databases/delete-attribute.md | 2 +- .../server-rest/examples/databases/delete-collection.md | 2 +- .../server-rest/examples/databases/delete-document.md | 2 +- .../server-rest/examples/databases/delete-documents.md | 2 +- .../1.8.x/server-rest/examples/databases/delete-index.md | 2 +- .../1.8.x/server-rest/examples/databases/delete.md | 2 +- .../server-rest/examples/databases/get-attribute.md | 2 +- .../server-rest/examples/databases/get-collection.md | 2 +- .../1.8.x/server-rest/examples/databases/get-document.md | 2 +- .../1.8.x/server-rest/examples/databases/get-index.md | 2 +- .../examples/1.8.x/server-rest/examples/databases/get.md | 2 +- .../examples/databases/increment-document-attribute.md | 2 +- .../server-rest/examples/databases/list-attributes.md | 2 +- .../server-rest/examples/databases/list-collections.md | 2 +- .../server-rest/examples/databases/list-documents.md | 2 +- .../1.8.x/server-rest/examples/databases/list-indexes.md | 2 +- .../1.8.x/server-rest/examples/databases/list.md | 2 +- .../examples/databases/update-boolean-attribute.md | 2 +- .../server-rest/examples/databases/update-collection.md | 2 +- .../examples/databases/update-datetime-attribute.md | 2 +- .../server-rest/examples/databases/update-document.md | 2 +- .../server-rest/examples/databases/update-documents.md | 2 +- .../examples/databases/update-email-attribute.md | 2 +- .../examples/databases/update-enum-attribute.md | 2 +- .../examples/databases/update-float-attribute.md | 2 +- .../examples/databases/update-integer-attribute.md | 2 +- .../examples/databases/update-ip-attribute.md | 2 +- .../examples/databases/update-relationship-attribute.md | 2 +- .../examples/databases/update-string-attribute.md | 2 +- .../examples/databases/update-url-attribute.md | 2 +- .../1.8.x/server-rest/examples/databases/update.md | 2 +- .../server-rest/examples/databases/upsert-document.md | 6 +++++- .../server-rest/examples/databases/upsert-documents.md | 5 ++++- .../server-rest/examples/functions/create-deployment.md | 2 +- .../examples/functions/create-duplicate-deployment.md | 2 +- .../server-rest/examples/functions/create-execution.md | 4 ++-- .../examples/functions/create-template-deployment.md | 2 +- .../server-rest/examples/functions/create-variable.md | 2 +- .../examples/functions/create-vcs-deployment.md | 2 +- .../1.8.x/server-rest/examples/functions/create.md | 2 +- .../server-rest/examples/functions/delete-deployment.md | 2 +- .../server-rest/examples/functions/delete-execution.md | 2 +- .../server-rest/examples/functions/delete-variable.md | 2 +- .../1.8.x/server-rest/examples/functions/delete.md | 2 +- .../examples/functions/get-deployment-download.md | 2 +- .../server-rest/examples/functions/get-deployment.md | 2 +- .../server-rest/examples/functions/get-execution.md | 2 +- .../1.8.x/server-rest/examples/functions/get-variable.md | 2 +- .../examples/1.8.x/server-rest/examples/functions/get.md | 2 +- .../server-rest/examples/functions/list-deployments.md | 2 +- .../server-rest/examples/functions/list-executions.md | 2 +- .../server-rest/examples/functions/list-runtimes.md | 2 +- .../examples/functions/list-specifications.md | 2 +- .../server-rest/examples/functions/list-variables.md | 2 +- .../1.8.x/server-rest/examples/functions/list.md | 2 +- .../examples/functions/update-deployment-status.md | 2 +- .../examples/functions/update-function-deployment.md | 2 +- .../server-rest/examples/functions/update-variable.md | 2 +- .../1.8.x/server-rest/examples/functions/update.md | 2 +- .../1.8.x/server-rest/examples/graphql/mutation.md | 2 +- .../examples/1.8.x/server-rest/examples/graphql/query.md | 2 +- .../1.8.x/server-rest/examples/health/get-antivirus.md | 2 +- .../1.8.x/server-rest/examples/health/get-cache.md | 2 +- .../1.8.x/server-rest/examples/health/get-certificate.md | 2 +- .../1.8.x/server-rest/examples/health/get-d-b.md | 2 +- .../1.8.x/server-rest/examples/health/get-failed-jobs.md | 2 +- .../1.8.x/server-rest/examples/health/get-pub-sub.md | 2 +- .../server-rest/examples/health/get-queue-builds.md | 2 +- .../examples/health/get-queue-certificates.md | 2 +- .../server-rest/examples/health/get-queue-databases.md | 2 +- .../server-rest/examples/health/get-queue-deletes.md | 2 +- .../server-rest/examples/health/get-queue-functions.md | 2 +- .../1.8.x/server-rest/examples/health/get-queue-logs.md | 2 +- .../1.8.x/server-rest/examples/health/get-queue-mails.md | 2 +- .../server-rest/examples/health/get-queue-messaging.md | 2 +- .../server-rest/examples/health/get-queue-migrations.md | 2 +- .../examples/health/get-queue-stats-resources.md | 2 +- .../1.8.x/server-rest/examples/health/get-queue-usage.md | 2 +- .../server-rest/examples/health/get-queue-webhooks.md | 2 +- .../server-rest/examples/health/get-storage-local.md | 2 +- .../1.8.x/server-rest/examples/health/get-storage.md | 2 +- .../1.8.x/server-rest/examples/health/get-time.md | 2 +- docs/examples/1.8.x/server-rest/examples/health/get.md | 2 +- docs/examples/1.8.x/server-rest/examples/locale/get.md | 2 +- .../1.8.x/server-rest/examples/locale/list-codes.md | 2 +- .../1.8.x/server-rest/examples/locale/list-continents.md | 2 +- .../server-rest/examples/locale/list-countries-e-u.md | 2 +- .../server-rest/examples/locale/list-countries-phones.md | 2 +- .../1.8.x/server-rest/examples/locale/list-countries.md | 2 +- .../1.8.x/server-rest/examples/locale/list-currencies.md | 2 +- .../1.8.x/server-rest/examples/locale/list-languages.md | 2 +- .../examples/messaging/create-apns-provider.md | 2 +- .../1.8.x/server-rest/examples/messaging/create-email.md | 2 +- .../examples/messaging/create-fcm-provider.md | 2 +- .../examples/messaging/create-mailgun-provider.md | 2 +- .../examples/messaging/create-msg91provider.md | 2 +- .../1.8.x/server-rest/examples/messaging/create-push.md | 2 +- .../examples/messaging/create-sendgrid-provider.md | 2 +- .../1.8.x/server-rest/examples/messaging/create-sms.md | 2 +- .../examples/messaging/create-smtp-provider.md | 2 +- .../server-rest/examples/messaging/create-subscriber.md | 2 +- .../examples/messaging/create-telesign-provider.md | 2 +- .../examples/messaging/create-textmagic-provider.md | 2 +- .../1.8.x/server-rest/examples/messaging/create-topic.md | 2 +- .../examples/messaging/create-twilio-provider.md | 2 +- .../examples/messaging/create-vonage-provider.md | 2 +- .../server-rest/examples/messaging/delete-provider.md | 2 +- .../server-rest/examples/messaging/delete-subscriber.md | 2 +- .../1.8.x/server-rest/examples/messaging/delete-topic.md | 2 +- .../1.8.x/server-rest/examples/messaging/delete.md | 2 +- .../1.8.x/server-rest/examples/messaging/get-message.md | 2 +- .../1.8.x/server-rest/examples/messaging/get-provider.md | 2 +- .../server-rest/examples/messaging/get-subscriber.md | 2 +- .../1.8.x/server-rest/examples/messaging/get-topic.md | 2 +- .../server-rest/examples/messaging/list-message-logs.md | 2 +- .../server-rest/examples/messaging/list-messages.md | 2 +- .../server-rest/examples/messaging/list-provider-logs.md | 2 +- .../server-rest/examples/messaging/list-providers.md | 2 +- .../examples/messaging/list-subscriber-logs.md | 2 +- .../server-rest/examples/messaging/list-subscribers.md | 2 +- .../1.8.x/server-rest/examples/messaging/list-targets.md | 2 +- .../server-rest/examples/messaging/list-topic-logs.md | 2 +- .../1.8.x/server-rest/examples/messaging/list-topics.md | 2 +- .../examples/messaging/update-apns-provider.md | 2 +- .../1.8.x/server-rest/examples/messaging/update-email.md | 2 +- .../examples/messaging/update-fcm-provider.md | 2 +- .../examples/messaging/update-mailgun-provider.md | 2 +- .../examples/messaging/update-msg91provider.md | 2 +- .../1.8.x/server-rest/examples/messaging/update-push.md | 2 +- .../examples/messaging/update-sendgrid-provider.md | 2 +- .../1.8.x/server-rest/examples/messaging/update-sms.md | 2 +- .../examples/messaging/update-smtp-provider.md | 2 +- .../examples/messaging/update-telesign-provider.md | 2 +- .../examples/messaging/update-textmagic-provider.md | 2 +- .../1.8.x/server-rest/examples/messaging/update-topic.md | 2 +- .../examples/messaging/update-twilio-provider.md | 2 +- .../examples/messaging/update-vonage-provider.md | 2 +- .../server-rest/examples/sites/create-deployment.md | 2 +- .../examples/sites/create-duplicate-deployment.md | 2 +- .../examples/sites/create-template-deployment.md | 2 +- .../1.8.x/server-rest/examples/sites/create-variable.md | 2 +- .../server-rest/examples/sites/create-vcs-deployment.md | 2 +- docs/examples/1.8.x/server-rest/examples/sites/create.md | 2 +- .../server-rest/examples/sites/delete-deployment.md | 2 +- .../1.8.x/server-rest/examples/sites/delete-log.md | 2 +- .../1.8.x/server-rest/examples/sites/delete-variable.md | 2 +- docs/examples/1.8.x/server-rest/examples/sites/delete.md | 2 +- .../examples/sites/get-deployment-download.md | 2 +- .../1.8.x/server-rest/examples/sites/get-deployment.md | 2 +- .../examples/1.8.x/server-rest/examples/sites/get-log.md | 2 +- .../1.8.x/server-rest/examples/sites/get-variable.md | 2 +- docs/examples/1.8.x/server-rest/examples/sites/get.md | 2 +- .../1.8.x/server-rest/examples/sites/list-deployments.md | 2 +- .../1.8.x/server-rest/examples/sites/list-frameworks.md | 2 +- .../1.8.x/server-rest/examples/sites/list-logs.md | 2 +- .../server-rest/examples/sites/list-specifications.md | 2 +- .../1.8.x/server-rest/examples/sites/list-variables.md | 2 +- docs/examples/1.8.x/server-rest/examples/sites/list.md | 2 +- .../examples/sites/update-deployment-status.md | 2 +- .../server-rest/examples/sites/update-site-deployment.md | 2 +- .../1.8.x/server-rest/examples/sites/update-variable.md | 2 +- docs/examples/1.8.x/server-rest/examples/sites/update.md | 2 +- .../1.8.x/server-rest/examples/storage/create-bucket.md | 2 +- .../1.8.x/server-rest/examples/storage/create-file.md | 2 +- .../1.8.x/server-rest/examples/storage/delete-bucket.md | 2 +- .../1.8.x/server-rest/examples/storage/delete-file.md | 2 +- .../1.8.x/server-rest/examples/storage/get-bucket.md | 2 +- .../server-rest/examples/storage/get-file-download.md | 2 +- .../server-rest/examples/storage/get-file-preview.md | 2 +- .../1.8.x/server-rest/examples/storage/get-file-view.md | 2 +- .../1.8.x/server-rest/examples/storage/get-file.md | 2 +- .../1.8.x/server-rest/examples/storage/list-buckets.md | 2 +- .../1.8.x/server-rest/examples/storage/list-files.md | 2 +- .../1.8.x/server-rest/examples/storage/update-bucket.md | 2 +- .../1.8.x/server-rest/examples/storage/update-file.md | 2 +- .../server-rest/examples/teams/create-membership.md | 2 +- docs/examples/1.8.x/server-rest/examples/teams/create.md | 2 +- .../server-rest/examples/teams/delete-membership.md | 2 +- docs/examples/1.8.x/server-rest/examples/teams/delete.md | 2 +- .../1.8.x/server-rest/examples/teams/get-membership.md | 2 +- .../1.8.x/server-rest/examples/teams/get-prefs.md | 2 +- docs/examples/1.8.x/server-rest/examples/teams/get.md | 2 +- .../1.8.x/server-rest/examples/teams/list-memberships.md | 2 +- docs/examples/1.8.x/server-rest/examples/teams/list.md | 2 +- .../examples/teams/update-membership-status.md | 2 +- .../server-rest/examples/teams/update-membership.md | 2 +- .../1.8.x/server-rest/examples/teams/update-name.md | 2 +- .../1.8.x/server-rest/examples/teams/update-prefs.md | 2 +- .../server-rest/examples/tokens/create-file-token.md | 2 +- .../examples/1.8.x/server-rest/examples/tokens/delete.md | 2 +- docs/examples/1.8.x/server-rest/examples/tokens/get.md | 2 +- docs/examples/1.8.x/server-rest/examples/tokens/list.md | 2 +- .../examples/1.8.x/server-rest/examples/tokens/update.md | 2 +- .../server-rest/examples/users/create-argon2user.md | 2 +- .../server-rest/examples/users/create-bcrypt-user.md | 2 +- .../1.8.x/server-rest/examples/users/create-j-w-t.md | 2 +- .../1.8.x/server-rest/examples/users/create-m-d5user.md | 2 +- .../examples/users/create-mfa-recovery-codes.md | 2 +- .../server-rest/examples/users/create-p-h-pass-user.md | 2 +- .../server-rest/examples/users/create-s-h-a-user.md | 2 +- .../examples/users/create-scrypt-modified-user.md | 2 +- .../server-rest/examples/users/create-scrypt-user.md | 2 +- .../1.8.x/server-rest/examples/users/create-session.md | 2 +- .../1.8.x/server-rest/examples/users/create-target.md | 2 +- .../1.8.x/server-rest/examples/users/create-token.md | 2 +- docs/examples/1.8.x/server-rest/examples/users/create.md | 2 +- .../1.8.x/server-rest/examples/users/delete-identity.md | 2 +- .../examples/users/delete-mfa-authenticator.md | 2 +- .../1.8.x/server-rest/examples/users/delete-session.md | 2 +- .../1.8.x/server-rest/examples/users/delete-sessions.md | 2 +- .../1.8.x/server-rest/examples/users/delete-target.md | 2 +- docs/examples/1.8.x/server-rest/examples/users/delete.md | 2 +- .../server-rest/examples/users/get-mfa-recovery-codes.md | 2 +- .../1.8.x/server-rest/examples/users/get-prefs.md | 2 +- .../1.8.x/server-rest/examples/users/get-target.md | 2 +- docs/examples/1.8.x/server-rest/examples/users/get.md | 2 +- .../1.8.x/server-rest/examples/users/list-identities.md | 2 +- .../1.8.x/server-rest/examples/users/list-logs.md | 2 +- .../1.8.x/server-rest/examples/users/list-memberships.md | 2 +- .../1.8.x/server-rest/examples/users/list-mfa-factors.md | 2 +- .../1.8.x/server-rest/examples/users/list-sessions.md | 2 +- .../1.8.x/server-rest/examples/users/list-targets.md | 2 +- docs/examples/1.8.x/server-rest/examples/users/list.md | 2 +- .../examples/users/update-email-verification.md | 2 +- .../1.8.x/server-rest/examples/users/update-email.md | 2 +- .../1.8.x/server-rest/examples/users/update-labels.md | 2 +- .../examples/users/update-mfa-recovery-codes.md | 2 +- .../1.8.x/server-rest/examples/users/update-mfa.md | 2 +- .../1.8.x/server-rest/examples/users/update-name.md | 2 +- .../1.8.x/server-rest/examples/users/update-password.md | 2 +- .../examples/users/update-phone-verification.md | 2 +- .../1.8.x/server-rest/examples/users/update-phone.md | 2 +- .../1.8.x/server-rest/examples/users/update-prefs.md | 2 +- .../1.8.x/server-rest/examples/users/update-status.md | 2 +- .../1.8.x/server-rest/examples/users/update-target.md | 2 +- .../server-ruby/examples/databases/create-document.md | 3 +-- .../server-ruby/examples/databases/create-documents.md | 2 +- .../server-ruby/examples/databases/upsert-document.md | 7 ++++--- .../server-ruby/examples/databases/upsert-documents.md | 5 +++-- .../server-ruby/examples/functions/create-execution.md | 2 +- .../server-swift/examples/databases/create-document.md | 3 +-- .../server-swift/examples/databases/create-documents.md | 2 +- .../server-swift/examples/databases/upsert-document.md | 7 ++++--- .../server-swift/examples/databases/upsert-documents.md | 5 +++-- .../server-swift/examples/functions/create-execution.md | 2 +- 489 files changed, 597 insertions(+), 579 deletions(-) diff --git a/docs/examples/1.8.x/client-android/java/databases/create-document.md b/docs/examples/1.8.x/client-android/java/databases/create-document.md index 7fb129bb0b..4804d751e3 100644 --- a/docs/examples/1.8.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/create-document.md @@ -4,9 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT(""); // Your secret JSON Web Token + .setProject(""); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/client-android/java/databases/upsert-document.md b/docs/examples/1.8.x/client-android/java/databases/upsert-document.md index ba7336f3f9..868576b982 100644 --- a/docs/examples/1.8.x/client-android/java/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/upsert-document.md @@ -4,9 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT(""); // Your secret JSON Web Token + .setProject(""); // Your project ID Databases databases = new Databases(client); @@ -14,6 +12,8 @@ databases.upsertDocument( "", // databaseId "", // collectionId "", // documentId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/client-android/java/functions/create-execution.md b/docs/examples/1.8.x/client-android/java/functions/create-execution.md index c138b0ef86..06c50278a5 100644 --- a/docs/examples/1.8.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.8.x/client-android/java/functions/create-execution.md @@ -15,7 +15,7 @@ functions.createExecution( "", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) - "", // scheduledAt (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md index 0bafb315e7..849a636afb 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md @@ -4,9 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT("") // Your secret JSON Web Token + .setProject("") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md index 7939fde2be..a31dfc8797 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md @@ -4,9 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT("") // Your secret JSON Web Token + .setProject("") // Your project ID val databases = Databases(client) @@ -14,4 +12,6 @@ val result = databases.upsertDocument( databaseId = "", collectionId = "", documentId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")"), // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.8.x/client-android/kotlin/functions/create-execution.md index cb7c60bac1..5e1950b8d9 100644 --- a/docs/examples/1.8.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.8.x/client-android/kotlin/functions/create-execution.md @@ -15,5 +15,5 @@ val result = functions.createExecution( path = "", // (optional) method = ExecutionMethod.GET, // (optional) headers = mapOf( "a" to "b" ), // (optional) - scheduledAt = "", // (optional) + scheduledAt = "", // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md index 6c2baee728..51adb64bb3 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md @@ -2,9 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT("") // Your secret JSON Web Token + .setProject("") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md index bb713146ec..3e1bf83a66 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md @@ -2,15 +2,15 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // - .setJWT("") // Your secret JSON Web Token + .setProject("") // Your project ID let databases = Databases(client) let document = try await databases.upsertDocument( databaseId: "", collectionId: "", - documentId: "" + documentId: "", + data: [:], + permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.8.x/client-apple/examples/functions/create-execution.md index 7470e9ebf6..b7311df846 100644 --- a/docs/examples/1.8.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-apple/examples/functions/create-execution.md @@ -14,6 +14,6 @@ let execution = try await functions.createExecution( path: "", // optional method: .gET, // optional headers: [:], // optional - scheduledAt: "" // optional + scheduledAt: "" // optional ) diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md index 4f286fff95..27efc34580 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md @@ -2,9 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md index ec3af47c3a..398a99cb1d 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md @@ -2,9 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID Databases databases = Databases(client); @@ -12,4 +10,6 @@ Document result = await databases.upsertDocument( databaseId: '', collectionId: '', documentId: '', + data: {}, + permissions: ["read("any")"], // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md index d2a3d9e00a..bbd7cd37a6 100644 --- a/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md @@ -13,5 +13,5 @@ Execution result = await functions.createExecution( path: '', // optional method: ExecutionMethod.gET, // optional headers: {}, // optional - scheduledAt: '', // optional + scheduledAt: '', // optional ); diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md index c381fe35a3..9d1e753081 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md @@ -2,7 +2,9 @@ mutation { databasesUpsertDocument( databaseId: "", collectionId: "", - documentId: "" + documentId: "", + data: "{}", + permissions: ["read("any")"] ) { _id _sequence diff --git a/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md b/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md index 1479aa3bb6..8979880723 100644 --- a/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md @@ -6,7 +6,7 @@ mutation { path: "", method: "GET", headers: "{}", - scheduledAt: "" + scheduledAt: "" ) { _id _createdAt diff --git a/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md b/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md index 97e2150c39..50161e433f 100644 --- a/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md index ec768fcfaf..1b28231ed3 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md @@ -2,9 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md index 56d3af23ae..ae423d12a7 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md @@ -2,16 +2,16 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '' // documentId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md index 72c71f7767..7d850c8103 100644 --- a/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md @@ -13,7 +13,7 @@ const result = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md index 2079b045d1..b62c82a6a8 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md @@ -1,6 +1,6 @@ POST /v1/account/sessions/anonymous HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md index 8aee0e5b15..1103d2ebfb 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ POST /v1/account/sessions/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md index 98c5c9b454..552b724b9c 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md b/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md index a8da4695c3..62a7dee7e9 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md @@ -1,6 +1,6 @@ POST /v1/account/jwts HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md index a3db43516a..29d68bd0fa 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/magic-url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-authenticator.md index 8d6b52b877..62a068b6cf 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md index 9a84c0ef69..dd5ef4c731 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/challenge HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-recovery-codes.md index 797824d5d7..f09323df0b 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md index 293170b490..d136722ec8 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md @@ -1,4 +1,4 @@ GET /v1/account/sessions/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md index dd1dd3ec5e..8a0cab614f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md @@ -1,4 +1,4 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md index eef1021d9e..5127c8377a 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-phone-verification.md b/docs/examples/1.8.x/client-rest/examples/account/create-phone-verification.md index d161e580ff..57b3b7d160 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-phone-verification.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ POST /v1/account/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-push-target.md b/docs/examples/1.8.x/client-rest/examples/account/create-push-target.md index 5844ccc19e..459a2a2ecc 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-push-target.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-push-target.md @@ -1,7 +1,7 @@ POST /v1/account/targets/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-recovery.md b/docs/examples/1.8.x/client-rest/examples/account/create-recovery.md index c195b96a5e..ea0146228b 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-recovery.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-recovery.md @@ -1,7 +1,7 @@ POST /v1/account/recovery HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-session.md index 18e3b1acdd..0acc50cda6 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-session.md @@ -1,7 +1,7 @@ POST /v1/account/sessions/token HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-verification.md b/docs/examples/1.8.x/client-rest/examples/account/create-verification.md index 1185d3a875..ed5479dbe5 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-verification.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-verification.md @@ -1,7 +1,7 @@ POST /v1/account/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create.md b/docs/examples/1.8.x/client-rest/examples/account/create.md index f546c07de5..15bb386f41 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create.md @@ -1,7 +1,7 @@ POST /v1/account HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-identity.md b/docs/examples/1.8.x/client-rest/examples/account/delete-identity.md index edb036a593..bacca18870 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-identity.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/account/identities/{identityId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/delete-mfa-authenticator.md index de58948195..a0eb5a0869 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-push-target.md b/docs/examples/1.8.x/client-rest/examples/account/delete-push-target.md index fdfc75a41b..9ec6e20d27 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-push-target.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ DELETE /v1/account/targets/{targetId}/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-session.md b/docs/examples/1.8.x/client-rest/examples/account/delete-session.md index 9454a84913..c9b0f48d6f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-sessions.md b/docs/examples/1.8.x/client-rest/examples/account/delete-sessions.md index 97931c12e5..0b3fcd1c45 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-sessions.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/get-mfa-recovery-codes.md index 81edee5234..2ab10a2475 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/account/get-mfa-recovery-codes.md @@ -1,6 +1,6 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/get-prefs.md b/docs/examples/1.8.x/client-rest/examples/account/get-prefs.md index 13a0b74d8f..a038dacbfd 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/get-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/get-session.md b/docs/examples/1.8.x/client-rest/examples/account/get-session.md index 9417755b04..3e372a05ef 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/get-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/get-session.md @@ -1,6 +1,6 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/get.md b/docs/examples/1.8.x/client-rest/examples/account/get.md index 023a6d116f..104b643074 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/get.md +++ b/docs/examples/1.8.x/client-rest/examples/account/get.md @@ -1,6 +1,6 @@ GET /v1/account HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-identities.md b/docs/examples/1.8.x/client-rest/examples/account/list-identities.md index 65edceb8d6..5acb221584 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/list-identities.md +++ b/docs/examples/1.8.x/client-rest/examples/account/list-identities.md @@ -1,6 +1,6 @@ GET /v1/account/identities HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-logs.md b/docs/examples/1.8.x/client-rest/examples/account/list-logs.md index 71e2e138ef..8314123c9e 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/list-logs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/list-logs.md @@ -1,6 +1,6 @@ GET /v1/account/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/client-rest/examples/account/list-mfa-factors.md index 217ec6cb30..c591143d4e 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/client-rest/examples/account/list-mfa-factors.md @@ -1,6 +1,6 @@ GET /v1/account/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-sessions.md b/docs/examples/1.8.x/client-rest/examples/account/list-sessions.md index 7bff23f25b..89ef6962c9 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/list-sessions.md +++ b/docs/examples/1.8.x/client-rest/examples/account/list-sessions.md @@ -1,6 +1,6 @@ GET /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-email.md b/docs/examples/1.8.x/client-rest/examples/account/update-email.md index fc3baaf4a4..382327e31b 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-email.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/account/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md b/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md index 803c47a857..a22b169751 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ PATCH /v1/account/mfa HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md index 3238322e0f..1a82afbfcc 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ PUT /v1/account/sessions/magic-url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-authenticator.md index 9d3e5dceea..780472291c 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-challenge.md index ddc27ae334..b6a7e92b28 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ PUT /v1/account/mfa/challenge HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-recovery-codes.md index e4ab8abb3b..74e9225f3e 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-name.md b/docs/examples/1.8.x/client-rest/examples/account/update-name.md index f2f7caa204..4c9c0e302c 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-name.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-name.md @@ -1,7 +1,7 @@ PATCH /v1/account/name HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-password.md b/docs/examples/1.8.x/client-rest/examples/account/update-password.md index 4f69b9ab3f..e05a1c2b7f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-password.md @@ -1,7 +1,7 @@ PATCH /v1/account/password HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md index f1bc27d201..54872eecd2 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ PUT /v1/account/sessions/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-phone-verification.md b/docs/examples/1.8.x/client-rest/examples/account/update-phone-verification.md index ee6f5a68ff..1d4dc22520 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-phone-verification.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ PUT /v1/account/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-phone.md b/docs/examples/1.8.x/client-rest/examples/account/update-phone.md index bbe602a181..791caadb0d 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-phone.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-phone.md @@ -1,7 +1,7 @@ PATCH /v1/account/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md index aeabc2b68f..24f2d3bcb6 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md @@ -1,7 +1,7 @@ PATCH /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-push-target.md b/docs/examples/1.8.x/client-rest/examples/account/update-push-target.md index 2e42a2d67f..95210b5a1c 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-push-target.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-push-target.md @@ -1,7 +1,7 @@ PUT /v1/account/targets/{targetId}/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md index 054aacc8ed..7d40ee79fe 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md @@ -1,7 +1,7 @@ PUT /v1/account/recovery HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-session.md index 9b2ba0e4a7..8e2257aeed 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-session.md @@ -1,7 +1,7 @@ PATCH /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-status.md b/docs/examples/1.8.x/client-rest/examples/account/update-status.md index 8a3e01db0b..557697fe5f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-status.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-status.md @@ -1,7 +1,7 @@ PATCH /v1/account/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-verification.md b/docs/examples/1.8.x/client-rest/examples/account/update-verification.md index 0c5ed8b55d..a4dcbf76a3 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-verification.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-verification.md @@ -1,7 +1,7 @@ PUT /v1/account/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-browser.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-browser.md index e5f6f22ab5..9de9d99173 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-browser.md @@ -1,6 +1,6 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-credit-card.md index ab513115f8..ed30226d3b 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-credit-card.md @@ -1,6 +1,6 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-favicon.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-favicon.md index 837dba633c..8eaca9452e 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-favicon.md @@ -1,6 +1,6 @@ GET /v1/avatars/favicon HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-flag.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-flag.md index d0c92d7c02..07172e89d8 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-flag.md @@ -1,6 +1,6 @@ GET /v1/avatars/flags/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-image.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-image.md index 2f80018f20..98d4898e6f 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-image.md @@ -1,6 +1,6 @@ GET /v1/avatars/image HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-initials.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-initials.md index f3879b5d52..93a70a80ab 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-initials.md @@ -1,6 +1,6 @@ GET /v1/avatars/initials HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md index 263c54742c..39e513c810 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md @@ -1,6 +1,6 @@ GET /v1/avatars/qr HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md index 3126197555..e9b165e2ac 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/delete-document.md b/docs/examples/1.8.x/client-rest/examples/databases/delete-document.md index 6b86aba853..2ee4f92ec4 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/delete-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/delete-document.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/get-document.md b/docs/examples/1.8.x/client-rest/examples/databases/get-document.md index a32db40087..dac5e48131 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/get-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/get-document.md @@ -1,6 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/list-documents.md b/docs/examples/1.8.x/client-rest/examples/databases/list-documents.md index 22ca529e89..e5c4936d6f 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/list-documents.md @@ -1,6 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/update-document.md b/docs/examples/1.8.x/client-rest/examples/databases/update-document.md index 945b957c6e..ffc5d36011 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/update-document.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md index 7cfa380a40..d2baeac6a8 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md @@ -1,8 +1,12 @@ PUT /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-rest/examples/functions/create-execution.md b/docs/examples/1.8.x/client-rest/examples/functions/create-execution.md index fec92ddab0..4ae83f3096 100644 --- a/docs/examples/1.8.x/client-rest/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-rest/examples/functions/create-execution.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: @@ -12,5 +12,5 @@ X-Appwrite-JWT: "path": "", "method": "GET", "headers": {}, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/functions/get-execution.md b/docs/examples/1.8.x/client-rest/examples/functions/get-execution.md index 7df2f3acbe..e2f3e97d10 100644 --- a/docs/examples/1.8.x/client-rest/examples/functions/get-execution.md +++ b/docs/examples/1.8.x/client-rest/examples/functions/get-execution.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/functions/list-executions.md b/docs/examples/1.8.x/client-rest/examples/functions/list-executions.md index b2ab0e05d1..445ed1fa83 100644 --- a/docs/examples/1.8.x/client-rest/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/client-rest/examples/functions/list-executions.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/graphql/mutation.md b/docs/examples/1.8.x/client-rest/examples/graphql/mutation.md index db3b1c0c78..4080765d58 100644 --- a/docs/examples/1.8.x/client-rest/examples/graphql/mutation.md +++ b/docs/examples/1.8.x/client-rest/examples/graphql/mutation.md @@ -2,7 +2,7 @@ POST /v1/graphql/mutation HTTP/1.1 Host: cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/graphql/query.md b/docs/examples/1.8.x/client-rest/examples/graphql/query.md index 8fc41efcfe..b05ce724c8 100644 --- a/docs/examples/1.8.x/client-rest/examples/graphql/query.md +++ b/docs/examples/1.8.x/client-rest/examples/graphql/query.md @@ -2,7 +2,7 @@ POST /v1/graphql HTTP/1.1 Host: cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/get.md b/docs/examples/1.8.x/client-rest/examples/locale/get.md index 0d67644583..8f8a1741e6 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/get.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/get.md @@ -1,6 +1,6 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md b/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md index f362c5987e..61110f6527 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md @@ -1,6 +1,6 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md b/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md index 93db4fb302..cb96cc4e16 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md @@ -1,6 +1,6 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md index 09eba6168f..d4de74a879 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md index 94ef0bb943..0e1ed67a7d 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md index dc8289980a..58e487a875 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md @@ -1,6 +1,6 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md b/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md index 9a3af20c94..a3a9b96c48 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md @@ -1,6 +1,6 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md b/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md index 7d90c8b40a..8c7cbabddf 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md @@ -1,6 +1,6 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md b/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md index 94e98c4438..708ec0782a 100644 --- a/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md index e5ac0830a3..1cb9c3e516 100644 --- a/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md index f044b577b2..0f83797b70 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md b/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md index 8d074341fe..e00392a525 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md index 58c9c6d276..92991d0727 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md index ff24de4ec4..e84dd4dd85 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md index 9c95a2b48f..f482706f6f 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file.md index ffb3703fe1..4f929caadf 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/list-files.md b/docs/examples/1.8.x/client-rest/examples/storage/list-files.md index d1258b97de..977bb9e713 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/list-files.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/list-files.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/update-file.md b/docs/examples/1.8.x/client-rest/examples/storage/update-file.md index 210433622b..fed35bb860 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/update-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/update-file.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md index 83e4803502..f96f20c2b8 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md @@ -1,7 +1,7 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/create.md b/docs/examples/1.8.x/client-rest/examples/teams/create.md index c80b2bda8e..33cf95ba01 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/create.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/create.md @@ -1,7 +1,7 @@ POST /v1/teams HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md index 0fc17e11ee..8da481d5cf 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/delete.md b/docs/examples/1.8.x/client-rest/examples/teams/delete.md index ad614b17d1..d1dc59c23a 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/delete.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/delete.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md index dbe034f34b..6e7379b0d7 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md b/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md index ddb863181d..e541fd3fd8 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get.md b/docs/examples/1.8.x/client-rest/examples/teams/get.md index 730d23a03b..32d9156267 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md b/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md index 82a9f82c33..4e364053b3 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/list.md b/docs/examples/1.8.x/client-rest/examples/teams/list.md index 00a419269a..e5f0439a13 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/list.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/list.md @@ -1,6 +1,6 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md b/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md index 9d828118f0..da2c9189cd 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md index 3768499d16..b1010ea460 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-name.md b/docs/examples/1.8.x/client-rest/examples/teams/update-name.md index ec381348e8..cd92d686ce 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-name.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-name.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md b/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md index 1db6300350..e17dcdb260 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-web/examples/databases/create-document.md b/docs/examples/1.8.x/client-web/examples/databases/create-document.md index 401a67488c..916cc92689 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/create-document.md @@ -2,9 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md index a581396da8..cfefe06242 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md @@ -2,16 +2,16 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '' // documentId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/functions/create-execution.md b/docs/examples/1.8.x/client-web/examples/functions/create-execution.md index 8f07523b2b..be9bb508c0 100644 --- a/docs/examples/1.8.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-web/examples/functions/create-execution.md @@ -13,7 +13,7 @@ const result = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md b/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md index 151e466d02..40932014ba 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md @@ -1,4 +1,6 @@ appwrite databases upsertDocument \ --databaseId \ --collectionId \ - --documentId + --documentId \ + --data '{ "key": "value" }' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md b/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md index 30c7dc5b4b..cb1677b14c 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md @@ -1,3 +1,4 @@ appwrite databases upsertDocuments \ --databaseId \ - --collectionId + --collectionId \ + --documents one two three diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-document.md b/docs/examples/1.8.x/console-web/examples/databases/create-document.md index 4524017dd5..1b96d07899 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-document.md @@ -2,9 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-documents.md b/docs/examples/1.8.x/console-web/examples/databases/create-documents.md index f7ffbe809c..09f3007208 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-documents.md @@ -2,8 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key + .setProject(''); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md index 6d92656543..3b89ed3aef 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md @@ -2,16 +2,16 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '' // documentId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/upsert-documents.md b/docs/examples/1.8.x/console-web/examples/databases/upsert-documents.md index 519b0ec160..2d12f7caec 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/console-web/examples/databases/upsert-documents.md @@ -2,14 +2,14 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // Your secret API key + .setProject(''); // Your project ID const databases = new Databases(client); const result = await databases.upsertDocuments( '', // databaseId - '' // collectionId + '', // collectionId + [] // documents ); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-execution.md b/docs/examples/1.8.x/console-web/examples/functions/create-execution.md index 813e1fd0a7..1886a831f2 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-execution.md @@ -13,7 +13,7 @@ const result = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md index 1c9af5112c..1d58fc586c 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md @@ -2,9 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-documents.md b/docs/examples/1.8.x/server-dart/examples/databases/create-documents.md index f66ef9f1a9..ba0e34950b 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-documents.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // + .setProject('') // Your project ID .setKey(''); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md index f17f6cbbbd..93e306ebce 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md @@ -2,9 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Databases databases = Databases(client); @@ -12,4 +11,6 @@ Document result = await databases.upsertDocument( databaseId: '', collectionId: '', documentId: '', + data: {}, + permissions: ["read("any")"], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-dart/examples/databases/upsert-documents.md index f60a37935a..cd35014f63 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/upsert-documents.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // + .setProject('') // Your project ID .setKey(''); // Your secret API key Databases databases = Databases(client); @@ -10,4 +10,5 @@ Databases databases = Databases(client); DocumentList result = await databases.upsertDocuments( databaseId: '', collectionId: '', + documents: [], ); diff --git a/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md index 2ae64bce55..64b28d5f0c 100644 --- a/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md @@ -14,5 +14,5 @@ Execution result = await functions.createExecution( path: '', // (optional) method: ExecutionMethod.gET, // (optional) headers: {}, // (optional) - scheduledAt: '', // (optional) + scheduledAt: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md index f18b4f30dc..be8a1bdac9 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md @@ -2,9 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-documents.md b/docs/examples/1.8.x/server-deno/examples/databases/create-documents.md index fa3fe84731..26c9796cf0 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // + .setProject('') // Your project ID .setKey(''); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md index a8a61ca43c..f05100e3df 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md @@ -2,14 +2,15 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const databases = new Databases(client); const response = await databases.upsertDocument( '', // databaseId '', // collectionId - '' // documentId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) ); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-deno/examples/databases/upsert-documents.md index bf9e7ded89..0cd804bfb6 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/upsert-documents.md @@ -2,12 +2,13 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // + .setProject('') // Your project ID .setKey(''); // Your secret API key const databases = new Databases(client); const response = await databases.upsertDocuments( '', // databaseId - '' // collectionId + '', // collectionId + [] // documents ); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md index bec6a17db2..58c6c494b1 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md @@ -14,5 +14,5 @@ const response = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md index cb4bc62ced..52254e0c25 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md @@ -4,9 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetSession("") // The user session to authenticate with - .SetKey("") // Your secret API key - .SetJWT(""); // Your secret JSON Web Token + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-documents.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-documents.md index c46715b25d..dad710f0df 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-documents.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetAdmin("") // + .SetProject("") // Your project ID .SetKey(""); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md index c809a497fe..c0876bfa73 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md @@ -4,14 +4,15 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetSession("") // The user session to authenticate with - .SetKey("") // Your secret API key - .SetJWT(""); // Your secret JSON Web Token + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); Document result = await databases.UpsertDocument( databaseId: "", collectionId: "", - documentId: "" + documentId: "", + data: [object], + permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-documents.md index 48c0aa7044..6c124c16e5 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-documents.md @@ -4,12 +4,13 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetAdmin("") // + .SetProject("") // Your project ID .SetKey(""); // Your secret API key Databases databases = new Databases(client); DocumentList result = await databases.UpsertDocuments( databaseId: "", - collectionId: "" + collectionId: "", + documents: new List() ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.8.x/server-dotnet/examples/functions/create-execution.md index c8fd5595e9..98d1b2f3ff 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-dotnet/examples/functions/create-execution.md @@ -17,5 +17,5 @@ Execution result = await functions.CreateExecution( path: "", // optional method: ExecutionMethod.GET, // optional headers: [object], // optional - scheduledAt: "" // optional + scheduledAt: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-document.md b/docs/examples/1.8.x/server-go/examples/databases/create-document.md index 8990beaa8d..fe96a0d601 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-document.md @@ -9,9 +9,8 @@ import ( func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID client.WithSession("") // The user session to authenticate with - client.WithKey("") // Your secret API key - client.WithJWT("") // Your secret JSON Web Token ) service := databases.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-documents.md b/docs/examples/1.8.x/server-go/examples/databases/create-documents.md index d85d0d5395..9e4da5dac7 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-documents.md @@ -9,7 +9,7 @@ import ( func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithAdmin("") // + client.WithProject("") // Your project ID client.WithKey("") // Your secret API key ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md index c5304b1860..e6241b9198 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md @@ -9,9 +9,8 @@ import ( func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID client.WithSession("") // The user session to authenticate with - client.WithKey("") // Your secret API key - client.WithJWT("") // Your secret JSON Web Token ) service := databases.New(client) @@ -19,6 +18,8 @@ func main() { "", "", "", + map[string]interface{}{}, + databases.WithUpsertDocumentPermissions(interface{}{"read("any")"}), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-go/examples/databases/upsert-documents.md index 5fe0fc5831..d2731cd128 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-go/examples/databases/upsert-documents.md @@ -9,7 +9,7 @@ import ( func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithAdmin("") // + client.WithProject("") // Your project ID client.WithKey("") // Your secret API key ) @@ -17,6 +17,7 @@ func main() { response, error := service.UpsertDocuments( "", "", + []interface{}{}, ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/functions/create-execution.md b/docs/examples/1.8.x/server-go/examples/functions/create-execution.md index 33657d2503..bc839e422e 100644 --- a/docs/examples/1.8.x/server-go/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-go/examples/functions/create-execution.md @@ -21,7 +21,7 @@ func main() { functions.WithCreateExecutionPath(""), functions.WithCreateExecutionMethod("GET"), functions.WithCreateExecutionHeaders(map[string]interface{}{}), - functions.WithCreateExecutionScheduledAt(""), + functions.WithCreateExecutionScheduledAt(""), ) if error != nil { diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md index 00dfba1e7b..7ee68b41c7 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md @@ -17,6 +17,9 @@ mutation { documentSecurity attributes indexes { + _id + _createdAt + _updatedAt key type status @@ -24,8 +27,6 @@ mutation { attributes lengths orders - _createdAt - _updatedAt } } } diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-index.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-index.md index c647930943..38e64980b2 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-index.md @@ -8,6 +8,9 @@ mutation { orders: [], lengths: [] ) { + _id + _createdAt + _updatedAt key type status @@ -15,7 +18,5 @@ mutation { attributes lengths orders - _createdAt - _updatedAt } } diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-collection.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-collection.md index 040578ae9d..ad43b879d2 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-collection.md @@ -17,6 +17,9 @@ mutation { documentSecurity attributes indexes { + _id + _createdAt + _updatedAt key type status @@ -24,8 +27,6 @@ mutation { attributes lengths orders - _createdAt - _updatedAt } } } diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md index c381fe35a3..9d1e753081 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md @@ -2,7 +2,9 @@ mutation { databasesUpsertDocument( databaseId: "", collectionId: "", - documentId: "" + documentId: "", + data: "{}", + permissions: ["read("any")"] ) { _id _sequence diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-documents.md index b4bf914eca..2bfb765915 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-documents.md @@ -1,7 +1,8 @@ mutation { databasesUpsertDocuments( databaseId: "", - collectionId: "" + collectionId: "", + documents: [] ) { total documents { diff --git a/docs/examples/1.8.x/server-graphql/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-graphql/examples/functions/create-deployment.md index 0e7cc7d19a..3751448e57 100644 --- a/docs/examples/1.8.x/server-graphql/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-graphql/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md b/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md index 1479aa3bb6..8979880723 100644 --- a/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md @@ -6,7 +6,7 @@ mutation { path: "", method: "GET", headers: "{}", - scheduledAt: "" + scheduledAt: "" ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md index 8f77dd60eb..26970a18a8 100644 --- a/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md b/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md index 5b4f9a0c22..70bf6cbb1f 100644 --- a/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md index 368b816219..5231be33d6 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md @@ -4,9 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT(""); // Your secret JSON Web Token + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md index 77d79812a9..0de0c276ed 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // + .setProject("") // Your project ID .setKey(""); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md index b1b4de4db4..daa44141e2 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md @@ -4,9 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT(""); // Your secret JSON Web Token + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); @@ -14,6 +13,8 @@ databases.upsertDocument( "", // databaseId "", // collectionId "", // documentId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md index 0bf0c1778c..95e9a33ef2 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // + .setProject("") // Your project ID .setKey(""); // Your secret API key Databases databases = new Databases(client); @@ -12,6 +12,7 @@ Databases databases = new Databases(client); databases.upsertDocuments( "", // databaseId "", // collectionId + listOf(), // documents new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md index 82d48fa55b..93efa0adf8 100644 --- a/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md @@ -16,7 +16,7 @@ functions.createExecution( "", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) - "", // scheduledAt (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md index 93da01eefa..695fdbdfaa 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md @@ -4,9 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token val databases = Databases(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-documents.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-documents.md index ddce31c71c..41a98dc016 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-documents.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // + .setProject("") // Your project ID .setKey("") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md index df261dbcb6..d8be0e13db 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md @@ -4,14 +4,15 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token val databases = Databases(client) val response = databases.upsertDocument( databaseId = "", collectionId = "", - documentId = "" + documentId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")") // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-documents.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-documents.md index 1cb376f107..ca861c61b2 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-documents.md @@ -4,12 +4,13 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // + .setProject("") // Your project ID .setKey("") // Your secret API key val databases = Databases(client) val response = databases.upsertDocuments( databaseId = "", - collectionId = "" + collectionId = "", + documents = listOf() ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md index 94bfa2310c..2734412232 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md @@ -16,5 +16,5 @@ val response = functions.createExecution( path = "", // optional method = "GET", // optional headers = mapOf( "a" to "b" ), // optional - scheduledAt = "" // optional + scheduledAt = "" // optional ) diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md index 44cfc3c199..a2e77b9241 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md @@ -2,9 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-documents.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-documents.md index 7ecaa6bef4..d73df44cd1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-documents.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // + .setProject('') // Your project ID .setKey(''); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md index 7f2ffba3a3..fcc62d601c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md @@ -2,14 +2,15 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // Your secret API key - .setJWT(''); // Your secret JSON Web Token + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '' // documentId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) ); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-documents.md index 52f7b55e11..425b7ba51f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-documents.md @@ -2,12 +2,13 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // + .setProject('') // Your project ID .setKey(''); // Your secret API key const databases = new sdk.Databases(client); const result = await databases.upsertDocuments( '', // databaseId - '' // collectionId + '', // collectionId + [] // documents ); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md index 3c89030ca6..5671483191 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md @@ -14,5 +14,5 @@ const result = await functions.createExecution( '', // path (optional) sdk.ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-document.md b/docs/examples/1.8.x/server-php/examples/databases/create-document.md index 8726b37719..bf1ee3f62a 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-document.md @@ -5,9 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setSession('') // The user session to authenticate with - ->setKey('') // Your secret API key - ->setJWT(''); // Your secret JSON Web Token + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-documents.md b/docs/examples/1.8.x/server-php/examples/databases/create-documents.md index 9429b57aba..bc05f67260 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-documents.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setAdmin('') // + ->setProject('') // Your project ID ->setKey(''); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md index 2f8464c995..6cff8296a3 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md @@ -5,14 +5,15 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setSession('') // The user session to authenticate with - ->setKey('') // Your secret API key - ->setJWT(''); // Your secret JSON Web Token + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $databases = new Databases($client); $result = $databases->upsertDocument( databaseId: '', collectionId: '', - documentId: '' + documentId: '', + data: [], + permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-php/examples/databases/upsert-documents.md index 11898dc33a..d9f9efda5c 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-php/examples/databases/upsert-documents.md @@ -5,12 +5,13 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setAdmin('') // + ->setProject('') // Your project ID ->setKey(''); // Your secret API key $databases = new Databases($client); $result = $databases->upsertDocuments( databaseId: '', - collectionId: '' + collectionId: '', + documents: [] ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/functions/create-execution.md b/docs/examples/1.8.x/server-php/examples/functions/create-execution.md index 9aeb976cf3..cd11b5ea6e 100644 --- a/docs/examples/1.8.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-php/examples/functions/create-execution.md @@ -17,5 +17,5 @@ $result = $functions->createExecution( path: '', // optional method: ExecutionMethod::GET(), // optional headers: [], // optional - scheduledAt: '' // optional + scheduledAt: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-document.md b/docs/examples/1.8.x/server-python/examples/databases/create-document.md index 1a8500b0f2..1eaf0246f3 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-document.md @@ -3,9 +3,8 @@ from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID client.set_session('') # The user session to authenticate with -client.set_key('') # Your secret API key -client.set_jwt('') # Your secret JSON Web Token databases = Databases(client) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-documents.md b/docs/examples/1.8.x/server-python/examples/databases/create-documents.md index 27ad6e8aa8..1b94e5165a 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-documents.md @@ -3,7 +3,7 @@ from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_admin('') # +client.set_project('') # Your project ID client.set_key('') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md index 8711e442c5..c491ea4f44 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md @@ -3,14 +3,15 @@ from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID client.set_session('') # The user session to authenticate with -client.set_key('') # Your secret API key -client.set_jwt('') # Your secret JSON Web Token databases = Databases(client) result = databases.upsert_document( database_id = '', collection_id = '', - document_id = '' + document_id = '', + data = {}, + permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-python/examples/databases/upsert-documents.md index 79888c8be3..5136d5fcb1 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-python/examples/databases/upsert-documents.md @@ -3,12 +3,13 @@ from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_admin('') # +client.set_project('') # Your project ID client.set_key('') # Your secret API key databases = Databases(client) result = databases.upsert_documents( database_id = '', - collection_id = '' + collection_id = '', + documents = [] ) diff --git a/docs/examples/1.8.x/server-python/examples/functions/create-execution.md b/docs/examples/1.8.x/server-python/examples/functions/create-execution.md index b41c7e376c..f80b8646c2 100644 --- a/docs/examples/1.8.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-python/examples/functions/create-execution.md @@ -15,5 +15,5 @@ result = functions.create_execution( path = '', # optional method = ExecutionMethod.GET, # optional headers = {}, # optional - scheduled_at = '' # optional + scheduled_at = '' # optional ) diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md index 2079b045d1..b62c82a6a8 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md @@ -1,6 +1,6 @@ POST /v1/account/sessions/anonymous HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md index 8aee0e5b15..1103d2ebfb 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ POST /v1/account/sessions/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md index 98c5c9b454..552b724b9c 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md index a8da4695c3..62a7dee7e9 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md @@ -1,6 +1,6 @@ POST /v1/account/jwts HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md index a3db43516a..29d68bd0fa 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/magic-url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-authenticator.md index 8d6b52b877..62a068b6cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md index 9a84c0ef69..dd5ef4c731 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/challenge HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-recovery-codes.md index 797824d5d7..f09323df0b 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md index dd1dd3ec5e..8a0cab614f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md @@ -1,4 +1,4 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md index eef1021d9e..5127c8377a 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-phone-verification.md b/docs/examples/1.8.x/server-rest/examples/account/create-phone-verification.md index d161e580ff..57b3b7d160 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-phone-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ POST /v1/account/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-recovery.md b/docs/examples/1.8.x/server-rest/examples/account/create-recovery.md index c195b96a5e..ea0146228b 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-recovery.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-recovery.md @@ -1,7 +1,7 @@ POST /v1/account/recovery HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-session.md index 18e3b1acdd..0acc50cda6 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-session.md @@ -1,7 +1,7 @@ POST /v1/account/sessions/token HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-verification.md b/docs/examples/1.8.x/server-rest/examples/account/create-verification.md index 1185d3a875..ed5479dbe5 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-verification.md @@ -1,7 +1,7 @@ POST /v1/account/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create.md b/docs/examples/1.8.x/server-rest/examples/account/create.md index f546c07de5..15bb386f41 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create.md @@ -1,7 +1,7 @@ POST /v1/account HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-identity.md b/docs/examples/1.8.x/server-rest/examples/account/delete-identity.md index edb036a593..bacca18870 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-identity.md +++ b/docs/examples/1.8.x/server-rest/examples/account/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/account/identities/{identityId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/delete-mfa-authenticator.md index de58948195..a0eb5a0869 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-session.md b/docs/examples/1.8.x/server-rest/examples/account/delete-session.md index 9454a84913..c9b0f48d6f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-sessions.md b/docs/examples/1.8.x/server-rest/examples/account/delete-sessions.md index 97931c12e5..0b3fcd1c45 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/get-mfa-recovery-codes.md index 81edee5234..2ab10a2475 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/account/get-mfa-recovery-codes.md @@ -1,6 +1,6 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/get-prefs.md b/docs/examples/1.8.x/server-rest/examples/account/get-prefs.md index 13a0b74d8f..a038dacbfd 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/get-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/get-session.md b/docs/examples/1.8.x/server-rest/examples/account/get-session.md index 9417755b04..3e372a05ef 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/get-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/get-session.md @@ -1,6 +1,6 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/get.md b/docs/examples/1.8.x/server-rest/examples/account/get.md index 023a6d116f..104b643074 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/get.md +++ b/docs/examples/1.8.x/server-rest/examples/account/get.md @@ -1,6 +1,6 @@ GET /v1/account HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-identities.md b/docs/examples/1.8.x/server-rest/examples/account/list-identities.md index 65edceb8d6..5acb221584 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/list-identities.md +++ b/docs/examples/1.8.x/server-rest/examples/account/list-identities.md @@ -1,6 +1,6 @@ GET /v1/account/identities HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-logs.md b/docs/examples/1.8.x/server-rest/examples/account/list-logs.md index 71e2e138ef..8314123c9e 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/list-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/list-logs.md @@ -1,6 +1,6 @@ GET /v1/account/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-rest/examples/account/list-mfa-factors.md index 217ec6cb30..c591143d4e 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-rest/examples/account/list-mfa-factors.md @@ -1,6 +1,6 @@ GET /v1/account/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-sessions.md b/docs/examples/1.8.x/server-rest/examples/account/list-sessions.md index 7bff23f25b..89ef6962c9 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/list-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/account/list-sessions.md @@ -1,6 +1,6 @@ GET /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-email.md b/docs/examples/1.8.x/server-rest/examples/account/update-email.md index fc3baaf4a4..382327e31b 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/account/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md index 803c47a857..a22b169751 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ PATCH /v1/account/mfa HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md index 3238322e0f..1a82afbfcc 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ PUT /v1/account/sessions/magic-url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-authenticator.md index 9d3e5dceea..780472291c 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-challenge.md index ddc27ae334..b6a7e92b28 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ PUT /v1/account/mfa/challenge HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-recovery-codes.md index e4ab8abb3b..74e9225f3e 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-name.md b/docs/examples/1.8.x/server-rest/examples/account/update-name.md index f2f7caa204..4c9c0e302c 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-name.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-name.md @@ -1,7 +1,7 @@ PATCH /v1/account/name HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-password.md b/docs/examples/1.8.x/server-rest/examples/account/update-password.md index 4f69b9ab3f..e05a1c2b7f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-password.md @@ -1,7 +1,7 @@ PATCH /v1/account/password HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md index f1bc27d201..54872eecd2 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ PUT /v1/account/sessions/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-phone-verification.md b/docs/examples/1.8.x/server-rest/examples/account/update-phone-verification.md index ee6f5a68ff..1d4dc22520 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-phone-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ PUT /v1/account/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-phone.md b/docs/examples/1.8.x/server-rest/examples/account/update-phone.md index bbe602a181..791caadb0d 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-phone.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-phone.md @@ -1,7 +1,7 @@ PATCH /v1/account/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md index aeabc2b68f..24f2d3bcb6 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md @@ -1,7 +1,7 @@ PATCH /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md index 054aacc8ed..7d40ee79fe 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md @@ -1,7 +1,7 @@ PUT /v1/account/recovery HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-session.md index 9b2ba0e4a7..8e2257aeed 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-session.md @@ -1,7 +1,7 @@ PATCH /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-status.md b/docs/examples/1.8.x/server-rest/examples/account/update-status.md index 8a3e01db0b..557697fe5f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-status.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-status.md @@ -1,7 +1,7 @@ PATCH /v1/account/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-verification.md b/docs/examples/1.8.x/server-rest/examples/account/update-verification.md index 0c5ed8b55d..a4dcbf76a3 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-verification.md @@ -1,7 +1,7 @@ PUT /v1/account/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-browser.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-browser.md index 3f18fa0d1e..36999839cc 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-browser.md @@ -1,6 +1,6 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-credit-card.md index 59a38fe8f3..c9126af289 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-credit-card.md @@ -1,6 +1,6 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-favicon.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-favicon.md index 7a7c189da1..5a928fc9cc 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-favicon.md @@ -1,6 +1,6 @@ GET /v1/avatars/favicon HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-flag.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-flag.md index b4cd119359..c29ba10970 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-flag.md @@ -1,6 +1,6 @@ GET /v1/avatars/flags/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-image.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-image.md index ca6b5105c3..dfc9fdcd92 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-image.md @@ -1,6 +1,6 @@ GET /v1/avatars/image HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-initials.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-initials.md index eb90447158..c784f1ca56 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-initials.md @@ -1,6 +1,6 @@ GET /v1/avatars/initials HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md index 77f7a3d382..bac1987d4e 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md @@ -1,6 +1,6 @@ GET /v1/avatars/qr HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md index 8ae6c2d9ff..fb11c03cbd 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md index ea298e3706..4f1e77728e 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md index 6ec4b332a5..3d0e718634 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md index a5c25315c2..e4ba6ec1ff 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/create-documents.md index 63503ebaaa..cee5405fb2 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-documents.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md index 0fb7aa2814..02b7095d64 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md index ba033a02ce..a921e10c5f 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md index ee8cb7497f..ea9dde56ce 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/float HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md index 6d9b486ed6..c78bdc37f9 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md index 721f10e0c7..cce3a3f265 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md index 61378e6780..80afccb4c1 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md index c519a4a494..d9e6c6441c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/relationship HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md index 7a5eafdf2a..5591ca8d8a 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/string HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md index ea4d76ce06..4ee9595717 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create.md b/docs/examples/1.8.x/server-rest/examples/databases/create.md index dab52ff67c..fd1ae143fa 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create.md @@ -1,7 +1,7 @@ POST /v1/databases HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/decrement-document-attribute.md index d569f8d7e6..53ee43c6c5 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/decrement-document-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/decrement HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-attribute.md index 8b7f1eee07..5d8f7f2932 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-collection.md index 153b3a2bdd..96d044df4e 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-document.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-document.md index ca093c9177..b5580b04bf 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-document.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-documents.md index 49ab276fa6..cb27719953 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-documents.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-index.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-index.md index 9c27a6fd4c..d8664ef7ca 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-index.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete.md b/docs/examples/1.8.x/server-rest/examples/databases/delete.md index 19cf58549a..85d5f7bb0e 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/get-attribute.md index c4cd093de0..60161187da 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get-attribute.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/get-collection.md index 0e33fc4ef7..837138aaa0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get-collection.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get-document.md b/docs/examples/1.8.x/server-rest/examples/databases/get-document.md index b71ec4f83c..78a0e7d37c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get-document.md @@ -1,6 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get-index.md b/docs/examples/1.8.x/server-rest/examples/databases/get-index.md index 5aa5aa0fb2..58665ed283 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get-index.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get.md b/docs/examples/1.8.x/server-rest/examples/databases/get.md index 7c43330625..644f251f56 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/increment-document-attribute.md index 8658cb0ee6..accfca5b06 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/increment-document-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/increment HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list-attributes.md b/docs/examples/1.8.x/server-rest/examples/databases/list-attributes.md index e829678007..1d16e3308d 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list-attributes.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list-attributes.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list-collections.md b/docs/examples/1.8.x/server-rest/examples/databases/list-collections.md index 0cfdce9c8e..18499144d3 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list-collections.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list-collections.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/list-documents.md index 0bc5c9b7f9..468956232d 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list-documents.md @@ -1,6 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list-indexes.md b/docs/examples/1.8.x/server-rest/examples/databases/list-indexes.md index e65ba2483c..1e1f134ef0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list-indexes.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list-indexes.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list.md b/docs/examples/1.8.x/server-rest/examples/databases/list.md index 31db5cca0d..3b9530eec4 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list.md @@ -1,5 +1,5 @@ GET /v1/databases HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md index 7a2ae34ce9..75f3d66b50 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/update-collection.md index 4cba7f5230..6d6e5603ed 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-collection.md @@ -1,7 +1,7 @@ PUT /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md index c9685e6c89..59a477aca7 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-document.md b/docs/examples/1.8.x/server-rest/examples/databases/update-document.md index 19b25bdf45..9a156375de 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-document.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md index f2606e3a1f..69ea7a0d6f 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md index eece253459..08257e8906 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/email/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md index 47ef168090..8e69a703ea 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md index bb35f3450c..214567660d 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/float/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md index 96290f4313..1f566c1369 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md index 9e3cf7d4b5..31bc18c587 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md index 645e8f8ae4..3cb7d4f679 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md index 650b6f1b8b..2026b854a9 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/string/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md index 8409285677..4f90c7ade3 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/url/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update.md b/docs/examples/1.8.x/server-rest/examples/databases/update.md index 02efbf5270..d57ad48927 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update.md @@ -1,7 +1,7 @@ PUT /v1/databases/{databaseId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md index 7339c7e611..97b61bfc7f 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md @@ -1,9 +1,13 @@ PUT /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: X-Appwrite-JWT: +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/upsert-documents.md index 1a24810a03..4bcb9cb0c0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/upsert-documents.md @@ -1,7 +1,10 @@ PUT /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: +{ + "documents": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md index 5d65eff5fd..f68e54dedc 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-duplicate-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-duplicate-deployment.md index 898117c117..f2ba3c5f13 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-duplicate-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments/duplicate HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-execution.md b/docs/examples/1.8.x/server-rest/examples/functions/create-execution.md index 5a4c7667cf..a2863046ce 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-execution.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: @@ -13,5 +13,5 @@ X-Appwrite-JWT: "path": "", "method": "GET", "headers": {}, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-template-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-template-deployment.md index 656c2e2a27..18ebf65efe 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-template-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-template-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments/template HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-variable.md b/docs/examples/1.8.x/server-rest/examples/functions/create-variable.md index 7251a3a352..7f71f07417 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-variable.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/variables HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-vcs-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-vcs-deployment.md index 1b5267ca14..cd409fa892 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-vcs-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments/vcs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create.md b/docs/examples/1.8.x/server-rest/examples/functions/create.md index c5f364ad63..1f034e60a4 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create.md @@ -1,7 +1,7 @@ POST /v1/functions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/delete-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/delete-deployment.md index b70f282167..81a80209a8 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/delete-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/delete-execution.md b/docs/examples/1.8.x/server-rest/examples/functions/delete-execution.md index fb26ae47aa..020a9efc3e 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/delete-execution.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/delete-variable.md b/docs/examples/1.8.x/server-rest/examples/functions/delete-variable.md index aa01835ae4..88f4de15eb 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/delete-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/delete.md b/docs/examples/1.8.x/server-rest/examples/functions/delete.md index 9f9ab74019..2148d8148b 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/delete.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get-deployment-download.md b/docs/examples/1.8.x/server-rest/examples/functions/get-deployment-download.md index 9195d203ab..e9c9ce0073 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get-deployment-download.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get-deployment-download.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/get-deployment.md index 2557ca698e..aa6e92449b 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get-deployment.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get-execution.md b/docs/examples/1.8.x/server-rest/examples/functions/get-execution.md index 52e54c2a6c..54da369660 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get-execution.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get-execution.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get-variable.md b/docs/examples/1.8.x/server-rest/examples/functions/get-variable.md index 2a01307b0d..91f14f0db8 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get-variable.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get.md b/docs/examples/1.8.x/server-rest/examples/functions/get.md index 062b7e67ec..fb0f049f6d 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-deployments.md b/docs/examples/1.8.x/server-rest/examples/functions/list-deployments.md index 5b4dabc679..db89edf692 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-deployments.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-deployments.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId}/deployments HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-executions.md b/docs/examples/1.8.x/server-rest/examples/functions/list-executions.md index b0ac3076ab..5876a8ba46 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-executions.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-runtimes.md b/docs/examples/1.8.x/server-rest/examples/functions/list-runtimes.md index 762e47fbcb..d8e4bc4272 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-runtimes.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-runtimes.md @@ -1,5 +1,5 @@ GET /v1/functions/runtimes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-specifications.md b/docs/examples/1.8.x/server-rest/examples/functions/list-specifications.md index 989adc0576..1a84b56ac9 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-specifications.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-specifications.md @@ -1,5 +1,5 @@ GET /v1/functions/specifications HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-variables.md b/docs/examples/1.8.x/server-rest/examples/functions/list-variables.md index b46b69fb5f..41bfde5e28 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-variables.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-variables.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId}/variables HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list.md b/docs/examples/1.8.x/server-rest/examples/functions/list.md index 318a2d56ed..e12af0e774 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list.md @@ -1,5 +1,5 @@ GET /v1/functions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update-deployment-status.md b/docs/examples/1.8.x/server-rest/examples/functions/update-deployment-status.md index 8788e21c2b..ba4a882910 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update-deployment-status.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update-deployment-status.md @@ -1,7 +1,7 @@ PATCH /v1/functions/{functionId}/deployments/{deploymentId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update-function-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/update-function-deployment.md index 1f89f35da0..d649b2ea69 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update-function-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update-function-deployment.md @@ -1,7 +1,7 @@ PATCH /v1/functions/{functionId}/deployment HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update-variable.md b/docs/examples/1.8.x/server-rest/examples/functions/update-variable.md index 36ae244548..5a0ad6805d 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update-variable.md @@ -1,7 +1,7 @@ PUT /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update.md b/docs/examples/1.8.x/server-rest/examples/functions/update.md index ee3b8b8c6d..40329e5580 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update.md @@ -1,7 +1,7 @@ PUT /v1/functions/{functionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/graphql/mutation.md b/docs/examples/1.8.x/server-rest/examples/graphql/mutation.md index 7d58d77ede..2d59370324 100644 --- a/docs/examples/1.8.x/server-rest/examples/graphql/mutation.md +++ b/docs/examples/1.8.x/server-rest/examples/graphql/mutation.md @@ -2,7 +2,7 @@ POST /v1/graphql/mutation HTTP/1.1 Host: cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/graphql/query.md b/docs/examples/1.8.x/server-rest/examples/graphql/query.md index 8b87cd9f33..c7242de6ef 100644 --- a/docs/examples/1.8.x/server-rest/examples/graphql/query.md +++ b/docs/examples/1.8.x/server-rest/examples/graphql/query.md @@ -2,7 +2,7 @@ POST /v1/graphql HTTP/1.1 Host: cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md b/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md index 2acacb5a5f..f0e27277b1 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md @@ -1,5 +1,5 @@ GET /v1/health/anti-virus HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-cache.md b/docs/examples/1.8.x/server-rest/examples/health/get-cache.md index c98dcf8af1..e0628a1b8a 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-cache.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-cache.md @@ -1,5 +1,5 @@ GET /v1/health/cache HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md b/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md index 9f4f5efee4..8928e8f25a 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md @@ -1,5 +1,5 @@ GET /v1/health/certificate HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md index 9f1efb921b..f636c9c8e7 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md @@ -1,5 +1,5 @@ GET /v1/health/db HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md b/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md index b646b7923f..b9bfab3b73 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md @@ -1,5 +1,5 @@ GET /v1/health/queue/failed/{name} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md b/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md index d28025f719..e9ab32729c 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md @@ -1,5 +1,5 @@ GET /v1/health/pubsub HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md index d51b4d60b3..c3d9189a65 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md @@ -1,5 +1,5 @@ GET /v1/health/queue/builds HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md index 0f3c2f65fe..d70ee360a8 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md @@ -1,5 +1,5 @@ GET /v1/health/queue/certificates HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md index ccc72c3404..60fc6db3b2 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md @@ -1,5 +1,5 @@ GET /v1/health/queue/databases HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md index a4c5e15586..5a9ce59da3 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md @@ -1,5 +1,5 @@ GET /v1/health/queue/deletes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md index a28dbf921c..854100e092 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md @@ -1,5 +1,5 @@ GET /v1/health/queue/functions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md index 0c16e61757..9fa98f13f5 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md @@ -1,5 +1,5 @@ GET /v1/health/queue/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md index 82b6151af1..2bb61550bb 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md @@ -1,5 +1,5 @@ GET /v1/health/queue/mails HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md index 6082ec41bd..5fd0f35919 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md @@ -1,5 +1,5 @@ GET /v1/health/queue/messaging HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md index c9687b3224..2832b1c980 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md @@ -1,5 +1,5 @@ GET /v1/health/queue/migrations HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md index 90eefe75fc..6500b1f84c 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md @@ -1,5 +1,5 @@ GET /v1/health/queue/stats-resources HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md index 663d39dd2f..9c4e797f32 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md @@ -1,5 +1,5 @@ GET /v1/health/queue/stats-usage HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md index 0843ad174f..4db6cf7d8c 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md @@ -1,5 +1,5 @@ GET /v1/health/queue/webhooks HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md b/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md index 9047713439..31c9b8725f 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md @@ -1,5 +1,5 @@ GET /v1/health/storage/local HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-storage.md b/docs/examples/1.8.x/server-rest/examples/health/get-storage.md index 1d46ab179e..69c4ebd910 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-storage.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-storage.md @@ -1,5 +1,5 @@ GET /v1/health/storage HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-time.md b/docs/examples/1.8.x/server-rest/examples/health/get-time.md index 7661df5732..5396aac6fb 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-time.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-time.md @@ -1,5 +1,5 @@ GET /v1/health/time HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get.md b/docs/examples/1.8.x/server-rest/examples/health/get.md index c64b480826..b37e30c4f8 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get.md @@ -1,5 +1,5 @@ GET /v1/health HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/get.md b/docs/examples/1.8.x/server-rest/examples/locale/get.md index 7b300acb41..6c60c076b6 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/get.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/get.md @@ -1,6 +1,6 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md b/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md index 336ac1477f..3cc2aa9939 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md @@ -1,6 +1,6 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md b/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md index d99b138653..8d2b0fa19d 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md @@ -1,6 +1,6 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md index 3c94877234..ae341f5982 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md index 09619edb36..9d59f37a19 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md index 0f1be7e5df..19205d538d 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md @@ -1,6 +1,6 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md b/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md index c1e03ecae2..fbf6d63496 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md @@ -1,6 +1,6 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md b/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md index 1e2a125985..7f1304d6ff 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md @@ -1,6 +1,6 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md index b6860358c1..47d3b98615 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/apns HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md index efec44982c..b6c1392bb2 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md index ec885465a7..f234c80e6e 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/fcm HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md index 8d0eb33938..fd138606e2 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/mailgun HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md index 2877ff7b89..edbd690d5d 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/msg91 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md index 6210273820..08ba0357fe 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md index a9f7c933dc..3fa7ee8dd8 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/sendgrid HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md index f885563f6f..82926e2a82 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/sms HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md index bbb8e7d212..5963ee474c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/smtp HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md index 2e61d50b5c..e22a626ac4 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md index 198ccae6f5..a474db823f 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/telesign HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md index 2f2ce558a7..caa7bcd014 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/textmagic HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md index a44af2764d..9974584212 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md index 61fd63b52e..e612eed8be 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/twilio HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md index 16d1c6b594..fdd66526a9 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/vonage HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md index e25c3dcc1c..cfd1ff3b30 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/providers/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md index b988897d60..8226237777 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md index 3c5c8a9cdb..d340209e93 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete.md index a918c2b6f8..e076c96ebf 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/messages/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md index abe744e9c7..ef9ef2c8df 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md index 0d2ffe4eaa..361d634760 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers/{providerId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md index a1629d4546..c01c5876ac 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md index 5d7efd06de..df5256f5e3 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md index 066970a9fb..d8c982e7ea 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md index 03a286c376..88964162e3 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md index 562264f48e..46c0f76a10 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers/{providerId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md index 43522ee34f..e454b3101b 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md index f403362529..7fb1192035 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/subscribers/{subscriberId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md index a357f9dc3d..06f67c27c1 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md index 0b4f8caf6f..7c793cfae0 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId}/targets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md index 80073b2165..e371aeb2b5 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md index 2835277aeb..9f18e14b70 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md index a398b186cb..a55c593039 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/apns/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md index 0ef5b89409..97f3911ed1 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/email/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md index 50e3a5400d..d485981c5b 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/fcm/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md index f05f0057e7..ec132692c5 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/mailgun/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md index 1c88425fc1..1013915e5d 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/msg91/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md index adf269301c..438ef373e5 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/push/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md index 28ffb526f8..fd30512320 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/sendgrid/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md index b5ad82d0f9..a917e270f7 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/sms/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md index 8e69659ce1..9fc45d6726 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/smtp/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md index 548d39dc92..919e99577e 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/telesign/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md index 724b0a4afe..94f965c44a 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/textmagic/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md index add0bf8ee4..75644d9828 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md index 38730383b1..41d04c0c14 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/twilio/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md index 8c284c827f..0344691e51 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/vonage/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md index 554d2a5365..669ac50a75 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md index 3da246715b..dbee572372 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/duplicate HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md index e37819bfb2..3b21f4f754 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/template HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md index 73217d198c..c34be9d619 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/variables HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md index 7d5fd3e92e..2e466da0f6 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/vcs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create.md b/docs/examples/1.8.x/server-rest/examples/sites/create.md index 5493e9d2b6..52b4d87219 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create.md @@ -1,7 +1,7 @@ POST /v1/sites HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md index 35bac59efc..3df6aca50f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md index 0bd2f661cf..af1d1c339a 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/logs/{logId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md index c3f1d2d293..008ab4b190 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete.md b/docs/examples/1.8.x/server-rest/examples/sites/delete.md index cdb4ced577..0657fff9ef 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md index d81a7dfc56..3ce065f600 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md @@ -1,6 +1,6 @@ GET /v1/sites/{siteId}/deployments/{deploymentId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md index 381c20db77..2ad95813d9 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-log.md b/docs/examples/1.8.x/server-rest/examples/sites/get-log.md index 6b8366461e..41dd30dc8f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-log.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-log.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/logs/{logId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md index 7c9703ef88..c6d5e70211 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get.md b/docs/examples/1.8.x/server-rest/examples/sites/get.md index f13b46ecab..da7b67883f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md b/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md index 22512f809d..0bc5467894 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md b/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md index 0007a7cd78..8c5f7ff318 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md @@ -1,5 +1,5 @@ GET /v1/sites/frameworks HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md b/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md index 7e77b7e755..57b35c4ef5 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md b/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md index 17e8d281c6..cf31760070 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md @@ -1,5 +1,5 @@ GET /v1/sites/specifications HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md b/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md index 4f99a74984..7e12fdfd02 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/variables HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list.md b/docs/examples/1.8.x/server-rest/examples/sites/list.md index d1800f05e5..dc4dc3695f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list.md @@ -1,5 +1,5 @@ GET /v1/sites HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md b/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md index 697d9ac371..d4f251c20f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md @@ -1,7 +1,7 @@ PATCH /v1/sites/{siteId}/deployments/{deploymentId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md index 51d8736df5..c288b2bf00 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md @@ -1,7 +1,7 @@ PATCH /v1/sites/{siteId}/deployment HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md index 61902ee02f..c7fe824ac4 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md @@ -1,7 +1,7 @@ PUT /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update.md b/docs/examples/1.8.x/server-rest/examples/sites/update.md index ab3c4dddd1..370984721f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update.md @@ -1,7 +1,7 @@ PUT /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md index 8ca9c5701b..59f1c4f403 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md index e8a54e723b..086fd6dc72 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md index 3db8bfbb72..d6083186de 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md b/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md index cc8a2481f7..467fdf96d1 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md index b7def1d44b..2ad1e577c5 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md @@ -1,5 +1,5 @@ GET /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md index 4d9c691ba9..af382d3a9a 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md index e8a1bdeedf..e00f0ff76f 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md index d41b8a3512..79f47dcabc 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file.md index e11aaa9f05..4a479a78fc 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md b/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md index 3061208d75..bd61c61082 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md @@ -1,5 +1,5 @@ GET /v1/storage/buckets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/list-files.md b/docs/examples/1.8.x/server-rest/examples/storage/list-files.md index 7cf8616335..b040ad3a65 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/list-files.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/list-files.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md index adf12647e2..0f966da0b5 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/update-file.md b/docs/examples/1.8.x/server-rest/examples/storage/update-file.md index d91ab4c2d6..1b0137a7de 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/update-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/update-file.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md index f52f796d90..773208cb45 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md @@ -1,7 +1,7 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/create.md b/docs/examples/1.8.x/server-rest/examples/teams/create.md index 27e7429464..2e1881b5ff 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/create.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/create.md @@ -1,7 +1,7 @@ POST /v1/teams HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md index e897d84a12..454a3f6f4a 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/delete.md b/docs/examples/1.8.x/server-rest/examples/teams/delete.md index 213489c7fb..1bdf2a89ac 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/delete.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md index 1d10cfe437..8a90498292 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md b/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md index ddb863181d..e541fd3fd8 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get.md b/docs/examples/1.8.x/server-rest/examples/teams/get.md index 4ecf74596b..491e04dc55 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md b/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md index 38cc17b71a..9b0fa00492 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/list.md b/docs/examples/1.8.x/server-rest/examples/teams/list.md index c67b429008..95b6178e31 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/list.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/list.md @@ -1,6 +1,6 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md b/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md index 9d828118f0..da2c9189cd 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md index 6730d5c27c..a5b8c28723 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-name.md b/docs/examples/1.8.x/server-rest/examples/teams/update-name.md index fa811a2438..1d32b77d39 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-name.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-name.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md index 1db6300350..e17dcdb260 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md index c1fbb63d2d..3d884e2c5d 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md @@ -1,7 +1,7 @@ POST /v1/tokens/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/delete.md b/docs/examples/1.8.x/server-rest/examples/tokens/delete.md index ee564b01c4..a955b4aef5 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/delete.md @@ -1,7 +1,7 @@ DELETE /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/get.md b/docs/examples/1.8.x/server-rest/examples/tokens/get.md index b39c8390e3..381945f58f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/get.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/get.md @@ -1,5 +1,5 @@ GET /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/list.md b/docs/examples/1.8.x/server-rest/examples/tokens/list.md index 8909d05572..3b0782a81a 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/list.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/list.md @@ -1,5 +1,5 @@ GET /v1/tokens/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/update.md b/docs/examples/1.8.x/server-rest/examples/tokens/update.md index 8ab9d60555..ab58a4842a 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/update.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/update.md @@ -1,7 +1,7 @@ PATCH /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md index d557cf6d5f..4985ecefd0 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ POST /v1/users/argon2 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md index cda7491160..eaf1628252 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ POST /v1/users/bcrypt HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md index 83208adadb..8342089042 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/jwts HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md index d4896133a1..6e82969f00 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ POST /v1/users/md5 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md index 2f6524646d..bef314b585 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md index 4c10b1a82d..b75c9e23c5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ POST /v1/users/phpass HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md index 5c6467a2fe..7757b44500 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ POST /v1/users/sha HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md index 19d0650840..9fb5f8de0f 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ POST /v1/users/scrypt-modified HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md index 008eab6848..ee8828f294 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ POST /v1/users/scrypt HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-session.md b/docs/examples/1.8.x/server-rest/examples/users/create-session.md index ec71d421e0..955e253d39 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-session.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-session.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-target.md b/docs/examples/1.8.x/server-rest/examples/users/create-target.md index fced935c1b..08147220b2 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-target.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/targets HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-token.md b/docs/examples/1.8.x/server-rest/examples/users/create-token.md index 4339252660..2d3b58435a 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-token.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-token.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/tokens HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create.md b/docs/examples/1.8.x/server-rest/examples/users/create.md index 67d377255b..b638e6511e 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create.md @@ -1,7 +1,7 @@ POST /v1/users HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md b/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md index c2aa5eed16..a9b2cd04f6 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/users/identities/{identityId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md index 9d9e2e950f..92d51fefb5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-session.md b/docs/examples/1.8.x/server-rest/examples/users/delete-session.md index be204911a2..1ae56081ab 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-session.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md b/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md index 54f3a8d4f1..f620f1addc 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-target.md b/docs/examples/1.8.x/server-rest/examples/users/delete-target.md index 77e2c23dd8..4ea75b979b 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-target.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete.md b/docs/examples/1.8.x/server-rest/examples/users/delete.md index c31212aa71..be2533f442 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md index 58dd32d2a4..1f561f02ad 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md b/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md index ac04cc5c44..4d55589a73 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-target.md b/docs/examples/1.8.x/server-rest/examples/users/get-target.md index 2f19db7c7a..3613d7acb6 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-target.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get.md b/docs/examples/1.8.x/server-rest/examples/users/get.md index f654676d9b..53357720cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get.md @@ -1,5 +1,5 @@ GET /v1/users/{userId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-identities.md b/docs/examples/1.8.x/server-rest/examples/users/list-identities.md index 180a2127a4..40eed8beec 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-identities.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-identities.md @@ -1,5 +1,5 @@ GET /v1/users/identities HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-logs.md b/docs/examples/1.8.x/server-rest/examples/users/list-logs.md index 7149f50abe..526615b80f 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-logs.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md b/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md index 7d32f2f726..24de2cdc59 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md index a75b26e1c5..eb2d3691de 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md b/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md index 1ef39b835b..33efecd536 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-targets.md b/docs/examples/1.8.x/server-rest/examples/users/list-targets.md index e9542c0da0..229559c958 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-targets.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-targets.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/targets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list.md b/docs/examples/1.8.x/server-rest/examples/users/list.md index a92f71439b..2938255449 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list.md @@ -1,5 +1,5 @@ GET /v1/users HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md b/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md index cf65c72b0c..1db5556964 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-email.md b/docs/examples/1.8.x/server-rest/examples/users/update-email.md index 10ccafb079..48d871d8d4 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-labels.md b/docs/examples/1.8.x/server-rest/examples/users/update-labels.md index f01603f1f4..d6acca5c7a 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-labels.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-labels.md @@ -1,7 +1,7 @@ PUT /v1/users/{userId}/labels HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md index aa3bb3f6e6..91e657aec7 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PUT /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md b/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md index fce9198887..8a5d1f5052 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/mfa HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-name.md b/docs/examples/1.8.x/server-rest/examples/users/update-name.md index c8988dfb1d..ae1472387a 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-name.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-name.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/name HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-password.md b/docs/examples/1.8.x/server-rest/examples/users/update-password.md index fb796d5619..40220f80d5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-password.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/password HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md b/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md index ca3958605b..837874a1e2 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-phone.md b/docs/examples/1.8.x/server-rest/examples/users/update-phone.md index 5bc196d668..a36f0cc656 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-phone.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-phone.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md index 1db82743e8..5de942c081 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-status.md b/docs/examples/1.8.x/server-rest/examples/users/update-status.md index 6d07f2e15f..95e29fb66e 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-status.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-status.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-target.md b/docs/examples/1.8.x/server-rest/examples/users/update-target.md index 926fb166a4..c5f92f342e 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-target.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md index ce8dea79ef..e6831084a1 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md @@ -4,9 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID .set_session('') # The user session to authenticate with - .set_key('') # Your secret API key - .set_jwt('') # Your secret JSON Web Token databases = Databases.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md index ecccdf5b21..16abc5e465 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_admin('') # + .set_project('') # Your project ID .set_key('') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md index d165e1e6cd..238081864f 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md @@ -4,14 +4,15 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID .set_session('') # The user session to authenticate with - .set_key('') # Your secret API key - .set_jwt('') # Your secret JSON Web Token databases = Databases.new(client) result = databases.upsert_document( database_id: '', collection_id: '', - document_id: '' + document_id: '', + data: {}, + permissions: ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md index 8e404e684e..30c42aa439 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md @@ -4,12 +4,13 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_admin('') # + .set_project('') # Your project ID .set_key('') # Your secret API key databases = Databases.new(client) result = databases.upsert_documents( database_id: '', - collection_id: '' + collection_id: '', + documents: [] ) diff --git a/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md index b64b1d5c57..666b995d77 100644 --- a/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md @@ -16,5 +16,5 @@ result = functions.create_execution( path: '', # optional method: ExecutionMethod::GET, # optional headers: {}, # optional - scheduled_at: '' # optional + scheduled_at: '' # optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md index 4ee21048ab..daeaf144e1 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md @@ -2,9 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token let databases = Databases(client) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-documents.md b/docs/examples/1.8.x/server-swift/examples/databases/create-documents.md index e4f8582f49..2e992d9e3a 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-documents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // + .setProject("") // Your project ID .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md index 9c9684e42d..e78bd458a0 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md @@ -2,15 +2,16 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token let databases = Databases(client) let document = try await databases.upsertDocument( databaseId: "", collectionId: "", - documentId: "" + documentId: "", + data: [:], + permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-swift/examples/databases/upsert-documents.md index e63b9a3e67..544f02f9c0 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/upsert-documents.md @@ -2,13 +2,14 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // + .setProject("") // Your project ID .setKey("") // Your secret API key let databases = Databases(client) let documentList = try await databases.upsertDocuments( databaseId: "", - collectionId: "" + collectionId: "", + documents: [] ) diff --git a/docs/examples/1.8.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.8.x/server-swift/examples/functions/create-execution.md index aae7a0f52f..46c9d69087 100644 --- a/docs/examples/1.8.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-swift/examples/functions/create-execution.md @@ -15,6 +15,6 @@ let execution = try await functions.createExecution( path: "", // optional method: .gET, // optional headers: [:], // optional - scheduledAt: "" // optional + scheduledAt: "" // optional ) From bc8d5963aed8b0d465170b16a65518aadc27aba1 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 17:15:17 +0530 Subject: [PATCH 12/24] update: regen examples for grids. --- .../client-android/java/grids/create-row.md | 26 +++++++++++++++ .../client-android/java/grids/delete-row.md | 24 ++++++++++++++ .../client-android/java/grids/get-row.md | 25 ++++++++++++++ .../client-android/java/grids/list-rows.md | 24 ++++++++++++++ .../client-android/java/grids/update-row.md | 26 +++++++++++++++ .../client-android/java/grids/upsert-row.md | 26 +++++++++++++++ .../client-android/kotlin/grids/create-row.md | 17 ++++++++++ .../client-android/kotlin/grids/delete-row.md | 15 +++++++++ .../client-android/kotlin/grids/get-row.md | 16 +++++++++ .../client-android/kotlin/grids/list-rows.md | 15 +++++++++ .../client-android/kotlin/grids/update-row.md | 17 ++++++++++ .../client-android/kotlin/grids/upsert-row.md | 17 ++++++++++ .../client-apple/examples/grids/create-row.md | 16 +++++++++ .../client-apple/examples/grids/delete-row.md | 14 ++++++++ .../client-apple/examples/grids/get-row.md | 15 +++++++++ .../client-apple/examples/grids/list-rows.md | 14 ++++++++ .../client-apple/examples/grids/update-row.md | 16 +++++++++ .../client-apple/examples/grids/upsert-row.md | 16 +++++++++ .../examples/grids/create-row.md | 15 +++++++++ .../examples/grids/delete-row.md | 13 ++++++++ .../client-flutter/examples/grids/get-row.md | 14 ++++++++ .../examples/grids/list-rows.md | 13 ++++++++ .../examples/grids/update-row.md | 15 +++++++++ .../examples/grids/upsert-row.md | 15 +++++++++ .../examples/grids/create-row.md | 18 ++++++++++ .../examples/grids/delete-row.md | 9 +++++ .../client-graphql/examples/grids/get-row.md | 0 .../examples/grids/list-rows.md | 0 .../examples/grids/update-row.md | 18 ++++++++++ .../examples/grids/upsert-row.md | 18 ++++++++++ .../examples/grids/create-row.md | 17 ++++++++++ .../examples/grids/delete-row.md | 15 +++++++++ .../examples/grids/get-row.md | 16 +++++++++ .../examples/grids/list-rows.md | 15 +++++++++ .../examples/grids/update-row.md | 17 ++++++++++ .../examples/grids/upsert-row.md | 17 ++++++++++ .../client-rest/examples/grids/create-row.md | 13 ++++++++ .../client-rest/examples/grids/delete-row.md | 8 +++++ .../client-rest/examples/grids/get-row.md | 6 ++++ .../client-rest/examples/grids/list-rows.md | 6 ++++ .../client-rest/examples/grids/update-row.md | 12 +++++++ .../client-rest/examples/grids/upsert-row.md | 12 +++++++ .../client-web/examples/grids/create-row.md | 17 ++++++++++ .../client-web/examples/grids/delete-row.md | 15 +++++++++ .../client-web/examples/grids/get-row.md | 16 +++++++++ .../client-web/examples/grids/list-rows.md | 15 +++++++++ .../client-web/examples/grids/update-row.md | 17 ++++++++++ .../client-web/examples/grids/upsert-row.md | 17 ++++++++++ .../examples/grids/create-boolean-column.md | 7 ++++ .../examples/grids/create-database.md | 4 +++ .../examples/grids/create-datetime-column.md | 7 ++++ .../examples/grids/create-email-column.md | 7 ++++ .../examples/grids/create-enum-column.md | 8 +++++ .../examples/grids/create-float-column.md | 9 +++++ .../examples/grids/create-index.md | 8 +++++ .../examples/grids/create-integer-column.md | 9 +++++ .../examples/grids/create-ip-column.md | 7 ++++ .../grids/create-relationship-column.md | 9 +++++ .../console-cli/examples/grids/create-row.md | 6 ++++ .../console-cli/examples/grids/create-rows.md | 4 +++ .../examples/grids/create-string-column.md | 9 +++++ .../examples/grids/create-table.md | 7 ++++ .../examples/grids/create-url-column.md | 7 ++++ .../examples/grids/decrement-row-column.md | 7 ++++ .../examples/grids/delete-column.md | 4 +++ .../examples/grids/delete-database.md | 2 ++ .../examples/grids/delete-index.md | 4 +++ .../console-cli/examples/grids/delete-row.md | 4 +++ .../console-cli/examples/grids/delete-rows.md | 4 +++ .../examples/grids/delete-table.md | 3 ++ .../console-cli/examples/grids/get-column.md | 4 +++ .../examples/grids/get-database-usage.md | 3 ++ .../examples/grids/get-database.md | 2 ++ .../console-cli/examples/grids/get-index.md | 4 +++ .../console-cli/examples/grids/get-row.md | 5 +++ .../examples/grids/get-table-usage.md | 4 +++ .../console-cli/examples/grids/get-table.md | 3 ++ .../examples/grids/increment-row-column.md | 7 ++++ .../examples/grids/list-columns.md | 4 +++ .../examples/grids/list-database-logs.md | 3 ++ .../examples/grids/list-database-usage.md | 2 ++ .../examples/grids/list-databases.md | 3 ++ .../examples/grids/list-indexes.md | 4 +++ .../examples/grids/list-row-logs.md | 5 +++ .../console-cli/examples/grids/list-rows.md | 4 +++ .../examples/grids/list-table-logs.md | 4 +++ .../console-cli/examples/grids/list-tables.md | 4 +++ .../examples/grids/update-boolean-column.md | 7 ++++ .../examples/grids/update-database.md | 4 +++ .../examples/grids/update-datetime-column.md | 7 ++++ .../examples/grids/update-email-column.md | 7 ++++ .../examples/grids/update-enum-column.md | 8 +++++ .../examples/grids/update-float-column.md | 9 +++++ .../examples/grids/update-integer-column.md | 9 +++++ .../examples/grids/update-ip-column.md | 7 ++++ .../grids/update-relationship-column.md | 6 ++++ .../console-cli/examples/grids/update-row.md | 6 ++++ .../console-cli/examples/grids/update-rows.md | 5 +++ .../examples/grids/update-string-column.md | 8 +++++ .../examples/grids/update-table.md | 7 ++++ .../examples/grids/update-url-column.md | 7 ++++ .../console-cli/examples/grids/upsert-row.md | 6 ++++ .../console-cli/examples/grids/upsert-rows.md | 4 +++ .../examples/grids/create-boolean-column.md | 18 ++++++++++ .../examples/grids/create-database.md | 15 +++++++++ .../examples/grids/create-datetime-column.md | 18 ++++++++++ .../examples/grids/create-email-column.md | 18 ++++++++++ .../examples/grids/create-enum-column.md | 19 +++++++++++ .../examples/grids/create-float-column.md | 20 +++++++++++ .../examples/grids/create-index.md | 19 +++++++++++ .../examples/grids/create-integer-column.md | 20 +++++++++++ .../examples/grids/create-ip-column.md | 18 ++++++++++ .../grids/create-relationship-column.md | 20 +++++++++++ .../console-web/examples/grids/create-row.md | 17 ++++++++++ .../console-web/examples/grids/create-rows.md | 15 +++++++++ .../examples/grids/create-string-column.md | 20 +++++++++++ .../examples/grids/create-table.md | 18 ++++++++++ .../examples/grids/create-url-column.md | 18 ++++++++++ .../examples/grids/decrement-row-column.md | 18 ++++++++++ .../examples/grids/delete-column.md | 15 +++++++++ .../examples/grids/delete-database.md | 13 ++++++++ .../examples/grids/delete-index.md | 15 +++++++++ .../console-web/examples/grids/delete-row.md | 15 +++++++++ .../console-web/examples/grids/delete-rows.md | 15 +++++++++ .../examples/grids/delete-table.md | 14 ++++++++ .../console-web/examples/grids/get-column.md | 15 +++++++++ .../examples/grids/get-database-usage.md | 14 ++++++++ .../examples/grids/get-database.md | 13 ++++++++ .../console-web/examples/grids/get-index.md | 15 +++++++++ .../console-web/examples/grids/get-row.md | 16 +++++++++ .../examples/grids/get-table-usage.md | 15 +++++++++ .../console-web/examples/grids/get-table.md | 14 ++++++++ .../examples/grids/increment-row-column.md | 18 ++++++++++ .../examples/grids/list-columns.md | 15 +++++++++ .../examples/grids/list-database-logs.md | 14 ++++++++ .../examples/grids/list-database-usage.md | 13 ++++++++ .../examples/grids/list-databases.md | 14 ++++++++ .../examples/grids/list-indexes.md | 15 +++++++++ .../examples/grids/list-row-logs.md | 16 +++++++++ .../console-web/examples/grids/list-rows.md | 15 +++++++++ .../examples/grids/list-table-logs.md | 15 +++++++++ .../console-web/examples/grids/list-tables.md | 15 +++++++++ .../examples/grids/update-boolean-column.md | 18 ++++++++++ .../examples/grids/update-database.md | 15 +++++++++ .../examples/grids/update-datetime-column.md | 18 ++++++++++ .../examples/grids/update-email-column.md | 18 ++++++++++ .../examples/grids/update-enum-column.md | 19 +++++++++++ .../examples/grids/update-float-column.md | 20 +++++++++++ .../examples/grids/update-integer-column.md | 20 +++++++++++ .../examples/grids/update-ip-column.md | 18 ++++++++++ .../grids/update-relationship-column.md | 17 ++++++++++ .../console-web/examples/grids/update-row.md | 17 ++++++++++ .../console-web/examples/grids/update-rows.md | 16 +++++++++ .../examples/grids/update-string-column.md | 19 +++++++++++ .../examples/grids/update-table.md | 18 ++++++++++ .../examples/grids/update-url-column.md | 18 ++++++++++ .../console-web/examples/grids/upsert-row.md | 17 ++++++++++ .../console-web/examples/grids/upsert-rows.md | 15 +++++++++ .../examples/grids/create-boolean-column.md | 17 ++++++++++ .../examples/grids/create-database.md | 14 ++++++++ .../examples/grids/create-datetime-column.md | 17 ++++++++++ .../examples/grids/create-email-column.md | 17 ++++++++++ .../examples/grids/create-enum-column.md | 18 ++++++++++ .../examples/grids/create-float-column.md | 19 +++++++++++ .../examples/grids/create-index.md | 18 ++++++++++ .../examples/grids/create-integer-column.md | 19 +++++++++++ .../examples/grids/create-ip-column.md | 17 ++++++++++ .../grids/create-relationship-column.md | 19 +++++++++++ .../server-dart/examples/grids/create-row.md | 16 +++++++++ .../server-dart/examples/grids/create-rows.md | 14 ++++++++ .../examples/grids/create-string-column.md | 19 +++++++++++ .../examples/grids/create-table.md | 17 ++++++++++ .../examples/grids/create-url-column.md | 17 ++++++++++ .../examples/grids/decrement-row-column.md | 17 ++++++++++ .../examples/grids/delete-column.md | 14 ++++++++ .../examples/grids/delete-database.md | 12 +++++++ .../examples/grids/delete-index.md | 14 ++++++++ .../server-dart/examples/grids/delete-row.md | 14 ++++++++ .../server-dart/examples/grids/delete-rows.md | 14 ++++++++ .../examples/grids/delete-table.md | 13 ++++++++ .../server-dart/examples/grids/get-column.md | 14 ++++++++ .../examples/grids/get-database.md | 12 +++++++ .../server-dart/examples/grids/get-index.md | 14 ++++++++ .../server-dart/examples/grids/get-row.md | 15 +++++++++ .../server-dart/examples/grids/get-table.md | 13 ++++++++ .../examples/grids/increment-row-column.md | 17 ++++++++++ .../examples/grids/list-columns.md | 14 ++++++++ .../examples/grids/list-databases.md | 13 ++++++++ .../examples/grids/list-indexes.md | 14 ++++++++ .../server-dart/examples/grids/list-rows.md | 14 ++++++++ .../server-dart/examples/grids/list-tables.md | 14 ++++++++ .../examples/grids/update-boolean-column.md | 17 ++++++++++ .../examples/grids/update-database.md | 14 ++++++++ .../examples/grids/update-datetime-column.md | 17 ++++++++++ .../examples/grids/update-email-column.md | 17 ++++++++++ .../examples/grids/update-enum-column.md | 18 ++++++++++ .../examples/grids/update-float-column.md | 19 +++++++++++ .../examples/grids/update-integer-column.md | 19 +++++++++++ .../examples/grids/update-ip-column.md | 17 ++++++++++ .../grids/update-relationship-column.md | 16 +++++++++ .../server-dart/examples/grids/update-row.md | 16 +++++++++ .../server-dart/examples/grids/update-rows.md | 15 +++++++++ .../examples/grids/update-string-column.md | 18 ++++++++++ .../examples/grids/update-table.md | 17 ++++++++++ .../examples/grids/update-url-column.md | 17 ++++++++++ .../server-dart/examples/grids/upsert-row.md | 16 +++++++++ .../server-dart/examples/grids/upsert-rows.md | 14 ++++++++ .../examples/grids/create-boolean-column.md | 17 ++++++++++ .../examples/grids/create-database.md | 14 ++++++++ .../examples/grids/create-datetime-column.md | 17 ++++++++++ .../examples/grids/create-email-column.md | 17 ++++++++++ .../examples/grids/create-enum-column.md | 18 ++++++++++ .../examples/grids/create-float-column.md | 19 +++++++++++ .../examples/grids/create-index.md | 18 ++++++++++ .../examples/grids/create-integer-column.md | 19 +++++++++++ .../examples/grids/create-ip-column.md | 17 ++++++++++ .../grids/create-relationship-column.md | 19 +++++++++++ .../server-deno/examples/grids/create-row.md | 16 +++++++++ .../server-deno/examples/grids/create-rows.md | 14 ++++++++ .../examples/grids/create-string-column.md | 19 +++++++++++ .../examples/grids/create-table.md | 17 ++++++++++ .../examples/grids/create-url-column.md | 17 ++++++++++ .../examples/grids/decrement-row-column.md | 17 ++++++++++ .../examples/grids/delete-column.md | 14 ++++++++ .../examples/grids/delete-database.md | 12 +++++++ .../examples/grids/delete-index.md | 14 ++++++++ .../server-deno/examples/grids/delete-row.md | 14 ++++++++ .../server-deno/examples/grids/delete-rows.md | 14 ++++++++ .../examples/grids/delete-table.md | 13 ++++++++ .../server-deno/examples/grids/get-column.md | 14 ++++++++ .../examples/grids/get-database.md | 12 +++++++ .../server-deno/examples/grids/get-index.md | 14 ++++++++ .../server-deno/examples/grids/get-row.md | 15 +++++++++ .../server-deno/examples/grids/get-table.md | 13 ++++++++ .../examples/grids/increment-row-column.md | 17 ++++++++++ .../examples/grids/list-columns.md | 14 ++++++++ .../examples/grids/list-databases.md | 13 ++++++++ .../examples/grids/list-indexes.md | 14 ++++++++ .../server-deno/examples/grids/list-rows.md | 14 ++++++++ .../server-deno/examples/grids/list-tables.md | 14 ++++++++ .../examples/grids/update-boolean-column.md | 17 ++++++++++ .../examples/grids/update-database.md | 14 ++++++++ .../examples/grids/update-datetime-column.md | 17 ++++++++++ .../examples/grids/update-email-column.md | 17 ++++++++++ .../examples/grids/update-enum-column.md | 18 ++++++++++ .../examples/grids/update-float-column.md | 19 +++++++++++ .../examples/grids/update-integer-column.md | 19 +++++++++++ .../examples/grids/update-ip-column.md | 17 ++++++++++ .../grids/update-relationship-column.md | 16 +++++++++ .../server-deno/examples/grids/update-row.md | 16 +++++++++ .../server-deno/examples/grids/update-rows.md | 15 +++++++++ .../examples/grids/update-string-column.md | 18 ++++++++++ .../examples/grids/update-table.md | 17 ++++++++++ .../examples/grids/update-url-column.md | 17 ++++++++++ .../server-deno/examples/grids/upsert-row.md | 16 +++++++++ .../server-deno/examples/grids/upsert-rows.md | 14 ++++++++ .../examples/grids/create-boolean-column.md | 19 +++++++++++ .../examples/grids/create-database.md | 16 +++++++++ .../examples/grids/create-datetime-column.md | 19 +++++++++++ .../examples/grids/create-email-column.md | 19 +++++++++++ .../examples/grids/create-enum-column.md | 20 +++++++++++ .../examples/grids/create-float-column.md | 21 ++++++++++++ .../examples/grids/create-index.md | 21 ++++++++++++ .../examples/grids/create-integer-column.md | 21 ++++++++++++ .../examples/grids/create-ip-column.md | 19 +++++++++++ .../grids/create-relationship-column.md | 22 +++++++++++++ .../examples/grids/create-row.md | 18 ++++++++++ .../examples/grids/create-rows.md | 16 +++++++++ .../examples/grids/create-string-column.md | 21 ++++++++++++ .../examples/grids/create-table.md | 19 +++++++++++ .../examples/grids/create-url-column.md | 19 +++++++++++ .../examples/grids/decrement-row-column.md | 19 +++++++++++ .../examples/grids/delete-column.md | 16 +++++++++ .../examples/grids/delete-database.md | 14 ++++++++ .../examples/grids/delete-index.md | 16 +++++++++ .../examples/grids/delete-row.md | 16 +++++++++ .../examples/grids/delete-rows.md | 16 +++++++++ .../examples/grids/delete-table.md | 15 +++++++++ .../examples/grids/get-column.md | 16 +++++++++ .../examples/grids/get-database.md | 14 ++++++++ .../server-dotnet/examples/grids/get-index.md | 16 +++++++++ .../server-dotnet/examples/grids/get-row.md | 17 ++++++++++ .../server-dotnet/examples/grids/get-table.md | 15 +++++++++ .../examples/grids/increment-row-column.md | 19 +++++++++++ .../examples/grids/list-columns.md | 16 +++++++++ .../examples/grids/list-databases.md | 15 +++++++++ .../examples/grids/list-indexes.md | 16 +++++++++ .../server-dotnet/examples/grids/list-rows.md | 16 +++++++++ .../examples/grids/list-tables.md | 16 +++++++++ .../examples/grids/update-boolean-column.md | 19 +++++++++++ .../examples/grids/update-database.md | 16 +++++++++ .../examples/grids/update-datetime-column.md | 19 +++++++++++ .../examples/grids/update-email-column.md | 19 +++++++++++ .../examples/grids/update-enum-column.md | 20 +++++++++++ .../examples/grids/update-float-column.md | 21 ++++++++++++ .../examples/grids/update-integer-column.md | 21 ++++++++++++ .../examples/grids/update-ip-column.md | 19 +++++++++++ .../grids/update-relationship-column.md | 19 +++++++++++ .../examples/grids/update-row.md | 18 ++++++++++ .../examples/grids/update-rows.md | 17 ++++++++++ .../examples/grids/update-string-column.md | 20 +++++++++++ .../examples/grids/update-table.md | 19 +++++++++++ .../examples/grids/update-url-column.md | 19 +++++++++++ .../examples/grids/upsert-row.md | 18 ++++++++++ .../examples/grids/upsert-rows.md | 16 +++++++++ .../examples/grids/create-boolean-column.md | 31 +++++++++++++++++ .../examples/grids/create-database.md | 28 ++++++++++++++++ .../examples/grids/create-datetime-column.md | 31 +++++++++++++++++ .../examples/grids/create-email-column.md | 31 +++++++++++++++++ .../examples/grids/create-enum-column.md | 32 ++++++++++++++++++ .../examples/grids/create-float-column.md | 33 +++++++++++++++++++ .../server-go/examples/grids/create-index.md | 32 ++++++++++++++++++ .../examples/grids/create-integer-column.md | 33 +++++++++++++++++++ .../examples/grids/create-ip-column.md | 31 +++++++++++++++++ .../grids/create-relationship-column.md | 33 +++++++++++++++++++ .../server-go/examples/grids/create-row.md | 30 +++++++++++++++++ .../server-go/examples/grids/create-rows.md | 28 ++++++++++++++++ .../examples/grids/create-string-column.md | 33 +++++++++++++++++++ .../server-go/examples/grids/create-table.md | 31 +++++++++++++++++ .../examples/grids/create-url-column.md | 31 +++++++++++++++++ .../examples/grids/decrement-row-column.md | 31 +++++++++++++++++ .../server-go/examples/grids/delete-column.md | 28 ++++++++++++++++ .../examples/grids/delete-database.md | 26 +++++++++++++++ .../server-go/examples/grids/delete-index.md | 28 ++++++++++++++++ .../server-go/examples/grids/delete-row.md | 28 ++++++++++++++++ .../server-go/examples/grids/delete-rows.md | 28 ++++++++++++++++ .../server-go/examples/grids/delete-table.md | 27 +++++++++++++++ .../server-go/examples/grids/get-column.md | 28 ++++++++++++++++ .../server-go/examples/grids/get-database.md | 26 +++++++++++++++ .../server-go/examples/grids/get-index.md | 28 ++++++++++++++++ .../1.8.x/server-go/examples/grids/get-row.md | 29 ++++++++++++++++ .../server-go/examples/grids/get-table.md | 27 +++++++++++++++ .../examples/grids/increment-row-column.md | 31 +++++++++++++++++ .../server-go/examples/grids/list-columns.md | 28 ++++++++++++++++ .../examples/grids/list-databases.md | 27 +++++++++++++++ .../server-go/examples/grids/list-indexes.md | 28 ++++++++++++++++ .../server-go/examples/grids/list-rows.md | 28 ++++++++++++++++ .../server-go/examples/grids/list-tables.md | 28 ++++++++++++++++ .../examples/grids/update-boolean-column.md | 31 +++++++++++++++++ .../examples/grids/update-database.md | 28 ++++++++++++++++ .../examples/grids/update-datetime-column.md | 31 +++++++++++++++++ .../examples/grids/update-email-column.md | 31 +++++++++++++++++ .../examples/grids/update-enum-column.md | 32 ++++++++++++++++++ .../examples/grids/update-float-column.md | 33 +++++++++++++++++++ .../examples/grids/update-integer-column.md | 33 +++++++++++++++++++ .../examples/grids/update-ip-column.md | 31 +++++++++++++++++ .../grids/update-relationship-column.md | 30 +++++++++++++++++ .../server-go/examples/grids/update-row.md | 30 +++++++++++++++++ .../server-go/examples/grids/update-rows.md | 29 ++++++++++++++++ .../examples/grids/update-string-column.md | 32 ++++++++++++++++++ .../server-go/examples/grids/update-table.md | 31 +++++++++++++++++ .../examples/grids/update-url-column.md | 31 +++++++++++++++++ .../server-go/examples/grids/upsert-row.md | 30 +++++++++++++++++ .../server-go/examples/grids/upsert-rows.md | 28 ++++++++++++++++ .../examples/grids/create-boolean-column.md | 20 +++++++++++ .../examples/grids/create-database.md | 13 ++++++++ .../examples/grids/create-datetime-column.md | 21 ++++++++++++ .../examples/grids/create-email-column.md | 21 ++++++++++++ .../examples/grids/create-enum-column.md | 23 +++++++++++++ .../examples/grids/create-float-column.md | 24 ++++++++++++++ .../examples/grids/create-index.md | 22 +++++++++++++ .../examples/grids/create-integer-column.md | 24 ++++++++++++++ .../examples/grids/create-ip-column.md | 21 ++++++++++++ .../grids/create-relationship-column.md | 27 +++++++++++++++ .../examples/grids/create-row.md | 18 ++++++++++ .../examples/grids/create-rows.md | 19 +++++++++++ .../examples/grids/create-string-column.md | 24 ++++++++++++++ .../examples/grids/create-table.md | 32 ++++++++++++++++++ .../examples/grids/create-url-column.md | 21 ++++++++++++ .../examples/grids/decrement-row-column.md | 19 +++++++++++ .../examples/grids/delete-column.md | 9 +++++ .../examples/grids/delete-database.md | 7 ++++ .../examples/grids/delete-index.md | 9 +++++ .../examples/grids/delete-row.md | 9 +++++ .../examples/grids/delete-rows.md | 19 +++++++++++ .../examples/grids/delete-table.md | 8 +++++ .../examples/grids/get-column.md | 0 .../examples/grids/get-database.md | 0 .../examples/grids/get-index.md | 0 .../server-graphql/examples/grids/get-row.md | 0 .../examples/grids/get-table.md | 0 .../examples/grids/increment-row-column.md | 19 +++++++++++ .../examples/grids/list-columns.md | 0 .../examples/grids/list-databases.md | 0 .../examples/grids/list-indexes.md | 0 .../examples/grids/list-rows.md | 0 .../examples/grids/list-tables.md | 0 .../examples/grids/update-boolean-column.md | 20 +++++++++++ .../examples/grids/update-database.md | 13 ++++++++ .../examples/grids/update-datetime-column.md | 21 ++++++++++++ .../examples/grids/update-email-column.md | 21 ++++++++++++ .../examples/grids/update-enum-column.md | 23 +++++++++++++ .../examples/grids/update-float-column.md | 24 ++++++++++++++ .../examples/grids/update-integer-column.md | 24 ++++++++++++++ .../examples/grids/update-ip-column.md | 21 ++++++++++++ .../grids/update-relationship-column.md | 24 ++++++++++++++ .../examples/grids/update-row.md | 18 ++++++++++ .../examples/grids/update-rows.md | 20 +++++++++++ .../examples/grids/update-string-column.md | 23 +++++++++++++ .../examples/grids/update-table.md | 32 ++++++++++++++++++ .../examples/grids/update-url-column.md | 21 ++++++++++++ .../examples/grids/upsert-row.md | 18 ++++++++++ .../examples/grids/upsert-rows.md | 19 +++++++++++ .../java/grids/create-boolean-column.md | 28 ++++++++++++++++ .../java/grids/create-database.md | 25 ++++++++++++++ .../java/grids/create-datetime-column.md | 28 ++++++++++++++++ .../java/grids/create-email-column.md | 28 ++++++++++++++++ .../java/grids/create-enum-column.md | 29 ++++++++++++++++ .../java/grids/create-float-column.md | 30 +++++++++++++++++ .../server-kotlin/java/grids/create-index.md | 30 +++++++++++++++++ .../java/grids/create-integer-column.md | 30 +++++++++++++++++ .../java/grids/create-ip-column.md | 28 ++++++++++++++++ .../java/grids/create-relationship-column.md | 31 +++++++++++++++++ .../server-kotlin/java/grids/create-row.md | 27 +++++++++++++++ .../server-kotlin/java/grids/create-rows.md | 25 ++++++++++++++ .../java/grids/create-string-column.md | 30 +++++++++++++++++ .../server-kotlin/java/grids/create-table.md | 28 ++++++++++++++++ .../java/grids/create-url-column.md | 28 ++++++++++++++++ .../java/grids/decrement-row-column.md | 28 ++++++++++++++++ .../server-kotlin/java/grids/delete-column.md | 25 ++++++++++++++ .../java/grids/delete-database.md | 23 +++++++++++++ .../server-kotlin/java/grids/delete-index.md | 25 ++++++++++++++ .../server-kotlin/java/grids/delete-row.md | 25 ++++++++++++++ .../server-kotlin/java/grids/delete-rows.md | 25 ++++++++++++++ .../server-kotlin/java/grids/delete-table.md | 24 ++++++++++++++ .../server-kotlin/java/grids/get-column.md | 25 ++++++++++++++ .../server-kotlin/java/grids/get-database.md | 23 +++++++++++++ .../server-kotlin/java/grids/get-index.md | 25 ++++++++++++++ .../1.8.x/server-kotlin/java/grids/get-row.md | 26 +++++++++++++++ .../server-kotlin/java/grids/get-table.md | 24 ++++++++++++++ .../java/grids/increment-row-column.md | 28 ++++++++++++++++ .../server-kotlin/java/grids/list-columns.md | 25 ++++++++++++++ .../java/grids/list-databases.md | 24 ++++++++++++++ .../server-kotlin/java/grids/list-indexes.md | 25 ++++++++++++++ .../server-kotlin/java/grids/list-rows.md | 25 ++++++++++++++ .../server-kotlin/java/grids/list-tables.md | 25 ++++++++++++++ .../java/grids/update-boolean-column.md | 28 ++++++++++++++++ .../java/grids/update-database.md | 25 ++++++++++++++ .../java/grids/update-datetime-column.md | 28 ++++++++++++++++ .../java/grids/update-email-column.md | 28 ++++++++++++++++ .../java/grids/update-enum-column.md | 29 ++++++++++++++++ .../java/grids/update-float-column.md | 30 +++++++++++++++++ .../java/grids/update-integer-column.md | 30 +++++++++++++++++ .../java/grids/update-ip-column.md | 28 ++++++++++++++++ .../java/grids/update-relationship-column.md | 27 +++++++++++++++ .../server-kotlin/java/grids/update-row.md | 27 +++++++++++++++ .../server-kotlin/java/grids/update-rows.md | 26 +++++++++++++++ .../java/grids/update-string-column.md | 29 ++++++++++++++++ .../server-kotlin/java/grids/update-table.md | 28 ++++++++++++++++ .../java/grids/update-url-column.md | 28 ++++++++++++++++ .../server-kotlin/java/grids/upsert-row.md | 27 +++++++++++++++ .../server-kotlin/java/grids/upsert-rows.md | 25 ++++++++++++++ .../kotlin/grids/create-boolean-column.md | 19 +++++++++++ .../kotlin/grids/create-database.md | 16 +++++++++ .../kotlin/grids/create-datetime-column.md | 19 +++++++++++ .../kotlin/grids/create-email-column.md | 19 +++++++++++ .../kotlin/grids/create-enum-column.md | 20 +++++++++++ .../kotlin/grids/create-float-column.md | 21 ++++++++++++ .../kotlin/grids/create-index.md | 21 ++++++++++++ .../kotlin/grids/create-integer-column.md | 21 ++++++++++++ .../kotlin/grids/create-ip-column.md | 19 +++++++++++ .../grids/create-relationship-column.md | 22 +++++++++++++ .../server-kotlin/kotlin/grids/create-row.md | 18 ++++++++++ .../server-kotlin/kotlin/grids/create-rows.md | 16 +++++++++ .../kotlin/grids/create-string-column.md | 21 ++++++++++++ .../kotlin/grids/create-table.md | 19 +++++++++++ .../kotlin/grids/create-url-column.md | 19 +++++++++++ .../kotlin/grids/decrement-row-column.md | 19 +++++++++++ .../kotlin/grids/delete-column.md | 16 +++++++++ .../kotlin/grids/delete-database.md | 14 ++++++++ .../kotlin/grids/delete-index.md | 16 +++++++++ .../server-kotlin/kotlin/grids/delete-row.md | 16 +++++++++ .../server-kotlin/kotlin/grids/delete-rows.md | 16 +++++++++ .../kotlin/grids/delete-table.md | 15 +++++++++ .../server-kotlin/kotlin/grids/get-column.md | 16 +++++++++ .../kotlin/grids/get-database.md | 14 ++++++++ .../server-kotlin/kotlin/grids/get-index.md | 16 +++++++++ .../server-kotlin/kotlin/grids/get-row.md | 17 ++++++++++ .../server-kotlin/kotlin/grids/get-table.md | 15 +++++++++ .../kotlin/grids/increment-row-column.md | 19 +++++++++++ .../kotlin/grids/list-columns.md | 16 +++++++++ .../kotlin/grids/list-databases.md | 15 +++++++++ .../kotlin/grids/list-indexes.md | 16 +++++++++ .../server-kotlin/kotlin/grids/list-rows.md | 16 +++++++++ .../server-kotlin/kotlin/grids/list-tables.md | 16 +++++++++ .../kotlin/grids/update-boolean-column.md | 19 +++++++++++ .../kotlin/grids/update-database.md | 16 +++++++++ .../kotlin/grids/update-datetime-column.md | 19 +++++++++++ .../kotlin/grids/update-email-column.md | 19 +++++++++++ .../kotlin/grids/update-enum-column.md | 20 +++++++++++ .../kotlin/grids/update-float-column.md | 21 ++++++++++++ .../kotlin/grids/update-integer-column.md | 21 ++++++++++++ .../kotlin/grids/update-ip-column.md | 19 +++++++++++ .../grids/update-relationship-column.md | 18 ++++++++++ .../server-kotlin/kotlin/grids/update-row.md | 18 ++++++++++ .../server-kotlin/kotlin/grids/update-rows.md | 17 ++++++++++ .../kotlin/grids/update-string-column.md | 20 +++++++++++ .../kotlin/grids/update-table.md | 19 +++++++++++ .../kotlin/grids/update-url-column.md | 19 +++++++++++ .../server-kotlin/kotlin/grids/upsert-row.md | 18 ++++++++++ .../server-kotlin/kotlin/grids/upsert-rows.md | 16 +++++++++ .../examples/grids/create-boolean-column.md | 17 ++++++++++ .../examples/grids/create-database.md | 14 ++++++++ .../examples/grids/create-datetime-column.md | 17 ++++++++++ .../examples/grids/create-email-column.md | 17 ++++++++++ .../examples/grids/create-enum-column.md | 18 ++++++++++ .../examples/grids/create-float-column.md | 19 +++++++++++ .../examples/grids/create-index.md | 18 ++++++++++ .../examples/grids/create-integer-column.md | 19 +++++++++++ .../examples/grids/create-ip-column.md | 17 ++++++++++ .../grids/create-relationship-column.md | 19 +++++++++++ .../examples/grids/create-row.md | 16 +++++++++ .../examples/grids/create-rows.md | 14 ++++++++ .../examples/grids/create-string-column.md | 19 +++++++++++ .../examples/grids/create-table.md | 17 ++++++++++ .../examples/grids/create-url-column.md | 17 ++++++++++ .../examples/grids/decrement-row-column.md | 17 ++++++++++ .../examples/grids/delete-column.md | 14 ++++++++ .../examples/grids/delete-database.md | 12 +++++++ .../examples/grids/delete-index.md | 14 ++++++++ .../examples/grids/delete-row.md | 14 ++++++++ .../examples/grids/delete-rows.md | 14 ++++++++ .../examples/grids/delete-table.md | 13 ++++++++ .../examples/grids/get-column.md | 14 ++++++++ .../examples/grids/get-database.md | 12 +++++++ .../server-nodejs/examples/grids/get-index.md | 14 ++++++++ .../server-nodejs/examples/grids/get-row.md | 15 +++++++++ .../server-nodejs/examples/grids/get-table.md | 13 ++++++++ .../examples/grids/increment-row-column.md | 17 ++++++++++ .../examples/grids/list-columns.md | 14 ++++++++ .../examples/grids/list-databases.md | 13 ++++++++ .../examples/grids/list-indexes.md | 14 ++++++++ .../server-nodejs/examples/grids/list-rows.md | 14 ++++++++ .../examples/grids/list-tables.md | 14 ++++++++ .../examples/grids/update-boolean-column.md | 17 ++++++++++ .../examples/grids/update-database.md | 14 ++++++++ .../examples/grids/update-datetime-column.md | 17 ++++++++++ .../examples/grids/update-email-column.md | 17 ++++++++++ .../examples/grids/update-enum-column.md | 18 ++++++++++ .../examples/grids/update-float-column.md | 19 +++++++++++ .../examples/grids/update-integer-column.md | 19 +++++++++++ .../examples/grids/update-ip-column.md | 17 ++++++++++ .../grids/update-relationship-column.md | 16 +++++++++ .../examples/grids/update-row.md | 16 +++++++++ .../examples/grids/update-rows.md | 15 +++++++++ .../examples/grids/update-string-column.md | 18 ++++++++++ .../examples/grids/update-table.md | 17 ++++++++++ .../examples/grids/update-url-column.md | 17 ++++++++++ .../examples/grids/upsert-row.md | 16 +++++++++ .../examples/grids/upsert-rows.md | 14 ++++++++ .../examples/grids/create-boolean-column.md | 20 +++++++++++ .../examples/grids/create-database.md | 17 ++++++++++ .../examples/grids/create-datetime-column.md | 20 +++++++++++ .../examples/grids/create-email-column.md | 20 +++++++++++ .../examples/grids/create-enum-column.md | 21 ++++++++++++ .../examples/grids/create-float-column.md | 22 +++++++++++++ .../server-php/examples/grids/create-index.md | 22 +++++++++++++ .../examples/grids/create-integer-column.md | 22 +++++++++++++ .../examples/grids/create-ip-column.md | 20 +++++++++++ .../grids/create-relationship-column.md | 23 +++++++++++++ .../server-php/examples/grids/create-row.md | 19 +++++++++++ .../server-php/examples/grids/create-rows.md | 17 ++++++++++ .../examples/grids/create-string-column.md | 22 +++++++++++++ .../server-php/examples/grids/create-table.md | 20 +++++++++++ .../examples/grids/create-url-column.md | 20 +++++++++++ .../examples/grids/decrement-row-column.md | 20 +++++++++++ .../examples/grids/delete-column.md | 17 ++++++++++ .../examples/grids/delete-database.md | 15 +++++++++ .../server-php/examples/grids/delete-index.md | 17 ++++++++++ .../server-php/examples/grids/delete-row.md | 17 ++++++++++ .../server-php/examples/grids/delete-rows.md | 17 ++++++++++ .../server-php/examples/grids/delete-table.md | 16 +++++++++ .../server-php/examples/grids/get-column.md | 17 ++++++++++ .../server-php/examples/grids/get-database.md | 15 +++++++++ .../server-php/examples/grids/get-index.md | 17 ++++++++++ .../server-php/examples/grids/get-row.md | 18 ++++++++++ .../server-php/examples/grids/get-table.md | 16 +++++++++ .../examples/grids/increment-row-column.md | 20 +++++++++++ .../server-php/examples/grids/list-columns.md | 17 ++++++++++ .../examples/grids/list-databases.md | 16 +++++++++ .../server-php/examples/grids/list-indexes.md | 17 ++++++++++ .../server-php/examples/grids/list-rows.md | 17 ++++++++++ .../server-php/examples/grids/list-tables.md | 17 ++++++++++ .../examples/grids/update-boolean-column.md | 20 +++++++++++ .../examples/grids/update-database.md | 17 ++++++++++ .../examples/grids/update-datetime-column.md | 20 +++++++++++ .../examples/grids/update-email-column.md | 20 +++++++++++ .../examples/grids/update-enum-column.md | 21 ++++++++++++ .../examples/grids/update-float-column.md | 22 +++++++++++++ .../examples/grids/update-integer-column.md | 22 +++++++++++++ .../examples/grids/update-ip-column.md | 20 +++++++++++ .../grids/update-relationship-column.md | 19 +++++++++++ .../server-php/examples/grids/update-row.md | 19 +++++++++++ .../server-php/examples/grids/update-rows.md | 18 ++++++++++ .../examples/grids/update-string-column.md | 21 ++++++++++++ .../server-php/examples/grids/update-table.md | 20 +++++++++++ .../examples/grids/update-url-column.md | 20 +++++++++++ .../server-php/examples/grids/upsert-row.md | 19 +++++++++++ .../server-php/examples/grids/upsert-rows.md | 17 ++++++++++ .../examples/grids/create-boolean-column.md | 18 ++++++++++ .../examples/grids/create-database.md | 15 +++++++++ .../examples/grids/create-datetime-column.md | 18 ++++++++++ .../examples/grids/create-email-column.md | 18 ++++++++++ .../examples/grids/create-enum-column.md | 19 +++++++++++ .../examples/grids/create-float-column.md | 20 +++++++++++ .../examples/grids/create-index.md | 20 +++++++++++ .../examples/grids/create-integer-column.md | 20 +++++++++++ .../examples/grids/create-ip-column.md | 18 ++++++++++ .../grids/create-relationship-column.md | 21 ++++++++++++ .../examples/grids/create-row.md | 17 ++++++++++ .../examples/grids/create-rows.md | 15 +++++++++ .../examples/grids/create-string-column.md | 20 +++++++++++ .../examples/grids/create-table.md | 18 ++++++++++ .../examples/grids/create-url-column.md | 18 ++++++++++ .../examples/grids/decrement-row-column.md | 18 ++++++++++ .../examples/grids/delete-column.md | 15 +++++++++ .../examples/grids/delete-database.md | 13 ++++++++ .../examples/grids/delete-index.md | 15 +++++++++ .../examples/grids/delete-row.md | 15 +++++++++ .../examples/grids/delete-rows.md | 15 +++++++++ .../examples/grids/delete-table.md | 14 ++++++++ .../examples/grids/get-column.md | 15 +++++++++ .../examples/grids/get-database.md | 13 ++++++++ .../server-python/examples/grids/get-index.md | 15 +++++++++ .../server-python/examples/grids/get-row.md | 16 +++++++++ .../server-python/examples/grids/get-table.md | 14 ++++++++ .../examples/grids/increment-row-column.md | 18 ++++++++++ .../examples/grids/list-columns.md | 15 +++++++++ .../examples/grids/list-databases.md | 14 ++++++++ .../examples/grids/list-indexes.md | 15 +++++++++ .../server-python/examples/grids/list-rows.md | 15 +++++++++ .../examples/grids/list-tables.md | 15 +++++++++ .../examples/grids/update-boolean-column.md | 18 ++++++++++ .../examples/grids/update-database.md | 15 +++++++++ .../examples/grids/update-datetime-column.md | 18 ++++++++++ .../examples/grids/update-email-column.md | 18 ++++++++++ .../examples/grids/update-enum-column.md | 19 +++++++++++ .../examples/grids/update-float-column.md | 20 +++++++++++ .../examples/grids/update-integer-column.md | 20 +++++++++++ .../examples/grids/update-ip-column.md | 18 ++++++++++ .../grids/update-relationship-column.md | 17 ++++++++++ .../examples/grids/update-row.md | 17 ++++++++++ .../examples/grids/update-rows.md | 16 +++++++++ .../examples/grids/update-string-column.md | 19 +++++++++++ .../examples/grids/update-table.md | 18 ++++++++++ .../examples/grids/update-url-column.md | 18 ++++++++++ .../examples/grids/upsert-row.md | 17 ++++++++++ .../examples/grids/upsert-rows.md | 15 +++++++++ .../examples/grids/create-boolean-column.md | 13 ++++++++ .../examples/grids/create-database.md | 12 +++++++ .../examples/grids/create-datetime-column.md | 13 ++++++++ .../examples/grids/create-email-column.md | 13 ++++++++ .../examples/grids/create-enum-column.md | 14 ++++++++ .../examples/grids/create-float-column.md | 15 +++++++++ .../examples/grids/create-index.md | 14 ++++++++ .../examples/grids/create-integer-column.md | 15 +++++++++ .../examples/grids/create-ip-column.md | 13 ++++++++ .../grids/create-relationship-column.md | 15 +++++++++ .../server-rest/examples/grids/create-row.md | 14 ++++++++ .../server-rest/examples/grids/create-rows.md | 12 +++++++ .../examples/grids/create-string-column.md | 15 +++++++++ .../examples/grids/create-table.md | 14 ++++++++ .../examples/grids/create-url-column.md | 13 ++++++++ .../examples/grids/decrement-row-column.md | 11 +++++++ .../examples/grids/delete-column.md | 7 ++++ .../examples/grids/delete-database.md | 7 ++++ .../examples/grids/delete-index.md | 7 ++++ .../server-rest/examples/grids/delete-row.md | 9 +++++ .../server-rest/examples/grids/delete-rows.md | 10 ++++++ .../examples/grids/delete-table.md | 7 ++++ .../server-rest/examples/grids/get-column.md | 5 +++ .../examples/grids/get-database.md | 5 +++ .../server-rest/examples/grids/get-index.md | 5 +++ .../server-rest/examples/grids/get-row.md | 7 ++++ .../server-rest/examples/grids/get-table.md | 5 +++ .../examples/grids/increment-row-column.md | 11 +++++++ .../examples/grids/list-columns.md | 5 +++ .../examples/grids/list-databases.md | 5 +++ .../examples/grids/list-indexes.md | 5 +++ .../server-rest/examples/grids/list-rows.md | 7 ++++ .../server-rest/examples/grids/list-tables.md | 5 +++ .../examples/grids/update-boolean-column.md | 12 +++++++ .../examples/grids/update-database.md | 11 +++++++ .../examples/grids/update-datetime-column.md | 12 +++++++ .../examples/grids/update-email-column.md | 12 +++++++ .../examples/grids/update-enum-column.md | 13 ++++++++ .../examples/grids/update-float-column.md | 14 ++++++++ .../examples/grids/update-integer-column.md | 14 ++++++++ .../examples/grids/update-ip-column.md | 12 +++++++ .../grids/update-relationship-column.md | 11 +++++++ .../server-rest/examples/grids/update-row.md | 13 ++++++++ .../server-rest/examples/grids/update-rows.md | 11 +++++++ .../examples/grids/update-string-column.md | 13 ++++++++ .../examples/grids/update-table.md | 13 ++++++++ .../examples/grids/update-url-column.md | 12 +++++++ .../server-rest/examples/grids/upsert-row.md | 13 ++++++++ .../server-rest/examples/grids/upsert-rows.md | 10 ++++++ .../examples/grids/create-boolean-column.md | 19 +++++++++++ .../examples/grids/create-database.md | 16 +++++++++ .../examples/grids/create-datetime-column.md | 19 +++++++++++ .../examples/grids/create-email-column.md | 19 +++++++++++ .../examples/grids/create-enum-column.md | 20 +++++++++++ .../examples/grids/create-float-column.md | 21 ++++++++++++ .../examples/grids/create-index.md | 21 ++++++++++++ .../examples/grids/create-integer-column.md | 21 ++++++++++++ .../examples/grids/create-ip-column.md | 19 +++++++++++ .../grids/create-relationship-column.md | 22 +++++++++++++ .../server-ruby/examples/grids/create-row.md | 18 ++++++++++ .../server-ruby/examples/grids/create-rows.md | 16 +++++++++ .../examples/grids/create-string-column.md | 21 ++++++++++++ .../examples/grids/create-table.md | 19 +++++++++++ .../examples/grids/create-url-column.md | 19 +++++++++++ .../examples/grids/decrement-row-column.md | 19 +++++++++++ .../examples/grids/delete-column.md | 16 +++++++++ .../examples/grids/delete-database.md | 14 ++++++++ .../examples/grids/delete-index.md | 16 +++++++++ .../server-ruby/examples/grids/delete-row.md | 16 +++++++++ .../server-ruby/examples/grids/delete-rows.md | 16 +++++++++ .../examples/grids/delete-table.md | 15 +++++++++ .../server-ruby/examples/grids/get-column.md | 16 +++++++++ .../examples/grids/get-database.md | 14 ++++++++ .../server-ruby/examples/grids/get-index.md | 16 +++++++++ .../server-ruby/examples/grids/get-row.md | 17 ++++++++++ .../server-ruby/examples/grids/get-table.md | 15 +++++++++ .../examples/grids/increment-row-column.md | 19 +++++++++++ .../examples/grids/list-columns.md | 16 +++++++++ .../examples/grids/list-databases.md | 15 +++++++++ .../examples/grids/list-indexes.md | 16 +++++++++ .../server-ruby/examples/grids/list-rows.md | 16 +++++++++ .../server-ruby/examples/grids/list-tables.md | 16 +++++++++ .../examples/grids/update-boolean-column.md | 19 +++++++++++ .../examples/grids/update-database.md | 16 +++++++++ .../examples/grids/update-datetime-column.md | 19 +++++++++++ .../examples/grids/update-email-column.md | 19 +++++++++++ .../examples/grids/update-enum-column.md | 20 +++++++++++ .../examples/grids/update-float-column.md | 21 ++++++++++++ .../examples/grids/update-integer-column.md | 21 ++++++++++++ .../examples/grids/update-ip-column.md | 19 +++++++++++ .../grids/update-relationship-column.md | 18 ++++++++++ .../server-ruby/examples/grids/update-row.md | 18 ++++++++++ .../server-ruby/examples/grids/update-rows.md | 17 ++++++++++ .../examples/grids/update-string-column.md | 20 +++++++++++ .../examples/grids/update-table.md | 19 +++++++++++ .../examples/grids/update-url-column.md | 19 +++++++++++ .../server-ruby/examples/grids/upsert-row.md | 18 ++++++++++ .../server-ruby/examples/grids/upsert-rows.md | 16 +++++++++ .../examples/grids/create-boolean-column.md | 18 ++++++++++ .../examples/grids/create-database.md | 15 +++++++++ .../examples/grids/create-datetime-column.md | 18 ++++++++++ .../examples/grids/create-email-column.md | 18 ++++++++++ .../examples/grids/create-enum-column.md | 19 +++++++++++ .../examples/grids/create-float-column.md | 20 +++++++++++ .../examples/grids/create-index.md | 20 +++++++++++ .../examples/grids/create-integer-column.md | 20 +++++++++++ .../examples/grids/create-ip-column.md | 18 ++++++++++ .../grids/create-relationship-column.md | 21 ++++++++++++ .../server-swift/examples/grids/create-row.md | 17 ++++++++++ .../examples/grids/create-rows.md | 15 +++++++++ .../examples/grids/create-string-column.md | 20 +++++++++++ .../examples/grids/create-table.md | 18 ++++++++++ .../examples/grids/create-url-column.md | 18 ++++++++++ .../examples/grids/decrement-row-column.md | 18 ++++++++++ .../examples/grids/delete-column.md | 15 +++++++++ .../examples/grids/delete-database.md | 13 ++++++++ .../examples/grids/delete-index.md | 15 +++++++++ .../server-swift/examples/grids/delete-row.md | 15 +++++++++ .../examples/grids/delete-rows.md | 15 +++++++++ .../examples/grids/delete-table.md | 14 ++++++++ .../server-swift/examples/grids/get-column.md | 15 +++++++++ .../examples/grids/get-database.md | 13 ++++++++ .../server-swift/examples/grids/get-index.md | 15 +++++++++ .../server-swift/examples/grids/get-row.md | 16 +++++++++ .../server-swift/examples/grids/get-table.md | 14 ++++++++ .../examples/grids/increment-row-column.md | 18 ++++++++++ .../examples/grids/list-columns.md | 15 +++++++++ .../examples/grids/list-databases.md | 14 ++++++++ .../examples/grids/list-indexes.md | 15 +++++++++ .../server-swift/examples/grids/list-rows.md | 15 +++++++++ .../examples/grids/list-tables.md | 15 +++++++++ .../examples/grids/update-boolean-column.md | 18 ++++++++++ .../examples/grids/update-database.md | 15 +++++++++ .../examples/grids/update-datetime-column.md | 18 ++++++++++ .../examples/grids/update-email-column.md | 18 ++++++++++ .../examples/grids/update-enum-column.md | 19 +++++++++++ .../examples/grids/update-float-column.md | 20 +++++++++++ .../examples/grids/update-integer-column.md | 20 +++++++++++ .../examples/grids/update-ip-column.md | 18 ++++++++++ .../grids/update-relationship-column.md | 18 ++++++++++ .../server-swift/examples/grids/update-row.md | 17 ++++++++++ .../examples/grids/update-rows.md | 16 +++++++++ .../examples/grids/update-string-column.md | 19 +++++++++++ .../examples/grids/update-table.md | 18 ++++++++++ .../examples/grids/update-url-column.md | 18 ++++++++++ .../server-swift/examples/grids/upsert-row.md | 17 ++++++++++ .../examples/grids/upsert-rows.md | 15 +++++++++ 795 files changed, 13581 insertions(+) create mode 100644 docs/examples/1.8.x/client-android/java/grids/create-row.md create mode 100644 docs/examples/1.8.x/client-android/java/grids/delete-row.md create mode 100644 docs/examples/1.8.x/client-android/java/grids/get-row.md create mode 100644 docs/examples/1.8.x/client-android/java/grids/list-rows.md create mode 100644 docs/examples/1.8.x/client-android/java/grids/update-row.md create mode 100644 docs/examples/1.8.x/client-android/java/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/create-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/get-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/update-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/client-apple/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/client-rest/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/client-web/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-database.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-index.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-table.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-database.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-index.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-table.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-database.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-index.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-table.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-columns.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-databases.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-tables.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-database.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-table.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md diff --git a/docs/examples/1.8.x/client-android/java/grids/create-row.md b/docs/examples/1.8.x/client-android/java/grids/create-row.md new file mode 100644 index 0000000000..93cea1f09c --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/create-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.createRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/delete-row.md b/docs/examples/1.8.x/client-android/java/grids/delete-row.md new file mode 100644 index 0000000000..a73c03a06e --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/delete-row.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.deleteRow( + "", // databaseId + "", // tableId + "", // rowId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/get-row.md b/docs/examples/1.8.x/client-android/java/grids/get-row.md new file mode 100644 index 0000000000..4968759d6b --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/get-row.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.getRow( + "", // databaseId + "", // tableId + "", // rowId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/list-rows.md b/docs/examples/1.8.x/client-android/java/grids/list-rows.md new file mode 100644 index 0000000000..55336dc452 --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/list-rows.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.listRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/update-row.md b/docs/examples/1.8.x/client-android/java/grids/update-row.md new file mode 100644 index 0000000000..23dc0907eb --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/update-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.updateRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/upsert-row.md b/docs/examples/1.8.x/client-android/java/grids/upsert-row.md new file mode 100644 index 0000000000..3938fde103 --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/upsert-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.upsertRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md new file mode 100644 index 0000000000..5b29ac0db0 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.createRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md new file mode 100644 index 0000000000..e85ff6c4ad --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.deleteRow( + databaseId = "", + tableId = "", + rowId = "", +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md new file mode 100644 index 0000000000..0b6c313645 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.getRow( + databaseId = "", + tableId = "", + rowId = "", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md b/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md new file mode 100644 index 0000000000..153e62787f --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.listRows( + databaseId = "", + tableId = "", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md new file mode 100644 index 0000000000..8dff0b157c --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.updateRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // (optional) + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md new file mode 100644 index 0000000000..a6f5bb846e --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.upsertRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // (optional) + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/grids/create-row.md b/docs/examples/1.8.x/client-apple/examples/grids/create-row.md new file mode 100644 index 0000000000..0739b27949 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/create-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let row = try await grids.createRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md b/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md new file mode 100644 index 0000000000..58ae835ec5 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let result = try await grids.deleteRow( + databaseId: "", + tableId: "", + rowId: "" +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/get-row.md b/docs/examples/1.8.x/client-apple/examples/grids/get-row.md new file mode 100644 index 0000000000..fccdad1f34 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/get-row.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let row = try await grids.getRow( + databaseId: "", + tableId: "", + rowId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md b/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md new file mode 100644 index 0000000000..1b4d885a64 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let rowList = try await grids.listRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/update-row.md b/docs/examples/1.8.x/client-apple/examples/grids/update-row.md new file mode 100644 index 0000000000..95a3611a92 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/update-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let row = try await grids.updateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md new file mode 100644 index 0000000000..c5638a4881 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let row = try await grids.upsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md new file mode 100644 index 0000000000..2f80a01806 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +Row result = await grids.createRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md new file mode 100644 index 0000000000..04f5aec544 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +await grids.deleteRow( + databaseId: '', + tableId: '', + rowId: '', +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md new file mode 100644 index 0000000000..a8a380ee7c --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +Row result = await grids.getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md b/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md new file mode 100644 index 0000000000..6654c57aaa --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +RowList result = await grids.listRows( + databaseId: '', + tableId: '', + queries: [], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md new file mode 100644 index 0000000000..293f38877a --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +Row result = await grids.updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // optional + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md new file mode 100644 index 0000000000..2cec5621b7 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +Row result = await grids.upsertRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // optional + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md new file mode 100644 index 0000000000..cffb7361f2 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md @@ -0,0 +1,18 @@ +mutation { + gridsCreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md new file mode 100644 index 0000000000..40dcbdc219 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md @@ -0,0 +1,9 @@ +mutation { + gridsDeleteRow( + databaseId: "", + tableId: "", + rowId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/get-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/get-row.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md b/docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md new file mode 100644 index 0000000000..2bb105e8c0 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md @@ -0,0 +1,18 @@ +mutation { + gridsUpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md new file mode 100644 index 0000000000..f8e0606109 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md @@ -0,0 +1,18 @@ +mutation { + gridsUpsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md new file mode 100644 index 0000000000..9fdbce2dd9 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md new file mode 100644 index 0000000000..33a5a50a69 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md new file mode 100644 index 0000000000..7df0636b2e --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md b/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md new file mode 100644 index 0000000000..3fd58773ef --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md new file mode 100644 index 0000000000..39b147758f --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md new file mode 100644 index 0000000000..54443a6a4d --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/grids/create-row.md b/docs/examples/1.8.x/client-rest/examples/grids/create-row.md new file mode 100644 index 0000000000..98b261ecba --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/create-row.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "rowId": "", + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md b/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md new file mode 100644 index 0000000000..6f702a8526 --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md @@ -0,0 +1,8 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + diff --git a/docs/examples/1.8.x/client-rest/examples/grids/get-row.md b/docs/examples/1.8.x/client-rest/examples/grids/get-row.md new file mode 100644 index 0000000000..876fe0f796 --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/get-row.md @@ -0,0 +1,6 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md b/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md new file mode 100644 index 0000000000..86751cfcaf --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md @@ -0,0 +1,6 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/update-row.md b/docs/examples/1.8.x/client-rest/examples/grids/update-row.md new file mode 100644 index 0000000000..bacfb5389a --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/update-row.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md new file mode 100644 index 0000000000..7368fc436d --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md @@ -0,0 +1,12 @@ +PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-web/examples/grids/create-row.md b/docs/examples/1.8.x/client-web/examples/grids/create-row.md new file mode 100644 index 0000000000..9dc6de2769 --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/create-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/delete-row.md b/docs/examples/1.8.x/client-web/examples/grids/delete-row.md new file mode 100644 index 0000000000..7d3fb7df7e --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/get-row.md b/docs/examples/1.8.x/client-web/examples/grids/get-row.md new file mode 100644 index 0000000000..778377b61b --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/get-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/list-rows.md b/docs/examples/1.8.x/client-web/examples/grids/list-rows.md new file mode 100644 index 0000000000..07de125329 --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/update-row.md b/docs/examples/1.8.x/client-web/examples/grids/update-row.md new file mode 100644 index 0000000000..f37659e3ca --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/update-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md new file mode 100644 index 0000000000..8850c27ebd --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..3a26ed2935 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md @@ -0,0 +1,7 @@ +appwrite grids createBooleanColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-database.md b/docs/examples/1.8.x/console-cli/examples/grids/create-database.md new file mode 100644 index 0000000000..741d5f83ee --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-database.md @@ -0,0 +1,4 @@ +appwrite grids createDatabase \ + --databaseId \ + --name \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..1efced687d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md @@ -0,0 +1,7 @@ +appwrite grids createDatetimeColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md new file mode 100644 index 0000000000..f0758d2753 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md @@ -0,0 +1,7 @@ +appwrite grids createEmailColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..e6ca5fdbd6 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md @@ -0,0 +1,8 @@ +appwrite grids createEnumColumn \ + --databaseId \ + --tableId \ + --key '' \ + --elements one two three \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md new file mode 100644 index 0000000000..a17535614d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md @@ -0,0 +1,9 @@ +appwrite grids createFloatColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-index.md b/docs/examples/1.8.x/console-cli/examples/grids/create-index.md new file mode 100644 index 0000000000..9b92ecc614 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-index.md @@ -0,0 +1,8 @@ +appwrite grids createIndex \ + --databaseId \ + --tableId \ + --key '' \ + --type key \ + --columns one two three \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..0e7d408fea --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md @@ -0,0 +1,9 @@ +appwrite grids createIntegerColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..bc16e6b9a7 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md @@ -0,0 +1,7 @@ +appwrite grids createIpColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..d60fd4516a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md @@ -0,0 +1,9 @@ +appwrite grids createRelationshipColumn \ + --databaseId \ + --tableId \ + --relatedTableId \ + --type oneToOne \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-row.md b/docs/examples/1.8.x/console-cli/examples/grids/create-row.md new file mode 100644 index 0000000000..f59ac8253c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-row.md @@ -0,0 +1,6 @@ +appwrite grids createRow \ + --databaseId \ + --tableId \ + --rowId \ + --data '{ "key": "value" }' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md new file mode 100644 index 0000000000..8d89674dc6 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md @@ -0,0 +1,4 @@ +appwrite grids createRows \ + --databaseId \ + --tableId \ + --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md new file mode 100644 index 0000000000..658bedec06 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md @@ -0,0 +1,9 @@ +appwrite grids createStringColumn \ + --databaseId \ + --tableId \ + --key '' \ + --size 1 \ + --required false \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-table.md b/docs/examples/1.8.x/console-cli/examples/grids/create-table.md new file mode 100644 index 0000000000..9e707fde1c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-table.md @@ -0,0 +1,7 @@ +appwrite grids createTable \ + --databaseId \ + --tableId \ + --name \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md new file mode 100644 index 0000000000..88adbdbb5d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md @@ -0,0 +1,7 @@ +appwrite grids createUrlColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..f3c1a50c2d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md @@ -0,0 +1,7 @@ +appwrite grids decrementRowColumn \ + --databaseId \ + --tableId \ + --rowId \ + --column '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md new file mode 100644 index 0000000000..0b60af67cc --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md @@ -0,0 +1,4 @@ +appwrite grids deleteColumn \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md new file mode 100644 index 0000000000..c5e0ad3c63 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md @@ -0,0 +1,2 @@ +appwrite grids deleteDatabase \ + --databaseId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md new file mode 100644 index 0000000000..0a1f6dc404 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md @@ -0,0 +1,4 @@ +appwrite grids deleteIndex \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md new file mode 100644 index 0000000000..b360f6919a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md @@ -0,0 +1,4 @@ +appwrite grids deleteRow \ + --databaseId \ + --tableId \ + --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md new file mode 100644 index 0000000000..46b768f28d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md @@ -0,0 +1,4 @@ +appwrite grids deleteRows \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md new file mode 100644 index 0000000000..416a07052d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md @@ -0,0 +1,3 @@ +appwrite grids deleteTable \ + --databaseId \ + --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-column.md b/docs/examples/1.8.x/console-cli/examples/grids/get-column.md new file mode 100644 index 0000000000..f875d56d33 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-column.md @@ -0,0 +1,4 @@ +appwrite grids getColumn \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md new file mode 100644 index 0000000000..0c35ea978d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md @@ -0,0 +1,3 @@ +appwrite grids getDatabaseUsage \ + --databaseId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-database.md b/docs/examples/1.8.x/console-cli/examples/grids/get-database.md new file mode 100644 index 0000000000..f2232bb5c0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-database.md @@ -0,0 +1,2 @@ +appwrite grids getDatabase \ + --databaseId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-index.md b/docs/examples/1.8.x/console-cli/examples/grids/get-index.md new file mode 100644 index 0000000000..6f88f74c23 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-index.md @@ -0,0 +1,4 @@ +appwrite grids getIndex \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-row.md b/docs/examples/1.8.x/console-cli/examples/grids/get-row.md new file mode 100644 index 0000000000..73cc207eec --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-row.md @@ -0,0 +1,5 @@ +appwrite grids getRow \ + --databaseId \ + --tableId \ + --rowId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md new file mode 100644 index 0000000000..e4002ec61e --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md @@ -0,0 +1,4 @@ +appwrite grids getTableUsage \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-table.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table.md new file mode 100644 index 0000000000..e44c98ad83 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-table.md @@ -0,0 +1,3 @@ +appwrite grids getTable \ + --databaseId \ + --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md b/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..b4b84b6392 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md @@ -0,0 +1,7 @@ +appwrite grids incrementRowColumn \ + --databaseId \ + --tableId \ + --rowId \ + --column '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md b/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md new file mode 100644 index 0000000000..968643bb6c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md @@ -0,0 +1,4 @@ +appwrite grids listColumns \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md new file mode 100644 index 0000000000..c135a2b358 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md @@ -0,0 +1,3 @@ +appwrite grids listDatabaseLogs \ + --databaseId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md new file mode 100644 index 0000000000..f13c4e4e0a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md @@ -0,0 +1,2 @@ +appwrite grids listDatabaseUsage \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md b/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md new file mode 100644 index 0000000000..11d448043a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md @@ -0,0 +1,3 @@ +appwrite grids listDatabases \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md new file mode 100644 index 0000000000..85df307deb --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md @@ -0,0 +1,4 @@ +appwrite grids listIndexes \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md new file mode 100644 index 0000000000..3a073e4708 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md @@ -0,0 +1,5 @@ +appwrite grids listRowLogs \ + --databaseId \ + --tableId \ + --rowId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md new file mode 100644 index 0000000000..99bf470bfb --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md @@ -0,0 +1,4 @@ +appwrite grids listRows \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md new file mode 100644 index 0000000000..e38af040a6 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md @@ -0,0 +1,4 @@ +appwrite grids listTableLogs \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md b/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md new file mode 100644 index 0000000000..69f464ba86 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md @@ -0,0 +1,4 @@ +appwrite grids listTables \ + --databaseId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..a980b12aa0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md @@ -0,0 +1,7 @@ +appwrite grids updateBooleanColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default false \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-database.md b/docs/examples/1.8.x/console-cli/examples/grids/update-database.md new file mode 100644 index 0000000000..079e88dfd0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-database.md @@ -0,0 +1,4 @@ +appwrite grids updateDatabase \ + --databaseId \ + --name \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..97ee021e80 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md @@ -0,0 +1,7 @@ +appwrite grids updateDatetimeColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default '' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md new file mode 100644 index 0000000000..d8b0827d62 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md @@ -0,0 +1,7 @@ +appwrite grids updateEmailColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default email@example.com \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..82eb62f996 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md @@ -0,0 +1,8 @@ +appwrite grids updateEnumColumn \ + --databaseId \ + --tableId \ + --key '' \ + --elements one two three \ + --required false \ + --default \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md new file mode 100644 index 0000000000..ef3a4ad36f --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md @@ -0,0 +1,9 @@ +appwrite grids updateFloatColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default null \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..5b83ca938b --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md @@ -0,0 +1,9 @@ +appwrite grids updateIntegerColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default null \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..b0e6b8cf3a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md @@ -0,0 +1,7 @@ +appwrite grids updateIpColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default '' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..00ddda788c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md @@ -0,0 +1,6 @@ +appwrite grids updateRelationshipColumn \ + --databaseId \ + --tableId \ + --key '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-row.md b/docs/examples/1.8.x/console-cli/examples/grids/update-row.md new file mode 100644 index 0000000000..b89566b570 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-row.md @@ -0,0 +1,6 @@ +appwrite grids updateRow \ + --databaseId \ + --tableId \ + --rowId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md new file mode 100644 index 0000000000..72c63ddb41 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md @@ -0,0 +1,5 @@ +appwrite grids updateRows \ + --databaseId \ + --tableId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md new file mode 100644 index 0000000000..a6b6280560 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md @@ -0,0 +1,8 @@ +appwrite grids updateStringColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-table.md b/docs/examples/1.8.x/console-cli/examples/grids/update-table.md new file mode 100644 index 0000000000..66e26b1752 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-table.md @@ -0,0 +1,7 @@ +appwrite grids updateTable \ + --databaseId \ + --tableId \ + --name \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md new file mode 100644 index 0000000000..ad41af9fa1 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md @@ -0,0 +1,7 @@ +appwrite grids updateUrlColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default https://example.com \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md b/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md new file mode 100644 index 0000000000..8a356e7a1e --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md @@ -0,0 +1,6 @@ +appwrite grids upsertRow \ + --databaseId \ + --tableId \ + --rowId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..e4e31c1e83 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md @@ -0,0 +1,4 @@ +appwrite grids upsertRows \ + --databaseId \ + --tableId \ + --rows one two three diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..5a61510aa7 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-database.md b/docs/examples/1.8.x/console-web/examples/grids/create-database.md new file mode 100644 index 0000000000..b7eeb33253 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-database.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..7580178d62 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md new file mode 100644 index 0000000000..9e44cbbd66 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..c596b1408a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md new file mode 100644 index 0000000000..d1b4c21898 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-index.md b/docs/examples/1.8.x/console-web/examples/grids/create-index.md new file mode 100644 index 0000000000..2c22cafde8 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-index.md @@ -0,0 +1,19 @@ +import { Client, Grids, IndexType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createIndex( + '', // databaseId + '', // tableId + '', // key + IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..709694e358 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..1691d3fc81 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..5536e26488 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md @@ -0,0 +1,20 @@ +import { Client, Grids, RelationshipType, RelationMutate } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + RelationMutate.Cascade // onDelete (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-row.md b/docs/examples/1.8.x/console-web/examples/grids/create-row.md new file mode 100644 index 0000000000..f5259cff2d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-rows.md b/docs/examples/1.8.x/console-web/examples/grids/create-rows.md new file mode 100644 index 0000000000..ff84c045cb --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRows( + '', // databaseId + '', // tableId + [] // rows +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md new file mode 100644 index 0000000000..4032caede0 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-table.md b/docs/examples/1.8.x/console-web/examples/grids/create-table.md new file mode 100644 index 0000000000..74227efe98 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-table.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md new file mode 100644 index 0000000000..4991da6cd6 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..6e0abb0ac8 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-column.md b/docs/examples/1.8.x/console-web/examples/grids/delete-column.md new file mode 100644 index 0000000000..8e46121f01 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-column.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-database.md b/docs/examples/1.8.x/console-web/examples/grids/delete-database.md new file mode 100644 index 0000000000..b34b4adfdb --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-database.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteDatabase( + '' // databaseId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-index.md b/docs/examples/1.8.x/console-web/examples/grids/delete-index.md new file mode 100644 index 0000000000..9e405de80f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-index.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-row.md b/docs/examples/1.8.x/console-web/examples/grids/delete-row.md new file mode 100644 index 0000000000..cc49130d4f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md b/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md new file mode 100644 index 0000000000..fdaa4278fa --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-table.md b/docs/examples/1.8.x/console-web/examples/grids/delete-table.md new file mode 100644 index 0000000000..1817122ec3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-table.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteTable( + '', // databaseId + '' // tableId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-column.md b/docs/examples/1.8.x/console-web/examples/grids/get-column.md new file mode 100644 index 0000000000..116cee2f24 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-column.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getColumn( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md new file mode 100644 index 0000000000..f961dc4fdf --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md @@ -0,0 +1,14 @@ +import { Client, Grids, DatabaseUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getDatabaseUsage( + '', // databaseId + DatabaseUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-database.md b/docs/examples/1.8.x/console-web/examples/grids/get-database.md new file mode 100644 index 0000000000..d41e9c2d45 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-database.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getDatabase( + '' // databaseId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-index.md b/docs/examples/1.8.x/console-web/examples/grids/get-index.md new file mode 100644 index 0000000000..34880a8c0e --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-index.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getIndex( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-row.md b/docs/examples/1.8.x/console-web/examples/grids/get-row.md new file mode 100644 index 0000000000..29b51f2225 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md new file mode 100644 index 0000000000..5684786fb7 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md @@ -0,0 +1,15 @@ +import { Client, Grids, GridUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getTableUsage( + '', // databaseId + '', // tableId + GridUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-table.md b/docs/examples/1.8.x/console-web/examples/grids/get-table.md new file mode 100644 index 0000000000..b98d321f28 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-table.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getTable( + '', // databaseId + '' // tableId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md b/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..5177cd6c08 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-columns.md b/docs/examples/1.8.x/console-web/examples/grids/list-columns.md new file mode 100644 index 0000000000..cd72e91daf --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-columns.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md new file mode 100644 index 0000000000..cf20dc6b49 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listDatabaseLogs( + '', // databaseId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md b/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md new file mode 100644 index 0000000000..09faf5f2f5 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md @@ -0,0 +1,13 @@ +import { Client, Grids, DatabaseUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listDatabaseUsage( + DatabaseUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-databases.md b/docs/examples/1.8.x/console-web/examples/grids/list-databases.md new file mode 100644 index 0000000000..871d29ebe8 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-databases.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listDatabases( + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md b/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md new file mode 100644 index 0000000000..b8755d0b82 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md new file mode 100644 index 0000000000..0fcde33520 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listRowLogs( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-rows.md b/docs/examples/1.8.x/console-web/examples/grids/list-rows.md new file mode 100644 index 0000000000..4eb3b71407 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md new file mode 100644 index 0000000000..e7f756886d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listTableLogs( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-tables.md b/docs/examples/1.8.x/console-web/examples/grids/list-tables.md new file mode 100644 index 0000000000..9288788dfe --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-tables.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listTables( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..84dd95cd41 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-database.md b/docs/examples/1.8.x/console-web/examples/grids/update-database.md new file mode 100644 index 0000000000..abd6b285fd --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-database.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..81fa471471 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md new file mode 100644 index 0000000000..3a63b0d4d3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..7c6d2e1b03 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md new file mode 100644 index 0000000000..6662f4b00f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..95c0510a1a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..e92db67751 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..bdfd71f71c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md @@ -0,0 +1,17 @@ +import { Client, Grids, RelationMutate } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-row.md b/docs/examples/1.8.x/console-web/examples/grids/update-row.md new file mode 100644 index 0000000000..a86f5fd58b --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-rows.md b/docs/examples/1.8.x/console-web/examples/grids/update-rows.md new file mode 100644 index 0000000000..939615a5bd --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-rows.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md new file mode 100644 index 0000000000..b0b92f041e --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-table.md b/docs/examples/1.8.x/console-web/examples/grids/update-table.md new file mode 100644 index 0000000000..8988133beb --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-table.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md new file mode 100644 index 0000000000..ecad0043a3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md b/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md new file mode 100644 index 0000000000..66764b001a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md b/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..b79a74d7e1 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.upsertRows( + '', // databaseId + '', // tableId + [] // rows +); + +console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..d462336207 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnBoolean result = await grids.createBooleanColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: false, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-database.md b/docs/examples/1.8.x/server-dart/examples/grids/create-database.md new file mode 100644 index 0000000000..d77e3747c9 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-database.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Database result = await grids.createDatabase( + databaseId: '', + name: '', + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..88365e0d0f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnDatetime result = await grids.createDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md new file mode 100644 index 0000000000..69d6c03d8f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnEmail result = await grids.createEmailColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'email@example.com', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..a3a1e3ff60 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnEnum result = await grids.createEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md new file mode 100644 index 0000000000..eba5e98ccc --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnFloat result = await grids.createFloatColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + min: 0, // (optional) + max: 0, // (optional) + xdefault: 0, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-index.md b/docs/examples/1.8.x/server-dart/examples/grids/create-index.md new file mode 100644 index 0000000000..4926b9ec83 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-index.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIndex result = await grids.createIndex( + databaseId: '', + tableId: '', + key: '', + type: IndexType.key, + columns: [], + orders: [], // (optional) + lengths: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..d5bfdf3144 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnInteger result = await grids.createIntegerColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + min: 0, // (optional) + max: 0, // (optional) + xdefault: 0, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..91b83fde8c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIp result = await grids.createIpColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..99f0427a85 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnRelationship result = await grids.createRelationshipColumn( + databaseId: '', + tableId: '', + relatedTableId: '', + type: RelationshipType.oneToOne, + twoWay: false, // (optional) + key: '', // (optional) + twoWayKey: '', // (optional) + onDelete: RelationMutate.cascade, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-row.md b/docs/examples/1.8.x/server-dart/examples/grids/create-row.md new file mode 100644 index 0000000000..4db0893686 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-row.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +Row result = await grids.createRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md new file mode 100644 index 0000000000..111d061c3e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +RowList result = await grids.createRows( + databaseId: '', + tableId: '', + rows: [], +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md new file mode 100644 index 0000000000..74b9cb7fa6 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnString result = await grids.createStringColumn( + databaseId: '', + tableId: '', + key: '', + size: 1, + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) + encrypt: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-table.md b/docs/examples/1.8.x/server-dart/examples/grids/create-table.md new file mode 100644 index 0000000000..1bb7afadd3 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-table.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Table result = await grids.createTable( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // (optional) + rowSecurity: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md new file mode 100644 index 0000000000..cc129fce97 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnUrl result = await grids.createUrlColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'https://example.com', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..ad0744dbc6 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Row result = await grids.decrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: 0, // (optional) + min: 0, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md new file mode 100644 index 0000000000..e326064f4f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteColumn( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md new file mode 100644 index 0000000000..0738454382 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteDatabase( + databaseId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md new file mode 100644 index 0000000000..14dbccb979 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteIndex( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md new file mode 100644 index 0000000000..8a37455490 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +await grids.deleteRow( + databaseId: '', + tableId: '', + rowId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md new file mode 100644 index 0000000000..dd2214fc68 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteRows( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md new file mode 100644 index 0000000000..af29d31b87 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteTable( + databaseId: '', + tableId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-column.md b/docs/examples/1.8.x/server-dart/examples/grids/get-column.md new file mode 100644 index 0000000000..4040124454 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-column.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + + result = await grids.getColumn( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-database.md b/docs/examples/1.8.x/server-dart/examples/grids/get-database.md new file mode 100644 index 0000000000..e8a674b1ab --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-database.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Database result = await grids.getDatabase( + databaseId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-index.md b/docs/examples/1.8.x/server-dart/examples/grids/get-index.md new file mode 100644 index 0000000000..6e66a55b37 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-index.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIndex result = await grids.getIndex( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-row.md b/docs/examples/1.8.x/server-dart/examples/grids/get-row.md new file mode 100644 index 0000000000..da2a609d32 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-row.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +Row result = await grids.getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-table.md b/docs/examples/1.8.x/server-dart/examples/grids/get-table.md new file mode 100644 index 0000000000..d38fca0455 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-table.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Table result = await grids.getTable( + databaseId: '', + tableId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..14c041404c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Row result = await grids.incrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: 0, // (optional) + max: 0, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md b/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md new file mode 100644 index 0000000000..222b5ba172 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnList result = await grids.listColumns( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md b/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md new file mode 100644 index 0000000000..14e2c78b63 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +DatabaseList result = await grids.listDatabases( + queries: [], // (optional) + search: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md new file mode 100644 index 0000000000..218c3e0ccc --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIndexList result = await grids.listIndexes( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md new file mode 100644 index 0000000000..49f2a7ef21 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +RowList result = await grids.listRows( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md b/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md new file mode 100644 index 0000000000..4f1e08b713 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +TableList result = await grids.listTables( + databaseId: '', + queries: [], // (optional) + search: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..e9e5a1fe32 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnBoolean result = await grids.updateBooleanColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: false, + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-database.md b/docs/examples/1.8.x/server-dart/examples/grids/update-database.md new file mode 100644 index 0000000000..d65a80185f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-database.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Database result = await grids.updateDatabase( + databaseId: '', + name: '', + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..6eb1bb6cbf --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnDatetime result = await grids.updateDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md new file mode 100644 index 0000000000..0fabb3e6a3 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnEmail result = await grids.updateEmailColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'email@example.com', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..5aa1613b75 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnEnum result = await grids.updateEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md new file mode 100644 index 0000000000..0326f3c6f8 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnFloat result = await grids.updateFloatColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..3572a064b3 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnInteger result = await grids.updateIntegerColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..a75ff07569 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIp result = await grids.updateIpColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..4ecb479124 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnRelationship result = await grids.updateRelationshipColumn( + databaseId: '', + tableId: '', + key: '', + onDelete: RelationMutate.cascade, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-row.md b/docs/examples/1.8.x/server-dart/examples/grids/update-row.md new file mode 100644 index 0000000000..f11cf400cb --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-row.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +Row result = await grids.updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // (optional) + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md new file mode 100644 index 0000000000..6dd4db1d3c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +RowList result = await grids.updateRows( + databaseId: '', + tableId: '', + data: {}, // (optional) + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md new file mode 100644 index 0000000000..2bc58912cb --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnString result = await grids.updateStringColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + size: 1, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-table.md b/docs/examples/1.8.x/server-dart/examples/grids/update-table.md new file mode 100644 index 0000000000..c5c497eddf --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-table.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Table result = await grids.updateTable( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // (optional) + rowSecurity: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md new file mode 100644 index 0000000000..79359f5436 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnUrl result = await grids.updateUrlColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'https://example.com', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md new file mode 100644 index 0000000000..e8a697664e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +Row result = await grids.upsertRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // (optional) + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..b12d6960f0 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +RowList result = await grids.upsertRows( + databaseId: '', + tableId: '', + rows: [], +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..7097a84ebe --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-database.md b/docs/examples/1.8.x/server-deno/examples/grids/create-database.md new file mode 100644 index 0000000000..3b1a67d75a --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-database.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..f33479cd2e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md new file mode 100644 index 0000000000..eec09fb453 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..df68204c8b --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md new file mode 100644 index 0000000000..e7fdc524dc --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-index.md b/docs/examples/1.8.x/server-deno/examples/grids/create-index.md new file mode 100644 index 0000000000..d1442d57be --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-index.md @@ -0,0 +1,18 @@ +import { Client, Grids, IndexType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createIndex( + '', // databaseId + '', // tableId + '', // key + IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..0dc377dff2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..222e262042 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..5cfc17ebbd --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md @@ -0,0 +1,19 @@ +import { Client, Grids, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + RelationMutate.Cascade // onDelete (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-row.md b/docs/examples/1.8.x/server-deno/examples/grids/create-row.md new file mode 100644 index 0000000000..0bf0ec7f09 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md new file mode 100644 index 0000000000..e5d81e6f68 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md new file mode 100644 index 0000000000..fb73a25faa --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-table.md b/docs/examples/1.8.x/server-deno/examples/grids/create-table.md new file mode 100644 index 0000000000..832b9c5218 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-table.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md new file mode 100644 index 0000000000..905d86c6cf --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..cd86f6f8f3 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md new file mode 100644 index 0000000000..d299323df6 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md new file mode 100644 index 0000000000..aad02459e4 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md @@ -0,0 +1,12 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteDatabase( + '' // databaseId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md new file mode 100644 index 0000000000..2354fc2485 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md new file mode 100644 index 0000000000..b62fd2145f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md new file mode 100644 index 0000000000..a1c75d7fd2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md new file mode 100644 index 0000000000..b7b09bc1ed --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteTable( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-column.md b/docs/examples/1.8.x/server-deno/examples/grids/get-column.md new file mode 100644 index 0000000000..cd78228565 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-column.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.getColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-database.md b/docs/examples/1.8.x/server-deno/examples/grids/get-database.md new file mode 100644 index 0000000000..c1fecfeff7 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-database.md @@ -0,0 +1,12 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.getDatabase( + '' // databaseId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-index.md b/docs/examples/1.8.x/server-deno/examples/grids/get-index.md new file mode 100644 index 0000000000..8f3a48aec2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-index.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.getIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-row.md b/docs/examples/1.8.x/server-deno/examples/grids/get-row.md new file mode 100644 index 0000000000..257b24b67e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-row.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-table.md b/docs/examples/1.8.x/server-deno/examples/grids/get-table.md new file mode 100644 index 0000000000..5b9c36ab44 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-table.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.getTable( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..d01174e938 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md b/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md new file mode 100644 index 0000000000..3e249e2782 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md b/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md new file mode 100644 index 0000000000..40ce554e50 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.listDatabases( + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md new file mode 100644 index 0000000000..e605c67cc6 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md new file mode 100644 index 0000000000..2416578d70 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md b/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md new file mode 100644 index 0000000000..f68d5465b5 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.listTables( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..22c0fe97f8 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-database.md b/docs/examples/1.8.x/server-deno/examples/grids/update-database.md new file mode 100644 index 0000000000..0fc883028e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-database.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..00cee55b33 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md new file mode 100644 index 0000000000..eb263b428f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..974dcc99cb --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md new file mode 100644 index 0000000000..c1375b015f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..c46dbb1994 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..2013e16429 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..5151a5c5bc --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md @@ -0,0 +1,16 @@ +import { Client, Grids, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-row.md b/docs/examples/1.8.x/server-deno/examples/grids/update-row.md new file mode 100644 index 0000000000..5e37a9cb90 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md new file mode 100644 index 0000000000..35dc58d22d --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md new file mode 100644 index 0000000000..ff0113baeb --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-table.md b/docs/examples/1.8.x/server-deno/examples/grids/update-table.md new file mode 100644 index 0000000000..ce01cd0fc7 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-table.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md new file mode 100644 index 0000000000..285f88fbfd --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md new file mode 100644 index 0000000000..33534265d5 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..8cd7218f17 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.upsertRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..e173d1189b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnBoolean result = await grids.CreateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md new file mode 100644 index 0000000000..7006f00d01 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Database result = await grids.CreateDatabase( + databaseId: "", + name: "", + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..b4e730fc6d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnDatetime result = await grids.CreateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md new file mode 100644 index 0000000000..bb2cad7dbd --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnEmail result = await grids.CreateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..4ce99366ad --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnEnum result = await grids.CreateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: new List(), + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md new file mode 100644 index 0000000000..3ecd76c367 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnFloat result = await grids.CreateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md new file mode 100644 index 0000000000..854ed47e81 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIndex result = await grids.CreateIndex( + databaseId: "", + tableId: "", + key: "", + type: IndexType.Key, + columns: new List(), + orders: new List(), // optional + lengths: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..ef13d5569c --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnInteger result = await grids.CreateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..bfaa594d49 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIp result = await grids.CreateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..614f5d4fec --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md @@ -0,0 +1,22 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnRelationship result = await grids.CreateRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: RelationshipType.OneToOne, + twoWay: false, // optional + key: "", // optional + twoWayKey: "", // optional + onDelete: RelationMutate.Cascade // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md new file mode 100644 index 0000000000..235c9b5c4e --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +Row result = await grids.CreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [object], + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md new file mode 100644 index 0000000000..42ee3ef6a2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +RowList result = await grids.CreateRows( + databaseId: "", + tableId: "", + rows: new List() +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md new file mode 100644 index 0000000000..ca00dcf32e --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnString result = await grids.CreateStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false, // optional + encrypt: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md new file mode 100644 index 0000000000..50fdfa878e --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Table result = await grids.CreateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md new file mode 100644 index 0000000000..8a4f69bd26 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnUrl result = await grids.CreateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..b17e902e45 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Row result = await grids.DecrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + min: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md new file mode 100644 index 0000000000..24f23546ba --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteColumn( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md new file mode 100644 index 0000000000..38f28a001a --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteDatabase( + databaseId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md new file mode 100644 index 0000000000..5a037e2a96 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteIndex( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md new file mode 100644 index 0000000000..13972747a8 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +await grids.DeleteRow( + databaseId: "", + tableId: "", + rowId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md new file mode 100644 index 0000000000..4ddd11b6d1 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteRows( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md new file mode 100644 index 0000000000..9741ac2c2e --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteTable( + databaseId: "", + tableId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md new file mode 100644 index 0000000000..2c6d7a3944 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + + result = await grids.GetColumn( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md new file mode 100644 index 0000000000..5aebe5104d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Database result = await grids.GetDatabase( + databaseId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md new file mode 100644 index 0000000000..ff99a21ed0 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIndex result = await grids.GetIndex( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md new file mode 100644 index 0000000000..c75e0e50d5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +Row result = await grids.GetRow( + databaseId: "", + tableId: "", + rowId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md new file mode 100644 index 0000000000..7fcecc6170 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Table result = await grids.GetTable( + databaseId: "", + tableId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..3e6d044905 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Row result = await grids.IncrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + max: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md new file mode 100644 index 0000000000..e8478c1d23 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnList result = await grids.ListColumns( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md new file mode 100644 index 0000000000..f37deb8ef2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +DatabaseList result = await grids.ListDatabases( + queries: new List(), // optional + search: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md new file mode 100644 index 0000000000..b6f3737b43 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIndexList result = await grids.ListIndexes( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md new file mode 100644 index 0000000000..a1a64fe256 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +RowList result = await grids.ListRows( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md new file mode 100644 index 0000000000..85f431b7ef --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +TableList result = await grids.ListTables( + databaseId: "", + queries: new List(), // optional + search: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..ff2376e403 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnBoolean result = await grids.UpdateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md new file mode 100644 index 0000000000..cd3b0a236d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Database result = await grids.UpdateDatabase( + databaseId: "", + name: "", + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..7b630922e8 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnDatetime result = await grids.UpdateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md new file mode 100644 index 0000000000..9ce04025ca --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnEmail result = await grids.UpdateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..b29b3615de --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnEnum result = await grids.UpdateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: new List(), + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md new file mode 100644 index 0000000000..96db20a2c5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnFloat result = await grids.UpdateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..87e6b0fee2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnInteger result = await grids.UpdateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..789c6c98e6 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIp result = await grids.UpdateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..a1d30a43a2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnRelationship result = await grids.UpdateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: RelationMutate.Cascade, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md new file mode 100644 index 0000000000..2dc2b23d32 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +Row result = await grids.UpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [object], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md new file mode 100644 index 0000000000..c0103c9639 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +RowList result = await grids.UpdateRows( + databaseId: "", + tableId: "", + data: [object], // optional + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md new file mode 100644 index 0000000000..2277142eb8 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnString result = await grids.UpdateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md new file mode 100644 index 0000000000..76362573a5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Table result = await grids.UpdateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md new file mode 100644 index 0000000000..8054b60e3f --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnUrl result = await grids.UpdateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md new file mode 100644 index 0000000000..7f517a2f09 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +Row result = await grids.UpsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: [object], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..1cb3b54d0b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +RowList result = await grids.UpsertRows( + databaseId: "", + tableId: "", + rows: new List() +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..11d8b0ca50 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateBooleanColumn( + "", + "", + "", + false, + grids.WithCreateBooleanColumnDefault(false), + grids.WithCreateBooleanColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-database.md b/docs/examples/1.8.x/server-go/examples/grids/create-database.md new file mode 100644 index 0000000000..d66dea2c03 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-database.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateDatabase( + "", + "", + grids.WithCreateDatabaseEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..e386f763ff --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateDatetimeColumn( + "", + "", + "", + false, + grids.WithCreateDatetimeColumnDefault(""), + grids.WithCreateDatetimeColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md new file mode 100644 index 0000000000..9ecdf5cadf --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateEmailColumn( + "", + "", + "", + false, + grids.WithCreateEmailColumnDefault("email@example.com"), + grids.WithCreateEmailColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..35a2ed3f0f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateEnumColumn( + "", + "", + "", + []interface{}{}, + false, + grids.WithCreateEnumColumnDefault(""), + grids.WithCreateEnumColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md new file mode 100644 index 0000000000..765eb58f24 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateFloatColumn( + "", + "", + "", + false, + grids.WithCreateFloatColumnMin(0), + grids.WithCreateFloatColumnMax(0), + grids.WithCreateFloatColumnDefault(0), + grids.WithCreateFloatColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-index.md b/docs/examples/1.8.x/server-go/examples/grids/create-index.md new file mode 100644 index 0000000000..ad39cc5c83 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-index.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateIndex( + "", + "", + "", + "key", + []interface{}{}, + grids.WithCreateIndexOrders([]interface{}{}), + grids.WithCreateIndexLengths([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..3b67883650 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateIntegerColumn( + "", + "", + "", + false, + grids.WithCreateIntegerColumnMin(0), + grids.WithCreateIntegerColumnMax(0), + grids.WithCreateIntegerColumnDefault(0), + grids.WithCreateIntegerColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..8954c91144 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateIpColumn( + "", + "", + "", + false, + grids.WithCreateIpColumnDefault(""), + grids.WithCreateIpColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..2ce5bd2acd --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateRelationshipColumn( + "", + "", + "", + "oneToOne", + grids.WithCreateRelationshipColumnTwoWay(false), + grids.WithCreateRelationshipColumnKey(""), + grids.WithCreateRelationshipColumnTwoWayKey(""), + grids.WithCreateRelationshipColumnOnDelete("cascade"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-row.md b/docs/examples/1.8.x/server-go/examples/grids/create-row.md new file mode 100644 index 0000000000..b2e8aac2a2 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-row.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.CreateRow( + "", + "", + "", + map[string]interface{}{}, + grids.WithCreateRowPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-rows.md b/docs/examples/1.8.x/server-go/examples/grids/create-rows.md new file mode 100644 index 0000000000..95442b0231 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateRows( + "", + "", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md new file mode 100644 index 0000000000..0033ea1af6 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateStringColumn( + "", + "", + "", + 1, + false, + grids.WithCreateStringColumnDefault(""), + grids.WithCreateStringColumnArray(false), + grids.WithCreateStringColumnEncrypt(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-table.md b/docs/examples/1.8.x/server-go/examples/grids/create-table.md new file mode 100644 index 0000000000..adc367db5c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-table.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateTable( + "", + "", + "", + grids.WithCreateTablePermissions(interface{}{"read("any")"}), + grids.WithCreateTableRowSecurity(false), + grids.WithCreateTableEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md new file mode 100644 index 0000000000..3e93fe1838 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateUrlColumn( + "", + "", + "", + false, + grids.WithCreateUrlColumnDefault("https://example.com"), + grids.WithCreateUrlColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..cb36ada619 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DecrementRowColumn( + "", + "", + "", + "", + grids.WithDecrementRowColumnValue(0), + grids.WithDecrementRowColumnMin(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-column.md b/docs/examples/1.8.x/server-go/examples/grids/delete-column.md new file mode 100644 index 0000000000..6b73e86c05 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-column.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteColumn( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-database.md b/docs/examples/1.8.x/server-go/examples/grids/delete-database.md new file mode 100644 index 0000000000..4d74f859fc --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-database.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteDatabase( + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-index.md b/docs/examples/1.8.x/server-go/examples/grids/delete-index.md new file mode 100644 index 0000000000..c34a2752ac --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteIndex( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-row.md b/docs/examples/1.8.x/server-go/examples/grids/delete-row.md new file mode 100644 index 0000000000..cb072c49bd --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-row.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.DeleteRow( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md new file mode 100644 index 0000000000..0ce880f996 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteRows( + "", + "", + grids.WithDeleteRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-table.md b/docs/examples/1.8.x/server-go/examples/grids/delete-table.md new file mode 100644 index 0000000000..66e031a5ce --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-table.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteTable( + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-column.md b/docs/examples/1.8.x/server-go/examples/grids/get-column.md new file mode 100644 index 0000000000..bff6153550 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-column.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.GetColumn( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-database.md b/docs/examples/1.8.x/server-go/examples/grids/get-database.md new file mode 100644 index 0000000000..4f80bf5590 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-database.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.GetDatabase( + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-index.md b/docs/examples/1.8.x/server-go/examples/grids/get-index.md new file mode 100644 index 0000000000..5982b49b2e --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.GetIndex( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-row.md b/docs/examples/1.8.x/server-go/examples/grids/get-row.md new file mode 100644 index 0000000000..1551d4969b --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-row.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.GetRow( + "", + "", + "", + grids.WithGetRowQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-table.md b/docs/examples/1.8.x/server-go/examples/grids/get-table.md new file mode 100644 index 0000000000..1f96e8526d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-table.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.GetTable( + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..52f5858884 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.IncrementRowColumn( + "", + "", + "", + "", + grids.WithIncrementRowColumnValue(0), + grids.WithIncrementRowColumnMax(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-columns.md b/docs/examples/1.8.x/server-go/examples/grids/list-columns.md new file mode 100644 index 0000000000..ae411a216c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-columns.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.ListColumns( + "", + "", + grids.WithListColumnsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-databases.md b/docs/examples/1.8.x/server-go/examples/grids/list-databases.md new file mode 100644 index 0000000000..e43bd7d100 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-databases.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.ListDatabases( + grids.WithListDatabasesQueries([]interface{}{}), + grids.WithListDatabasesSearch(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md new file mode 100644 index 0000000000..092c75301a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.ListIndexes( + "", + "", + grids.WithListIndexesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-rows.md b/docs/examples/1.8.x/server-go/examples/grids/list-rows.md new file mode 100644 index 0000000000..b406f106bb --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.ListRows( + "", + "", + grids.WithListRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-tables.md b/docs/examples/1.8.x/server-go/examples/grids/list-tables.md new file mode 100644 index 0000000000..f38879c65b --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-tables.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.ListTables( + "", + grids.WithListTablesQueries([]interface{}{}), + grids.WithListTablesSearch(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..5ffc910caf --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateBooleanColumn( + "", + "", + "", + false, + false, + grids.WithUpdateBooleanColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-database.md b/docs/examples/1.8.x/server-go/examples/grids/update-database.md new file mode 100644 index 0000000000..9f9c95546a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-database.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateDatabase( + "", + "", + grids.WithUpdateDatabaseEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..5bf6440a74 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateDatetimeColumn( + "", + "", + "", + false, + "", + grids.WithUpdateDatetimeColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md new file mode 100644 index 0000000000..8ebbdcabc4 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateEmailColumn( + "", + "", + "", + false, + "email@example.com", + grids.WithUpdateEmailColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..edec1cbcc0 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateEnumColumn( + "", + "", + "", + []interface{}{}, + false, + "", + grids.WithUpdateEnumColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md new file mode 100644 index 0000000000..80057dab06 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateFloatColumn( + "", + "", + "", + false, + 0, + grids.WithUpdateFloatColumnMin(0), + grids.WithUpdateFloatColumnMax(0), + grids.WithUpdateFloatColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..a3b9bd316c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateIntegerColumn( + "", + "", + "", + false, + 0, + grids.WithUpdateIntegerColumnMin(0), + grids.WithUpdateIntegerColumnMax(0), + grids.WithUpdateIntegerColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..888c69e9ee --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateIpColumn( + "", + "", + "", + false, + "", + grids.WithUpdateIpColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..db57f41995 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateRelationshipColumn( + "", + "", + "", + grids.WithUpdateRelationshipColumnOnDelete("cascade"), + grids.WithUpdateRelationshipColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-row.md b/docs/examples/1.8.x/server-go/examples/grids/update-row.md new file mode 100644 index 0000000000..e1a99f289f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-row.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.UpdateRow( + "", + "", + "", + grids.WithUpdateRowData(map[string]interface{}{}), + grids.WithUpdateRowPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-rows.md b/docs/examples/1.8.x/server-go/examples/grids/update-rows.md new file mode 100644 index 0000000000..f2b0c0c6de --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-rows.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateRows( + "", + "", + grids.WithUpdateRowsData(map[string]interface{}{}), + grids.WithUpdateRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md new file mode 100644 index 0000000000..a50fcb704c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateStringColumn( + "", + "", + "", + false, + "", + grids.WithUpdateStringColumnSize(1), + grids.WithUpdateStringColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-table.md b/docs/examples/1.8.x/server-go/examples/grids/update-table.md new file mode 100644 index 0000000000..cf1bef575f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-table.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateTable( + "", + "", + "", + grids.WithUpdateTablePermissions(interface{}{"read("any")"}), + grids.WithUpdateTableRowSecurity(false), + grids.WithUpdateTableEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md new file mode 100644 index 0000000000..0c28025e5c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateUrlColumn( + "", + "", + "", + false, + "https://example.com", + grids.WithUpdateUrlColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md new file mode 100644 index 0000000000..bc104a159a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.UpsertRow( + "", + "", + "", + grids.WithUpsertRowData(map[string]interface{}{}), + grids.WithUpsertRowPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..6282f9da2e --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpsertRows( + "", + "", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..bd7abcb175 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md @@ -0,0 +1,20 @@ +mutation { + gridsCreateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md new file mode 100644 index 0000000000..41d37ebdee --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md @@ -0,0 +1,13 @@ +mutation { + gridsCreateDatabase( + databaseId: "", + name: "", + enabled: false + ) { + _id + name + _createdAt + _updatedAt + enabled + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..aa14c43156 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md @@ -0,0 +1,21 @@ +mutation { + gridsCreateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md new file mode 100644 index 0000000000..c9bc913726 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md @@ -0,0 +1,21 @@ +mutation { + gridsCreateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..8ace10f9ac --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md @@ -0,0 +1,23 @@ +mutation { + gridsCreateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + elements + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md new file mode 100644 index 0000000000..92031d03ca --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md @@ -0,0 +1,24 @@ +mutation { + gridsCreateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, + max: 0, + default: 0, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md new file mode 100644 index 0000000000..cc338ddad2 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md @@ -0,0 +1,22 @@ +mutation { + gridsCreateIndex( + databaseId: "", + tableId: "", + key: "", + type: "key", + columns: [], + orders: [], + lengths: [] + ) { + _id + _createdAt + _updatedAt + key + type + status + error + columns + lengths + orders + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..735d47c8ac --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md @@ -0,0 +1,24 @@ +mutation { + gridsCreateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, + max: 0, + default: 0, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..241d308f09 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md @@ -0,0 +1,21 @@ +mutation { + gridsCreateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..2c08478e09 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md @@ -0,0 +1,27 @@ +mutation { + gridsCreateRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: "oneToOne", + twoWay: false, + key: "", + twoWayKey: "", + onDelete: "cascade" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + relatedTable + relationType + twoWay + twoWayKey + onDelete + side + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md new file mode 100644 index 0000000000..cffb7361f2 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md @@ -0,0 +1,18 @@ +mutation { + gridsCreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md new file mode 100644 index 0000000000..cd134ec201 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md @@ -0,0 +1,19 @@ +mutation { + gridsCreateRows( + databaseId: "", + tableId: "", + rows: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md new file mode 100644 index 0000000000..57b42c6010 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md @@ -0,0 +1,24 @@ +mutation { + gridsCreateStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", + array: false, + encrypt: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + encrypt + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md new file mode 100644 index 0000000000..77335ad867 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md @@ -0,0 +1,32 @@ +mutation { + gridsCreateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], + rowSecurity: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + _permissions + databaseId + name + enabled + rowSecurity + columns + indexes { + _id + _createdAt + _updatedAt + key + type + status + error + columns + lengths + orders + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md new file mode 100644 index 0000000000..07ca9ab869 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md @@ -0,0 +1,21 @@ +mutation { + gridsCreateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..6b47884a92 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md @@ -0,0 +1,19 @@ +mutation { + gridsDecrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, + min: 0 + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md new file mode 100644 index 0000000000..0ad25321b5 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md @@ -0,0 +1,9 @@ +mutation { + gridsDeleteColumn( + databaseId: "", + tableId: "", + key: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md new file mode 100644 index 0000000000..a3e3d1a5bf --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md @@ -0,0 +1,7 @@ +mutation { + gridsDeleteDatabase( + databaseId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md new file mode 100644 index 0000000000..0921aa0aef --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md @@ -0,0 +1,9 @@ +mutation { + gridsDeleteIndex( + databaseId: "", + tableId: "", + key: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md new file mode 100644 index 0000000000..40dcbdc219 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md @@ -0,0 +1,9 @@ +mutation { + gridsDeleteRow( + databaseId: "", + tableId: "", + rowId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md new file mode 100644 index 0000000000..69559934a4 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md @@ -0,0 +1,19 @@ +mutation { + gridsDeleteRows( + databaseId: "", + tableId: "", + queries: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md new file mode 100644 index 0000000000..a145be50d9 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md @@ -0,0 +1,8 @@ +mutation { + gridsDeleteTable( + databaseId: "", + tableId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..709e6b2f0d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md @@ -0,0 +1,19 @@ +mutation { + gridsIncrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, + max: 0 + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..67c8495471 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md @@ -0,0 +1,20 @@ +mutation { + gridsUpdateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md new file mode 100644 index 0000000000..02c045b9cd --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md @@ -0,0 +1,13 @@ +mutation { + gridsUpdateDatabase( + databaseId: "", + name: "", + enabled: false + ) { + _id + name + _createdAt + _updatedAt + enabled + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..5e19393c67 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md @@ -0,0 +1,21 @@ +mutation { + gridsUpdateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md new file mode 100644 index 0000000000..caa6153896 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md @@ -0,0 +1,21 @@ +mutation { + gridsUpdateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..c3d90f4e23 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md @@ -0,0 +1,23 @@ +mutation { + gridsUpdateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + elements + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md new file mode 100644 index 0000000000..a6b700ce73 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md @@ -0,0 +1,24 @@ +mutation { + gridsUpdateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, + max: 0, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..fcc53102d1 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md @@ -0,0 +1,24 @@ +mutation { + gridsUpdateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, + max: 0, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..f867063151 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md @@ -0,0 +1,21 @@ +mutation { + gridsUpdateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..e24311b53a --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md @@ -0,0 +1,24 @@ +mutation { + gridsUpdateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: "cascade", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + relatedTable + relationType + twoWay + twoWayKey + onDelete + side + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md new file mode 100644 index 0000000000..2bb105e8c0 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md @@ -0,0 +1,18 @@ +mutation { + gridsUpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md new file mode 100644 index 0000000000..99df9b0b99 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md @@ -0,0 +1,20 @@ +mutation { + gridsUpdateRows( + databaseId: "", + tableId: "", + data: "{}", + queries: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md new file mode 100644 index 0000000000..c98f49a807 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md @@ -0,0 +1,23 @@ +mutation { + gridsUpdateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + encrypt + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md new file mode 100644 index 0000000000..cea6d5cfff --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md @@ -0,0 +1,32 @@ +mutation { + gridsUpdateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], + rowSecurity: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + _permissions + databaseId + name + enabled + rowSecurity + columns + indexes { + _id + _createdAt + _updatedAt + key + type + status + error + columns + lengths + orders + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md new file mode 100644 index 0000000000..c64d93882d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md @@ -0,0 +1,21 @@ +mutation { + gridsUpdateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md new file mode 100644 index 0000000000..f8e0606109 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md @@ -0,0 +1,18 @@ +mutation { + gridsUpsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..d456e9883d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md @@ -0,0 +1,19 @@ +mutation { + gridsUpsertRows( + databaseId: "", + tableId: "", + rows: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md new file mode 100644 index 0000000000..2981fc8cf4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createBooleanColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + false, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md new file mode 100644 index 0000000000..4c6155962e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createDatabase( + "", // databaseId + "", // name + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md new file mode 100644 index 0000000000..7389ea9a94 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createDatetimeColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md new file mode 100644 index 0000000000..be481047e1 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createEmailColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "email@example.com", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md new file mode 100644 index 0000000000..33c6b63e27 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createEnumColumn( + "", // databaseId + "", // tableId + "", // key + listOf(), // elements + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md new file mode 100644 index 0000000000..d66f1b5c60 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createFloatColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // min (optional) + 0, // max (optional) + 0, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md new file mode 100644 index 0000000000..670310bb66 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; +import io.appwrite.enums.IndexType; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createIndex( + "", // databaseId + "", // tableId + "", // key + IndexType.KEY, // type + listOf(), // columns + listOf(), // orders (optional) + listOf(), // lengths (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md new file mode 100644 index 0000000000..342654ef1a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createIntegerColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // min (optional) + 0, // max (optional) + 0, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md new file mode 100644 index 0000000000..d72e7dd59d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createIpColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md new file mode 100644 index 0000000000..2d1c5fb22a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md @@ -0,0 +1,31 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; +import io.appwrite.enums.RelationshipType; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createRelationshipColumn( + "", // databaseId + "", // tableId + "", // relatedTableId + RelationshipType.ONETOONE, // type + false, // twoWay (optional) + "", // key (optional) + "", // twoWayKey (optional) + RelationMutate.CASCADE, // onDelete (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md new file mode 100644 index 0000000000..6b954814c0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.createRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md new file mode 100644 index 0000000000..a55855d8f5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createRows( + "", // databaseId + "", // tableId + listOf(), // rows + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md new file mode 100644 index 0000000000..b819afb4b4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createStringColumn( + "", // databaseId + "", // tableId + "", // key + 1, // size + false, // required + "", // default (optional) + false, // array (optional) + false, // encrypt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md new file mode 100644 index 0000000000..aa98b81de6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createTable( + "", // databaseId + "", // tableId + "", // name + listOf("read("any")"), // permissions (optional) + false, // rowSecurity (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md new file mode 100644 index 0000000000..d8761440b3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createUrlColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "https://example.com", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md new file mode 100644 index 0000000000..407ea83f81 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.decrementRowColumn( + "", // databaseId + "", // tableId + "", // rowId + "", // column + 0, // value (optional) + 0, // min (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md new file mode 100644 index 0000000000..cc3c40fba7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteColumn( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md new file mode 100644 index 0000000000..fca41e75ea --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteDatabase( + "", // databaseId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md new file mode 100644 index 0000000000..43449e908f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteIndex( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md new file mode 100644 index 0000000000..cb812bac12 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.deleteRow( + "", // databaseId + "", // tableId + "", // rowId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md new file mode 100644 index 0000000000..2425af9e8c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md new file mode 100644 index 0000000000..dbbb4781ba --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteTable( + "", // databaseId + "", // tableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md new file mode 100644 index 0000000000..1d630f17d7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.getColumn( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md new file mode 100644 index 0000000000..bc7eea4dbb --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.getDatabase( + "", // databaseId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md new file mode 100644 index 0000000000..14163c34a9 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.getIndex( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md new file mode 100644 index 0000000000..e9d89c92b8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.getRow( + "", // databaseId + "", // tableId + "", // rowId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md new file mode 100644 index 0000000000..39d090219b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.getTable( + "", // databaseId + "", // tableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md new file mode 100644 index 0000000000..aaccf0a1a3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.incrementRowColumn( + "", // databaseId + "", // tableId + "", // rowId + "", // column + 0, // value (optional) + 0, // max (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md new file mode 100644 index 0000000000..f95ca925a6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.listColumns( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md new file mode 100644 index 0000000000..97f7263dd4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.listDatabases( + listOf(), // queries (optional) + "", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md new file mode 100644 index 0000000000..aa5b11a8c2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.listIndexes( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md new file mode 100644 index 0000000000..ccf3d74a25 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.listRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md new file mode 100644 index 0000000000..0a60dbeebe --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.listTables( + "", // databaseId + listOf(), // queries (optional) + "", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md new file mode 100644 index 0000000000..e3d6b71b70 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateBooleanColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + false, // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md new file mode 100644 index 0000000000..da9bd7d04b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateDatabase( + "", // databaseId + "", // name + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md new file mode 100644 index 0000000000..ede33229ad --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateDatetimeColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md new file mode 100644 index 0000000000..48803eb4f4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateEmailColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "email@example.com", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md new file mode 100644 index 0000000000..63dc238d2e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateEnumColumn( + "", // databaseId + "", // tableId + "", // key + listOf(), // elements + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md new file mode 100644 index 0000000000..9833f5ec8b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateFloatColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md new file mode 100644 index 0000000000..059b1328d5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateIntegerColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md new file mode 100644 index 0000000000..8e31214981 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateIpColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md new file mode 100644 index 0000000000..b90b21b164 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateRelationshipColumn( + "", // databaseId + "", // tableId + "", // key + RelationMutate.CASCADE, // onDelete (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md new file mode 100644 index 0000000000..5f95afb5f5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.updateRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md new file mode 100644 index 0000000000..67c9a1be89 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateRows( + "", // databaseId + "", // tableId + mapOf( "a" to "b" ), // data (optional) + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md new file mode 100644 index 0000000000..13e266abc0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateStringColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + 1, // size (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md new file mode 100644 index 0000000000..24dfc05e49 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateTable( + "", // databaseId + "", // tableId + "", // name + listOf("read("any")"), // permissions (optional) + false, // rowSecurity (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md new file mode 100644 index 0000000000..5217121225 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateUrlColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "https://example.com", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md new file mode 100644 index 0000000000..8f1b8670df --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.upsertRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md new file mode 100644 index 0000000000..2081f0f19f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.upsertRows( + "", // databaseId + "", // tableId + listOf(), // rows + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md new file mode 100644 index 0000000000..5966655e1e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createBooleanColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = false, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md new file mode 100644 index 0000000000..bc9999ff18 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createDatabase( + databaseId = "", + name = "", + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md new file mode 100644 index 0000000000..f3b11b5018 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createDatetimeColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md new file mode 100644 index 0000000000..a70dd3ac45 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createEmailColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "email@example.com", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md new file mode 100644 index 0000000000..3858155479 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createEnumColumn( + databaseId = "", + tableId = "", + key = "", + elements = listOf(), + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md new file mode 100644 index 0000000000..d7b4c0155d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createFloatColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + min = 0, // optional + max = 0, // optional + default = 0, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md new file mode 100644 index 0000000000..df16a35cc2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids +import io.appwrite.enums.IndexType + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createIndex( + databaseId = "", + tableId = "", + key = "", + type = IndexType.KEY, + columns = listOf(), + orders = listOf(), // optional + lengths = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md new file mode 100644 index 0000000000..db8bde2d72 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createIntegerColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + min = 0, // optional + max = 0, // optional + default = 0, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md new file mode 100644 index 0000000000..f3ab36bd0c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createIpColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md new file mode 100644 index 0000000000..9ba4cafbb7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md @@ -0,0 +1,22 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids +import io.appwrite.enums.RelationshipType + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createRelationshipColumn( + databaseId = "", + tableId = "", + relatedTableId = "", + type = RelationshipType.ONETOONE, + twoWay = false, // optional + key = "", // optional + twoWayKey = "", // optional + onDelete = "cascade" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md new file mode 100644 index 0000000000..0c3d2531c5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.createRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md new file mode 100644 index 0000000000..9c7da7c93b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createRows( + databaseId = "", + tableId = "", + rows = listOf() +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md new file mode 100644 index 0000000000..f6793c817b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createStringColumn( + databaseId = "", + tableId = "", + key = "", + size = 1, + required = false, + default = "", // optional + array = false, // optional + encrypt = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md new file mode 100644 index 0000000000..55de471725 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createTable( + databaseId = "", + tableId = "", + name = "", + permissions = listOf("read("any")"), // optional + rowSecurity = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md new file mode 100644 index 0000000000..33311e29ca --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createUrlColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "https://example.com", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md new file mode 100644 index 0000000000..9a450f66f3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.decrementRowColumn( + databaseId = "", + tableId = "", + rowId = "", + column = "", + value = 0, // optional + min = 0 // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md new file mode 100644 index 0000000000..09636dae09 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteColumn( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md new file mode 100644 index 0000000000..f872453a99 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteDatabase( + databaseId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md new file mode 100644 index 0000000000..d3037ca6b0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteIndex( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md new file mode 100644 index 0000000000..25b60e0e2d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.deleteRow( + databaseId = "", + tableId = "", + rowId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md new file mode 100644 index 0000000000..c3aa106eac --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteRows( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md new file mode 100644 index 0000000000..f0208d4345 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteTable( + databaseId = "", + tableId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md new file mode 100644 index 0000000000..92890a7dc3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.getColumn( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md new file mode 100644 index 0000000000..fd91ab0ad3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.getDatabase( + databaseId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md new file mode 100644 index 0000000000..7c0b2dc8cb --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.getIndex( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md new file mode 100644 index 0000000000..b217814b27 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.getRow( + databaseId = "", + tableId = "", + rowId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md new file mode 100644 index 0000000000..d8a4cd243e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.getTable( + databaseId = "", + tableId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md new file mode 100644 index 0000000000..adbe5c287e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.incrementRowColumn( + databaseId = "", + tableId = "", + rowId = "", + column = "", + value = 0, // optional + max = 0 // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md new file mode 100644 index 0000000000..b033eb423d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.listColumns( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md new file mode 100644 index 0000000000..c713568269 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.listDatabases( + queries = listOf(), // optional + search = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md new file mode 100644 index 0000000000..84bbcbd232 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.listIndexes( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md new file mode 100644 index 0000000000..ea54280ff3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.listRows( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md new file mode 100644 index 0000000000..6bb5a588b2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.listTables( + databaseId = "", + queries = listOf(), // optional + search = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md new file mode 100644 index 0000000000..b9360ec99e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateBooleanColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = false, + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md new file mode 100644 index 0000000000..ae8aacc343 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateDatabase( + databaseId = "", + name = "", + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md new file mode 100644 index 0000000000..50282217d7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateDatetimeColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md new file mode 100644 index 0000000000..a9c2996800 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateEmailColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "email@example.com", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md new file mode 100644 index 0000000000..c23eef358b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateEnumColumn( + databaseId = "", + tableId = "", + key = "", + elements = listOf(), + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md new file mode 100644 index 0000000000..1054c34fbd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateFloatColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md new file mode 100644 index 0000000000..288c74b4fe --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateIntegerColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md new file mode 100644 index 0000000000..cbc358a3b6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateIpColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md new file mode 100644 index 0000000000..99df537cfe --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateRelationshipColumn( + databaseId = "", + tableId = "", + key = "", + onDelete = "cascade", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md new file mode 100644 index 0000000000..ae18af353a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.updateRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // optional + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md new file mode 100644 index 0000000000..3682cd0724 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateRows( + databaseId = "", + tableId = "", + data = mapOf( "a" to "b" ), // optional + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md new file mode 100644 index 0000000000..8f7a213260 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateStringColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + size = 1, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md new file mode 100644 index 0000000000..99232d858f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateTable( + databaseId = "", + tableId = "", + name = "", + permissions = listOf("read("any")"), // optional + rowSecurity = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md new file mode 100644 index 0000000000..65d299dba8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateUrlColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "https://example.com", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md new file mode 100644 index 0000000000..cbf0f38c8d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.upsertRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // optional + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md new file mode 100644 index 0000000000..c767b66803 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.upsertRows( + databaseId = "", + tableId = "", + rows = listOf() +) diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..dae3f30840 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md new file mode 100644 index 0000000000..720c0d6f23 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..d2b5c7e00f --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md new file mode 100644 index 0000000000..ce56e96d85 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..653b1ed75c --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md new file mode 100644 index 0000000000..dc6aee4805 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md new file mode 100644 index 0000000000..975fa3047e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createIndex( + '', // databaseId + '', // tableId + '', // key + sdk.IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..3444f82b58 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..52a9e8fbeb --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..c0270dab85 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + sdk.RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + sdk.RelationMutate.Cascade // onDelete (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md new file mode 100644 index 0000000000..a8495c4b94 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md new file mode 100644 index 0000000000..c9400a4edf --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md new file mode 100644 index 0000000000..f72d042dfb --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md new file mode 100644 index 0000000000..d022de372f --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md new file mode 100644 index 0000000000..83c6d5a01b --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..a166a1bfc0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md new file mode 100644 index 0000000000..7130f48cae --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md new file mode 100644 index 0000000000..4a31d091b7 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteDatabase( + '' // databaseId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md new file mode 100644 index 0000000000..b266062053 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md new file mode 100644 index 0000000000..cf202374a0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md new file mode 100644 index 0000000000..aa36bacbda --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md new file mode 100644 index 0000000000..d3bb221e0d --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteTable( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md new file mode 100644 index 0000000000..d3b08936d2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.getColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md new file mode 100644 index 0000000000..7d27bbca94 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.getDatabase( + '' // databaseId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md new file mode 100644 index 0000000000..e47b942df9 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.getIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md new file mode 100644 index 0000000000..15c753000a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md new file mode 100644 index 0000000000..f7b28eb191 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.getTable( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..ac5257f658 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md new file mode 100644 index 0000000000..dbfaac0262 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md new file mode 100644 index 0000000000..8a20b2ac88 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.listDatabases( + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md new file mode 100644 index 0000000000..8a102996a6 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md new file mode 100644 index 0000000000..9f9bb3bc33 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md new file mode 100644 index 0000000000..e020b883e0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.listTables( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..b695e2d194 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md new file mode 100644 index 0000000000..689c38f605 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..8ec6f1cda7 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md new file mode 100644 index 0000000000..f8e0918819 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..bda1aad53a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md new file mode 100644 index 0000000000..ae3d5ceb4b --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..a3e28bc406 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..ff8692f81e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..19f957f67a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + sdk.RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md new file mode 100644 index 0000000000..79c845f558 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md new file mode 100644 index 0000000000..65c8f63cbd --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md new file mode 100644 index 0000000000..b04f38bd5d --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md new file mode 100644 index 0000000000..3d80666600 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md new file mode 100644 index 0000000000..aa368bfcc0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md new file mode 100644 index 0000000000..03476fc311 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..19f2ce1a90 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.upsertRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..22e7cf8058 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createBooleanColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: false, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-database.md b/docs/examples/1.8.x/server-php/examples/grids/create-database.md new file mode 100644 index 0000000000..ff7c3f73fb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-database.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createDatabase( + databaseId: '', + name: '', + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..afb847fd30 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md new file mode 100644 index 0000000000..7516614820 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createEmailColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'email@example.com', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..f4a9ff2e5d --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md new file mode 100644 index 0000000000..7a02a1790b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createFloatColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-index.md b/docs/examples/1.8.x/server-php/examples/grids/create-index.md new file mode 100644 index 0000000000..31bfdc2754 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-index.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createIndex( + databaseId: '', + tableId: '', + key: '', + type: IndexType::KEY(), + columns: [], + orders: [], // optional + lengths: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..6495fc6309 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createIntegerColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..65379a2f94 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createIpColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..cde72569ad --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md @@ -0,0 +1,23 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createRelationshipColumn( + databaseId: '', + tableId: '', + relatedTableId: '', + type: RelationshipType::ONETOONE(), + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: RelationMutate::CASCADE() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-row.md b/docs/examples/1.8.x/server-php/examples/grids/create-row.md new file mode 100644 index 0000000000..58f678c6c3 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-row.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->createRow( + databaseId: '', + tableId: '', + rowId: '', + data: [], + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-rows.md b/docs/examples/1.8.x/server-php/examples/grids/create-rows.md new file mode 100644 index 0000000000..531ebaf846 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createRows( + databaseId: '', + tableId: '', + rows: [] +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md new file mode 100644 index 0000000000..a5acf25859 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createStringColumn( + databaseId: '', + tableId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false, // optional + encrypt: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-table.md b/docs/examples/1.8.x/server-php/examples/grids/create-table.md new file mode 100644 index 0000000000..ca6e017375 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-table.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createTable( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md new file mode 100644 index 0000000000..b0149f279b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createUrlColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'https://example.com', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..d7db09ed30 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->decrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: null, // optional + min: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-column.md b/docs/examples/1.8.x/server-php/examples/grids/delete-column.md new file mode 100644 index 0000000000..3862ecbde9 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-column.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteColumn( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-database.md b/docs/examples/1.8.x/server-php/examples/grids/delete-database.md new file mode 100644 index 0000000000..761406ba9b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-database.md @@ -0,0 +1,15 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteDatabase( + databaseId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-index.md b/docs/examples/1.8.x/server-php/examples/grids/delete-index.md new file mode 100644 index 0000000000..913091455b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-index.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteIndex( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-row.md b/docs/examples/1.8.x/server-php/examples/grids/delete-row.md new file mode 100644 index 0000000000..14b72e6e56 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-row.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->deleteRow( + databaseId: '', + tableId: '', + rowId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md new file mode 100644 index 0000000000..567b497f04 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteRows( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-table.md b/docs/examples/1.8.x/server-php/examples/grids/delete-table.md new file mode 100644 index 0000000000..ea0eeda80f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-table.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteTable( + databaseId: '', + tableId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-column.md b/docs/examples/1.8.x/server-php/examples/grids/get-column.md new file mode 100644 index 0000000000..ac2c9bb0c4 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-column.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->getColumn( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-database.md b/docs/examples/1.8.x/server-php/examples/grids/get-database.md new file mode 100644 index 0000000000..c3e9f896c2 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-database.md @@ -0,0 +1,15 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->getDatabase( + databaseId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-index.md b/docs/examples/1.8.x/server-php/examples/grids/get-index.md new file mode 100644 index 0000000000..2434fd933b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-index.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->getIndex( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-row.md b/docs/examples/1.8.x/server-php/examples/grids/get-row.md new file mode 100644 index 0000000000..e13ea67209 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-row.md @@ -0,0 +1,18 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-table.md b/docs/examples/1.8.x/server-php/examples/grids/get-table.md new file mode 100644 index 0000000000..1c9721f1c7 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-table.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->getTable( + databaseId: '', + tableId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..fc9ee9a9eb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->incrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: null, // optional + max: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-columns.md b/docs/examples/1.8.x/server-php/examples/grids/list-columns.md new file mode 100644 index 0000000000..7be7581a28 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-columns.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->listColumns( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-databases.md b/docs/examples/1.8.x/server-php/examples/grids/list-databases.md new file mode 100644 index 0000000000..f5fec16a25 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-databases.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->listDatabases( + queries: [], // optional + search: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md new file mode 100644 index 0000000000..d23248e5d4 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->listIndexes( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-rows.md b/docs/examples/1.8.x/server-php/examples/grids/list-rows.md new file mode 100644 index 0000000000..c8537651c6 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->listRows( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-tables.md b/docs/examples/1.8.x/server-php/examples/grids/list-tables.md new file mode 100644 index 0000000000..95f4f7b65d --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-tables.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->listTables( + databaseId: '', + queries: [], // optional + search: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..bc7405d35d --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateBooleanColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: false, + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-database.md b/docs/examples/1.8.x/server-php/examples/grids/update-database.md new file mode 100644 index 0000000000..9d71e5e043 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-database.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateDatabase( + databaseId: '', + name: '', + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..6850a6d373 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md new file mode 100644 index 0000000000..6fe7f82477 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateEmailColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'email@example.com', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..4a18d02488 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md new file mode 100644 index 0000000000..5e58f8efaf --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateFloatColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..c097b7e286 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateIntegerColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..9ce131b8e1 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateIpColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..a0241afb06 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateRelationshipColumn( + databaseId: '', + tableId: '', + key: '', + onDelete: RelationMutate::CASCADE(), // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-row.md b/docs/examples/1.8.x/server-php/examples/grids/update-row.md new file mode 100644 index 0000000000..a0aae15730 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-row.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: [], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-rows.md b/docs/examples/1.8.x/server-php/examples/grids/update-rows.md new file mode 100644 index 0000000000..270489f44e --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-rows.md @@ -0,0 +1,18 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateRows( + databaseId: '', + tableId: '', + data: [], // optional + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md new file mode 100644 index 0000000000..6213deb7aa --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateStringColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-table.md b/docs/examples/1.8.x/server-php/examples/grids/update-table.md new file mode 100644 index 0000000000..1483eee2a9 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-table.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateTable( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md new file mode 100644 index 0000000000..7f7916c81a --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateUrlColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'https://example.com', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md new file mode 100644 index 0000000000..a07cbe976f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->upsertRow( + databaseId: '', + tableId: '', + rowId: '', + data: [], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..5d31648e02 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->upsertRows( + databaseId: '', + tableId: '', + rows: [] +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..73d8323533 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_boolean_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = False, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-database.md b/docs/examples/1.8.x/server-python/examples/grids/create-database.md new file mode 100644 index 0000000000..a7749e4903 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-database.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_database( + database_id = '', + name = '', + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..a98024c16c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_datetime_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md new file mode 100644 index 0000000000..372cbafce3 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_email_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'email@example.com', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..d7b47c80cb --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_enum_column( + database_id = '', + table_id = '', + key = '', + elements = [], + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md new file mode 100644 index 0000000000..5a52128ac1 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_float_column( + database_id = '', + table_id = '', + key = '', + required = False, + min = None, # optional + max = None, # optional + default = None, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-index.md b/docs/examples/1.8.x/server-python/examples/grids/create-index.md new file mode 100644 index 0000000000..1d67b8abc0 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-index.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids +from appwrite.enums import IndexType + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_index( + database_id = '', + table_id = '', + key = '', + type = IndexType.KEY, + columns = [], + orders = [], # optional + lengths = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..aed49578aa --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_integer_column( + database_id = '', + table_id = '', + key = '', + required = False, + min = None, # optional + max = None, # optional + default = None, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..af873c91a1 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_ip_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..3cb858d260 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md @@ -0,0 +1,21 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids +from appwrite.enums import RelationshipType + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_relationship_column( + database_id = '', + table_id = '', + related_table_id = '', + type = RelationshipType.ONETOONE, + two_way = False, # optional + key = '', # optional + two_way_key = '', # optional + on_delete = RelationMutate.CASCADE # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-row.md b/docs/examples/1.8.x/server-python/examples/grids/create-row.md new file mode 100644 index 0000000000..5645f0bd23 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-row.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.create_row( + database_id = '', + table_id = '', + row_id = '', + data = {}, + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-rows.md b/docs/examples/1.8.x/server-python/examples/grids/create-rows.md new file mode 100644 index 0000000000..3274c48a10 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_rows( + database_id = '', + table_id = '', + rows = [] +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md new file mode 100644 index 0000000000..3771a070ba --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_string_column( + database_id = '', + table_id = '', + key = '', + size = 1, + required = False, + default = '', # optional + array = False, # optional + encrypt = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-table.md b/docs/examples/1.8.x/server-python/examples/grids/create-table.md new file mode 100644 index 0000000000..64c1b50d69 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-table.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_table( + database_id = '', + table_id = '', + name = '', + permissions = ["read("any")"], # optional + row_security = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md new file mode 100644 index 0000000000..45c1a2d82e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_url_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'https://example.com', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..9608337398 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.decrement_row_column( + database_id = '', + table_id = '', + row_id = '', + column = '', + value = None, # optional + min = None # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-column.md b/docs/examples/1.8.x/server-python/examples/grids/delete-column.md new file mode 100644 index 0000000000..650a1c3578 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-column.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_column( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-database.md b/docs/examples/1.8.x/server-python/examples/grids/delete-database.md new file mode 100644 index 0000000000..9898c07bc8 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-database.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_database( + database_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-index.md b/docs/examples/1.8.x/server-python/examples/grids/delete-index.md new file mode 100644 index 0000000000..fed36f1d9c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-index.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_index( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-row.md b/docs/examples/1.8.x/server-python/examples/grids/delete-row.md new file mode 100644 index 0000000000..eb1e661738 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.delete_row( + database_id = '', + table_id = '', + row_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md new file mode 100644 index 0000000000..31503cdee1 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_rows( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-table.md b/docs/examples/1.8.x/server-python/examples/grids/delete-table.md new file mode 100644 index 0000000000..d170c31d20 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-table.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_table( + database_id = '', + table_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-column.md b/docs/examples/1.8.x/server-python/examples/grids/get-column.md new file mode 100644 index 0000000000..a724e07b0a --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-column.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.get_column( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-database.md b/docs/examples/1.8.x/server-python/examples/grids/get-database.md new file mode 100644 index 0000000000..e393d7587b --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-database.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.get_database( + database_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-index.md b/docs/examples/1.8.x/server-python/examples/grids/get-index.md new file mode 100644 index 0000000000..6e3753dea5 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-index.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.get_index( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-row.md b/docs/examples/1.8.x/server-python/examples/grids/get-row.md new file mode 100644 index 0000000000..939a992868 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-row.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.get_row( + database_id = '', + table_id = '', + row_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-table.md b/docs/examples/1.8.x/server-python/examples/grids/get-table.md new file mode 100644 index 0000000000..afe24bd0f2 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-table.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.get_table( + database_id = '', + table_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..598cf58874 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.increment_row_column( + database_id = '', + table_id = '', + row_id = '', + column = '', + value = None, # optional + max = None # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-columns.md b/docs/examples/1.8.x/server-python/examples/grids/list-columns.md new file mode 100644 index 0000000000..b78327182c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-columns.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.list_columns( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-databases.md b/docs/examples/1.8.x/server-python/examples/grids/list-databases.md new file mode 100644 index 0000000000..78c5cb4bd7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-databases.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.list_databases( + queries = [], # optional + search = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md new file mode 100644 index 0000000000..a6b52416c6 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.list_indexes( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-rows.md b/docs/examples/1.8.x/server-python/examples/grids/list-rows.md new file mode 100644 index 0000000000..975f88f763 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.list_rows( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-tables.md b/docs/examples/1.8.x/server-python/examples/grids/list-tables.md new file mode 100644 index 0000000000..3e2e5508bc --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-tables.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.list_tables( + database_id = '', + queries = [], # optional + search = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..6bcbf27355 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_boolean_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = False, + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-database.md b/docs/examples/1.8.x/server-python/examples/grids/update-database.md new file mode 100644 index 0000000000..2df676bcbc --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-database.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_database( + database_id = '', + name = '', + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..6ae0e4dea5 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_datetime_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md new file mode 100644 index 0000000000..c1ff1d0637 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_email_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'email@example.com', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..6da49cfb81 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_enum_column( + database_id = '', + table_id = '', + key = '', + elements = [], + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md new file mode 100644 index 0000000000..8d3d9edb5f --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_float_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..966f7b6805 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_integer_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..e5fccac320 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_ip_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..fcff4591fd --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_relationship_column( + database_id = '', + table_id = '', + key = '', + on_delete = RelationMutate.CASCADE, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-row.md b/docs/examples/1.8.x/server-python/examples/grids/update-row.md new file mode 100644 index 0000000000..e379697ce4 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-row.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.update_row( + database_id = '', + table_id = '', + row_id = '', + data = {}, # optional + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-rows.md b/docs/examples/1.8.x/server-python/examples/grids/update-rows.md new file mode 100644 index 0000000000..344bb5904b --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-rows.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_rows( + database_id = '', + table_id = '', + data = {}, # optional + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md new file mode 100644 index 0000000000..f303189b80 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_string_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + size = 1, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-table.md b/docs/examples/1.8.x/server-python/examples/grids/update-table.md new file mode 100644 index 0000000000..cfd5b4d92e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-table.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_table( + database_id = '', + table_id = '', + name = '', + permissions = ["read("any")"], # optional + row_security = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md new file mode 100644 index 0000000000..ea6dc386ed --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_url_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'https://example.com', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md new file mode 100644 index 0000000000..79528818e0 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.upsert_row( + database_id = '', + table_id = '', + row_id = '', + data = {}, # optional + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..b7573d4794 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.upsert_rows( + database_id = '', + table_id = '', + rows = [] +) diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..d594385572 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/boolean HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": false, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-database.md b/docs/examples/1.8.x/server-rest/examples/grids/create-database.md new file mode 100644 index 0000000000..fd1ae143fa --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-database.md @@ -0,0 +1,12 @@ +POST /v1/databases HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "databaseId": "", + "name": "", + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..88505a8a1f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/datetime HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": , + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md new file mode 100644 index 0000000000..28d733dab8 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": "email@example.com", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..35de1b5e2f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/enum HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "elements": [], + "required": false, + "default": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md new file mode 100644 index 0000000000..9c9996aced --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/float HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "min": 0, + "max": 0, + "default": 0, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-index.md b/docs/examples/1.8.x/server-rest/examples/grids/create-index.md new file mode 100644 index 0000000000..7a7487bdae --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-index.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/indexes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "type": "key", + "columns": [], + "orders": [], + "lengths": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..be6eb92544 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/integer HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "min": 0, + "max": 0, + "default": 0, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..30406d7025 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/ip HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": , + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..75f54c9602 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/relationship HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "relatedTableId": "", + "type": "oneToOne", + "twoWay": false, + "key": , + "twoWayKey": , + "onDelete": "cascade" +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-row.md b/docs/examples/1.8.x/server-rest/examples/grids/create-row.md new file mode 100644 index 0000000000..443b4e30c9 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-row.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "rowId": "", + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md new file mode 100644 index 0000000000..32578d87de --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "rows": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md new file mode 100644 index 0000000000..2a0b0dc372 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/string HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "size": 1, + "required": false, + "default": "", + "array": false, + "encrypt": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-table.md b/docs/examples/1.8.x/server-rest/examples/grids/create-table.md new file mode 100644 index 0000000000..7c22e81e7c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-table.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/grids/tables HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "tableId": "", + "name": "", + "permissions": ["read(\"any\")"], + "rowSecurity": false, + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md new file mode 100644 index 0000000000..5dada907a0 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/url HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": "https://example.com", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..6548a58273 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId}/{column}/decrement HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "value": 0, + "min": 0 +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md new file mode 100644 index 0000000000..2680bcf03a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md new file mode 100644 index 0000000000..85d5f7bb0e --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md new file mode 100644 index 0000000000..ca7d67a1b4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/indexes/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md new file mode 100644 index 0000000000..8fd3f6ee7d --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md @@ -0,0 +1,9 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md new file mode 100644 index 0000000000..af1fabdb7a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md @@ -0,0 +1,10 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "queries": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md new file mode 100644 index 0000000000..e068291849 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-column.md b/docs/examples/1.8.x/server-rest/examples/grids/get-column.md new file mode 100644 index 0000000000..0888fb7273 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-column.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-database.md b/docs/examples/1.8.x/server-rest/examples/grids/get-database.md new file mode 100644 index 0000000000..644f251f56 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-database.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-index.md b/docs/examples/1.8.x/server-rest/examples/grids/get-index.md new file mode 100644 index 0000000000..3a9c1ae705 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-index.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/indexes/{key} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-row.md b/docs/examples/1.8.x/server-rest/examples/grids/get-row.md new file mode 100644 index 0000000000..ba3b87bee0 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-row.md @@ -0,0 +1,7 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-table.md b/docs/examples/1.8.x/server-rest/examples/grids/get-table.md new file mode 100644 index 0000000000..e562f5c763 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-table.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..4501951530 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId}/{column}/increment HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "value": 0, + "max": 0 +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md b/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md new file mode 100644 index 0000000000..82859eaabd --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md b/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md new file mode 100644 index 0000000000..3b9530eec4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md @@ -0,0 +1,5 @@ +GET /v1/databases HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md new file mode 100644 index 0000000000..847b2342fe --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/indexes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md new file mode 100644 index 0000000000..d22624083f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md @@ -0,0 +1,7 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md b/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md new file mode 100644 index 0000000000..d3a4230165 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..4327743a81 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/boolean/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": false, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-database.md b/docs/examples/1.8.x/server-rest/examples/grids/update-database.md new file mode 100644 index 0000000000..d57ad48927 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-database.md @@ -0,0 +1,11 @@ +PUT /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "name": "", + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..bbdc0c3bc4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/datetime/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": , + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md new file mode 100644 index 0000000000..b9145a1c33 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/email/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "email@example.com", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..8d3d6c359f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/enum/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "elements": [], + "required": false, + "default": "", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md new file mode 100644 index 0000000000..5e1a67c6a1 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md @@ -0,0 +1,14 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/float/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "min": 0, + "max": 0, + "default": 0, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..f45fbf278f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md @@ -0,0 +1,14 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/integer/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "min": 0, + "max": 0, + "default": 0, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..5080aaab25 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/ip/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": , + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..d5d188ced4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key}/relationship HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "onDelete": "cascade", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-row.md b/docs/examples/1.8.x/server-rest/examples/grids/update-row.md new file mode 100644 index 0000000000..015fa8faf1 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-row.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md new file mode 100644 index 0000000000..eb5b77bb31 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "data": {}, + "queries": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md new file mode 100644 index 0000000000..eda416a4d9 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/string/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "size": 1, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-table.md b/docs/examples/1.8.x/server-rest/examples/grids/update-table.md new file mode 100644 index 0000000000..02d68944f9 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-table.md @@ -0,0 +1,13 @@ +PUT /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "name": "", + "permissions": ["read(\"any\")"], + "rowSecurity": false, + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md new file mode 100644 index 0000000000..4e0796887a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/url/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "https://example.com", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md new file mode 100644 index 0000000000..c461d7c981 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md @@ -0,0 +1,13 @@ +PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..5d9446550f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md @@ -0,0 +1,10 @@ +PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "rows": [] +} diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..592f6028aa --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_boolean_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: false, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md new file mode 100644 index 0000000000..db94d2386e --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_database( + database_id: '', + name: '', + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..4bc97b94ae --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_datetime_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md new file mode 100644 index 0000000000..4a1687d405 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_email_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'email@example.com', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..2a9b6de5de --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_enum_column( + database_id: '', + table_id: '', + key: '', + elements: [], + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md new file mode 100644 index 0000000000..0cd3bee568 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_float_column( + database_id: '', + table_id: '', + key: '', + required: false, + min: null, # optional + max: null, # optional + default: null, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md new file mode 100644 index 0000000000..7ef4c2c790 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_index( + database_id: '', + table_id: '', + key: '', + type: IndexType::KEY, + columns: [], + orders: [], # optional + lengths: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..ae7c416965 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_integer_column( + database_id: '', + table_id: '', + key: '', + required: false, + min: null, # optional + max: null, # optional + default: null, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..e407abaee8 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_ip_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..3aecd5757d --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md @@ -0,0 +1,22 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_relationship_column( + database_id: '', + table_id: '', + related_table_id: '', + type: RelationshipType::ONETOONE, + two_way: false, # optional + key: '', # optional + two_way_key: '', # optional + on_delete: RelationMutate::CASCADE # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md new file mode 100644 index 0000000000..4c4433bd10 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.create_row( + database_id: '', + table_id: '', + row_id: '', + data: {}, + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md new file mode 100644 index 0000000000..1e619d25ce --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_rows( + database_id: '', + table_id: '', + rows: [] +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md new file mode 100644 index 0000000000..7808c6cfa2 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_string_column( + database_id: '', + table_id: '', + key: '', + size: 1, + required: false, + default: '', # optional + array: false, # optional + encrypt: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md new file mode 100644 index 0000000000..ef3bc4b5cf --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_table( + database_id: '', + table_id: '', + name: '', + permissions: ["read("any")"], # optional + row_security: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md new file mode 100644 index 0000000000..55ff12a1c0 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_url_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'https://example.com', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..fcbc6efedc --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.decrement_row_column( + database_id: '', + table_id: '', + row_id: '', + column: '', + value: null, # optional + min: null # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md new file mode 100644 index 0000000000..79cf84f3fd --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_column( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md new file mode 100644 index 0000000000..54d3660b9f --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_database( + database_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md new file mode 100644 index 0000000000..3968cfb675 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_index( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md new file mode 100644 index 0000000000..183f02c5d3 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.delete_row( + database_id: '', + table_id: '', + row_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md new file mode 100644 index 0000000000..560d63b033 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_rows( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md new file mode 100644 index 0000000000..d0c15da17c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_table( + database_id: '', + table_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md new file mode 100644 index 0000000000..6288772e65 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.get_column( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md new file mode 100644 index 0000000000..49a5cde300 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.get_database( + database_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md new file mode 100644 index 0000000000..78a923c0ff --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.get_index( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md new file mode 100644 index 0000000000..e8dc2cb6b1 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.get_row( + database_id: '', + table_id: '', + row_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md new file mode 100644 index 0000000000..bafdfe1140 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.get_table( + database_id: '', + table_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..d09f72080c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.increment_row_column( + database_id: '', + table_id: '', + row_id: '', + column: '', + value: null, # optional + max: null # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md new file mode 100644 index 0000000000..343775300b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.list_columns( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md new file mode 100644 index 0000000000..21e54951ee --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.list_databases( + queries: [], # optional + search: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md new file mode 100644 index 0000000000..2229c87249 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.list_indexes( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md new file mode 100644 index 0000000000..40b7be88a7 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.list_rows( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md new file mode 100644 index 0000000000..69b213d3f3 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.list_tables( + database_id: '', + queries: [], # optional + search: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..78055c777f --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_boolean_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: false, + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md new file mode 100644 index 0000000000..79216c3fd3 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_database( + database_id: '', + name: '', + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..1737c5a020 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_datetime_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md new file mode 100644 index 0000000000..bc1f4cd7b6 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_email_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'email@example.com', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..5012002e29 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_enum_column( + database_id: '', + table_id: '', + key: '', + elements: [], + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md new file mode 100644 index 0000000000..e05037f10c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_float_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..3ec34bd2f2 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_integer_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..5394075ae5 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_ip_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..2c730048de --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_relationship_column( + database_id: '', + table_id: '', + key: '', + on_delete: RelationMutate::CASCADE, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md new file mode 100644 index 0000000000..57dd5cd381 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.update_row( + database_id: '', + table_id: '', + row_id: '', + data: {}, # optional + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md new file mode 100644 index 0000000000..602670d67f --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_rows( + database_id: '', + table_id: '', + data: {}, # optional + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md new file mode 100644 index 0000000000..09de9ba697 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_string_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + size: 1, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md new file mode 100644 index 0000000000..742a0c9829 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_table( + database_id: '', + table_id: '', + name: '', + permissions: ["read("any")"], # optional + row_security: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md new file mode 100644 index 0000000000..fc3f055708 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_url_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'https://example.com', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md new file mode 100644 index 0000000000..2cf50d92d9 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.upsert_row( + database_id: '', + table_id: '', + row_id: '', + data: {}, # optional + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..af3a7e1dbf --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.upsert_rows( + database_id: '', + table_id: '', + rows: [] +) diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..4d0a226eb2 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnBoolean = try await grids.createBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-database.md b/docs/examples/1.8.x/server-swift/examples/grids/create-database.md new file mode 100644 index 0000000000..75ec62df4b --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-database.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let database = try await grids.createDatabase( + databaseId: "", + name: "", + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..8271b44c9f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnDatetime = try await grids.createDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md new file mode 100644 index 0000000000..ca99534c78 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnEmail = try await grids.createEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..3d52e94a96 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnEnum = try await grids.createEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md new file mode 100644 index 0000000000..f0abdc7b9f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnFloat = try await grids.createFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-index.md b/docs/examples/1.8.x/server-swift/examples/grids/create-index.md new file mode 100644 index 0000000000..2d0c1272b2 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-index.md @@ -0,0 +1,20 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIndex = try await grids.createIndex( + databaseId: "", + tableId: "", + key: "", + type: .key, + columns: [], + orders: [], // optional + lengths: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..dca7968bfb --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnInteger = try await grids.createIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..9517ed960f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIp = try await grids.createIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..1ead20f97d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md @@ -0,0 +1,21 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnRelationship = try await grids.createRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: .oneToOne, + twoWay: false, // optional + key: "", // optional + twoWayKey: "", // optional + onDelete: .cascade // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-row.md b/docs/examples/1.8.x/server-swift/examples/grids/create-row.md new file mode 100644 index 0000000000..9d042b4034 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-row.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let row = try await grids.createRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md new file mode 100644 index 0000000000..3e1aced6e7 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let rowList = try await grids.createRows( + databaseId: "", + tableId: "", + rows: [] +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md new file mode 100644 index 0000000000..74eea86fe4 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnString = try await grids.createStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false, // optional + encrypt: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-table.md b/docs/examples/1.8.x/server-swift/examples/grids/create-table.md new file mode 100644 index 0000000000..3792c0aee4 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-table.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let table = try await grids.createTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md new file mode 100644 index 0000000000..7ea729aa1a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnUrl = try await grids.createUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..9445843d71 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let row = try await grids.decrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + min: 0 // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md new file mode 100644 index 0000000000..b58a4d0890 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.deleteColumn( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md new file mode 100644 index 0000000000..e7600d7726 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.deleteDatabase( + databaseId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md new file mode 100644 index 0000000000..d83cd551da --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.deleteIndex( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md new file mode 100644 index 0000000000..d2d77234a3 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let result = try await grids.deleteRow( + databaseId: "", + tableId: "", + rowId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md new file mode 100644 index 0000000000..6a3f145526 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let rowList = try await grids.deleteRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md new file mode 100644 index 0000000000..8abdfcae2d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.deleteTable( + databaseId: "", + tableId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-column.md b/docs/examples/1.8.x/server-swift/examples/grids/get-column.md new file mode 100644 index 0000000000..68c0d3933d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-column.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.getColumn( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-database.md b/docs/examples/1.8.x/server-swift/examples/grids/get-database.md new file mode 100644 index 0000000000..f3936ae4ba --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-database.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let database = try await grids.getDatabase( + databaseId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-index.md b/docs/examples/1.8.x/server-swift/examples/grids/get-index.md new file mode 100644 index 0000000000..24c3be9e27 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-index.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIndex = try await grids.getIndex( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-row.md b/docs/examples/1.8.x/server-swift/examples/grids/get-row.md new file mode 100644 index 0000000000..4d3e53cba6 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let row = try await grids.getRow( + databaseId: "", + tableId: "", + rowId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-table.md b/docs/examples/1.8.x/server-swift/examples/grids/get-table.md new file mode 100644 index 0000000000..9ad5e0c202 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-table.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let table = try await grids.getTable( + databaseId: "", + tableId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..00d9663c22 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let row = try await grids.incrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + max: 0 // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md b/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md new file mode 100644 index 0000000000..facf87f9a3 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnList = try await grids.listColumns( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md b/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md new file mode 100644 index 0000000000..26d50a24b1 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let databaseList = try await grids.listDatabases( + queries: [], // optional + search: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md new file mode 100644 index 0000000000..c31f162d5d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIndexList = try await grids.listIndexes( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md new file mode 100644 index 0000000000..01dd6637fc --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let rowList = try await grids.listRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md b/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md new file mode 100644 index 0000000000..af8cdd1264 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let tableList = try await grids.listTables( + databaseId: "", + queries: [], // optional + search: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..8994b79e7c --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnBoolean = try await grids.updateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-database.md b/docs/examples/1.8.x/server-swift/examples/grids/update-database.md new file mode 100644 index 0000000000..827245bd97 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-database.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let database = try await grids.updateDatabase( + databaseId: "", + name: "", + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..7a59cd1ef1 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnDatetime = try await grids.updateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md new file mode 100644 index 0000000000..3704401fa5 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnEmail = try await grids.updateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..946804a88c --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnEnum = try await grids.updateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md new file mode 100644 index 0000000000..10f0babb2c --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnFloat = try await grids.updateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..60e145e3b0 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnInteger = try await grids.updateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..17f490d644 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIp = try await grids.updateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..994feefa92 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md @@ -0,0 +1,18 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnRelationship = try await grids.updateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: .cascade, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-row.md b/docs/examples/1.8.x/server-swift/examples/grids/update-row.md new file mode 100644 index 0000000000..3e4408f700 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-row.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let row = try await grids.updateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md new file mode 100644 index 0000000000..c57463cc8a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let rowList = try await grids.updateRows( + databaseId: "", + tableId: "", + data: [:], // optional + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md new file mode 100644 index 0000000000..e9e2d71c62 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnString = try await grids.updateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-table.md b/docs/examples/1.8.x/server-swift/examples/grids/update-table.md new file mode 100644 index 0000000000..8b3fa5e12e --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-table.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let table = try await grids.updateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md new file mode 100644 index 0000000000..b72666e240 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnUrl = try await grids.updateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md new file mode 100644 index 0000000000..1d09e7b767 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let row = try await grids.upsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..84173c9c0f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let rowList = try await grids.upsertRows( + databaseId: "", + tableId: "", + rows: [] +) + From d25332987010bbdc49b429253cc633ac56a6b524 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 17:28:24 +0530 Subject: [PATCH 13/24] remove: local setup. --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76ca3e7ae2..b2b76be8d1 100755 --- a/Dockerfile +++ b/Dockerfile @@ -42,8 +42,6 @@ COPY ./bin /usr/local/bin COPY ./src /usr/src/code/src COPY ./dev /usr/src/code/dev -COPY ./vendor/appwrite/sdk-generator /usr/src/code/vendor/appwrite/sdk-generator - # Set Volumes RUN mkdir -p /storage/uploads && \ mkdir -p /storage/imports && \ From e41ee30ed9986bfe0a5f922134003708b1ddc853 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 17:28:37 +0530 Subject: [PATCH 14/24] remove: local setup. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b2b76be8d1..30b017b573 100755 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ COPY --from=composer /usr/local/src/vendor /usr/src/code/vendor COPY ./app /usr/src/code/app COPY ./public /usr/src/code/public COPY ./bin /usr/local/bin -#COPY ./docs /usr/src/code/docs +COPY ./docs /usr/src/code/docs COPY ./src /usr/src/code/src COPY ./dev /usr/src/code/dev From d17e7e853b967f20b0ea9b6dd3c510903d7375f0 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 17:39:43 +0530 Subject: [PATCH 15/24] update: deprecation methods. --- .../Http/Databases/Collections/Attributes/Boolean/Create.php | 2 +- .../Http/Databases/Collections/Attributes/Boolean/Update.php | 2 +- .../Http/Databases/Collections/Attributes/Datetime/Create.php | 2 +- .../Http/Databases/Collections/Attributes/Datetime/Update.php | 2 +- .../Http/Databases/Collections/Attributes/Delete.php | 2 +- .../Http/Databases/Collections/Attributes/Email/Create.php | 2 +- .../Http/Databases/Collections/Attributes/Email/Update.php | 2 +- .../Http/Databases/Collections/Attributes/Enum/Create.php | 2 +- .../Http/Databases/Collections/Attributes/Enum/Update.php | 2 +- .../Http/Databases/Collections/Attributes/Float/Create.php | 2 +- .../Http/Databases/Collections/Attributes/Float/Update.php | 2 +- .../Databases/Http/Databases/Collections/Attributes/Get.php | 2 +- .../Http/Databases/Collections/Attributes/IP/Create.php | 2 +- .../Http/Databases/Collections/Attributes/IP/Update.php | 2 +- .../Http/Databases/Collections/Attributes/Integer/Create.php | 2 +- .../Http/Databases/Collections/Attributes/Integer/Update.php | 2 +- .../Databases/Collections/Attributes/Relationship/Create.php | 2 +- .../Databases/Collections/Attributes/Relationship/Update.php | 2 +- .../Http/Databases/Collections/Attributes/String/Create.php | 2 +- .../Http/Databases/Collections/Attributes/String/Update.php | 2 +- .../Http/Databases/Collections/Attributes/URL/Create.php | 2 +- .../Http/Databases/Collections/Attributes/URL/Update.php | 2 +- .../Databases/Http/Databases/Collections/Attributes/XList.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Create.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Delete.php | 2 +- .../Databases/Collections/Documents/Attribute/Decrement.php | 2 +- .../Databases/Collections/Documents/Attribute/Increment.php | 2 +- .../Http/Databases/Collections/Documents/Bulk/Delete.php | 2 +- .../Http/Databases/Collections/Documents/Bulk/Update.php | 2 +- .../Http/Databases/Collections/Documents/Bulk/Upsert.php | 2 +- .../Databases/Http/Databases/Collections/Documents/Create.php | 4 ++-- .../Databases/Http/Databases/Collections/Documents/Delete.php | 2 +- .../Databases/Http/Databases/Collections/Documents/Get.php | 2 +- .../Http/Databases/Collections/Documents/Logs/XList.php | 2 +- .../Databases/Http/Databases/Collections/Documents/Update.php | 2 +- .../Databases/Http/Databases/Collections/Documents/Upsert.php | 2 +- .../Databases/Http/Databases/Collections/Documents/XList.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Get.php | 2 +- .../Databases/Http/Databases/Collections/Indexes/Create.php | 2 +- .../Databases/Http/Databases/Collections/Indexes/Delete.php | 2 +- .../Databases/Http/Databases/Collections/Indexes/Get.php | 2 +- .../Databases/Http/Databases/Collections/Indexes/XList.php | 2 +- .../Databases/Http/Databases/Collections/Logs/XList.php | 2 +- .../Modules/Databases/Http/Databases/Collections/Update.php | 2 +- .../Databases/Http/Databases/Collections/Usage/Get.php | 2 +- .../Modules/Databases/Http/Databases/Collections/XList.php | 2 +- 46 files changed, 47 insertions(+), 47 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php index 04fc96456e..ba44cf5900 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php @@ -55,7 +55,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createBooleanColumn', + replaceWith: 'grids.createBooleanColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php index 487eca769f..2c46e457b8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php @@ -56,7 +56,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateBooleanColumn', + replaceWith: 'grids.updateBooleanColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php index a750a53d75..693b87726e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php @@ -56,7 +56,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createDatetimeColumn', + replaceWith: 'grids.createDatetimeColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php index 8d7a383cf1..3bc76b5ecb 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php @@ -57,7 +57,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateDatetimeColumn', + replaceWith: 'grids.updateDatetimeColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php index 67ee8d814d..c86bb956f9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php @@ -57,7 +57,7 @@ class Delete extends Action contentType: ContentType::NONE, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.deleteColumn', + replaceWith: 'grids.deleteColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php index 9037ce1dcb..6638622bae 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php @@ -56,7 +56,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createEmailColumn', + replaceWith: 'grids.createEmailColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php index bfe9733449..66d0e611b4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php @@ -57,7 +57,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateEmailColumn', + replaceWith: 'grids.updateEmailColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php index b54dd1c0ad..414aa12e1b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php @@ -58,7 +58,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createEnumColumn', + replaceWith: 'grids.createEnumColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php index 2fde9eaecc..201af5c394 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php @@ -58,7 +58,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateEnumColumn', + replaceWith: 'grids.updateEnumColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php index bc1eb2d4c9..4d2bb1f827 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php @@ -58,7 +58,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createFloatColumn', + replaceWith: 'grids.createFloatColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php index cb770067ff..74e81210be 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php @@ -57,7 +57,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateFloatColumn', + replaceWith: 'grids.updateFloatColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php index a9d4d36758..5fedfc608a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php @@ -60,7 +60,7 @@ class Get extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.getColumn', + replaceWith: 'grids.getColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php index e49b775a54..a022fe39a9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php @@ -56,7 +56,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createIpColumn', + replaceWith: 'grids.createIpColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php index 44b8347807..70495b1755 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php @@ -57,7 +57,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateIpColumn', + replaceWith: 'grids.updateIpColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php index ea8a38e6c1..d7c345759d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php @@ -58,7 +58,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createIntegerColumn', + replaceWith: 'grids.createIntegerColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php index 39e8bad1f9..c29f634114 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php @@ -57,7 +57,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateIntegerColumn', + replaceWith: 'grids.updateIntegerColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php index a062b96a36..a4112bacd1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php @@ -58,7 +58,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createRelationshipColumn', + replaceWith: 'grids.createRelationshipColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php index 08a6475bb0..b71d7175a0 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php @@ -55,7 +55,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateRelationshipColumn', + replaceWith: 'grids.updateRelationshipColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php index c1692c77d6..d3fa0a01dc 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php @@ -60,7 +60,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createStringColumn', + replaceWith: 'grids.createStringColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php index 770854f0f9..e450abe88a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php @@ -59,7 +59,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateStringColumn', + replaceWith: 'grids.updateStringColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php index d471cf24f1..86474d4ca4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php @@ -56,7 +56,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createUrlColumn', + replaceWith: 'grids.createUrlColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php index dc475194c8..c3e6456c11 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php @@ -57,7 +57,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateUrlColumn', + replaceWith: 'grids.updateUrlColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php index f4ff635759..7b01e7c4fa 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php @@ -54,7 +54,7 @@ class XList extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.listColumns', + replaceWith: 'grids.listColumns', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php index a88652b9e1..c3fdd372ee 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php @@ -65,7 +65,7 @@ class Create extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.create', + replaceWith: 'grids.createTable', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php index 642d0d0978..f6755f7437 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php @@ -55,7 +55,7 @@ class Delete extends Action contentType: ContentType::NONE, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.delete', + replaceWith: 'grids.deleteTable', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php index cb38f8f75e..49a408e64c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php @@ -65,7 +65,7 @@ class Decrement extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.decrementRowColumn', + replaceWith: 'grids.decrementRowColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php index 82b688caae..5eadc96b9e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php @@ -65,7 +65,7 @@ class Increment extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.incrementRowColumn', + replaceWith: 'grids.incrementRowColumn', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php index e6ce45f2f9..440927d45c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php @@ -63,7 +63,7 @@ class Delete extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.deleteRows', + replaceWith: 'grids.deleteRows', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php index e153d0af20..daa7179395 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php @@ -66,7 +66,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateRows', + replaceWith: 'grids.updateRows', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php index 687a426a3a..6b5da25a2c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php @@ -64,7 +64,7 @@ class Upsert extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.upsertRows', + replaceWith: 'grids.upsertRows', ), ) ]) 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 64b1280eff..46bf9c3f55 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 @@ -84,7 +84,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createRow', + replaceWith: 'grids.createRow', ), ), new Method( @@ -107,7 +107,7 @@ class Create extends Action ], deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createRows', + replaceWith: 'grids.createRows', ), ) ]) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php index 8b0b43c05e..7bc81ab7db 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php @@ -65,7 +65,7 @@ class Delete extends Action contentType: ContentType::NONE, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.deleteRow', + replaceWith: 'grids.deleteRow', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php index 35463d2d40..f3e2a24672 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php @@ -56,7 +56,7 @@ class Get extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.getRow', + replaceWith: 'grids.getRow', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Logs/XList.php index 482b0fb05c..f8ae29bd3e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Logs/XList.php @@ -62,7 +62,7 @@ class XList extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.listLogs', + replaceWith: 'grids.listRowLogs', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php index 450f555dd2..0be66f0f40 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php @@ -69,7 +69,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.updateRow', + replaceWith: 'grids.updateRow', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php index f514237fdf..c42b4ee6fd 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php @@ -71,7 +71,7 @@ class Upsert extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.upsertRow', + replaceWith: 'grids.upsertRow', ), ), ]) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php index 9c00f9548c..42fe51e09a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php @@ -59,7 +59,7 @@ class XList extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.listRows', + replaceWith: 'grids.listRows', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php index 67c6cea5f3..3dfff2a621 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php @@ -50,7 +50,7 @@ class Get extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.get', + replaceWith: 'grids.getTable', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php index a826ade364..5ba1fff5bf 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php @@ -65,7 +65,7 @@ class Create extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.createIndex', + replaceWith: 'grids.createIndex', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php index 1b62e2bec8..80ccd8fadf 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php @@ -60,7 +60,7 @@ class Delete extends Action contentType: ContentType::NONE, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.deleteIndex', + replaceWith: 'grids.deleteIndex', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php index 957ca98f61..475835538a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php @@ -51,7 +51,7 @@ class Get extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.getIndex', + replaceWith: 'grids.getIndex', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php index ed570d8abd..643360c12d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php @@ -56,7 +56,7 @@ class XList extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.listIndexes', + replaceWith: 'grids.listIndexes', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php index 9527859efa..0eca31e679 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php @@ -62,7 +62,7 @@ class XList extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.listLogs', + replaceWith: 'grids.listTableLogs', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php index cc29b6ea66..09b3ee2b35 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php @@ -58,7 +58,7 @@ class Update extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.update', + replaceWith: 'grids.updateTable', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php index d829d18714..ec46f77581 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php @@ -55,7 +55,7 @@ class Get extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.getUsage', + replaceWith: 'grids.getTableUsage', ), )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php index 13269834a2..1b2f3cab32 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php @@ -57,7 +57,7 @@ class XList extends Action contentType: ContentType::JSON, deprecated: new Deprecated( since: '1.8.0', - replaceWith: 'tables.list', + replaceWith: 'grids.listTables', ), )) ->param('databaseId', '', new UID(), 'Database ID.') From 4146671ff8216fba92f3fcf6dc1dfd37342ac35e Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 17:55:07 +0530 Subject: [PATCH 16/24] address comments. --- .../Databases/Http/Databases/Create.php | 49 +++++++++---- .../Databases/Http/Databases/Delete.php | 49 +++++++++---- .../Modules/Databases/Http/Databases/Get.php | 49 +++++++++---- .../Databases/Http/Databases/Logs/XList.php | 49 +++++++++---- .../Databases/Http/Databases/Update.php | 49 +++++++++---- .../Databases/Http/Databases/Usage/Get.php | 50 +++++++++---- .../Databases/Http/Databases/Usage/XList.php | 49 +++++++++---- .../Databases/Http/Databases/XList.php | 49 +++++++++---- .../Platform/Modules/Databases/SDKMethod.php | 72 ------------------- 9 files changed, 281 insertions(+), 184 deletions(-) delete mode 100644 src/Appwrite/Platform/Modules/Databases/SDKMethod.php diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php index 0dbe3eebbd..9b52b482bb 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php @@ -4,9 +4,10 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Event\Event; use Appwrite\Extend\Exception; -use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; +use Appwrite\SDK\Deprecated; +use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Response as UtopiaResponse; @@ -42,20 +43,40 @@ class Create extends Action ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'database.create') ->label('audits.resource', 'database/{response.$id}') - ->label('sdk', SDKMethod::withGridsAPI( - namespace: 'databases', - group: 'databases', - name: 'create', - description: '/docs/references/databases/create.md', - auth: [AuthType::KEY], - responses: [ - new SDKResponse( - code: SwooleResponse::STATUS_CODE_CREATED, - model: UtopiaResponse::MODEL_DATABASE, + ->label('sdk', [ + new Method( + namespace: 'databases', + group: 'databases', + name: 'create', + description: '/docs/references/databases/create.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_CREATED, + model: UtopiaResponse::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'grids.createDatabase', ) - ], - contentType: ContentType::JSON - )) + ), + new Method( + namespace: 'grids', + group: 'grids', + name: 'createDatabase', + description: '/docs/references/grids/create-database.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_CREATED, + model: UtopiaResponse::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON + ) + ]) ->param('databaseId', '', new CustomId(), 'Unique 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.') ->param('name', '', new Text(128), 'Database name. Max length: 128 chars.') ->param('enabled', true, new Boolean(), 'Is the database enabled? When set to \'disabled\', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.', true) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Delete.php index fb5594abb8..388b5edf7e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Delete.php @@ -5,9 +5,10 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Event\Database as EventDatabase; use Appwrite\Event\Event; use Appwrite\Extend\Exception; -use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; +use Appwrite\SDK\Deprecated; +use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; @@ -34,20 +35,40 @@ class Delete extends Action ->label('event', 'databases.[databaseId].delete') ->label('audits.event', 'database.delete') ->label('audits.resource', 'database/{request.databaseId}') - ->label('sdk', SDKMethod::withGridsAPI( - namespace: 'databases', - group: 'databases', - name: 'delete', - description: '/docs/references/databases/delete.md', - auth: [AuthType::KEY], - responses: [ - new SDKResponse( - code: SwooleResponse::STATUS_CODE_NOCONTENT, - model: UtopiaResponse::MODEL_NONE, + ->label('sdk', [ + new Method( + namespace: 'databases', + group: 'databases', + name: 'delete', + description: '/docs/references/databases/delete.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_NOCONTENT, + model: UtopiaResponse::MODEL_NONE, + ) + ], + contentType: ContentType::NONE, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'grids.deleteDatabase', ) - ], - contentType: ContentType::NONE - )) + ), + new Method( + namespace: 'grids', + group: 'grids', + name: 'deleteDatabase', + description: '/docs/references/grids/delete-database.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_NOCONTENT, + model: UtopiaResponse::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + ), + ]) ->param('databaseId', '', new UID(), 'Database ID.') ->inject('response') ->inject('dbForProject') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Get.php index ff4a9af0a4..a3ac4d0da0 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Get.php @@ -3,9 +3,10 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Extend\Exception; -use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; +use Appwrite\SDK\Deprecated; +use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; @@ -29,20 +30,40 @@ class Get extends Action ->groups(['api', 'database']) ->label('scope', 'databases.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', SDKMethod::withGridsAPI( - namespace: 'databases', - group: 'databases', - name: 'get', - description: '/docs/references/databases/get.md', - auth: [AuthType::KEY], - responses: [ - new SDKResponse( - code: SwooleResponse::STATUS_CODE_OK, - model: UtopiaResponse::MODEL_DATABASE, + ->label('sdk', [ + new Method( + namespace: 'databases', + group: 'databases', + name: 'get', + description: '/docs/references/databases/get.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'grids.getDatabase', ) - ], - contentType: ContentType::JSON - )) + ), + new Method( + namespace: 'grids', + group: 'grids', + name: 'getDatabase', + description: '/docs/references/grids/get-database.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON + ), + ]) ->param('databaseId', '', new UID(), 'Database ID.') ->inject('response') ->inject('dbForProject') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Logs/XList.php index 6d3e30f52a..5828b9f8b8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Logs/XList.php @@ -3,9 +3,10 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Logs; use Appwrite\Extend\Exception; -use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; +use Appwrite\SDK\Deprecated; +use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use DeviceDetector\DeviceDetector as Detector; @@ -41,20 +42,40 @@ class XList extends Action ->groups(['api', 'database']) ->label('scope', 'databases.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', SDKMethod::withGridsAPI( - namespace: 'databases', - group: 'logs', - name: 'listLogs', - description: '/docs/references/databases/get-logs.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: SwooleResponse::STATUS_CODE_OK, - model: UtopiaResponse::MODEL_LOG_LIST, + ->label('sdk', [ + new Method( + namespace: 'databases', + group: 'logs', + name: 'listLogs', + description: '/docs/references/databases/get-logs.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_LOG_LIST, + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'grids.listDatabaseLogs', ) - ], - contentType: ContentType::JSON - )) + ), + new Method( + namespace: 'grids', + group: 'logs', + name: 'listDatabaseLogs', + description: '/docs/references/grids/list-database-logs.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_LOG_LIST, + ) + ], + contentType: ContentType::JSON + ), + ]) ->param('databaseId', '', new UID(), 'Database ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php index d164325469..b2b268075c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php @@ -4,9 +4,10 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Event\Event; use Appwrite\Extend\Exception; -use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; +use Appwrite\SDK\Deprecated; +use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; @@ -35,20 +36,40 @@ class Update extends Action ->label('event', 'databases.[databaseId].update') ->label('audits.event', 'database.update') ->label('audits.resource', 'database/{response.$id}') - ->label('sdk', SDKMethod::withGridsAPI( - namespace: 'databases', - group: 'databases', - name: 'update', - description: '/docs/references/databases/update.md', - auth: [AuthType::KEY], - responses: [ - new SDKResponse( - code: SwooleResponse::STATUS_CODE_OK, - model: UtopiaResponse::MODEL_DATABASE, + ->label('sdk', [ + new Method( + namespace: 'databases', + group: 'databases', + name: 'update', + description: '/docs/references/databases/update.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'grids.updateDatabase', ) - ], - contentType: ContentType::JSON - )) + ), + new Method( + namespace: 'grids', + group: 'grids', + name: 'updateDatabase', + description: '/docs/references/grids/update-database.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON + ), + ]) ->param('databaseId', '', new UID(), 'Database ID.') ->param('name', null, new Text(128), 'Database name. Max length: 128 chars.') ->param('enabled', true, new Boolean(), 'Is database enabled? When set to \'disabled\', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.', true) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/Get.php index fcdb4c615d..8efb6ae0ee 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/Get.php @@ -3,9 +3,10 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Usage; use Appwrite\Extend\Exception; -use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; +use Appwrite\SDK\Deprecated; +use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Config\Config; @@ -34,20 +35,41 @@ class Get extends Action ->groups(['api', 'database', 'usage']) ->label('scope', 'collections.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', SDKMethod::withGridsAPI( - namespace: 'databases', - group: null, - name: self::getName(), - description: '/docs/references/databases/get-database-usage.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: SwooleResponse::STATUS_CODE_OK, - model: UtopiaResponse::MODEL_USAGE_DATABASE, + ->label('sdk', [ + new Method( + namespace: 'databases', + group: null, + name: self::getName(), + description: '/docs/references/databases/get-database-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_USAGE_DATABASE, + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'grids.' . self::getName(), ) - ], - contentType: ContentType::JSON, - )) + ), + new Method( + namespace: 'grids', + group: null, + name: self::getName(), + description: '/docs/references/grids/get-database-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_USAGE_DATABASE, + ) + ], + contentType: ContentType::JSON, + ), + + ]) ->param('databaseId', '', new UID(), 'Database ID.') ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true) ->inject('response') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/XList.php index b3ff8a6fac..31d520611e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Usage/XList.php @@ -2,9 +2,10 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Usage; -use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; +use Appwrite\SDK\Deprecated; +use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Config\Config; @@ -32,20 +33,40 @@ class XList extends Action ->groups(['api', 'database', 'usage']) ->label('scope', 'collections.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', SDKMethod::withGridsAPI( - namespace: 'databases', - group: null, - name: self::getName(), - description: '/docs/references/databases/list-usage.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: SwooleResponse::STATUS_CODE_OK, - model: UtopiaResponse::MODEL_USAGE_DATABASES, + ->label('sdk', [ + new Method( + namespace: 'databases', + group: null, + name: self::getName(), + description: '/docs/references/databases/list-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_USAGE_DATABASES, + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'grids.listDatabaseUsage' ) - ], - contentType: ContentType::JSON - )) + ), + new Method( + namespace: 'grids', + group: null, + name: 'listDatabaseUsage', + description: '/docs/references/grids/list-database-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_USAGE_DATABASES, + ) + ], + contentType: ContentType::JSON + ), + ]) ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true) ->inject('response') ->inject('dbForProject') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php index 1806cdc3fb..fdf3428101 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/XList.php @@ -3,9 +3,10 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Extend\Exception; -use Appwrite\Platform\Modules\Databases\SDKMethod; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; +use Appwrite\SDK\Deprecated; +use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\Queries\Databases; use Appwrite\Utopia\Response as UtopiaResponse; @@ -35,20 +36,40 @@ class XList extends Action ->groups(['api', 'database']) ->label('scope', 'databases.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) - ->label('sdk', SDKMethod::withGridsAPI( - namespace: 'databases', - group: 'databases', - name: 'list', - description: '/docs/references/databases/list.md', - auth: [AuthType::KEY], - responses: [ - new SDKResponse( - code: SwooleResponse::STATUS_CODE_OK, - model: UtopiaResponse::MODEL_DATABASE_LIST, + ->label('sdk', [ + new Method( + namespace: 'databases', + group: 'databases', + name: 'list', + description: '/docs/references/databases/list.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_DATABASE_LIST, + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'grids.listDatabases', ) - ], - contentType: ContentType::JSON - )) + ), + new Method( + namespace: 'grids', + group: 'grids', + name: 'listDatabases', + description: '/docs/references/grids/list-databases.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: UtopiaResponse::MODEL_DATABASE_LIST, + ) + ], + contentType: ContentType::JSON + ), + ]) ->param('queries', [], new Databases(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Databases::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') diff --git a/src/Appwrite/Platform/Modules/Databases/SDKMethod.php b/src/Appwrite/Platform/Modules/Databases/SDKMethod.php deleted file mode 100644 index e3f12776c2..0000000000 --- a/src/Appwrite/Platform/Modules/Databases/SDKMethod.php +++ /dev/null @@ -1,72 +0,0 @@ - ['name' => 'createDatabase', 'docs' => 'create-database'], - 'list' => ['name' => 'listDatabases', 'docs' => 'list-databases'], - 'get' => ['name' => 'getDatabase', 'docs' => 'get-database'], - 'update' => ['name' => 'updateDatabase', 'docs' => 'update-database'], - 'delete' => ['name' => 'deleteDatabase', 'docs' => 'delete-database'], - 'listLogs' => ['name' => 'listDatabaseLogs', 'docs' => 'list-database-logs'], - 'listUsage' => ['name' => 'listDatabaseUsage', 'docs' => 'list-database-usage'], - 'getDatabaseUsage' => ['name' => 'getDatabaseUsage', 'docs' => 'get-database-usage'], - ]; - - /** - * @return Method[] - */ - public static function withGridsAPI( - string $namespace, - ?string $group, - string $name, - string $description, - array $auth, - array $responses, - ContentType $contentType, - ): array { - return [ - new Method( - namespace: $namespace, - group: $group, - name: $name, - description: $description, - auth: $auth, - responses: $responses, - contentType: $contentType, - ), - new Method( - namespace: 'grids', - group: $group === null ? null : 'grids', - name: self::transformNameForGrids($name), - description: self::transformDocsPathForGrids($description), - auth: $auth, - responses: $responses, - contentType: $contentType, - ) - ]; - } - - private static function transformNameForGrids(string $original): string - { - return self::SDK_INFO_MAP[$original]['name'] ?? $original; - } - - private static function transformDocsPathForGrids(string $original): string - { - $path = str_replace('/databases/', '/grids/', $original); - - foreach (self::SDK_INFO_MAP as $from => $mapped) { - if (str_ends_with($path, "/$from.md")) { - return substr($path, 0, -strlen("$from.md")) . $mapped['docs'] . '.md'; - } - } - - return $path; - } -} From 7a5a3706b6ec63495b0995de5e23c8274f66cea7 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 18:13:30 +0530 Subject: [PATCH 17/24] fix: tests. --- tests/e2e/General/UsageTest.php | 12 +++++----- .../Services/Migrations/MigrationsBase.php | 23 +++++++++---------- .../Realtime/RealtimeConsoleClientTest.php | 10 ++++---- tests/e2e/Services/Webhooks/WebhooksBase.php | 18 +++++++-------- .../Webhooks/WebhooksCustomServerTest.php | 10 ++++---- 5 files changed, 36 insertions(+), 37 deletions(-) diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index b5800eac37..090f1faec7 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -713,7 +713,7 @@ class UsageTest extends Scope $response = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables', + '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] @@ -742,7 +742,7 @@ class UsageTest extends Scope if ($i < (self::CREATE / 2)) { $response = $this->client->call( Client::METHOD_DELETE, - '/databases/' . $databaseId . '/tables/' . $tableId, + '/databases/' . $databaseId . '/grids/tables/' . $tableId, array_merge([ 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), @@ -757,7 +757,7 @@ class UsageTest extends Scope $response = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/columns' . '/string', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns' . '/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] @@ -780,7 +780,7 @@ class UsageTest extends Scope $response = $this->client->call( Client::METHOD_POST, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] @@ -802,7 +802,7 @@ class UsageTest extends Scope if ($i < (self::CREATE / 2)) { $response = $this->client->call( Client::METHOD_DELETE, - '/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/rows/' . $rowId, array_merge([ 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), @@ -898,7 +898,7 @@ class UsageTest extends Scope $response = $this->client->call( Client::METHOD_GET, - '/databases/' . $databaseId . '/tables/' . $tableId . '/usage?range=30d', + '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/usage?range=30d', $this->getConsoleHeaders() ); diff --git a/tests/e2e/Services/Migrations/MigrationsBase.php b/tests/e2e/Services/Migrations/MigrationsBase.php index a752740ca2..d527f24a93 100644 --- a/tests/e2e/Services/Migrations/MigrationsBase.php +++ b/tests/e2e/Services/Migrations/MigrationsBase.php @@ -13,7 +13,6 @@ use Utopia\Database\Helpers\Role; use Utopia\Database\Query; use Utopia\Migration\Resource; use Utopia\Migration\Sources\Appwrite; -use Utopia\Migration\Sources\CSV; trait MigrationsBase { @@ -440,7 +439,7 @@ trait MigrationsBase { $databaseId = $data['databaseId']; - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', [ + $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -454,7 +453,7 @@ trait MigrationsBase $tableId = $table['body']['$id']; // Create Column - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', [ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -469,7 +468,7 @@ trait MigrationsBase // Wait for column to be ready $this->assertEventually(function () use ($databaseId, $tableId) { - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/name', [ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/name', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -502,7 +501,7 @@ trait MigrationsBase $this->assertEquals(0, $result['statusCounters'][$resource]['warning']); } - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId, [ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getDestinationProject()['$id'], 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], @@ -514,7 +513,7 @@ trait MigrationsBase $this->assertEquals($tableId, $response['body']['$id']); $this->assertEquals('Test Table', $response['body']['name']); - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/name', [ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/name', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getDestinationProject()['$id'], 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], @@ -548,7 +547,7 @@ trait MigrationsBase $table = $data['tableId']; $databaseId = $data['databaseId']; - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $table . '/rows', [ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $table . '/rows', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], @@ -598,7 +597,7 @@ trait MigrationsBase $this->assertEquals(0, $result['statusCounters'][$resource]['warning']); } - $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/tables/' . $table . '/rows/' . $rowId, [ + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/grids/tables/' . $table . '/rows/' . $rowId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getDestinationProject()['$id'], 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], @@ -920,7 +919,7 @@ trait MigrationsBase $databaseId = $response['body']['$id']; // make a table - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -935,7 +934,7 @@ trait MigrationsBase $tableId = $response['body']['$id']; // make columns - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -951,7 +950,7 @@ trait MigrationsBase $this->assertEquals($response['body']['size'], 256); $this->assertEquals($response['body']['required'], true); - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $tableId . '/columns/integer', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1176,7 +1175,7 @@ trait MigrationsBase }, 1000, 500); // get rows count - $rows = $this->client->call(Client::METHOD_GET, '/databases/'.$databaseId.'/tables/'.$tableId.'/rows', array_merge([ + $rows = $this->client->call(Client::METHOD_GET, '/databases/'.$databaseId.'/grids/tables/'.$tableId.'/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ diff --git a/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php b/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php index 0f1f43d1e4..a318eb82ba 100644 --- a/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php +++ b/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php @@ -272,7 +272,7 @@ class RealtimeConsoleClientTest extends Scope /** * Test Attributes */ - $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -288,7 +288,7 @@ class RealtimeConsoleClientTest extends Scope $actorsId = $actors['body']['$id']; - $name = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actorsId . '/columns/string', array_merge([ + $name = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -462,7 +462,7 @@ class RealtimeConsoleClientTest extends Scope /** * Test Indexes */ - $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actorsId . '/indexes', array_merge([ + $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -629,7 +629,7 @@ class RealtimeConsoleClientTest extends Scope * Test Delete Index */ $indexKey = 'key_name'; - $attribute = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $actorsId . '/indexes/' . $indexKey, array_merge([ + $attribute = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/indexes/' . $indexKey, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -783,7 +783,7 @@ class RealtimeConsoleClientTest extends Scope /** * Test Delete Attribute */ - $attribute = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['actorsId'] . '/columns/' . $attributeKey, array_merge([ + $attribute = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['actorsId'] . '/columns/' . $attributeKey, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); diff --git a/tests/e2e/Services/Webhooks/WebhooksBase.php b/tests/e2e/Services/Webhooks/WebhooksBase.php index fe9a4ed366..35cf003586 100644 --- a/tests/e2e/Services/Webhooks/WebhooksBase.php +++ b/tests/e2e/Services/Webhooks/WebhooksBase.php @@ -409,7 +409,7 @@ trait WebhooksBase /** * Test for SUCCESS */ - $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -460,7 +460,7 @@ trait WebhooksBase $actorsId = $data['actorsId']; $databaseId = $data['databaseId']; - $firstName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actorsId . '/columns/string', array_merge([ + $firstName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -470,7 +470,7 @@ trait WebhooksBase 'required' => true, ]); - $lastName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actorsId . '/columns/string', array_merge([ + $lastName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -480,7 +480,7 @@ trait WebhooksBase 'required' => true, ]); - $extra = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actorsId . '/columns/string', array_merge([ + $extra = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/columns/string', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -518,7 +518,7 @@ trait WebhooksBase $this->assertNotEmpty($webhook['data']['key']); $this->assertEquals($webhook['data']['key'], 'extra'); - $removed = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['actorsId'] . '/columns/' . $extra['body']['key'], array_merge([ + $removed = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['actorsId'] . '/columns/' . $extra['body']['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -558,7 +558,7 @@ trait WebhooksBase /** * Test for SUCCESS */ - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actorsId . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -621,7 +621,7 @@ trait WebhooksBase /** * Test for SUCCESS */ - $document = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/tables/' . $actorsId . '/rows/' . $data['rowId'], array_merge([ + $document = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/rows/' . $data['rowId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -682,7 +682,7 @@ trait WebhooksBase /** * Test for SUCCESS */ - $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $actorsId . '/rows', array_merge([ + $row = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/rows', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -704,7 +704,7 @@ trait WebhooksBase $this->assertEquals($row['headers']['status-code'], 201); $this->assertNotEmpty($row['body']['$id']); - $row = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $actorsId . '/rows/' . $row['body']['$id'], array_merge([ + $row = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $actorsId . '/rows/' . $row['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); diff --git a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php index 30d39a27bb..1d9b9061d9 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php @@ -218,7 +218,7 @@ class WebhooksCustomServerTest extends Scope /** * Test for SUCCESS */ - $actors = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/tables/' . $id, array_merge([ + $actors = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/grids/tables/' . $id, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -260,7 +260,7 @@ class WebhooksCustomServerTest extends Scope $actorsId = $data['actorsId']; $databaseId = $data['databaseId']; - $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables/' . $data['actorsId'] . '/indexes', array_merge([ + $index = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables/' . $data['actorsId'] . '/indexes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -295,7 +295,7 @@ class WebhooksCustomServerTest extends Scope $this->assertTrue(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? '')); // Remove index - $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $data['actorsId'] . '/indexes/' . $index['body']['key'], array_merge([ + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $data['actorsId'] . '/indexes/' . $index['body']['key'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -341,7 +341,7 @@ class WebhooksCustomServerTest extends Scope /** * Test for SUCCESS */ - $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/tables', array_merge([ + $actors = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/grids/tables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -362,7 +362,7 @@ class WebhooksCustomServerTest extends Scope $this->assertEquals(201, $actors['headers']['status-code']); $this->assertNotEmpty($actors['body']['$id']); - $actors = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/tables/' . $actors['body']['$id'], array_merge([ + $actors = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/grids/tables/' . $actors['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] From dccf64ae2e4f69ef674ccc288fc89cd96520c244 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 18:16:13 +0530 Subject: [PATCH 18/24] update: regen specs with updated deprecations. --- app/config/specs/open-api3-1.8.x-client.json | 12 +- app/config/specs/open-api3-1.8.x-console.json | 144 +++++++++++------- app/config/specs/open-api3-1.8.x-server.json | 116 ++++++++------ app/config/specs/open-api3-latest-client.json | 12 +- .../specs/open-api3-latest-console.json | 144 +++++++++++------- app/config/specs/open-api3-latest-server.json | 116 ++++++++------ app/config/specs/swagger2-1.8.x-client.json | 12 +- app/config/specs/swagger2-1.8.x-console.json | 144 +++++++++++------- app/config/specs/swagger2-1.8.x-server.json | 116 ++++++++------ app/config/specs/swagger2-latest-client.json | 12 +- app/config/specs/swagger2-latest-console.json | 144 +++++++++++------- app/config/specs/swagger2-latest-server.json | 116 ++++++++------ 12 files changed, 648 insertions(+), 440 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index 0853e74dd1..39e3f4da59 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -4379,7 +4379,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [] @@ -4468,7 +4468,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -4612,7 +4612,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [] @@ -4711,7 +4711,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -4853,7 +4853,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [] @@ -4956,7 +4956,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [] diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 4e026f0343..d5bf0ee5ad 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -4539,7 +4539,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "list", "group": "databases", @@ -4556,6 +4556,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + }, "methods": [ { "name": "list", @@ -4652,7 +4656,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "create", "group": "databases", @@ -4669,6 +4673,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + }, "methods": [ { "name": "create", @@ -4779,7 +4787,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "listUsage", "group": null, @@ -4796,6 +4804,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseUsage" + }, "methods": [ { "name": "listUsage", @@ -4831,7 +4843,7 @@ "model": "#\/components\/schemas\/usageDatabases" } ], - "description": "" + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." } ], "auth": { @@ -4889,7 +4901,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "get", "group": "databases", @@ -4906,6 +4918,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + }, "methods": [ { "name": "get", @@ -4990,7 +5006,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "update", "group": "databases", @@ -5007,6 +5023,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + }, "methods": [ { "name": "update", @@ -5114,7 +5134,7 @@ "description": "No content" } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "delete", "group": "databases", @@ -5131,6 +5151,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + }, "methods": [ { "name": "delete", @@ -5234,7 +5258,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.list" + "replaceWith": "grids.listTables" }, "auth": { "Project": [] @@ -5321,7 +5345,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.create" + "replaceWith": "grids.createTable" }, "auth": { "Project": [] @@ -5429,7 +5453,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.get" + "replaceWith": "grids.getTable" }, "auth": { "Project": [] @@ -5502,7 +5526,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.update" + "replaceWith": "grids.updateTable" }, "auth": { "Project": [] @@ -5605,7 +5629,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.delete" + "replaceWith": "grids.deleteTable" }, "auth": { "Project": [] @@ -5680,7 +5704,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listColumns" + "replaceWith": "grids.listColumns" }, "auth": { "Project": [] @@ -5768,7 +5792,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createBooleanColumn" + "replaceWith": "grids.createBooleanColumn" }, "auth": { "Project": [] @@ -5878,7 +5902,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateBooleanColumn" + "replaceWith": "grids.updateBooleanColumn" }, "auth": { "Project": [] @@ -5993,7 +6017,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createDatetimeColumn" + "replaceWith": "grids.createDatetimeColumn" }, "auth": { "Project": [] @@ -6103,7 +6127,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateDatetimeColumn" + "replaceWith": "grids.updateDatetimeColumn" }, "auth": { "Project": [] @@ -6218,7 +6242,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEmailColumn" + "replaceWith": "grids.createEmailColumn" }, "auth": { "Project": [] @@ -6328,7 +6352,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEmailColumn" + "replaceWith": "grids.updateEmailColumn" }, "auth": { "Project": [] @@ -6443,7 +6467,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEnumColumn" + "replaceWith": "grids.createEnumColumn" }, "auth": { "Project": [] @@ -6562,7 +6586,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEnumColumn" + "replaceWith": "grids.updateEnumColumn" }, "auth": { "Project": [] @@ -6686,7 +6710,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createFloatColumn" + "replaceWith": "grids.createFloatColumn" }, "auth": { "Project": [] @@ -6806,7 +6830,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateFloatColumn" + "replaceWith": "grids.updateFloatColumn" }, "auth": { "Project": [] @@ -6931,7 +6955,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIntegerColumn" + "replaceWith": "grids.createIntegerColumn" }, "auth": { "Project": [] @@ -7051,7 +7075,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIntegerColumn" + "replaceWith": "grids.updateIntegerColumn" }, "auth": { "Project": [] @@ -7176,7 +7200,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIpColumn" + "replaceWith": "grids.createIpColumn" }, "auth": { "Project": [] @@ -7286,7 +7310,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIpColumn" + "replaceWith": "grids.updateIpColumn" }, "auth": { "Project": [] @@ -7401,7 +7425,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRelationshipColumn" + "replaceWith": "grids.createRelationshipColumn" }, "auth": { "Project": [] @@ -7536,7 +7560,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createStringColumn" + "replaceWith": "grids.createStringColumn" }, "auth": { "Project": [] @@ -7657,7 +7681,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateStringColumn" + "replaceWith": "grids.updateStringColumn" }, "auth": { "Project": [] @@ -7777,7 +7801,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createUrlColumn" + "replaceWith": "grids.createUrlColumn" }, "auth": { "Project": [] @@ -7887,7 +7911,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateUrlColumn" + "replaceWith": "grids.updateUrlColumn" }, "auth": { "Project": [] @@ -8033,7 +8057,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getColumn" + "replaceWith": "grids.getColumn" }, "auth": { "Project": [] @@ -8108,7 +8132,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteColumn" + "replaceWith": "grids.deleteColumn" }, "auth": { "Project": [] @@ -8192,7 +8216,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRelationshipColumn" + "replaceWith": "grids.updateRelationshipColumn" }, "auth": { "Project": [] @@ -8306,7 +8330,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [] @@ -8395,7 +8419,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -8560,7 +8584,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRows" + "replaceWith": "grids.upsertRows" }, "methods": [ { @@ -8682,7 +8706,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRows" + "replaceWith": "grids.updateRows" }, "auth": { "Project": [] @@ -8780,7 +8804,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRows" + "replaceWith": "grids.deleteRows" }, "auth": { "Project": [] @@ -8876,7 +8900,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [] @@ -8975,7 +8999,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -9117,7 +9141,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [] @@ -9220,7 +9244,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [] @@ -9306,7 +9330,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listLogs" + "replaceWith": "grids.listRowLogs" }, "auth": { "Project": [] @@ -9404,7 +9428,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.decrementRowColumn" + "replaceWith": "grids.decrementRowColumn" }, "auth": { "Project": [] @@ -9520,7 +9544,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.incrementRowColumn" + "replaceWith": "grids.incrementRowColumn" }, "auth": { "Project": [] @@ -9635,7 +9659,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listIndexes" + "replaceWith": "grids.listIndexes" }, "auth": { "Project": [] @@ -9721,7 +9745,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIndex" + "replaceWith": "grids.createIndex" }, "auth": { "Project": [] @@ -9853,7 +9877,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getIndex" + "replaceWith": "grids.getIndex" }, "auth": { "Project": [] @@ -9928,7 +9952,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteIndex" + "replaceWith": "grids.deleteIndex" }, "auth": { "Project": [] @@ -10012,7 +10036,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listLogs" + "replaceWith": "grids.listTableLogs" }, "auth": { "Project": [] @@ -10099,7 +10123,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getUsage" + "replaceWith": "grids.getTableUsage" }, "auth": { "Project": [] @@ -14949,7 +14973,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "listLogs", "group": "logs", @@ -14966,6 +14990,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseLogs" + }, "methods": [ { "name": "listLogs", @@ -15007,7 +15035,7 @@ "model": "#\/components\/schemas\/logList" } ], - "description": "Get the database activity logs list by its unique ID." + "description": "" } ], "auth": { @@ -15066,7 +15094,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "getDatabaseUsage", "group": null, @@ -15083,6 +15111,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabaseUsage" + }, "methods": [ { "name": "getDatabaseUsage", diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 2ad2b3c265..c34a486a61 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -4057,7 +4057,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "list", "group": "databases", @@ -4074,6 +4074,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + }, "methods": [ { "name": "list", @@ -4173,7 +4177,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "create", "group": "databases", @@ -4190,6 +4194,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + }, "methods": [ { "name": "create", @@ -4303,7 +4311,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "get", "group": "databases", @@ -4320,6 +4328,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + }, "methods": [ { "name": "get", @@ -4407,7 +4419,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "update", "group": "databases", @@ -4424,6 +4436,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + }, "methods": [ { "name": "update", @@ -4534,7 +4550,7 @@ "description": "No content" } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "delete", "group": "databases", @@ -4551,6 +4567,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + }, "methods": [ { "name": "delete", @@ -4657,7 +4677,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.list" + "replaceWith": "grids.listTables" }, "auth": { "Project": [], @@ -4745,7 +4765,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.create" + "replaceWith": "grids.createTable" }, "auth": { "Project": [], @@ -4854,7 +4874,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.get" + "replaceWith": "grids.getTable" }, "auth": { "Project": [], @@ -4928,7 +4948,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.update" + "replaceWith": "grids.updateTable" }, "auth": { "Project": [], @@ -5032,7 +5052,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.delete" + "replaceWith": "grids.deleteTable" }, "auth": { "Project": [], @@ -5108,7 +5128,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listColumns" + "replaceWith": "grids.listColumns" }, "auth": { "Project": [], @@ -5197,7 +5217,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createBooleanColumn" + "replaceWith": "grids.createBooleanColumn" }, "auth": { "Project": [], @@ -5308,7 +5328,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateBooleanColumn" + "replaceWith": "grids.updateBooleanColumn" }, "auth": { "Project": [], @@ -5424,7 +5444,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createDatetimeColumn" + "replaceWith": "grids.createDatetimeColumn" }, "auth": { "Project": [], @@ -5535,7 +5555,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateDatetimeColumn" + "replaceWith": "grids.updateDatetimeColumn" }, "auth": { "Project": [], @@ -5651,7 +5671,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEmailColumn" + "replaceWith": "grids.createEmailColumn" }, "auth": { "Project": [], @@ -5762,7 +5782,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEmailColumn" + "replaceWith": "grids.updateEmailColumn" }, "auth": { "Project": [], @@ -5878,7 +5898,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEnumColumn" + "replaceWith": "grids.createEnumColumn" }, "auth": { "Project": [], @@ -5998,7 +6018,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEnumColumn" + "replaceWith": "grids.updateEnumColumn" }, "auth": { "Project": [], @@ -6123,7 +6143,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createFloatColumn" + "replaceWith": "grids.createFloatColumn" }, "auth": { "Project": [], @@ -6244,7 +6264,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateFloatColumn" + "replaceWith": "grids.updateFloatColumn" }, "auth": { "Project": [], @@ -6370,7 +6390,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIntegerColumn" + "replaceWith": "grids.createIntegerColumn" }, "auth": { "Project": [], @@ -6491,7 +6511,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIntegerColumn" + "replaceWith": "grids.updateIntegerColumn" }, "auth": { "Project": [], @@ -6617,7 +6637,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIpColumn" + "replaceWith": "grids.createIpColumn" }, "auth": { "Project": [], @@ -6728,7 +6748,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIpColumn" + "replaceWith": "grids.updateIpColumn" }, "auth": { "Project": [], @@ -6844,7 +6864,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRelationshipColumn" + "replaceWith": "grids.createRelationshipColumn" }, "auth": { "Project": [], @@ -6980,7 +7000,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createStringColumn" + "replaceWith": "grids.createStringColumn" }, "auth": { "Project": [], @@ -7102,7 +7122,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateStringColumn" + "replaceWith": "grids.updateStringColumn" }, "auth": { "Project": [], @@ -7223,7 +7243,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createUrlColumn" + "replaceWith": "grids.createUrlColumn" }, "auth": { "Project": [], @@ -7334,7 +7354,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateUrlColumn" + "replaceWith": "grids.updateUrlColumn" }, "auth": { "Project": [], @@ -7481,7 +7501,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getColumn" + "replaceWith": "grids.getColumn" }, "auth": { "Project": [], @@ -7557,7 +7577,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteColumn" + "replaceWith": "grids.deleteColumn" }, "auth": { "Project": [], @@ -7642,7 +7662,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRelationshipColumn" + "replaceWith": "grids.updateRelationshipColumn" }, "auth": { "Project": [], @@ -7757,7 +7777,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [], @@ -7848,7 +7868,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -8017,7 +8037,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRows" + "replaceWith": "grids.upsertRows" }, "methods": [ { @@ -8141,7 +8161,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRows" + "replaceWith": "grids.updateRows" }, "auth": { "Project": [], @@ -8240,7 +8260,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRows" + "replaceWith": "grids.deleteRows" }, "auth": { "Project": [], @@ -8337,7 +8357,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [], @@ -8438,7 +8458,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -8583,7 +8603,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [], @@ -8688,7 +8708,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [], @@ -8777,7 +8797,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.decrementRowColumn" + "replaceWith": "grids.decrementRowColumn" }, "auth": { "Project": [], @@ -8894,7 +8914,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.incrementRowColumn" + "replaceWith": "grids.incrementRowColumn" }, "auth": { "Project": [], @@ -9010,7 +9030,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listIndexes" + "replaceWith": "grids.listIndexes" }, "auth": { "Project": [], @@ -9097,7 +9117,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIndex" + "replaceWith": "grids.createIndex" }, "auth": { "Project": [], @@ -9230,7 +9250,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getIndex" + "replaceWith": "grids.getIndex" }, "auth": { "Project": [], @@ -9306,7 +9326,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteIndex" + "replaceWith": "grids.deleteIndex" }, "auth": { "Project": [], diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 0853e74dd1..39e3f4da59 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -4379,7 +4379,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [] @@ -4468,7 +4468,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -4612,7 +4612,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [] @@ -4711,7 +4711,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -4853,7 +4853,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [] @@ -4956,7 +4956,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [] diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 4e026f0343..d5bf0ee5ad 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -4539,7 +4539,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "list", "group": "databases", @@ -4556,6 +4556,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + }, "methods": [ { "name": "list", @@ -4652,7 +4656,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "create", "group": "databases", @@ -4669,6 +4673,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + }, "methods": [ { "name": "create", @@ -4779,7 +4787,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "listUsage", "group": null, @@ -4796,6 +4804,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseUsage" + }, "methods": [ { "name": "listUsage", @@ -4831,7 +4843,7 @@ "model": "#\/components\/schemas\/usageDatabases" } ], - "description": "" + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." } ], "auth": { @@ -4889,7 +4901,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "get", "group": "databases", @@ -4906,6 +4918,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + }, "methods": [ { "name": "get", @@ -4990,7 +5006,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "update", "group": "databases", @@ -5007,6 +5023,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + }, "methods": [ { "name": "update", @@ -5114,7 +5134,7 @@ "description": "No content" } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "delete", "group": "databases", @@ -5131,6 +5151,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + }, "methods": [ { "name": "delete", @@ -5234,7 +5258,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.list" + "replaceWith": "grids.listTables" }, "auth": { "Project": [] @@ -5321,7 +5345,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.create" + "replaceWith": "grids.createTable" }, "auth": { "Project": [] @@ -5429,7 +5453,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.get" + "replaceWith": "grids.getTable" }, "auth": { "Project": [] @@ -5502,7 +5526,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.update" + "replaceWith": "grids.updateTable" }, "auth": { "Project": [] @@ -5605,7 +5629,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.delete" + "replaceWith": "grids.deleteTable" }, "auth": { "Project": [] @@ -5680,7 +5704,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listColumns" + "replaceWith": "grids.listColumns" }, "auth": { "Project": [] @@ -5768,7 +5792,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createBooleanColumn" + "replaceWith": "grids.createBooleanColumn" }, "auth": { "Project": [] @@ -5878,7 +5902,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateBooleanColumn" + "replaceWith": "grids.updateBooleanColumn" }, "auth": { "Project": [] @@ -5993,7 +6017,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createDatetimeColumn" + "replaceWith": "grids.createDatetimeColumn" }, "auth": { "Project": [] @@ -6103,7 +6127,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateDatetimeColumn" + "replaceWith": "grids.updateDatetimeColumn" }, "auth": { "Project": [] @@ -6218,7 +6242,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEmailColumn" + "replaceWith": "grids.createEmailColumn" }, "auth": { "Project": [] @@ -6328,7 +6352,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEmailColumn" + "replaceWith": "grids.updateEmailColumn" }, "auth": { "Project": [] @@ -6443,7 +6467,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEnumColumn" + "replaceWith": "grids.createEnumColumn" }, "auth": { "Project": [] @@ -6562,7 +6586,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEnumColumn" + "replaceWith": "grids.updateEnumColumn" }, "auth": { "Project": [] @@ -6686,7 +6710,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createFloatColumn" + "replaceWith": "grids.createFloatColumn" }, "auth": { "Project": [] @@ -6806,7 +6830,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateFloatColumn" + "replaceWith": "grids.updateFloatColumn" }, "auth": { "Project": [] @@ -6931,7 +6955,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIntegerColumn" + "replaceWith": "grids.createIntegerColumn" }, "auth": { "Project": [] @@ -7051,7 +7075,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIntegerColumn" + "replaceWith": "grids.updateIntegerColumn" }, "auth": { "Project": [] @@ -7176,7 +7200,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIpColumn" + "replaceWith": "grids.createIpColumn" }, "auth": { "Project": [] @@ -7286,7 +7310,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIpColumn" + "replaceWith": "grids.updateIpColumn" }, "auth": { "Project": [] @@ -7401,7 +7425,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRelationshipColumn" + "replaceWith": "grids.createRelationshipColumn" }, "auth": { "Project": [] @@ -7536,7 +7560,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createStringColumn" + "replaceWith": "grids.createStringColumn" }, "auth": { "Project": [] @@ -7657,7 +7681,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateStringColumn" + "replaceWith": "grids.updateStringColumn" }, "auth": { "Project": [] @@ -7777,7 +7801,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createUrlColumn" + "replaceWith": "grids.createUrlColumn" }, "auth": { "Project": [] @@ -7887,7 +7911,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateUrlColumn" + "replaceWith": "grids.updateUrlColumn" }, "auth": { "Project": [] @@ -8033,7 +8057,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getColumn" + "replaceWith": "grids.getColumn" }, "auth": { "Project": [] @@ -8108,7 +8132,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteColumn" + "replaceWith": "grids.deleteColumn" }, "auth": { "Project": [] @@ -8192,7 +8216,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRelationshipColumn" + "replaceWith": "grids.updateRelationshipColumn" }, "auth": { "Project": [] @@ -8306,7 +8330,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [] @@ -8395,7 +8419,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -8560,7 +8584,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRows" + "replaceWith": "grids.upsertRows" }, "methods": [ { @@ -8682,7 +8706,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRows" + "replaceWith": "grids.updateRows" }, "auth": { "Project": [] @@ -8780,7 +8804,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRows" + "replaceWith": "grids.deleteRows" }, "auth": { "Project": [] @@ -8876,7 +8900,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [] @@ -8975,7 +8999,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -9117,7 +9141,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [] @@ -9220,7 +9244,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [] @@ -9306,7 +9330,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listLogs" + "replaceWith": "grids.listRowLogs" }, "auth": { "Project": [] @@ -9404,7 +9428,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.decrementRowColumn" + "replaceWith": "grids.decrementRowColumn" }, "auth": { "Project": [] @@ -9520,7 +9544,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.incrementRowColumn" + "replaceWith": "grids.incrementRowColumn" }, "auth": { "Project": [] @@ -9635,7 +9659,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listIndexes" + "replaceWith": "grids.listIndexes" }, "auth": { "Project": [] @@ -9721,7 +9745,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIndex" + "replaceWith": "grids.createIndex" }, "auth": { "Project": [] @@ -9853,7 +9877,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getIndex" + "replaceWith": "grids.getIndex" }, "auth": { "Project": [] @@ -9928,7 +9952,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteIndex" + "replaceWith": "grids.deleteIndex" }, "auth": { "Project": [] @@ -10012,7 +10036,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listLogs" + "replaceWith": "grids.listTableLogs" }, "auth": { "Project": [] @@ -10099,7 +10123,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getUsage" + "replaceWith": "grids.getTableUsage" }, "auth": { "Project": [] @@ -14949,7 +14973,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "listLogs", "group": "logs", @@ -14966,6 +14990,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseLogs" + }, "methods": [ { "name": "listLogs", @@ -15007,7 +15035,7 @@ "model": "#\/components\/schemas\/logList" } ], - "description": "Get the database activity logs list by its unique ID." + "description": "" } ], "auth": { @@ -15066,7 +15094,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "getDatabaseUsage", "group": null, @@ -15083,6 +15111,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabaseUsage" + }, "methods": [ { "name": "getDatabaseUsage", diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 2ad2b3c265..c34a486a61 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -4057,7 +4057,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "list", "group": "databases", @@ -4074,6 +4074,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + }, "methods": [ { "name": "list", @@ -4173,7 +4177,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "create", "group": "databases", @@ -4190,6 +4194,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + }, "methods": [ { "name": "create", @@ -4303,7 +4311,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "get", "group": "databases", @@ -4320,6 +4328,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + }, "methods": [ { "name": "get", @@ -4407,7 +4419,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "update", "group": "databases", @@ -4424,6 +4436,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + }, "methods": [ { "name": "update", @@ -4534,7 +4550,7 @@ "description": "No content" } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "delete", "group": "databases", @@ -4551,6 +4567,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + }, "methods": [ { "name": "delete", @@ -4657,7 +4677,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.list" + "replaceWith": "grids.listTables" }, "auth": { "Project": [], @@ -4745,7 +4765,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.create" + "replaceWith": "grids.createTable" }, "auth": { "Project": [], @@ -4854,7 +4874,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.get" + "replaceWith": "grids.getTable" }, "auth": { "Project": [], @@ -4928,7 +4948,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.update" + "replaceWith": "grids.updateTable" }, "auth": { "Project": [], @@ -5032,7 +5052,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.delete" + "replaceWith": "grids.deleteTable" }, "auth": { "Project": [], @@ -5108,7 +5128,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listColumns" + "replaceWith": "grids.listColumns" }, "auth": { "Project": [], @@ -5197,7 +5217,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createBooleanColumn" + "replaceWith": "grids.createBooleanColumn" }, "auth": { "Project": [], @@ -5308,7 +5328,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateBooleanColumn" + "replaceWith": "grids.updateBooleanColumn" }, "auth": { "Project": [], @@ -5424,7 +5444,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createDatetimeColumn" + "replaceWith": "grids.createDatetimeColumn" }, "auth": { "Project": [], @@ -5535,7 +5555,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateDatetimeColumn" + "replaceWith": "grids.updateDatetimeColumn" }, "auth": { "Project": [], @@ -5651,7 +5671,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEmailColumn" + "replaceWith": "grids.createEmailColumn" }, "auth": { "Project": [], @@ -5762,7 +5782,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEmailColumn" + "replaceWith": "grids.updateEmailColumn" }, "auth": { "Project": [], @@ -5878,7 +5898,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEnumColumn" + "replaceWith": "grids.createEnumColumn" }, "auth": { "Project": [], @@ -5998,7 +6018,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEnumColumn" + "replaceWith": "grids.updateEnumColumn" }, "auth": { "Project": [], @@ -6123,7 +6143,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createFloatColumn" + "replaceWith": "grids.createFloatColumn" }, "auth": { "Project": [], @@ -6244,7 +6264,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateFloatColumn" + "replaceWith": "grids.updateFloatColumn" }, "auth": { "Project": [], @@ -6370,7 +6390,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIntegerColumn" + "replaceWith": "grids.createIntegerColumn" }, "auth": { "Project": [], @@ -6491,7 +6511,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIntegerColumn" + "replaceWith": "grids.updateIntegerColumn" }, "auth": { "Project": [], @@ -6617,7 +6637,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIpColumn" + "replaceWith": "grids.createIpColumn" }, "auth": { "Project": [], @@ -6728,7 +6748,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIpColumn" + "replaceWith": "grids.updateIpColumn" }, "auth": { "Project": [], @@ -6844,7 +6864,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRelationshipColumn" + "replaceWith": "grids.createRelationshipColumn" }, "auth": { "Project": [], @@ -6980,7 +7000,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createStringColumn" + "replaceWith": "grids.createStringColumn" }, "auth": { "Project": [], @@ -7102,7 +7122,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateStringColumn" + "replaceWith": "grids.updateStringColumn" }, "auth": { "Project": [], @@ -7223,7 +7243,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createUrlColumn" + "replaceWith": "grids.createUrlColumn" }, "auth": { "Project": [], @@ -7334,7 +7354,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateUrlColumn" + "replaceWith": "grids.updateUrlColumn" }, "auth": { "Project": [], @@ -7481,7 +7501,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getColumn" + "replaceWith": "grids.getColumn" }, "auth": { "Project": [], @@ -7557,7 +7577,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteColumn" + "replaceWith": "grids.deleteColumn" }, "auth": { "Project": [], @@ -7642,7 +7662,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRelationshipColumn" + "replaceWith": "grids.updateRelationshipColumn" }, "auth": { "Project": [], @@ -7757,7 +7777,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [], @@ -7848,7 +7868,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -8017,7 +8037,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRows" + "replaceWith": "grids.upsertRows" }, "methods": [ { @@ -8141,7 +8161,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRows" + "replaceWith": "grids.updateRows" }, "auth": { "Project": [], @@ -8240,7 +8260,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRows" + "replaceWith": "grids.deleteRows" }, "auth": { "Project": [], @@ -8337,7 +8357,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [], @@ -8438,7 +8458,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -8583,7 +8603,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [], @@ -8688,7 +8708,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [], @@ -8777,7 +8797,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.decrementRowColumn" + "replaceWith": "grids.decrementRowColumn" }, "auth": { "Project": [], @@ -8894,7 +8914,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.incrementRowColumn" + "replaceWith": "grids.incrementRowColumn" }, "auth": { "Project": [], @@ -9010,7 +9030,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listIndexes" + "replaceWith": "grids.listIndexes" }, "auth": { "Project": [], @@ -9097,7 +9117,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIndex" + "replaceWith": "grids.createIndex" }, "auth": { "Project": [], @@ -9230,7 +9250,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getIndex" + "replaceWith": "grids.getIndex" }, "auth": { "Project": [], @@ -9306,7 +9326,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteIndex" + "replaceWith": "grids.deleteIndex" }, "auth": { "Project": [], diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index c25de95c78..13b8fc3404 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -4520,7 +4520,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [] @@ -4605,7 +4605,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -4746,7 +4746,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [] @@ -4839,7 +4839,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -4976,7 +4976,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [] @@ -5076,7 +5076,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [] diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index dadd2fac84..4a19acfef4 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -4699,7 +4699,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "list", "group": "databases", @@ -4716,6 +4716,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + }, "methods": [ { "name": "list", @@ -4811,7 +4815,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "create", "group": "databases", @@ -4828,6 +4832,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + }, "methods": [ { "name": "create", @@ -4941,7 +4949,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "listUsage", "group": null, @@ -4958,6 +4966,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseUsage" + }, "methods": [ { "name": "listUsage", @@ -4993,7 +5005,7 @@ "model": "#\/definitions\/usageDatabases" } ], - "description": "" + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." } ], "auth": { @@ -5049,7 +5061,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "get", "group": "databases", @@ -5066,6 +5078,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + }, "methods": [ { "name": "get", @@ -5150,7 +5166,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "update", "group": "databases", @@ -5167,6 +5183,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + }, "methods": [ { "name": "update", @@ -5276,7 +5296,7 @@ "description": "No content" } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "delete", "group": "databases", @@ -5293,6 +5313,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + }, "methods": [ { "name": "delete", @@ -5394,7 +5418,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.list" + "replaceWith": "grids.listTables" }, "auth": { "Project": [] @@ -5478,7 +5502,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.create" + "replaceWith": "grids.createTable" }, "auth": { "Project": [] @@ -5587,7 +5611,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.get" + "replaceWith": "grids.getTable" }, "auth": { "Project": [] @@ -5658,7 +5682,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.update" + "replaceWith": "grids.updateTable" }, "auth": { "Project": [] @@ -5763,7 +5787,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.delete" + "replaceWith": "grids.deleteTable" }, "auth": { "Project": [] @@ -5834,7 +5858,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listColumns" + "replaceWith": "grids.listColumns" }, "auth": { "Project": [] @@ -5919,7 +5943,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createBooleanColumn" + "replaceWith": "grids.createBooleanColumn" }, "auth": { "Project": [] @@ -6029,7 +6053,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateBooleanColumn" + "replaceWith": "grids.updateBooleanColumn" }, "auth": { "Project": [] @@ -6141,7 +6165,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createDatetimeColumn" + "replaceWith": "grids.createDatetimeColumn" }, "auth": { "Project": [] @@ -6251,7 +6275,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateDatetimeColumn" + "replaceWith": "grids.updateDatetimeColumn" }, "auth": { "Project": [] @@ -6363,7 +6387,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEmailColumn" + "replaceWith": "grids.createEmailColumn" }, "auth": { "Project": [] @@ -6473,7 +6497,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEmailColumn" + "replaceWith": "grids.updateEmailColumn" }, "auth": { "Project": [] @@ -6585,7 +6609,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEnumColumn" + "replaceWith": "grids.createEnumColumn" }, "auth": { "Project": [] @@ -6705,7 +6729,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEnumColumn" + "replaceWith": "grids.updateEnumColumn" }, "auth": { "Project": [] @@ -6827,7 +6851,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createFloatColumn" + "replaceWith": "grids.createFloatColumn" }, "auth": { "Project": [] @@ -6949,7 +6973,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateFloatColumn" + "replaceWith": "grids.updateFloatColumn" }, "auth": { "Project": [] @@ -7073,7 +7097,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIntegerColumn" + "replaceWith": "grids.createIntegerColumn" }, "auth": { "Project": [] @@ -7195,7 +7219,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIntegerColumn" + "replaceWith": "grids.updateIntegerColumn" }, "auth": { "Project": [] @@ -7319,7 +7343,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIpColumn" + "replaceWith": "grids.createIpColumn" }, "auth": { "Project": [] @@ -7429,7 +7453,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIpColumn" + "replaceWith": "grids.updateIpColumn" }, "auth": { "Project": [] @@ -7541,7 +7565,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRelationshipColumn" + "replaceWith": "grids.createRelationshipColumn" }, "auth": { "Project": [] @@ -7678,7 +7702,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createStringColumn" + "replaceWith": "grids.createStringColumn" }, "auth": { "Project": [] @@ -7801,7 +7825,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateStringColumn" + "replaceWith": "grids.updateStringColumn" }, "auth": { "Project": [] @@ -7919,7 +7943,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createUrlColumn" + "replaceWith": "grids.createUrlColumn" }, "auth": { "Project": [] @@ -8029,7 +8053,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateUrlColumn" + "replaceWith": "grids.updateUrlColumn" }, "auth": { "Project": [] @@ -8170,7 +8194,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getColumn" + "replaceWith": "grids.getColumn" }, "auth": { "Project": [] @@ -8243,7 +8267,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteColumn" + "replaceWith": "grids.deleteColumn" }, "auth": { "Project": [] @@ -8323,7 +8347,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRelationshipColumn" + "replaceWith": "grids.updateRelationshipColumn" }, "auth": { "Project": [] @@ -8430,7 +8454,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [] @@ -8515,7 +8539,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -8680,7 +8704,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRows" + "replaceWith": "grids.upsertRows" }, "methods": [ { @@ -8799,7 +8823,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRows" + "replaceWith": "grids.updateRows" }, "auth": { "Project": [] @@ -8895,7 +8919,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRows" + "replaceWith": "grids.deleteRows" }, "auth": { "Project": [] @@ -8985,7 +9009,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [] @@ -9078,7 +9102,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -9215,7 +9239,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [] @@ -9315,7 +9339,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [] @@ -9395,7 +9419,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listLogs" + "replaceWith": "grids.listRowLogs" }, "auth": { "Project": [] @@ -9488,7 +9512,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.decrementRowColumn" + "replaceWith": "grids.decrementRowColumn" }, "auth": { "Project": [] @@ -9598,7 +9622,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.incrementRowColumn" + "replaceWith": "grids.incrementRowColumn" }, "auth": { "Project": [] @@ -9705,7 +9729,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listIndexes" + "replaceWith": "grids.listIndexes" }, "auth": { "Project": [] @@ -9788,7 +9812,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIndex" + "replaceWith": "grids.createIndex" }, "auth": { "Project": [] @@ -9919,7 +9943,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getIndex" + "replaceWith": "grids.getIndex" }, "auth": { "Project": [] @@ -9992,7 +10016,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteIndex" + "replaceWith": "grids.deleteIndex" }, "auth": { "Project": [] @@ -10070,7 +10094,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listLogs" + "replaceWith": "grids.listTableLogs" }, "auth": { "Project": [] @@ -10152,7 +10176,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getUsage" + "replaceWith": "grids.getTableUsage" }, "auth": { "Project": [] @@ -14883,7 +14907,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "listLogs", "group": "logs", @@ -14900,6 +14924,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseLogs" + }, "methods": [ { "name": "listLogs", @@ -14941,7 +14969,7 @@ "model": "#\/definitions\/logList" } ], - "description": "Get the database activity logs list by its unique ID." + "description": "" } ], "auth": { @@ -14997,7 +15025,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "getDatabaseUsage", "group": null, @@ -15014,6 +15042,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabaseUsage" + }, "methods": [ { "name": "getDatabaseUsage", diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index ed8068ad87..22d88b4044 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -4205,7 +4205,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "list", "group": "databases", @@ -4222,6 +4222,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + }, "methods": [ { "name": "list", @@ -4320,7 +4324,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "create", "group": "databases", @@ -4337,6 +4341,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + }, "methods": [ { "name": "create", @@ -4453,7 +4461,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "get", "group": "databases", @@ -4470,6 +4478,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + }, "methods": [ { "name": "get", @@ -4557,7 +4569,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "update", "group": "databases", @@ -4574,6 +4586,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + }, "methods": [ { "name": "update", @@ -4686,7 +4702,7 @@ "description": "No content" } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "delete", "group": "databases", @@ -4703,6 +4719,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + }, "methods": [ { "name": "delete", @@ -4807,7 +4827,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.list" + "replaceWith": "grids.listTables" }, "auth": { "Project": [], @@ -4892,7 +4912,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.create" + "replaceWith": "grids.createTable" }, "auth": { "Project": [], @@ -5002,7 +5022,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.get" + "replaceWith": "grids.getTable" }, "auth": { "Project": [], @@ -5074,7 +5094,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.update" + "replaceWith": "grids.updateTable" }, "auth": { "Project": [], @@ -5180,7 +5200,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.delete" + "replaceWith": "grids.deleteTable" }, "auth": { "Project": [], @@ -5252,7 +5272,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listColumns" + "replaceWith": "grids.listColumns" }, "auth": { "Project": [], @@ -5338,7 +5358,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createBooleanColumn" + "replaceWith": "grids.createBooleanColumn" }, "auth": { "Project": [], @@ -5449,7 +5469,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateBooleanColumn" + "replaceWith": "grids.updateBooleanColumn" }, "auth": { "Project": [], @@ -5562,7 +5582,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createDatetimeColumn" + "replaceWith": "grids.createDatetimeColumn" }, "auth": { "Project": [], @@ -5673,7 +5693,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateDatetimeColumn" + "replaceWith": "grids.updateDatetimeColumn" }, "auth": { "Project": [], @@ -5786,7 +5806,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEmailColumn" + "replaceWith": "grids.createEmailColumn" }, "auth": { "Project": [], @@ -5897,7 +5917,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEmailColumn" + "replaceWith": "grids.updateEmailColumn" }, "auth": { "Project": [], @@ -6010,7 +6030,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEnumColumn" + "replaceWith": "grids.createEnumColumn" }, "auth": { "Project": [], @@ -6131,7 +6151,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEnumColumn" + "replaceWith": "grids.updateEnumColumn" }, "auth": { "Project": [], @@ -6254,7 +6274,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createFloatColumn" + "replaceWith": "grids.createFloatColumn" }, "auth": { "Project": [], @@ -6377,7 +6397,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateFloatColumn" + "replaceWith": "grids.updateFloatColumn" }, "auth": { "Project": [], @@ -6502,7 +6522,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIntegerColumn" + "replaceWith": "grids.createIntegerColumn" }, "auth": { "Project": [], @@ -6625,7 +6645,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIntegerColumn" + "replaceWith": "grids.updateIntegerColumn" }, "auth": { "Project": [], @@ -6750,7 +6770,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIpColumn" + "replaceWith": "grids.createIpColumn" }, "auth": { "Project": [], @@ -6861,7 +6881,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIpColumn" + "replaceWith": "grids.updateIpColumn" }, "auth": { "Project": [], @@ -6974,7 +6994,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRelationshipColumn" + "replaceWith": "grids.createRelationshipColumn" }, "auth": { "Project": [], @@ -7112,7 +7132,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createStringColumn" + "replaceWith": "grids.createStringColumn" }, "auth": { "Project": [], @@ -7236,7 +7256,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateStringColumn" + "replaceWith": "grids.updateStringColumn" }, "auth": { "Project": [], @@ -7355,7 +7375,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createUrlColumn" + "replaceWith": "grids.createUrlColumn" }, "auth": { "Project": [], @@ -7466,7 +7486,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateUrlColumn" + "replaceWith": "grids.updateUrlColumn" }, "auth": { "Project": [], @@ -7608,7 +7628,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getColumn" + "replaceWith": "grids.getColumn" }, "auth": { "Project": [], @@ -7682,7 +7702,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteColumn" + "replaceWith": "grids.deleteColumn" }, "auth": { "Project": [], @@ -7763,7 +7783,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRelationshipColumn" + "replaceWith": "grids.updateRelationshipColumn" }, "auth": { "Project": [], @@ -7871,7 +7891,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [], @@ -7958,7 +7978,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -8127,7 +8147,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRows" + "replaceWith": "grids.upsertRows" }, "methods": [ { @@ -8248,7 +8268,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRows" + "replaceWith": "grids.updateRows" }, "auth": { "Project": [], @@ -8345,7 +8365,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRows" + "replaceWith": "grids.deleteRows" }, "auth": { "Project": [], @@ -8436,7 +8456,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [], @@ -8531,7 +8551,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -8671,7 +8691,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [], @@ -8773,7 +8793,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [], @@ -8858,7 +8878,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.decrementRowColumn" + "replaceWith": "grids.decrementRowColumn" }, "auth": { "Project": [], @@ -8969,7 +8989,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.incrementRowColumn" + "replaceWith": "grids.incrementRowColumn" }, "auth": { "Project": [], @@ -9077,7 +9097,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listIndexes" + "replaceWith": "grids.listIndexes" }, "auth": { "Project": [], @@ -9161,7 +9181,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIndex" + "replaceWith": "grids.createIndex" }, "auth": { "Project": [], @@ -9293,7 +9313,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getIndex" + "replaceWith": "grids.getIndex" }, "auth": { "Project": [], @@ -9367,7 +9387,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteIndex" + "replaceWith": "grids.deleteIndex" }, "auth": { "Project": [], diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index c25de95c78..13b8fc3404 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -4520,7 +4520,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [] @@ -4605,7 +4605,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -4746,7 +4746,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [] @@ -4839,7 +4839,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -4976,7 +4976,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [] @@ -5076,7 +5076,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [] diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index dadd2fac84..4a19acfef4 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -4699,7 +4699,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "list", "group": "databases", @@ -4716,6 +4716,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + }, "methods": [ { "name": "list", @@ -4811,7 +4815,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "create", "group": "databases", @@ -4828,6 +4832,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + }, "methods": [ { "name": "create", @@ -4941,7 +4949,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "listUsage", "group": null, @@ -4958,6 +4966,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseUsage" + }, "methods": [ { "name": "listUsage", @@ -4993,7 +5005,7 @@ "model": "#\/definitions\/usageDatabases" } ], - "description": "" + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." } ], "auth": { @@ -5049,7 +5061,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "get", "group": "databases", @@ -5066,6 +5078,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + }, "methods": [ { "name": "get", @@ -5150,7 +5166,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "update", "group": "databases", @@ -5167,6 +5183,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + }, "methods": [ { "name": "update", @@ -5276,7 +5296,7 @@ "description": "No content" } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "delete", "group": "databases", @@ -5293,6 +5313,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + }, "methods": [ { "name": "delete", @@ -5394,7 +5418,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.list" + "replaceWith": "grids.listTables" }, "auth": { "Project": [] @@ -5478,7 +5502,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.create" + "replaceWith": "grids.createTable" }, "auth": { "Project": [] @@ -5587,7 +5611,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.get" + "replaceWith": "grids.getTable" }, "auth": { "Project": [] @@ -5658,7 +5682,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.update" + "replaceWith": "grids.updateTable" }, "auth": { "Project": [] @@ -5763,7 +5787,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.delete" + "replaceWith": "grids.deleteTable" }, "auth": { "Project": [] @@ -5834,7 +5858,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listColumns" + "replaceWith": "grids.listColumns" }, "auth": { "Project": [] @@ -5919,7 +5943,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createBooleanColumn" + "replaceWith": "grids.createBooleanColumn" }, "auth": { "Project": [] @@ -6029,7 +6053,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateBooleanColumn" + "replaceWith": "grids.updateBooleanColumn" }, "auth": { "Project": [] @@ -6141,7 +6165,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createDatetimeColumn" + "replaceWith": "grids.createDatetimeColumn" }, "auth": { "Project": [] @@ -6251,7 +6275,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateDatetimeColumn" + "replaceWith": "grids.updateDatetimeColumn" }, "auth": { "Project": [] @@ -6363,7 +6387,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEmailColumn" + "replaceWith": "grids.createEmailColumn" }, "auth": { "Project": [] @@ -6473,7 +6497,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEmailColumn" + "replaceWith": "grids.updateEmailColumn" }, "auth": { "Project": [] @@ -6585,7 +6609,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEnumColumn" + "replaceWith": "grids.createEnumColumn" }, "auth": { "Project": [] @@ -6705,7 +6729,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEnumColumn" + "replaceWith": "grids.updateEnumColumn" }, "auth": { "Project": [] @@ -6827,7 +6851,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createFloatColumn" + "replaceWith": "grids.createFloatColumn" }, "auth": { "Project": [] @@ -6949,7 +6973,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateFloatColumn" + "replaceWith": "grids.updateFloatColumn" }, "auth": { "Project": [] @@ -7073,7 +7097,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIntegerColumn" + "replaceWith": "grids.createIntegerColumn" }, "auth": { "Project": [] @@ -7195,7 +7219,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIntegerColumn" + "replaceWith": "grids.updateIntegerColumn" }, "auth": { "Project": [] @@ -7319,7 +7343,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIpColumn" + "replaceWith": "grids.createIpColumn" }, "auth": { "Project": [] @@ -7429,7 +7453,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIpColumn" + "replaceWith": "grids.updateIpColumn" }, "auth": { "Project": [] @@ -7541,7 +7565,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRelationshipColumn" + "replaceWith": "grids.createRelationshipColumn" }, "auth": { "Project": [] @@ -7678,7 +7702,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createStringColumn" + "replaceWith": "grids.createStringColumn" }, "auth": { "Project": [] @@ -7801,7 +7825,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateStringColumn" + "replaceWith": "grids.updateStringColumn" }, "auth": { "Project": [] @@ -7919,7 +7943,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createUrlColumn" + "replaceWith": "grids.createUrlColumn" }, "auth": { "Project": [] @@ -8029,7 +8053,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateUrlColumn" + "replaceWith": "grids.updateUrlColumn" }, "auth": { "Project": [] @@ -8170,7 +8194,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getColumn" + "replaceWith": "grids.getColumn" }, "auth": { "Project": [] @@ -8243,7 +8267,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteColumn" + "replaceWith": "grids.deleteColumn" }, "auth": { "Project": [] @@ -8323,7 +8347,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRelationshipColumn" + "replaceWith": "grids.updateRelationshipColumn" }, "auth": { "Project": [] @@ -8430,7 +8454,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [] @@ -8515,7 +8539,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -8680,7 +8704,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRows" + "replaceWith": "grids.upsertRows" }, "methods": [ { @@ -8799,7 +8823,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRows" + "replaceWith": "grids.updateRows" }, "auth": { "Project": [] @@ -8895,7 +8919,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRows" + "replaceWith": "grids.deleteRows" }, "auth": { "Project": [] @@ -8985,7 +9009,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [] @@ -9078,7 +9102,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -9215,7 +9239,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [] @@ -9315,7 +9339,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [] @@ -9395,7 +9419,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listLogs" + "replaceWith": "grids.listRowLogs" }, "auth": { "Project": [] @@ -9488,7 +9512,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.decrementRowColumn" + "replaceWith": "grids.decrementRowColumn" }, "auth": { "Project": [] @@ -9598,7 +9622,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.incrementRowColumn" + "replaceWith": "grids.incrementRowColumn" }, "auth": { "Project": [] @@ -9705,7 +9729,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listIndexes" + "replaceWith": "grids.listIndexes" }, "auth": { "Project": [] @@ -9788,7 +9812,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIndex" + "replaceWith": "grids.createIndex" }, "auth": { "Project": [] @@ -9919,7 +9943,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getIndex" + "replaceWith": "grids.getIndex" }, "auth": { "Project": [] @@ -9992,7 +10016,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteIndex" + "replaceWith": "grids.deleteIndex" }, "auth": { "Project": [] @@ -10070,7 +10094,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listLogs" + "replaceWith": "grids.listTableLogs" }, "auth": { "Project": [] @@ -10152,7 +10176,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getUsage" + "replaceWith": "grids.getTableUsage" }, "auth": { "Project": [] @@ -14883,7 +14907,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "listLogs", "group": "logs", @@ -14900,6 +14924,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseLogs" + }, "methods": [ { "name": "listLogs", @@ -14941,7 +14969,7 @@ "model": "#\/definitions\/logList" } ], - "description": "Get the database activity logs list by its unique ID." + "description": "" } ], "auth": { @@ -14997,7 +15025,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "getDatabaseUsage", "group": null, @@ -15014,6 +15042,10 @@ "console" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabaseUsage" + }, "methods": [ { "name": "getDatabaseUsage", diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index ed8068ad87..22d88b4044 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -4205,7 +4205,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "list", "group": "databases", @@ -4222,6 +4222,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + }, "methods": [ { "name": "list", @@ -4320,7 +4324,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "create", "group": "databases", @@ -4337,6 +4341,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + }, "methods": [ { "name": "create", @@ -4453,7 +4461,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "get", "group": "databases", @@ -4470,6 +4478,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + }, "methods": [ { "name": "get", @@ -4557,7 +4569,7 @@ } } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "update", "group": "databases", @@ -4574,6 +4586,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + }, "methods": [ { "name": "update", @@ -4686,7 +4702,7 @@ "description": "No content" } }, - "deprecated": false, + "deprecated": true, "x-appwrite": { "method": "delete", "group": "databases", @@ -4703,6 +4719,10 @@ "server" ], "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + }, "methods": [ { "name": "delete", @@ -4807,7 +4827,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.list" + "replaceWith": "grids.listTables" }, "auth": { "Project": [], @@ -4892,7 +4912,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.create" + "replaceWith": "grids.createTable" }, "auth": { "Project": [], @@ -5002,7 +5022,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.get" + "replaceWith": "grids.getTable" }, "auth": { "Project": [], @@ -5074,7 +5094,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.update" + "replaceWith": "grids.updateTable" }, "auth": { "Project": [], @@ -5180,7 +5200,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.delete" + "replaceWith": "grids.deleteTable" }, "auth": { "Project": [], @@ -5252,7 +5272,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listColumns" + "replaceWith": "grids.listColumns" }, "auth": { "Project": [], @@ -5338,7 +5358,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createBooleanColumn" + "replaceWith": "grids.createBooleanColumn" }, "auth": { "Project": [], @@ -5449,7 +5469,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateBooleanColumn" + "replaceWith": "grids.updateBooleanColumn" }, "auth": { "Project": [], @@ -5562,7 +5582,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createDatetimeColumn" + "replaceWith": "grids.createDatetimeColumn" }, "auth": { "Project": [], @@ -5673,7 +5693,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateDatetimeColumn" + "replaceWith": "grids.updateDatetimeColumn" }, "auth": { "Project": [], @@ -5786,7 +5806,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEmailColumn" + "replaceWith": "grids.createEmailColumn" }, "auth": { "Project": [], @@ -5897,7 +5917,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEmailColumn" + "replaceWith": "grids.updateEmailColumn" }, "auth": { "Project": [], @@ -6010,7 +6030,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createEnumColumn" + "replaceWith": "grids.createEnumColumn" }, "auth": { "Project": [], @@ -6131,7 +6151,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateEnumColumn" + "replaceWith": "grids.updateEnumColumn" }, "auth": { "Project": [], @@ -6254,7 +6274,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createFloatColumn" + "replaceWith": "grids.createFloatColumn" }, "auth": { "Project": [], @@ -6377,7 +6397,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateFloatColumn" + "replaceWith": "grids.updateFloatColumn" }, "auth": { "Project": [], @@ -6502,7 +6522,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIntegerColumn" + "replaceWith": "grids.createIntegerColumn" }, "auth": { "Project": [], @@ -6625,7 +6645,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIntegerColumn" + "replaceWith": "grids.updateIntegerColumn" }, "auth": { "Project": [], @@ -6750,7 +6770,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIpColumn" + "replaceWith": "grids.createIpColumn" }, "auth": { "Project": [], @@ -6861,7 +6881,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateIpColumn" + "replaceWith": "grids.updateIpColumn" }, "auth": { "Project": [], @@ -6974,7 +6994,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRelationshipColumn" + "replaceWith": "grids.createRelationshipColumn" }, "auth": { "Project": [], @@ -7112,7 +7132,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createStringColumn" + "replaceWith": "grids.createStringColumn" }, "auth": { "Project": [], @@ -7236,7 +7256,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateStringColumn" + "replaceWith": "grids.updateStringColumn" }, "auth": { "Project": [], @@ -7355,7 +7375,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createUrlColumn" + "replaceWith": "grids.createUrlColumn" }, "auth": { "Project": [], @@ -7466,7 +7486,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateUrlColumn" + "replaceWith": "grids.updateUrlColumn" }, "auth": { "Project": [], @@ -7608,7 +7628,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getColumn" + "replaceWith": "grids.getColumn" }, "auth": { "Project": [], @@ -7682,7 +7702,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteColumn" + "replaceWith": "grids.deleteColumn" }, "auth": { "Project": [], @@ -7763,7 +7783,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRelationshipColumn" + "replaceWith": "grids.updateRelationshipColumn" }, "auth": { "Project": [], @@ -7871,7 +7891,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listRows" + "replaceWith": "grids.listRows" }, "auth": { "Project": [], @@ -7958,7 +7978,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createRow" + "replaceWith": "grids.createRow" }, "methods": [ { @@ -8127,7 +8147,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRows" + "replaceWith": "grids.upsertRows" }, "methods": [ { @@ -8248,7 +8268,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRows" + "replaceWith": "grids.updateRows" }, "auth": { "Project": [], @@ -8345,7 +8365,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRows" + "replaceWith": "grids.deleteRows" }, "auth": { "Project": [], @@ -8436,7 +8456,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getRow" + "replaceWith": "grids.getRow" }, "auth": { "Project": [], @@ -8531,7 +8551,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.upsertRow" + "replaceWith": "grids.upsertRow" }, "methods": [ { @@ -8671,7 +8691,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.updateRow" + "replaceWith": "grids.updateRow" }, "auth": { "Project": [], @@ -8773,7 +8793,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteRow" + "replaceWith": "grids.deleteRow" }, "auth": { "Project": [], @@ -8858,7 +8878,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.decrementRowColumn" + "replaceWith": "grids.decrementRowColumn" }, "auth": { "Project": [], @@ -8969,7 +8989,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.incrementRowColumn" + "replaceWith": "grids.incrementRowColumn" }, "auth": { "Project": [], @@ -9077,7 +9097,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.listIndexes" + "replaceWith": "grids.listIndexes" }, "auth": { "Project": [], @@ -9161,7 +9181,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.createIndex" + "replaceWith": "grids.createIndex" }, "auth": { "Project": [], @@ -9293,7 +9313,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.getIndex" + "replaceWith": "grids.getIndex" }, "auth": { "Project": [], @@ -9367,7 +9387,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tables.deleteIndex" + "replaceWith": "grids.deleteIndex" }, "auth": { "Project": [], From c71ff3542fcc5019240b7cdc2e6a1157d1fdd201 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 19:19:14 +0530 Subject: [PATCH 19/24] fix: deprecation inheritance on other methods with different namespace. --- src/Appwrite/SDK/Specification/Format/OpenAPI3.php | 8 ++++++++ src/Appwrite/SDK/Specification/Format/Swagger2.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index a9991d7b03..98c33b8ae0 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -223,6 +223,14 @@ class OpenAPI3 extends Format 'description' => ($desc) ? \file_get_contents($desc) : '', ]; + // add deprecation only if method has it! + if ($methodObj->getDeprecated() instanceof Deprecated) { + $additionalMethod['deprecated'] = [ + 'since' => $methodObj->getDeprecated()->getSince(), + 'replaceWith' => $methodObj->getDeprecated()->getReplaceWith(), + ]; + } + // If additional method has no parameters, inherit from route if (empty($methodObj->getParameters())) { foreach ($route->getParams() as $name => $param) { diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 305a10b34b..96f7b96f06 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -232,6 +232,14 @@ class Swagger2 extends Format 'description' => ($desc) ? \file_get_contents($desc) : '', ]; + // add deprecation only if method has it! + if ($methodObj->getDeprecated() instanceof Deprecated) { + $additionalMethod['deprecated'] = [ + 'since' => $methodObj->getDeprecated()->getSince(), + 'replaceWith' => $methodObj->getDeprecated()->getReplaceWith(), + ]; + } + // If additional method has no parameters, inherit from route if (empty($methodObj->getParameters())) { foreach ($route->getParams() as $name => $param) { From be3d91d5418784dcefc54e0b5a565df5bc817f73 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 27 Jul 2025 19:20:21 +0530 Subject: [PATCH 20/24] regen: specs. --- app/config/specs/open-api3-1.8.x-client.json | 12 +++- app/config/specs/open-api3-1.8.x-console.json | 72 +++++++++++++++---- app/config/specs/open-api3-1.8.x-server.json | 54 +++++++++++--- app/config/specs/open-api3-latest-client.json | 12 +++- .../specs/open-api3-latest-console.json | 72 +++++++++++++++---- app/config/specs/open-api3-latest-server.json | 54 +++++++++++--- app/config/specs/swagger2-1.8.x-client.json | 12 +++- app/config/specs/swagger2-1.8.x-console.json | 72 +++++++++++++++---- app/config/specs/swagger2-1.8.x-server.json | 54 +++++++++++--- app/config/specs/swagger2-latest-client.json | 12 +++- app/config/specs/swagger2-latest-console.json | 72 +++++++++++++++---- app/config/specs/swagger2-latest-server.json | 54 +++++++++++--- 12 files changed, 460 insertions(+), 92 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index 39e3f4da59..69cdf83180 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -4496,7 +4496,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } } ], "auth": { @@ -4739,7 +4743,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index d5bf0ee5ad..4ee19cd594 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -4578,7 +4578,11 @@ "model": "#\/components\/schemas\/databaseList" } ], - "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + } }, { "name": "listDatabases", @@ -4699,7 +4703,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Create a new Database.\n" + "description": "Create a new Database.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + } }, { "name": "createDatabase", @@ -4825,7 +4833,11 @@ "model": "#\/components\/schemas\/usageDatabases" } ], - "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseUsage" + } }, { "name": "listDatabaseUsage", @@ -4941,7 +4953,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + } }, { "name": "getDatabase", @@ -5049,7 +5065,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Update a database by its unique ID." + "description": "Update a database by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + } }, { "name": "updateDatabase", @@ -5173,7 +5193,11 @@ "code": 204 } ], - "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + } }, { "name": "deleteDatabase", @@ -8447,7 +8471,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } }, { "name": "createDocuments", @@ -8471,7 +8499,11 @@ "model": "#\/components\/schemas\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRows" + } } ], "auth": { @@ -8609,7 +8641,11 @@ "model": "#\/components\/schemas\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n" + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRows" + } } ], "auth": { @@ -9027,7 +9063,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { @@ -15014,7 +15054,11 @@ "model": "#\/components\/schemas\/logList" } ], - "description": "Get the database activity logs list by its unique ID." + "description": "Get the database activity logs list by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseLogs" + } }, { "name": "listDatabaseLogs", @@ -15135,7 +15179,11 @@ "model": "#\/components\/schemas\/usageDatabase" } ], - "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabaseUsage" + } }, { "name": "getDatabaseUsage", diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index c34a486a61..639817ac35 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -4097,7 +4097,11 @@ "model": "#\/components\/schemas\/databaseList" } ], - "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + } }, { "name": "listDatabases", @@ -4221,7 +4225,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Create a new Database.\n" + "description": "Create a new Database.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + } }, { "name": "createDatabase", @@ -4352,7 +4360,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + } }, { "name": "getDatabase", @@ -4463,7 +4475,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Update a database by its unique ID." + "description": "Update a database by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + } }, { "name": "updateDatabase", @@ -4590,7 +4606,11 @@ "code": 204 } ], - "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + } }, { "name": "deleteDatabase", @@ -7897,7 +7917,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } }, { "name": "createDocuments", @@ -7922,7 +7946,11 @@ "model": "#\/components\/schemas\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRows" + } } ], "auth": { @@ -8063,7 +8091,11 @@ "model": "#\/components\/schemas\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n" + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRows" + } } ], "auth": { @@ -8487,7 +8519,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 39e3f4da59..69cdf83180 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -4496,7 +4496,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } } ], "auth": { @@ -4739,7 +4743,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index d5bf0ee5ad..4ee19cd594 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -4578,7 +4578,11 @@ "model": "#\/components\/schemas\/databaseList" } ], - "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + } }, { "name": "listDatabases", @@ -4699,7 +4703,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Create a new Database.\n" + "description": "Create a new Database.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + } }, { "name": "createDatabase", @@ -4825,7 +4833,11 @@ "model": "#\/components\/schemas\/usageDatabases" } ], - "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseUsage" + } }, { "name": "listDatabaseUsage", @@ -4941,7 +4953,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + } }, { "name": "getDatabase", @@ -5049,7 +5065,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Update a database by its unique ID." + "description": "Update a database by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + } }, { "name": "updateDatabase", @@ -5173,7 +5193,11 @@ "code": 204 } ], - "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + } }, { "name": "deleteDatabase", @@ -8447,7 +8471,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } }, { "name": "createDocuments", @@ -8471,7 +8499,11 @@ "model": "#\/components\/schemas\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRows" + } } ], "auth": { @@ -8609,7 +8641,11 @@ "model": "#\/components\/schemas\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n" + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRows" + } } ], "auth": { @@ -9027,7 +9063,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { @@ -15014,7 +15054,11 @@ "model": "#\/components\/schemas\/logList" } ], - "description": "Get the database activity logs list by its unique ID." + "description": "Get the database activity logs list by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseLogs" + } }, { "name": "listDatabaseLogs", @@ -15135,7 +15179,11 @@ "model": "#\/components\/schemas\/usageDatabase" } ], - "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabaseUsage" + } }, { "name": "getDatabaseUsage", diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index c34a486a61..639817ac35 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -4097,7 +4097,11 @@ "model": "#\/components\/schemas\/databaseList" } ], - "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + } }, { "name": "listDatabases", @@ -4221,7 +4225,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Create a new Database.\n" + "description": "Create a new Database.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + } }, { "name": "createDatabase", @@ -4352,7 +4360,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + } }, { "name": "getDatabase", @@ -4463,7 +4475,11 @@ "model": "#\/components\/schemas\/database" } ], - "description": "Update a database by its unique ID." + "description": "Update a database by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + } }, { "name": "updateDatabase", @@ -4590,7 +4606,11 @@ "code": 204 } ], - "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + } }, { "name": "deleteDatabase", @@ -7897,7 +7917,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } }, { "name": "createDocuments", @@ -7922,7 +7946,11 @@ "model": "#\/components\/schemas\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRows" + } } ], "auth": { @@ -8063,7 +8091,11 @@ "model": "#\/components\/schemas\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n" + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRows" + } } ], "auth": { @@ -8487,7 +8519,11 @@ "model": "#\/components\/schemas\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index 13b8fc3404..21264f2afb 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -4633,7 +4633,11 @@ "model": "#\/definitions\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } } ], "auth": { @@ -4867,7 +4871,11 @@ "model": "#\/definitions\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 4a19acfef4..c8597b8b80 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -4738,7 +4738,11 @@ "model": "#\/definitions\/databaseList" } ], - "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + } }, { "name": "listDatabases", @@ -4858,7 +4862,11 @@ "model": "#\/definitions\/database" } ], - "description": "Create a new Database.\n" + "description": "Create a new Database.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + } }, { "name": "createDatabase", @@ -4987,7 +4995,11 @@ "model": "#\/definitions\/usageDatabases" } ], - "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseUsage" + } }, { "name": "listDatabaseUsage", @@ -5101,7 +5113,11 @@ "model": "#\/definitions\/database" } ], - "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + } }, { "name": "getDatabase", @@ -5209,7 +5225,11 @@ "model": "#\/definitions\/database" } ], - "description": "Update a database by its unique ID." + "description": "Update a database by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + } }, { "name": "updateDatabase", @@ -5335,7 +5355,11 @@ "code": 204 } ], - "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + } }, { "name": "deleteDatabase", @@ -8567,7 +8591,11 @@ "model": "#\/definitions\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } }, { "name": "createDocuments", @@ -8591,7 +8619,11 @@ "model": "#\/definitions\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRows" + } } ], "auth": { @@ -8729,7 +8761,11 @@ "model": "#\/definitions\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n" + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRows" + } } ], "auth": { @@ -9130,7 +9166,11 @@ "model": "#\/definitions\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { @@ -14948,7 +14988,11 @@ "model": "#\/definitions\/logList" } ], - "description": "Get the database activity logs list by its unique ID." + "description": "Get the database activity logs list by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseLogs" + } }, { "name": "listDatabaseLogs", @@ -15066,7 +15110,11 @@ "model": "#\/definitions\/usageDatabase" } ], - "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabaseUsage" + } }, { "name": "getDatabaseUsage", diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index 22d88b4044..a7f93152d1 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -4245,7 +4245,11 @@ "model": "#\/definitions\/databaseList" } ], - "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + } }, { "name": "listDatabases", @@ -4368,7 +4372,11 @@ "model": "#\/definitions\/database" } ], - "description": "Create a new Database.\n" + "description": "Create a new Database.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + } }, { "name": "createDatabase", @@ -4502,7 +4510,11 @@ "model": "#\/definitions\/database" } ], - "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + } }, { "name": "getDatabase", @@ -4613,7 +4625,11 @@ "model": "#\/definitions\/database" } ], - "description": "Update a database by its unique ID." + "description": "Update a database by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + } }, { "name": "updateDatabase", @@ -4742,7 +4758,11 @@ "code": 204 } ], - "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + } }, { "name": "deleteDatabase", @@ -8007,7 +8027,11 @@ "model": "#\/definitions\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } }, { "name": "createDocuments", @@ -8032,7 +8056,11 @@ "model": "#\/definitions\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRows" + } } ], "auth": { @@ -8173,7 +8201,11 @@ "model": "#\/definitions\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n" + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRows" + } } ], "auth": { @@ -8580,7 +8612,11 @@ "model": "#\/definitions\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index 13b8fc3404..21264f2afb 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -4633,7 +4633,11 @@ "model": "#\/definitions\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } } ], "auth": { @@ -4867,7 +4871,11 @@ "model": "#\/definitions\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 4a19acfef4..c8597b8b80 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -4738,7 +4738,11 @@ "model": "#\/definitions\/databaseList" } ], - "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + } }, { "name": "listDatabases", @@ -4858,7 +4862,11 @@ "model": "#\/definitions\/database" } ], - "description": "Create a new Database.\n" + "description": "Create a new Database.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + } }, { "name": "createDatabase", @@ -4987,7 +4995,11 @@ "model": "#\/definitions\/usageDatabases" } ], - "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseUsage" + } }, { "name": "listDatabaseUsage", @@ -5101,7 +5113,11 @@ "model": "#\/definitions\/database" } ], - "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + } }, { "name": "getDatabase", @@ -5209,7 +5225,11 @@ "model": "#\/definitions\/database" } ], - "description": "Update a database by its unique ID." + "description": "Update a database by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + } }, { "name": "updateDatabase", @@ -5335,7 +5355,11 @@ "code": 204 } ], - "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + } }, { "name": "deleteDatabase", @@ -8567,7 +8591,11 @@ "model": "#\/definitions\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } }, { "name": "createDocuments", @@ -8591,7 +8619,11 @@ "model": "#\/definitions\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRows" + } } ], "auth": { @@ -8729,7 +8761,11 @@ "model": "#\/definitions\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n" + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRows" + } } ], "auth": { @@ -9130,7 +9166,11 @@ "model": "#\/definitions\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { @@ -14948,7 +14988,11 @@ "model": "#\/definitions\/logList" } ], - "description": "Get the database activity logs list by its unique ID." + "description": "Get the database activity logs list by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabaseLogs" + } }, { "name": "listDatabaseLogs", @@ -15066,7 +15110,11 @@ "model": "#\/definitions\/usageDatabase" } ], - "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabaseUsage" + } }, { "name": "getDatabaseUsage", diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 22d88b4044..a7f93152d1 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -4245,7 +4245,11 @@ "model": "#\/definitions\/databaseList" } ], - "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.listDatabases" + } }, { "name": "listDatabases", @@ -4368,7 +4372,11 @@ "model": "#\/definitions\/database" } ], - "description": "Create a new Database.\n" + "description": "Create a new Database.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createDatabase" + } }, { "name": "createDatabase", @@ -4502,7 +4510,11 @@ "model": "#\/definitions\/database" } ], - "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.getDatabase" + } }, { "name": "getDatabase", @@ -4613,7 +4625,11 @@ "model": "#\/definitions\/database" } ], - "description": "Update a database by its unique ID." + "description": "Update a database by its unique ID.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.updateDatabase" + } }, { "name": "updateDatabase", @@ -4742,7 +4758,11 @@ "code": 204 } ], - "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.deleteDatabase" + } }, { "name": "deleteDatabase", @@ -8007,7 +8027,11 @@ "model": "#\/definitions\/document" } ], - "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRow" + } }, { "name": "createDocuments", @@ -8032,7 +8056,11 @@ "model": "#\/definitions\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.createRows" + } } ], "auth": { @@ -8173,7 +8201,11 @@ "model": "#\/definitions\/documentList" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n" + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRows" + } } ], "auth": { @@ -8580,7 +8612,11 @@ "model": "#\/definitions\/document" } ], - "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + "description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.", + "deprecated": { + "since": "1.8.0", + "replaceWith": "grids.upsertRow" + } } ], "auth": { From 00290bdb6534d3db97453d2ccbcb0bca44463e27 Mon Sep 17 00:00:00 2001 From: Darshan Date: Mon, 28 Jul 2025 11:46:43 +0530 Subject: [PATCH 21/24] reset: docs for easier review. --- .../client-android/java/tables/create-row.md | 28 ++++++++++++++++ .../client-android/java/tables/create-rows.md | 25 ++++++++++++++ .../client-android/java/tables/delete-row.md | 24 ++++++++++++++ .../client-android/java/tables/get-row.md | 25 ++++++++++++++ .../client-android/java/tables/list-rows.md | 24 ++++++++++++++ .../client-android/java/tables/update-row.md | 26 +++++++++++++++ .../client-android/java/tables/upsert-row.md | 26 +++++++++++++++ .../kotlin/tables/create-row.md | 19 +++++++++++ .../kotlin/tables/create-rows.md | 16 +++++++++ .../kotlin/tables/delete-row.md | 15 +++++++++ .../client-android/kotlin/tables/get-row.md | 16 +++++++++ .../client-android/kotlin/tables/list-rows.md | 15 +++++++++ .../kotlin/tables/update-row.md | 17 ++++++++++ .../kotlin/tables/upsert-row.md | 17 ++++++++++ .../examples/tables/create-row.md | 18 ++++++++++ .../examples/tables/create-rows.md | 15 +++++++++ .../examples/tables/delete-row.md | 14 ++++++++ .../client-apple/examples/tables/get-row.md | 15 +++++++++ .../client-apple/examples/tables/list-rows.md | 14 ++++++++ .../examples/tables/update-row.md | 16 +++++++++ .../examples/tables/upsert-row.md | 16 +++++++++ .../examples/tables/create-row.md | 17 ++++++++++ .../examples/tables/create-rows.md | 14 ++++++++ .../examples/tables/delete-row.md | 13 ++++++++ .../client-flutter/examples/tables/get-row.md | 14 ++++++++ .../examples/tables/list-rows.md | 13 ++++++++ .../examples/tables/update-row.md | 15 +++++++++ .../examples/tables/upsert-row.md | 15 +++++++++ .../examples/tables/create-row.md | 18 ++++++++++ .../examples/tables/create-rows.md | 19 +++++++++++ .../examples/tables/delete-row.md | 9 +++++ .../client-graphql/examples/tables/get-row.md | 0 .../examples/tables/list-rows.md | 0 .../examples/tables/update-row.md | 18 ++++++++++ .../examples/tables/upsert-row.md | 16 +++++++++ .../examples/tables/create-row.md | 19 +++++++++++ .../examples/tables/create-rows.md | 16 +++++++++ .../examples/tables/delete-row.md | 15 +++++++++ .../examples/tables/get-row.md | 16 +++++++++ .../examples/tables/list-rows.md | 15 +++++++++ .../examples/tables/update-row.md | 17 ++++++++++ .../examples/tables/upsert-row.md | 17 ++++++++++ .../client-rest/examples/tables/create-row.md | 13 ++++++++ .../examples/tables/create-rows.md | 11 +++++++ .../client-rest/examples/tables/delete-row.md | 8 +++++ .../client-rest/examples/tables/get-row.md | 6 ++++ .../client-rest/examples/tables/list-rows.md | 6 ++++ .../client-rest/examples/tables/update-row.md | 12 +++++++ .../client-rest/examples/tables/upsert-row.md | 8 +++++ .../client-web/examples/tables/create-row.md | 19 +++++++++++ .../client-web/examples/tables/create-rows.md | 16 +++++++++ .../client-web/examples/tables/delete-row.md | 15 +++++++++ .../client-web/examples/tables/get-row.md | 16 +++++++++ .../client-web/examples/tables/list-rows.md | 15 +++++++++ .../client-web/examples/tables/update-row.md | 17 ++++++++++ .../client-web/examples/tables/upsert-row.md | 17 ++++++++++ .../examples/tables/create-boolean-column.md | 7 ++++ .../examples/tables/create-datetime-column.md | 7 ++++ .../examples/tables/create-email-column.md | 7 ++++ .../examples/tables/create-enum-column.md | 8 +++++ .../examples/tables/create-float-column.md | 9 +++++ .../examples/tables/create-index.md | 8 +++++ .../examples/tables/create-integer-column.md | 9 +++++ .../examples/tables/create-ip-column.md | 7 ++++ .../tables/create-relationship-column.md | 9 +++++ .../console-cli/examples/tables/create-row.md | 6 ++++ .../examples/tables/create-rows.md | 4 +++ .../examples/tables/create-string-column.md | 9 +++++ .../examples/tables/create-url-column.md | 7 ++++ .../console-cli/examples/tables/create.md | 7 ++++ .../examples/tables/decrement-row-column.md | 7 ++++ .../examples/tables/delete-column.md | 4 +++ .../examples/tables/delete-index.md | 4 +++ .../console-cli/examples/tables/delete-row.md | 4 +++ .../examples/tables/delete-rows.md | 4 +++ .../console-cli/examples/tables/delete.md | 3 ++ .../console-cli/examples/tables/get-column.md | 4 +++ .../console-cli/examples/tables/get-index.md | 4 +++ .../console-cli/examples/tables/get-row.md | 5 +++ .../examples/tables/get-table-usage.md | 4 +++ .../console-cli/examples/tables/get-usage.md | 4 +++ .../1.8.x/console-cli/examples/tables/get.md | 3 ++ .../examples/tables/increment-row-column.md | 7 ++++ .../examples/tables/list-columns.md | 4 +++ .../examples/tables/list-indexes.md | 4 +++ .../console-cli/examples/tables/list-logs.md | 4 +++ .../examples/tables/list-row-logs.md | 5 +++ .../console-cli/examples/tables/list-rows.md | 4 +++ .../1.8.x/console-cli/examples/tables/list.md | 4 +++ .../examples/tables/update-boolean-column.md | 7 ++++ .../examples/tables/update-datetime-column.md | 7 ++++ .../examples/tables/update-email-column.md | 7 ++++ .../examples/tables/update-enum-column.md | 8 +++++ .../examples/tables/update-float-column.md | 9 +++++ .../examples/tables/update-integer-column.md | 9 +++++ .../examples/tables/update-ip-column.md | 7 ++++ .../tables/update-relationship-column.md | 6 ++++ .../console-cli/examples/tables/update-row.md | 6 ++++ .../examples/tables/update-rows.md | 5 +++ .../examples/tables/update-string-column.md | 8 +++++ .../examples/tables/update-url-column.md | 7 ++++ .../console-cli/examples/tables/update.md | 7 ++++ .../console-cli/examples/tables/upsert-row.md | 4 +++ .../examples/tables/upsert-rows.md | 3 ++ .../examples/tables/create-boolean-column.md | 18 ++++++++++ .../examples/tables/create-datetime-column.md | 18 ++++++++++ .../examples/tables/create-email-column.md | 18 ++++++++++ .../examples/tables/create-enum-column.md | 19 +++++++++++ .../examples/tables/create-float-column.md | 20 +++++++++++ .../examples/tables/create-index.md | 19 +++++++++++ .../examples/tables/create-integer-column.md | 20 +++++++++++ .../examples/tables/create-ip-column.md | 18 ++++++++++ .../tables/create-relationship-column.md | 20 +++++++++++ .../console-web/examples/tables/create-row.md | 19 +++++++++++ .../examples/tables/create-rows.md | 16 +++++++++ .../examples/tables/create-string-column.md | 20 +++++++++++ .../examples/tables/create-url-column.md | 18 ++++++++++ .../console-web/examples/tables/create.md | 18 ++++++++++ .../examples/tables/decrement-row-column.md | 18 ++++++++++ .../examples/tables/delete-column.md | 15 +++++++++ .../examples/tables/delete-index.md | 15 +++++++++ .../console-web/examples/tables/delete-row.md | 15 +++++++++ .../examples/tables/delete-rows.md | 15 +++++++++ .../console-web/examples/tables/delete.md | 14 ++++++++ .../console-web/examples/tables/get-column.md | 15 +++++++++ .../console-web/examples/tables/get-index.md | 15 +++++++++ .../console-web/examples/tables/get-row.md | 16 +++++++++ .../examples/tables/get-table-usage.md | 15 +++++++++ .../console-web/examples/tables/get-usage.md | 15 +++++++++ .../1.8.x/console-web/examples/tables/get.md | 14 ++++++++ .../examples/tables/increment-row-column.md | 18 ++++++++++ .../examples/tables/list-columns.md | 15 +++++++++ .../examples/tables/list-indexes.md | 15 +++++++++ .../console-web/examples/tables/list-logs.md | 15 +++++++++ .../examples/tables/list-row-logs.md | 16 +++++++++ .../console-web/examples/tables/list-rows.md | 15 +++++++++ .../1.8.x/console-web/examples/tables/list.md | 15 +++++++++ .../examples/tables/update-boolean-column.md | 18 ++++++++++ .../examples/tables/update-datetime-column.md | 18 ++++++++++ .../examples/tables/update-email-column.md | 18 ++++++++++ .../examples/tables/update-enum-column.md | 19 +++++++++++ .../examples/tables/update-float-column.md | 20 +++++++++++ .../examples/tables/update-integer-column.md | 20 +++++++++++ .../examples/tables/update-ip-column.md | 18 ++++++++++ .../tables/update-relationship-column.md | 17 ++++++++++ .../console-web/examples/tables/update-row.md | 17 ++++++++++ .../examples/tables/update-rows.md | 16 +++++++++ .../examples/tables/update-string-column.md | 19 +++++++++++ .../examples/tables/update-url-column.md | 18 ++++++++++ .../console-web/examples/tables/update.md | 18 ++++++++++ .../console-web/examples/tables/upsert-row.md | 17 ++++++++++ .../examples/tables/upsert-rows.md | 15 +++++++++ .../examples/tables/create-boolean-column.md | 17 ++++++++++ .../examples/tables/create-datetime-column.md | 17 ++++++++++ .../examples/tables/create-email-column.md | 17 ++++++++++ .../examples/tables/create-enum-column.md | 18 ++++++++++ .../examples/tables/create-float-column.md | 19 +++++++++++ .../examples/tables/create-index.md | 18 ++++++++++ .../examples/tables/create-integer-column.md | 19 +++++++++++ .../examples/tables/create-ip-column.md | 17 ++++++++++ .../tables/create-relationship-column.md | 19 +++++++++++ .../server-dart/examples/tables/create-row.md | 17 ++++++++++ .../examples/tables/create-rows.md | 14 ++++++++ .../examples/tables/create-string-column.md | 19 +++++++++++ .../examples/tables/create-url-column.md | 17 ++++++++++ .../server-dart/examples/tables/create.md | 17 ++++++++++ .../examples/tables/decrement-row-column.md | 17 ++++++++++ .../examples/tables/delete-column.md | 14 ++++++++ .../examples/tables/delete-index.md | 14 ++++++++ .../server-dart/examples/tables/delete-row.md | 14 ++++++++ .../examples/tables/delete-rows.md | 14 ++++++++ .../server-dart/examples/tables/delete.md | 13 ++++++++ .../server-dart/examples/tables/get-column.md | 14 ++++++++ .../server-dart/examples/tables/get-index.md | 14 ++++++++ .../server-dart/examples/tables/get-row.md | 15 +++++++++ .../1.8.x/server-dart/examples/tables/get.md | 13 ++++++++ .../examples/tables/increment-row-column.md | 17 ++++++++++ .../examples/tables/list-columns.md | 14 ++++++++ .../examples/tables/list-indexes.md | 14 ++++++++ .../server-dart/examples/tables/list-rows.md | 14 ++++++++ .../1.8.x/server-dart/examples/tables/list.md | 14 ++++++++ .../examples/tables/update-boolean-column.md | 17 ++++++++++ .../examples/tables/update-datetime-column.md | 17 ++++++++++ .../examples/tables/update-email-column.md | 17 ++++++++++ .../examples/tables/update-enum-column.md | 18 ++++++++++ .../examples/tables/update-float-column.md | 19 +++++++++++ .../examples/tables/update-integer-column.md | 19 +++++++++++ .../examples/tables/update-ip-column.md | 17 ++++++++++ .../tables/update-relationship-column.md | 16 +++++++++ .../server-dart/examples/tables/update-row.md | 16 +++++++++ .../examples/tables/update-rows.md | 15 +++++++++ .../examples/tables/update-string-column.md | 18 ++++++++++ .../examples/tables/update-url-column.md | 17 ++++++++++ .../server-dart/examples/tables/update.md | 17 ++++++++++ .../server-dart/examples/tables/upsert-row.md | 15 +++++++++ .../examples/tables/upsert-rows.md | 13 ++++++++ .../examples/tables/create-boolean-column.md | 17 ++++++++++ .../examples/tables/create-datetime-column.md | 17 ++++++++++ .../examples/tables/create-email-column.md | 17 ++++++++++ .../examples/tables/create-enum-column.md | 18 ++++++++++ .../examples/tables/create-float-column.md | 19 +++++++++++ .../examples/tables/create-index.md | 18 ++++++++++ .../examples/tables/create-integer-column.md | 19 +++++++++++ .../examples/tables/create-ip-column.md | 17 ++++++++++ .../tables/create-relationship-column.md | 19 +++++++++++ .../server-deno/examples/tables/create-row.md | 17 ++++++++++ .../examples/tables/create-rows.md | 14 ++++++++ .../examples/tables/create-string-column.md | 19 +++++++++++ .../examples/tables/create-url-column.md | 17 ++++++++++ .../server-deno/examples/tables/create.md | 17 ++++++++++ .../examples/tables/decrement-row-column.md | 17 ++++++++++ .../examples/tables/delete-column.md | 14 ++++++++ .../examples/tables/delete-index.md | 14 ++++++++ .../server-deno/examples/tables/delete-row.md | 14 ++++++++ .../examples/tables/delete-rows.md | 14 ++++++++ .../server-deno/examples/tables/delete.md | 13 ++++++++ .../server-deno/examples/tables/get-column.md | 14 ++++++++ .../server-deno/examples/tables/get-index.md | 14 ++++++++ .../server-deno/examples/tables/get-row.md | 15 +++++++++ .../1.8.x/server-deno/examples/tables/get.md | 13 ++++++++ .../examples/tables/increment-row-column.md | 17 ++++++++++ .../examples/tables/list-columns.md | 14 ++++++++ .../examples/tables/list-indexes.md | 14 ++++++++ .../server-deno/examples/tables/list-rows.md | 14 ++++++++ .../1.8.x/server-deno/examples/tables/list.md | 14 ++++++++ .../examples/tables/update-boolean-column.md | 17 ++++++++++ .../examples/tables/update-datetime-column.md | 17 ++++++++++ .../examples/tables/update-email-column.md | 17 ++++++++++ .../examples/tables/update-enum-column.md | 18 ++++++++++ .../examples/tables/update-float-column.md | 19 +++++++++++ .../examples/tables/update-integer-column.md | 19 +++++++++++ .../examples/tables/update-ip-column.md | 17 ++++++++++ .../tables/update-relationship-column.md | 16 +++++++++ .../server-deno/examples/tables/update-row.md | 16 +++++++++ .../examples/tables/update-rows.md | 15 +++++++++ .../examples/tables/update-string-column.md | 18 ++++++++++ .../examples/tables/update-url-column.md | 17 ++++++++++ .../server-deno/examples/tables/update.md | 17 ++++++++++ .../server-deno/examples/tables/upsert-row.md | 15 +++++++++ .../examples/tables/upsert-rows.md | 13 ++++++++ .../examples/tables/create-boolean-column.md | 19 +++++++++++ .../examples/tables/create-datetime-column.md | 19 +++++++++++ .../examples/tables/create-email-column.md | 19 +++++++++++ .../examples/tables/create-enum-column.md | 20 +++++++++++ .../examples/tables/create-float-column.md | 21 ++++++++++++ .../examples/tables/create-index.md | 21 ++++++++++++ .../examples/tables/create-integer-column.md | 21 ++++++++++++ .../examples/tables/create-ip-column.md | 19 +++++++++++ .../tables/create-relationship-column.md | 22 +++++++++++++ .../examples/tables/create-row.md | 19 +++++++++++ .../examples/tables/create-rows.md | 16 +++++++++ .../examples/tables/create-string-column.md | 21 ++++++++++++ .../examples/tables/create-url-column.md | 19 +++++++++++ .../server-dotnet/examples/tables/create.md | 19 +++++++++++ .../examples/tables/decrement-row-column.md | 19 +++++++++++ .../examples/tables/delete-column.md | 16 +++++++++ .../examples/tables/delete-index.md | 16 +++++++++ .../examples/tables/delete-row.md | 16 +++++++++ .../examples/tables/delete-rows.md | 16 +++++++++ .../server-dotnet/examples/tables/delete.md | 15 +++++++++ .../examples/tables/get-column.md | 16 +++++++++ .../examples/tables/get-index.md | 16 +++++++++ .../server-dotnet/examples/tables/get-row.md | 17 ++++++++++ .../server-dotnet/examples/tables/get.md | 15 +++++++++ .../examples/tables/increment-row-column.md | 19 +++++++++++ .../examples/tables/list-columns.md | 16 +++++++++ .../examples/tables/list-indexes.md | 16 +++++++++ .../examples/tables/list-rows.md | 16 +++++++++ .../server-dotnet/examples/tables/list.md | 16 +++++++++ .../examples/tables/update-boolean-column.md | 19 +++++++++++ .../examples/tables/update-datetime-column.md | 19 +++++++++++ .../examples/tables/update-email-column.md | 19 +++++++++++ .../examples/tables/update-enum-column.md | 20 +++++++++++ .../examples/tables/update-float-column.md | 21 ++++++++++++ .../examples/tables/update-integer-column.md | 21 ++++++++++++ .../examples/tables/update-ip-column.md | 19 +++++++++++ .../tables/update-relationship-column.md | 19 +++++++++++ .../examples/tables/update-row.md | 18 ++++++++++ .../examples/tables/update-rows.md | 17 ++++++++++ .../examples/tables/update-string-column.md | 20 +++++++++++ .../examples/tables/update-url-column.md | 19 +++++++++++ .../server-dotnet/examples/tables/update.md | 19 +++++++++++ .../examples/tables/upsert-row.md | 17 ++++++++++ .../examples/tables/upsert-rows.md | 15 +++++++++ .../examples/tables/create-boolean-column.md | 31 +++++++++++++++++ .../examples/tables/create-datetime-column.md | 31 +++++++++++++++++ .../examples/tables/create-email-column.md | 31 +++++++++++++++++ .../examples/tables/create-enum-column.md | 32 ++++++++++++++++++ .../examples/tables/create-float-column.md | 33 +++++++++++++++++++ .../server-go/examples/tables/create-index.md | 32 ++++++++++++++++++ .../examples/tables/create-integer-column.md | 33 +++++++++++++++++++ .../examples/tables/create-ip-column.md | 31 +++++++++++++++++ .../tables/create-relationship-column.md | 33 +++++++++++++++++++ .../server-go/examples/tables/create-row.md | 31 +++++++++++++++++ .../server-go/examples/tables/create-rows.md | 28 ++++++++++++++++ .../examples/tables/create-string-column.md | 33 +++++++++++++++++++ .../examples/tables/create-url-column.md | 31 +++++++++++++++++ .../1.8.x/server-go/examples/tables/create.md | 31 +++++++++++++++++ .../examples/tables/decrement-row-column.md | 31 +++++++++++++++++ .../examples/tables/delete-column.md | 28 ++++++++++++++++ .../server-go/examples/tables/delete-index.md | 28 ++++++++++++++++ .../server-go/examples/tables/delete-row.md | 28 ++++++++++++++++ .../server-go/examples/tables/delete-rows.md | 28 ++++++++++++++++ .../1.8.x/server-go/examples/tables/delete.md | 27 +++++++++++++++ .../server-go/examples/tables/get-column.md | 28 ++++++++++++++++ .../server-go/examples/tables/get-index.md | 28 ++++++++++++++++ .../server-go/examples/tables/get-row.md | 29 ++++++++++++++++ .../1.8.x/server-go/examples/tables/get.md | 27 +++++++++++++++ .../examples/tables/increment-row-column.md | 31 +++++++++++++++++ .../server-go/examples/tables/list-columns.md | 28 ++++++++++++++++ .../server-go/examples/tables/list-indexes.md | 28 ++++++++++++++++ .../server-go/examples/tables/list-rows.md | 28 ++++++++++++++++ .../1.8.x/server-go/examples/tables/list.md | 28 ++++++++++++++++ .../examples/tables/update-boolean-column.md | 31 +++++++++++++++++ .../examples/tables/update-datetime-column.md | 31 +++++++++++++++++ .../examples/tables/update-email-column.md | 31 +++++++++++++++++ .../examples/tables/update-enum-column.md | 32 ++++++++++++++++++ .../examples/tables/update-float-column.md | 33 +++++++++++++++++++ .../examples/tables/update-integer-column.md | 33 +++++++++++++++++++ .../examples/tables/update-ip-column.md | 31 +++++++++++++++++ .../tables/update-relationship-column.md | 30 +++++++++++++++++ .../server-go/examples/tables/update-row.md | 30 +++++++++++++++++ .../server-go/examples/tables/update-rows.md | 29 ++++++++++++++++ .../examples/tables/update-string-column.md | 32 ++++++++++++++++++ .../examples/tables/update-url-column.md | 31 +++++++++++++++++ .../1.8.x/server-go/examples/tables/update.md | 31 +++++++++++++++++ .../server-go/examples/tables/upsert-row.md | 29 ++++++++++++++++ .../server-go/examples/tables/upsert-rows.md | 27 +++++++++++++++ .../examples/tables/create-boolean-column.md | 20 +++++++++++ .../examples/tables/create-datetime-column.md | 21 ++++++++++++ .../examples/tables/create-email-column.md | 21 ++++++++++++ .../examples/tables/create-enum-column.md | 23 +++++++++++++ .../examples/tables/create-float-column.md | 24 ++++++++++++++ .../examples/tables/create-index.md | 21 ++++++++++++ .../examples/tables/create-integer-column.md | 24 ++++++++++++++ .../examples/tables/create-ip-column.md | 21 ++++++++++++ .../tables/create-relationship-column.md | 27 +++++++++++++++ .../examples/tables/create-row.md | 18 ++++++++++ .../examples/tables/create-rows.md | 19 +++++++++++ .../examples/tables/create-string-column.md | 24 ++++++++++++++ .../examples/tables/create-url-column.md | 21 ++++++++++++ .../server-graphql/examples/tables/create.md | 31 +++++++++++++++++ .../examples/tables/decrement-row-column.md | 19 +++++++++++ .../examples/tables/delete-column.md | 9 +++++ .../examples/tables/delete-index.md | 9 +++++ .../examples/tables/delete-row.md | 9 +++++ .../examples/tables/delete-rows.md | 19 +++++++++++ .../server-graphql/examples/tables/delete.md | 8 +++++ .../examples/tables/get-column.md | 0 .../examples/tables/get-index.md | 0 .../server-graphql/examples/tables/get-row.md | 0 .../server-graphql/examples/tables/get.md | 0 .../examples/tables/increment-row-column.md | 19 +++++++++++ .../examples/tables/list-columns.md | 0 .../examples/tables/list-indexes.md | 0 .../examples/tables/list-rows.md | 0 .../server-graphql/examples/tables/list.md | 0 .../examples/tables/update-boolean-column.md | 20 +++++++++++ .../examples/tables/update-datetime-column.md | 21 ++++++++++++ .../examples/tables/update-email-column.md | 21 ++++++++++++ .../examples/tables/update-enum-column.md | 23 +++++++++++++ .../examples/tables/update-float-column.md | 24 ++++++++++++++ .../examples/tables/update-integer-column.md | 24 ++++++++++++++ .../examples/tables/update-ip-column.md | 21 ++++++++++++ .../tables/update-relationship-column.md | 24 ++++++++++++++ .../examples/tables/update-row.md | 18 ++++++++++ .../examples/tables/update-rows.md | 20 +++++++++++ .../examples/tables/update-string-column.md | 23 +++++++++++++ .../examples/tables/update-url-column.md | 21 ++++++++++++ .../server-graphql/examples/tables/update.md | 31 +++++++++++++++++ .../examples/tables/upsert-row.md | 16 +++++++++ .../examples/tables/upsert-rows.md | 18 ++++++++++ .../java/tables/create-boolean-column.md | 28 ++++++++++++++++ .../java/tables/create-datetime-column.md | 28 ++++++++++++++++ .../java/tables/create-email-column.md | 28 ++++++++++++++++ .../java/tables/create-enum-column.md | 29 ++++++++++++++++ .../java/tables/create-float-column.md | 30 +++++++++++++++++ .../server-kotlin/java/tables/create-index.md | 30 +++++++++++++++++ .../java/tables/create-integer-column.md | 30 +++++++++++++++++ .../java/tables/create-ip-column.md | 28 ++++++++++++++++ .../java/tables/create-relationship-column.md | 31 +++++++++++++++++ .../server-kotlin/java/tables/create-row.md | 28 ++++++++++++++++ .../server-kotlin/java/tables/create-rows.md | 25 ++++++++++++++ .../java/tables/create-string-column.md | 30 +++++++++++++++++ .../java/tables/create-url-column.md | 28 ++++++++++++++++ .../1.8.x/server-kotlin/java/tables/create.md | 28 ++++++++++++++++ .../java/tables/decrement-row-column.md | 28 ++++++++++++++++ .../java/tables/delete-column.md | 25 ++++++++++++++ .../server-kotlin/java/tables/delete-index.md | 25 ++++++++++++++ .../server-kotlin/java/tables/delete-row.md | 25 ++++++++++++++ .../server-kotlin/java/tables/delete-rows.md | 25 ++++++++++++++ .../1.8.x/server-kotlin/java/tables/delete.md | 24 ++++++++++++++ .../server-kotlin/java/tables/get-column.md | 25 ++++++++++++++ .../server-kotlin/java/tables/get-index.md | 25 ++++++++++++++ .../server-kotlin/java/tables/get-row.md | 26 +++++++++++++++ .../1.8.x/server-kotlin/java/tables/get.md | 24 ++++++++++++++ .../java/tables/increment-row-column.md | 28 ++++++++++++++++ .../server-kotlin/java/tables/list-columns.md | 25 ++++++++++++++ .../server-kotlin/java/tables/list-indexes.md | 25 ++++++++++++++ .../server-kotlin/java/tables/list-rows.md | 25 ++++++++++++++ .../1.8.x/server-kotlin/java/tables/list.md | 25 ++++++++++++++ .../java/tables/update-boolean-column.md | 28 ++++++++++++++++ .../java/tables/update-datetime-column.md | 28 ++++++++++++++++ .../java/tables/update-email-column.md | 28 ++++++++++++++++ .../java/tables/update-enum-column.md | 29 ++++++++++++++++ .../java/tables/update-float-column.md | 30 +++++++++++++++++ .../java/tables/update-integer-column.md | 30 +++++++++++++++++ .../java/tables/update-ip-column.md | 28 ++++++++++++++++ .../java/tables/update-relationship-column.md | 27 +++++++++++++++ .../server-kotlin/java/tables/update-row.md | 27 +++++++++++++++ .../server-kotlin/java/tables/update-rows.md | 26 +++++++++++++++ .../java/tables/update-string-column.md | 29 ++++++++++++++++ .../java/tables/update-url-column.md | 28 ++++++++++++++++ .../1.8.x/server-kotlin/java/tables/update.md | 28 ++++++++++++++++ .../server-kotlin/java/tables/upsert-row.md | 26 +++++++++++++++ .../server-kotlin/java/tables/upsert-rows.md | 24 ++++++++++++++ .../kotlin/tables/create-boolean-column.md | 19 +++++++++++ .../kotlin/tables/create-datetime-column.md | 19 +++++++++++ .../kotlin/tables/create-email-column.md | 19 +++++++++++ .../kotlin/tables/create-enum-column.md | 20 +++++++++++ .../kotlin/tables/create-float-column.md | 21 ++++++++++++ .../kotlin/tables/create-index.md | 21 ++++++++++++ .../kotlin/tables/create-integer-column.md | 21 ++++++++++++ .../kotlin/tables/create-ip-column.md | 19 +++++++++++ .../tables/create-relationship-column.md | 22 +++++++++++++ .../server-kotlin/kotlin/tables/create-row.md | 19 +++++++++++ .../kotlin/tables/create-rows.md | 16 +++++++++ .../kotlin/tables/create-string-column.md | 21 ++++++++++++ .../kotlin/tables/create-url-column.md | 19 +++++++++++ .../server-kotlin/kotlin/tables/create.md | 19 +++++++++++ .../kotlin/tables/decrement-row-column.md | 19 +++++++++++ .../kotlin/tables/delete-column.md | 16 +++++++++ .../kotlin/tables/delete-index.md | 16 +++++++++ .../server-kotlin/kotlin/tables/delete-row.md | 16 +++++++++ .../kotlin/tables/delete-rows.md | 16 +++++++++ .../server-kotlin/kotlin/tables/delete.md | 15 +++++++++ .../server-kotlin/kotlin/tables/get-column.md | 16 +++++++++ .../server-kotlin/kotlin/tables/get-index.md | 16 +++++++++ .../server-kotlin/kotlin/tables/get-row.md | 17 ++++++++++ .../1.8.x/server-kotlin/kotlin/tables/get.md | 15 +++++++++ .../kotlin/tables/increment-row-column.md | 19 +++++++++++ .../kotlin/tables/list-columns.md | 16 +++++++++ .../kotlin/tables/list-indexes.md | 16 +++++++++ .../server-kotlin/kotlin/tables/list-rows.md | 16 +++++++++ .../1.8.x/server-kotlin/kotlin/tables/list.md | 16 +++++++++ .../kotlin/tables/update-boolean-column.md | 19 +++++++++++ .../kotlin/tables/update-datetime-column.md | 19 +++++++++++ .../kotlin/tables/update-email-column.md | 19 +++++++++++ .../kotlin/tables/update-enum-column.md | 20 +++++++++++ .../kotlin/tables/update-float-column.md | 21 ++++++++++++ .../kotlin/tables/update-integer-column.md | 21 ++++++++++++ .../kotlin/tables/update-ip-column.md | 19 +++++++++++ .../tables/update-relationship-column.md | 18 ++++++++++ .../server-kotlin/kotlin/tables/update-row.md | 18 ++++++++++ .../kotlin/tables/update-rows.md | 17 ++++++++++ .../kotlin/tables/update-string-column.md | 20 +++++++++++ .../kotlin/tables/update-url-column.md | 19 +++++++++++ .../server-kotlin/kotlin/tables/update.md | 19 +++++++++++ .../server-kotlin/kotlin/tables/upsert-row.md | 17 ++++++++++ .../kotlin/tables/upsert-rows.md | 15 +++++++++ .../examples/tables/create-boolean-column.md | 17 ++++++++++ .../examples/tables/create-datetime-column.md | 17 ++++++++++ .../examples/tables/create-email-column.md | 17 ++++++++++ .../examples/tables/create-enum-column.md | 18 ++++++++++ .../examples/tables/create-float-column.md | 19 +++++++++++ .../examples/tables/create-index.md | 18 ++++++++++ .../examples/tables/create-integer-column.md | 19 +++++++++++ .../examples/tables/create-ip-column.md | 17 ++++++++++ .../tables/create-relationship-column.md | 19 +++++++++++ .../examples/tables/create-row.md | 17 ++++++++++ .../examples/tables/create-rows.md | 14 ++++++++ .../examples/tables/create-string-column.md | 19 +++++++++++ .../examples/tables/create-url-column.md | 17 ++++++++++ .../server-nodejs/examples/tables/create.md | 17 ++++++++++ .../examples/tables/decrement-row-column.md | 17 ++++++++++ .../examples/tables/delete-column.md | 14 ++++++++ .../examples/tables/delete-index.md | 14 ++++++++ .../examples/tables/delete-row.md | 14 ++++++++ .../examples/tables/delete-rows.md | 14 ++++++++ .../server-nodejs/examples/tables/delete.md | 13 ++++++++ .../examples/tables/get-column.md | 14 ++++++++ .../examples/tables/get-index.md | 14 ++++++++ .../server-nodejs/examples/tables/get-row.md | 15 +++++++++ .../server-nodejs/examples/tables/get.md | 13 ++++++++ .../examples/tables/increment-row-column.md | 17 ++++++++++ .../examples/tables/list-columns.md | 14 ++++++++ .../examples/tables/list-indexes.md | 14 ++++++++ .../examples/tables/list-rows.md | 14 ++++++++ .../server-nodejs/examples/tables/list.md | 14 ++++++++ .../examples/tables/update-boolean-column.md | 17 ++++++++++ .../examples/tables/update-datetime-column.md | 17 ++++++++++ .../examples/tables/update-email-column.md | 17 ++++++++++ .../examples/tables/update-enum-column.md | 18 ++++++++++ .../examples/tables/update-float-column.md | 19 +++++++++++ .../examples/tables/update-integer-column.md | 19 +++++++++++ .../examples/tables/update-ip-column.md | 17 ++++++++++ .../tables/update-relationship-column.md | 16 +++++++++ .../examples/tables/update-row.md | 16 +++++++++ .../examples/tables/update-rows.md | 15 +++++++++ .../examples/tables/update-string-column.md | 18 ++++++++++ .../examples/tables/update-url-column.md | 17 ++++++++++ .../server-nodejs/examples/tables/update.md | 17 ++++++++++ .../examples/tables/upsert-row.md | 15 +++++++++ .../examples/tables/upsert-rows.md | 13 ++++++++ .../examples/tables/create-boolean-column.md | 20 +++++++++++ .../examples/tables/create-datetime-column.md | 20 +++++++++++ .../examples/tables/create-email-column.md | 20 +++++++++++ .../examples/tables/create-enum-column.md | 21 ++++++++++++ .../examples/tables/create-float-column.md | 22 +++++++++++++ .../examples/tables/create-index.md | 22 +++++++++++++ .../examples/tables/create-integer-column.md | 22 +++++++++++++ .../examples/tables/create-ip-column.md | 20 +++++++++++ .../tables/create-relationship-column.md | 23 +++++++++++++ .../server-php/examples/tables/create-row.md | 20 +++++++++++ .../server-php/examples/tables/create-rows.md | 17 ++++++++++ .../examples/tables/create-string-column.md | 22 +++++++++++++ .../examples/tables/create-url-column.md | 20 +++++++++++ .../server-php/examples/tables/create.md | 20 +++++++++++ .../examples/tables/decrement-row-column.md | 20 +++++++++++ .../examples/tables/delete-column.md | 17 ++++++++++ .../examples/tables/delete-index.md | 17 ++++++++++ .../server-php/examples/tables/delete-row.md | 17 ++++++++++ .../server-php/examples/tables/delete-rows.md | 17 ++++++++++ .../server-php/examples/tables/delete.md | 16 +++++++++ .../server-php/examples/tables/get-column.md | 17 ++++++++++ .../server-php/examples/tables/get-index.md | 17 ++++++++++ .../server-php/examples/tables/get-row.md | 18 ++++++++++ .../1.8.x/server-php/examples/tables/get.md | 16 +++++++++ .../examples/tables/increment-row-column.md | 20 +++++++++++ .../examples/tables/list-columns.md | 17 ++++++++++ .../examples/tables/list-indexes.md | 17 ++++++++++ .../server-php/examples/tables/list-rows.md | 17 ++++++++++ .../1.8.x/server-php/examples/tables/list.md | 17 ++++++++++ .../examples/tables/update-boolean-column.md | 20 +++++++++++ .../examples/tables/update-datetime-column.md | 20 +++++++++++ .../examples/tables/update-email-column.md | 20 +++++++++++ .../examples/tables/update-enum-column.md | 21 ++++++++++++ .../examples/tables/update-float-column.md | 22 +++++++++++++ .../examples/tables/update-integer-column.md | 22 +++++++++++++ .../examples/tables/update-ip-column.md | 20 +++++++++++ .../tables/update-relationship-column.md | 19 +++++++++++ .../server-php/examples/tables/update-row.md | 19 +++++++++++ .../server-php/examples/tables/update-rows.md | 18 ++++++++++ .../examples/tables/update-string-column.md | 21 ++++++++++++ .../examples/tables/update-url-column.md | 20 +++++++++++ .../server-php/examples/tables/update.md | 20 +++++++++++ .../server-php/examples/tables/upsert-row.md | 18 ++++++++++ .../server-php/examples/tables/upsert-rows.md | 16 +++++++++ .../examples/tables/create-boolean-column.md | 18 ++++++++++ .../examples/tables/create-datetime-column.md | 18 ++++++++++ .../examples/tables/create-email-column.md | 18 ++++++++++ .../examples/tables/create-enum-column.md | 19 +++++++++++ .../examples/tables/create-float-column.md | 20 +++++++++++ .../examples/tables/create-index.md | 20 +++++++++++ .../examples/tables/create-integer-column.md | 20 +++++++++++ .../examples/tables/create-ip-column.md | 18 ++++++++++ .../tables/create-relationship-column.md | 21 ++++++++++++ .../examples/tables/create-row.md | 18 ++++++++++ .../examples/tables/create-rows.md | 15 +++++++++ .../examples/tables/create-string-column.md | 20 +++++++++++ .../examples/tables/create-url-column.md | 18 ++++++++++ .../server-python/examples/tables/create.md | 18 ++++++++++ .../examples/tables/decrement-row-column.md | 18 ++++++++++ .../examples/tables/delete-column.md | 15 +++++++++ .../examples/tables/delete-index.md | 15 +++++++++ .../examples/tables/delete-row.md | 15 +++++++++ .../examples/tables/delete-rows.md | 15 +++++++++ .../server-python/examples/tables/delete.md | 14 ++++++++ .../examples/tables/get-column.md | 15 +++++++++ .../examples/tables/get-index.md | 15 +++++++++ .../server-python/examples/tables/get-row.md | 16 +++++++++ .../server-python/examples/tables/get.md | 14 ++++++++ .../examples/tables/increment-row-column.md | 18 ++++++++++ .../examples/tables/list-columns.md | 15 +++++++++ .../examples/tables/list-indexes.md | 15 +++++++++ .../examples/tables/list-rows.md | 15 +++++++++ .../server-python/examples/tables/list.md | 15 +++++++++ .../examples/tables/update-boolean-column.md | 18 ++++++++++ .../examples/tables/update-datetime-column.md | 18 ++++++++++ .../examples/tables/update-email-column.md | 18 ++++++++++ .../examples/tables/update-enum-column.md | 19 +++++++++++ .../examples/tables/update-float-column.md | 20 +++++++++++ .../examples/tables/update-integer-column.md | 20 +++++++++++ .../examples/tables/update-ip-column.md | 18 ++++++++++ .../tables/update-relationship-column.md | 17 ++++++++++ .../examples/tables/update-row.md | 17 ++++++++++ .../examples/tables/update-rows.md | 16 +++++++++ .../examples/tables/update-string-column.md | 19 +++++++++++ .../examples/tables/update-url-column.md | 18 ++++++++++ .../server-python/examples/tables/update.md | 18 ++++++++++ .../examples/tables/upsert-row.md | 16 +++++++++ .../examples/tables/upsert-rows.md | 14 ++++++++ .../examples/tables/create-boolean-column.md | 13 ++++++++ .../examples/tables/create-datetime-column.md | 13 ++++++++ .../examples/tables/create-email-column.md | 13 ++++++++ .../examples/tables/create-enum-column.md | 14 ++++++++ .../examples/tables/create-float-column.md | 15 +++++++++ .../examples/tables/create-index.md | 14 ++++++++ .../examples/tables/create-integer-column.md | 15 +++++++++ .../examples/tables/create-ip-column.md | 13 ++++++++ .../tables/create-relationship-column.md | 15 +++++++++ .../server-rest/examples/tables/create-row.md | 14 ++++++++ .../examples/tables/create-rows.md | 12 +++++++ .../examples/tables/create-string-column.md | 15 +++++++++ .../examples/tables/create-url-column.md | 13 ++++++++ .../server-rest/examples/tables/create.md | 14 ++++++++ .../examples/tables/decrement-row-column.md | 11 +++++++ .../examples/tables/delete-column.md | 7 ++++ .../examples/tables/delete-index.md | 7 ++++ .../server-rest/examples/tables/delete-row.md | 9 +++++ .../examples/tables/delete-rows.md | 10 ++++++ .../server-rest/examples/tables/delete.md | 7 ++++ .../server-rest/examples/tables/get-column.md | 5 +++ .../server-rest/examples/tables/get-index.md | 5 +++ .../server-rest/examples/tables/get-row.md | 7 ++++ .../1.8.x/server-rest/examples/tables/get.md | 5 +++ .../examples/tables/increment-row-column.md | 11 +++++++ .../examples/tables/list-columns.md | 5 +++ .../examples/tables/list-indexes.md | 5 +++ .../server-rest/examples/tables/list-rows.md | 7 ++++ .../1.8.x/server-rest/examples/tables/list.md | 5 +++ .../examples/tables/update-boolean-column.md | 12 +++++++ .../examples/tables/update-datetime-column.md | 12 +++++++ .../examples/tables/update-email-column.md | 12 +++++++ .../examples/tables/update-enum-column.md | 13 ++++++++ .../examples/tables/update-float-column.md | 14 ++++++++ .../examples/tables/update-integer-column.md | 14 ++++++++ .../examples/tables/update-ip-column.md | 12 +++++++ .../tables/update-relationship-column.md | 11 +++++++ .../server-rest/examples/tables/update-row.md | 13 ++++++++ .../examples/tables/update-rows.md | 11 +++++++ .../examples/tables/update-string-column.md | 13 ++++++++ .../examples/tables/update-url-column.md | 12 +++++++ .../server-rest/examples/tables/update.md | 13 ++++++++ .../server-rest/examples/tables/upsert-row.md | 9 +++++ .../examples/tables/upsert-rows.md | 7 ++++ .../examples/tables/create-boolean-column.md | 19 +++++++++++ .../examples/tables/create-datetime-column.md | 19 +++++++++++ .../examples/tables/create-email-column.md | 19 +++++++++++ .../examples/tables/create-enum-column.md | 20 +++++++++++ .../examples/tables/create-float-column.md | 21 ++++++++++++ .../examples/tables/create-index.md | 21 ++++++++++++ .../examples/tables/create-integer-column.md | 21 ++++++++++++ .../examples/tables/create-ip-column.md | 19 +++++++++++ .../tables/create-relationship-column.md | 22 +++++++++++++ .../server-ruby/examples/tables/create-row.md | 19 +++++++++++ .../examples/tables/create-rows.md | 16 +++++++++ .../examples/tables/create-string-column.md | 21 ++++++++++++ .../examples/tables/create-url-column.md | 19 +++++++++++ .../server-ruby/examples/tables/create.md | 19 +++++++++++ .../examples/tables/decrement-row-column.md | 19 +++++++++++ .../examples/tables/delete-column.md | 16 +++++++++ .../examples/tables/delete-index.md | 16 +++++++++ .../server-ruby/examples/tables/delete-row.md | 16 +++++++++ .../examples/tables/delete-rows.md | 16 +++++++++ .../server-ruby/examples/tables/delete.md | 15 +++++++++ .../server-ruby/examples/tables/get-column.md | 16 +++++++++ .../server-ruby/examples/tables/get-index.md | 16 +++++++++ .../server-ruby/examples/tables/get-row.md | 17 ++++++++++ .../1.8.x/server-ruby/examples/tables/get.md | 15 +++++++++ .../examples/tables/increment-row-column.md | 19 +++++++++++ .../examples/tables/list-columns.md | 16 +++++++++ .../examples/tables/list-indexes.md | 16 +++++++++ .../server-ruby/examples/tables/list-rows.md | 16 +++++++++ .../1.8.x/server-ruby/examples/tables/list.md | 16 +++++++++ .../examples/tables/update-boolean-column.md | 19 +++++++++++ .../examples/tables/update-datetime-column.md | 19 +++++++++++ .../examples/tables/update-email-column.md | 19 +++++++++++ .../examples/tables/update-enum-column.md | 20 +++++++++++ .../examples/tables/update-float-column.md | 21 ++++++++++++ .../examples/tables/update-integer-column.md | 21 ++++++++++++ .../examples/tables/update-ip-column.md | 19 +++++++++++ .../tables/update-relationship-column.md | 18 ++++++++++ .../server-ruby/examples/tables/update-row.md | 18 ++++++++++ .../examples/tables/update-rows.md | 17 ++++++++++ .../examples/tables/update-string-column.md | 20 +++++++++++ .../examples/tables/update-url-column.md | 19 +++++++++++ .../server-ruby/examples/tables/update.md | 19 +++++++++++ .../server-ruby/examples/tables/upsert-row.md | 17 ++++++++++ .../examples/tables/upsert-rows.md | 15 +++++++++ .../examples/tables/create-boolean-column.md | 18 ++++++++++ .../examples/tables/create-datetime-column.md | 18 ++++++++++ .../examples/tables/create-email-column.md | 18 ++++++++++ .../examples/tables/create-enum-column.md | 19 +++++++++++ .../examples/tables/create-float-column.md | 20 +++++++++++ .../examples/tables/create-index.md | 20 +++++++++++ .../examples/tables/create-integer-column.md | 20 +++++++++++ .../examples/tables/create-ip-column.md | 18 ++++++++++ .../tables/create-relationship-column.md | 21 ++++++++++++ .../examples/tables/create-row.md | 18 ++++++++++ .../examples/tables/create-rows.md | 15 +++++++++ .../examples/tables/create-string-column.md | 20 +++++++++++ .../examples/tables/create-url-column.md | 18 ++++++++++ .../server-swift/examples/tables/create.md | 18 ++++++++++ .../examples/tables/decrement-row-column.md | 18 ++++++++++ .../examples/tables/delete-column.md | 15 +++++++++ .../examples/tables/delete-index.md | 15 +++++++++ .../examples/tables/delete-row.md | 15 +++++++++ .../examples/tables/delete-rows.md | 15 +++++++++ .../server-swift/examples/tables/delete.md | 14 ++++++++ .../examples/tables/get-column.md | 15 +++++++++ .../server-swift/examples/tables/get-index.md | 15 +++++++++ .../server-swift/examples/tables/get-row.md | 16 +++++++++ .../1.8.x/server-swift/examples/tables/get.md | 14 ++++++++ .../examples/tables/increment-row-column.md | 18 ++++++++++ .../examples/tables/list-columns.md | 15 +++++++++ .../examples/tables/list-indexes.md | 15 +++++++++ .../server-swift/examples/tables/list-rows.md | 15 +++++++++ .../server-swift/examples/tables/list.md | 15 +++++++++ .../examples/tables/update-boolean-column.md | 18 ++++++++++ .../examples/tables/update-datetime-column.md | 18 ++++++++++ .../examples/tables/update-email-column.md | 18 ++++++++++ .../examples/tables/update-enum-column.md | 19 +++++++++++ .../examples/tables/update-float-column.md | 20 +++++++++++ .../examples/tables/update-integer-column.md | 20 +++++++++++ .../examples/tables/update-ip-column.md | 18 ++++++++++ .../tables/update-relationship-column.md | 18 ++++++++++ .../examples/tables/update-row.md | 17 ++++++++++ .../examples/tables/update-rows.md | 16 +++++++++ .../examples/tables/update-string-column.md | 19 +++++++++++ .../examples/tables/update-url-column.md | 18 ++++++++++ .../server-swift/examples/tables/update.md | 18 ++++++++++ .../examples/tables/upsert-row.md | 16 +++++++++ .../examples/tables/upsert-rows.md | 14 ++++++++ 724 files changed, 12612 insertions(+) create mode 100644 docs/examples/1.8.x/client-android/java/tables/create-row.md create mode 100644 docs/examples/1.8.x/client-android/java/tables/create-rows.md create mode 100644 docs/examples/1.8.x/client-android/java/tables/delete-row.md create mode 100644 docs/examples/1.8.x/client-android/java/tables/get-row.md create mode 100644 docs/examples/1.8.x/client-android/java/tables/list-rows.md create mode 100644 docs/examples/1.8.x/client-android/java/tables/update-row.md create mode 100644 docs/examples/1.8.x/client-android/java/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/create-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/create-rows.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/get-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/update-row.md create mode 100644 docs/examples/1.8.x/client-android/kotlin/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/client-apple/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/client-apple/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/client-apple/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/client-flutter/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/client-graphql/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/client-react-native/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/client-rest/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/client-rest/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/client-rest/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/client-web/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/client-web/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/client-web/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/create.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-table-usage.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get-usage.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/get.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-logs.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/list.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/update.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/create.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/get-usage.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/get.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-logs.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/list.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/update.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/console-web/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-dart/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-deno/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-dotnet/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-go/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-graphql/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/create.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/delete.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/get.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/list.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/update.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/java/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-nodejs/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-php/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-python/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-ruby/examples/tables/upsert-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-index.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/create.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete-index.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/delete.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/get-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/get-index.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/get-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/get.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/list-columns.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/list-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/list.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-rows.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/update.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/upsert-row.md create mode 100644 docs/examples/1.8.x/server-swift/examples/tables/upsert-rows.md diff --git a/docs/examples/1.8.x/client-android/java/tables/create-row.md b/docs/examples/1.8.x/client-android/java/tables/create-row.md new file mode 100644 index 0000000000..8102b82c75 --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/tables/create-row.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT(""); // Your secret JSON Web Token + +Tables tables = new Tables(client); + +tables.createRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/tables/create-rows.md b/docs/examples/1.8.x/client-android/java/tables/create-rows.md new file mode 100644 index 0000000000..26f5d67789 --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/tables/create-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey(""); // + +Tables tables = new Tables(client); + +tables.createRows( + "", // databaseId + "", // tableId + listOf(), // rows + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/tables/delete-row.md b/docs/examples/1.8.x/client-android/java/tables/delete-row.md new file mode 100644 index 0000000000..596a8b7aca --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/tables/delete-row.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Tables tables = new Tables(client); + +tables.deleteRow( + "", // databaseId + "", // tableId + "", // rowId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/tables/get-row.md b/docs/examples/1.8.x/client-android/java/tables/get-row.md new file mode 100644 index 0000000000..882a195376 --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/tables/get-row.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Tables tables = new Tables(client); + +tables.getRow( + "", // databaseId + "", // tableId + "", // rowId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/tables/list-rows.md b/docs/examples/1.8.x/client-android/java/tables/list-rows.md new file mode 100644 index 0000000000..4d37570246 --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/tables/list-rows.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Tables tables = new Tables(client); + +tables.listRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/tables/update-row.md b/docs/examples/1.8.x/client-android/java/tables/update-row.md new file mode 100644 index 0000000000..0421c9cffb --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/tables/update-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Tables tables = new Tables(client); + +tables.updateRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/tables/upsert-row.md b/docs/examples/1.8.x/client-android/java/tables/upsert-row.md new file mode 100644 index 0000000000..a8be0cfc6c --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/tables/upsert-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT(""); // Your secret JSON Web Token + +Tables tables = new Tables(client); + +tables.upsertRow( + "", // databaseId + "", // tableId + "", // rowId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/create-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/create-row.md new file mode 100644 index 0000000000..8c581bf1d5 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/tables/create-row.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("") // Your secret JSON Web Token + +val tables = Tables(client) + +val result = tables.createRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/create-rows.md b/docs/examples/1.8.x/client-android/kotlin/tables/create-rows.md new file mode 100644 index 0000000000..1fde9c50cf --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/tables/create-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey("") // + +val tables = Tables(client) + +val result = tables.createRows( + databaseId = "", + tableId = "", + rows = listOf(), +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md new file mode 100644 index 0000000000..ffa3229f30 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val tables = Tables(client) + +val result = tables.deleteRow( + databaseId = "", + tableId = "", + rowId = "", +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/get-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/get-row.md new file mode 100644 index 0000000000..15dabff397 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/tables/get-row.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val tables = Tables(client) + +val result = tables.getRow( + databaseId = "", + tableId = "", + rowId = "", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md b/docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md new file mode 100644 index 0000000000..ff36543938 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val tables = Tables(client) + +val result = tables.listRows( + databaseId = "", + tableId = "", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/update-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/update-row.md new file mode 100644 index 0000000000..e9b515cef4 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/tables/update-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val tables = Tables(client) + +val result = tables.updateRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // (optional) + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/upsert-row.md b/docs/examples/1.8.x/client-android/kotlin/tables/upsert-row.md new file mode 100644 index 0000000000..6b7cb6666b --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/tables/upsert-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("") // Your secret JSON Web Token + +val tables = Tables(client) + +val result = tables.upsertRow( + databaseId = "", + tableId = "", + rowId = "", +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/tables/create-row.md b/docs/examples/1.8.x/client-apple/examples/tables/create-row.md new file mode 100644 index 0000000000..533cf2d555 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/tables/create-row.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("") // Your secret JSON Web Token + +let tables = Tables(client) + +let row = try await tables.createRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/tables/create-rows.md b/docs/examples/1.8.x/client-apple/examples/tables/create-rows.md new file mode 100644 index 0000000000..effd748aa0 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/tables/create-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey("") // + +let tables = Tables(client) + +let rowList = try await tables.createRows( + databaseId: "", + tableId: "", + rows: [] +) + diff --git a/docs/examples/1.8.x/client-apple/examples/tables/delete-row.md b/docs/examples/1.8.x/client-apple/examples/tables/delete-row.md new file mode 100644 index 0000000000..7d12ec4f4c --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/tables/delete-row.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let tables = Tables(client) + +let result = try await tables.deleteRow( + databaseId: "", + tableId: "", + rowId: "" +) + diff --git a/docs/examples/1.8.x/client-apple/examples/tables/get-row.md b/docs/examples/1.8.x/client-apple/examples/tables/get-row.md new file mode 100644 index 0000000000..93fbef9e7c --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/tables/get-row.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let tables = Tables(client) + +let row = try await tables.getRow( + databaseId: "", + tableId: "", + rowId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/tables/list-rows.md b/docs/examples/1.8.x/client-apple/examples/tables/list-rows.md new file mode 100644 index 0000000000..31545cce4d --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/tables/list-rows.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let tables = Tables(client) + +let rowList = try await tables.listRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/tables/update-row.md b/docs/examples/1.8.x/client-apple/examples/tables/update-row.md new file mode 100644 index 0000000000..601c4f0a77 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/tables/update-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let tables = Tables(client) + +let row = try await tables.updateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-apple/examples/tables/upsert-row.md new file mode 100644 index 0000000000..eabcb181c3 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/tables/upsert-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("") // Your secret JSON Web Token + +let tables = Tables(client) + +let row = try await tables.upsertRow( + databaseId: "", + tableId: "", + rowId: "" +) + diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/create-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/create-row.md new file mode 100644 index 0000000000..ac9923d813 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/tables/create-row.md @@ -0,0 +1,17 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token + +Tables tables = Tables(client); + +Row result = await tables.createRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/create-rows.md b/docs/examples/1.8.x/client-flutter/examples/tables/create-rows.md new file mode 100644 index 0000000000..38c4c7503d --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/tables/create-rows.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // + +Tables tables = Tables(client); + +RowList result = await tables.createRows( + databaseId: '', + tableId: '', + rows: [], +); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md new file mode 100644 index 0000000000..4187c4766d --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Tables tables = Tables(client); + +await tables.deleteRow( + databaseId: '', + tableId: '', + rowId: '', +); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/get-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/get-row.md new file mode 100644 index 0000000000..8d8c52caa6 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/tables/get-row.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Tables tables = Tables(client); + +Row result = await tables.getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md b/docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md new file mode 100644 index 0000000000..f770bbbd92 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Tables tables = Tables(client); + +RowList result = await tables.listRows( + databaseId: '', + tableId: '', + queries: [], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/update-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/update-row.md new file mode 100644 index 0000000000..f43ba5e689 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/tables/update-row.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Tables tables = Tables(client); + +Row result = await tables.updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // optional + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-flutter/examples/tables/upsert-row.md new file mode 100644 index 0000000000..26a872b692 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/tables/upsert-row.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token + +Tables tables = Tables(client); + +Row result = await tables.upsertRow( + databaseId: '', + tableId: '', + rowId: '', +); diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/create-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/create-row.md new file mode 100644 index 0000000000..c88a7f36cf --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/tables/create-row.md @@ -0,0 +1,18 @@ +mutation { + tablesCreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md b/docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md new file mode 100644 index 0000000000..a4ae62cfae --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md @@ -0,0 +1,19 @@ +mutation { + tablesCreateRows( + databaseId: "", + tableId: "", + rows: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md new file mode 100644 index 0000000000..f3a35c1df1 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md @@ -0,0 +1,9 @@ +mutation { + tablesDeleteRow( + databaseId: "", + tableId: "", + rowId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/get-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/get-row.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/list-rows.md b/docs/examples/1.8.x/client-graphql/examples/tables/list-rows.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/update-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/update-row.md new file mode 100644 index 0000000000..8449d8499b --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/tables/update-row.md @@ -0,0 +1,18 @@ +mutation { + tablesUpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/tables/upsert-row.md new file mode 100644 index 0000000000..480d7651bd --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/tables/upsert-row.md @@ -0,0 +1,16 @@ +mutation { + tablesUpsertRow( + databaseId: "", + tableId: "", + rowId: "" + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/create-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/create-row.md new file mode 100644 index 0000000000..75de1c2a39 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/tables/create-row.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token + +const tables = new Tables(client); + +const result = await tables.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/create-rows.md b/docs/examples/1.8.x/client-react-native/examples/tables/create-rows.md new file mode 100644 index 0000000000..165aa4cb71 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/tables/create-rows.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // + +const tables = new Tables(client); + +const result = await tables.createRows( + '', // databaseId + '', // tableId + [] // rows +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md new file mode 100644 index 0000000000..9746f85ea0 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/get-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/get-row.md new file mode 100644 index 0000000000..b9434e3957 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/tables/get-row.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md b/docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md new file mode 100644 index 0000000000..75f81a1435 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/update-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/update-row.md new file mode 100644 index 0000000000..7bb36dd254 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/tables/update-row.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-react-native/examples/tables/upsert-row.md new file mode 100644 index 0000000000..f176425abb --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/tables/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token + +const tables = new Tables(client); + +const result = await tables.upsertRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/tables/create-row.md b/docs/examples/1.8.x/client-rest/examples/tables/create-row.md new file mode 100644 index 0000000000..c4166b8b80 --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/tables/create-row.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "rowId": "", + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-rest/examples/tables/create-rows.md b/docs/examples/1.8.x/client-rest/examples/tables/create-rows.md new file mode 100644 index 0000000000..0935afd11e --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/tables/create-rows.md @@ -0,0 +1,11 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "rows": [] +} diff --git a/docs/examples/1.8.x/client-rest/examples/tables/delete-row.md b/docs/examples/1.8.x/client-rest/examples/tables/delete-row.md new file mode 100644 index 0000000000..954303d17a --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/tables/delete-row.md @@ -0,0 +1,8 @@ +DELETE /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + diff --git a/docs/examples/1.8.x/client-rest/examples/tables/get-row.md b/docs/examples/1.8.x/client-rest/examples/tables/get-row.md new file mode 100644 index 0000000000..fc09601df7 --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/tables/get-row.md @@ -0,0 +1,6 @@ +GET /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/tables/list-rows.md b/docs/examples/1.8.x/client-rest/examples/tables/list-rows.md new file mode 100644 index 0000000000..de214e7cea --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/tables/list-rows.md @@ -0,0 +1,6 @@ +GET /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/tables/update-row.md b/docs/examples/1.8.x/client-rest/examples/tables/update-row.md new file mode 100644 index 0000000000..f09f639e60 --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/tables/update-row.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-rest/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-rest/examples/tables/upsert-row.md new file mode 100644 index 0000000000..60528077ef --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/tables/upsert-row.md @@ -0,0 +1,8 @@ +PUT /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + diff --git a/docs/examples/1.8.x/client-web/examples/tables/create-row.md b/docs/examples/1.8.x/client-web/examples/tables/create-row.md new file mode 100644 index 0000000000..f7b54d1894 --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/tables/create-row.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token + +const tables = new Tables(client); + +const result = await tables.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/create-rows.md b/docs/examples/1.8.x/client-web/examples/tables/create-rows.md new file mode 100644 index 0000000000..79d7d3f311 --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/tables/create-rows.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // + +const tables = new Tables(client); + +const result = await tables.createRows( + '', // databaseId + '', // tableId + [] // rows +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/delete-row.md b/docs/examples/1.8.x/client-web/examples/tables/delete-row.md new file mode 100644 index 0000000000..5c6c4b96d9 --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/tables/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/get-row.md b/docs/examples/1.8.x/client-web/examples/tables/get-row.md new file mode 100644 index 0000000000..708b3d96cc --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/tables/get-row.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/list-rows.md b/docs/examples/1.8.x/client-web/examples/tables/list-rows.md new file mode 100644 index 0000000000..f82d358f0d --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/tables/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/update-row.md b/docs/examples/1.8.x/client-web/examples/tables/update-row.md new file mode 100644 index 0000000000..0e0c5a012e --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/tables/update-row.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tables/upsert-row.md b/docs/examples/1.8.x/client-web/examples/tables/upsert-row.md new file mode 100644 index 0000000000..f111fefd71 --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/tables/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token + +const tables = new Tables(client); + +const result = await tables.upsertRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..88e6bf8853 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md @@ -0,0 +1,7 @@ +appwrite tables createBooleanColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..de28b7537c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-datetime-column.md @@ -0,0 +1,7 @@ +appwrite tables createDatetimeColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md new file mode 100644 index 0000000000..23b672e62d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md @@ -0,0 +1,7 @@ +appwrite tables createEmailColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..4cd3e1d241 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md @@ -0,0 +1,8 @@ +appwrite tables createEnumColumn \ + --databaseId \ + --tableId \ + --key '' \ + --elements one two three \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md new file mode 100644 index 0000000000..9c69e29e91 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md @@ -0,0 +1,9 @@ +appwrite tables createFloatColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-index.md b/docs/examples/1.8.x/console-cli/examples/tables/create-index.md new file mode 100644 index 0000000000..4c6d641727 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-index.md @@ -0,0 +1,8 @@ +appwrite tables createIndex \ + --databaseId \ + --tableId \ + --key '' \ + --type key \ + --columns one two three \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..afab48e803 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md @@ -0,0 +1,9 @@ +appwrite tables createIntegerColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..000b54b918 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md @@ -0,0 +1,7 @@ +appwrite tables createIpColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..4ce3342768 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md @@ -0,0 +1,9 @@ +appwrite tables createRelationshipColumn \ + --databaseId \ + --tableId \ + --relatedTableId \ + --type oneToOne \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-row.md b/docs/examples/1.8.x/console-cli/examples/tables/create-row.md new file mode 100644 index 0000000000..e446de157b --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-row.md @@ -0,0 +1,6 @@ +appwrite tables createRow \ + --databaseId \ + --tableId \ + --rowId \ + --data '{ "key": "value" }' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/create-rows.md new file mode 100644 index 0000000000..cb7c68dd7b --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-rows.md @@ -0,0 +1,4 @@ +appwrite tables createRows \ + --databaseId \ + --tableId \ + --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md new file mode 100644 index 0000000000..4df1792a34 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md @@ -0,0 +1,9 @@ +appwrite tables createStringColumn \ + --databaseId \ + --tableId \ + --key '' \ + --size 1 \ + --required false \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md b/docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md new file mode 100644 index 0000000000..fcb81491bd --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md @@ -0,0 +1,7 @@ +appwrite tables createUrlColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create.md b/docs/examples/1.8.x/console-cli/examples/tables/create.md new file mode 100644 index 0000000000..09f52f16a1 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/create.md @@ -0,0 +1,7 @@ +appwrite tables create \ + --databaseId \ + --tableId \ + --name \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..73743c21ce --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md @@ -0,0 +1,7 @@ +appwrite tables decrementRowColumn \ + --databaseId \ + --tableId \ + --rowId \ + --column '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-column.md b/docs/examples/1.8.x/console-cli/examples/tables/delete-column.md new file mode 100644 index 0000000000..e659af54d0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/delete-column.md @@ -0,0 +1,4 @@ +appwrite tables deleteColumn \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-index.md b/docs/examples/1.8.x/console-cli/examples/tables/delete-index.md new file mode 100644 index 0000000000..0de1e417d3 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/delete-index.md @@ -0,0 +1,4 @@ +appwrite tables deleteIndex \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-row.md b/docs/examples/1.8.x/console-cli/examples/tables/delete-row.md new file mode 100644 index 0000000000..d6918be89e --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/delete-row.md @@ -0,0 +1,4 @@ +appwrite tables deleteRow \ + --databaseId \ + --tableId \ + --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md new file mode 100644 index 0000000000..579586b561 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md @@ -0,0 +1,4 @@ +appwrite tables deleteRows \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete.md b/docs/examples/1.8.x/console-cli/examples/tables/delete.md new file mode 100644 index 0000000000..0f189e09f1 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/delete.md @@ -0,0 +1,3 @@ +appwrite tables delete \ + --databaseId \ + --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-column.md b/docs/examples/1.8.x/console-cli/examples/tables/get-column.md new file mode 100644 index 0000000000..33a94b5ebc --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/get-column.md @@ -0,0 +1,4 @@ +appwrite tables getColumn \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-index.md b/docs/examples/1.8.x/console-cli/examples/tables/get-index.md new file mode 100644 index 0000000000..e956175e09 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/get-index.md @@ -0,0 +1,4 @@ +appwrite tables getIndex \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-row.md b/docs/examples/1.8.x/console-cli/examples/tables/get-row.md new file mode 100644 index 0000000000..5b3b64bfbc --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/get-row.md @@ -0,0 +1,5 @@ +appwrite tables getRow \ + --databaseId \ + --tableId \ + --rowId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-table-usage.md b/docs/examples/1.8.x/console-cli/examples/tables/get-table-usage.md new file mode 100644 index 0000000000..f766a418a0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/get-table-usage.md @@ -0,0 +1,4 @@ +appwrite tables getTableUsage \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get-usage.md b/docs/examples/1.8.x/console-cli/examples/tables/get-usage.md new file mode 100644 index 0000000000..ca955ce6df --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/get-usage.md @@ -0,0 +1,4 @@ +appwrite tables getUsage \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/get.md b/docs/examples/1.8.x/console-cli/examples/tables/get.md new file mode 100644 index 0000000000..a41e6c10ed --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/get.md @@ -0,0 +1,3 @@ +appwrite tables get \ + --databaseId \ + --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md b/docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..da73950231 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md @@ -0,0 +1,7 @@ +appwrite tables incrementRowColumn \ + --databaseId \ + --tableId \ + --rowId \ + --column '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-columns.md b/docs/examples/1.8.x/console-cli/examples/tables/list-columns.md new file mode 100644 index 0000000000..0439d58127 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/list-columns.md @@ -0,0 +1,4 @@ +appwrite tables listColumns \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md new file mode 100644 index 0000000000..b5fd85b911 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md @@ -0,0 +1,4 @@ +appwrite tables listIndexes \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md b/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md new file mode 100644 index 0000000000..08c4ff0f8d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md @@ -0,0 +1,4 @@ +appwrite tables listLogs \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md b/docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md new file mode 100644 index 0000000000..e7a8c5b8ce --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md @@ -0,0 +1,5 @@ +appwrite tables listRowLogs \ + --databaseId \ + --tableId \ + --rowId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/list-rows.md new file mode 100644 index 0000000000..2a6d69d574 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/list-rows.md @@ -0,0 +1,4 @@ +appwrite tables listRows \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list.md b/docs/examples/1.8.x/console-cli/examples/tables/list.md new file mode 100644 index 0000000000..1c58d9ed03 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/list.md @@ -0,0 +1,4 @@ +appwrite tables list \ + --databaseId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..7d736f35e5 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md @@ -0,0 +1,7 @@ +appwrite tables updateBooleanColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default false \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..3da3e4a919 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md @@ -0,0 +1,7 @@ +appwrite tables updateDatetimeColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default '' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md new file mode 100644 index 0000000000..df718b8d9a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md @@ -0,0 +1,7 @@ +appwrite tables updateEmailColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default email@example.com \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..55c55fc2bd --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md @@ -0,0 +1,8 @@ +appwrite tables updateEnumColumn \ + --databaseId \ + --tableId \ + --key '' \ + --elements one two three \ + --required false \ + --default \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md new file mode 100644 index 0000000000..99667a8447 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md @@ -0,0 +1,9 @@ +appwrite tables updateFloatColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default null \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..098efa0e3e --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md @@ -0,0 +1,9 @@ +appwrite tables updateIntegerColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default null \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..50eadc3fff --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md @@ -0,0 +1,7 @@ +appwrite tables updateIpColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default '' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..43e0c0ae6e --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md @@ -0,0 +1,6 @@ +appwrite tables updateRelationshipColumn \ + --databaseId \ + --tableId \ + --key '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-row.md b/docs/examples/1.8.x/console-cli/examples/tables/update-row.md new file mode 100644 index 0000000000..d5cd0fe4ee --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-row.md @@ -0,0 +1,6 @@ +appwrite tables updateRow \ + --databaseId \ + --tableId \ + --rowId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/update-rows.md new file mode 100644 index 0000000000..173d608d5a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-rows.md @@ -0,0 +1,5 @@ +appwrite tables updateRows \ + --databaseId \ + --tableId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md new file mode 100644 index 0000000000..3feaa734ec --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md @@ -0,0 +1,8 @@ +appwrite tables updateStringColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md b/docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md new file mode 100644 index 0000000000..2df1ab14d7 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md @@ -0,0 +1,7 @@ +appwrite tables updateUrlColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default https://example.com \ + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update.md b/docs/examples/1.8.x/console-cli/examples/tables/update.md new file mode 100644 index 0000000000..a1550287c8 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/update.md @@ -0,0 +1,7 @@ +appwrite tables update \ + --databaseId \ + --tableId \ + --name \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/tables/upsert-row.md b/docs/examples/1.8.x/console-cli/examples/tables/upsert-row.md new file mode 100644 index 0000000000..0281a89b20 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/upsert-row.md @@ -0,0 +1,4 @@ +appwrite tables upsertRow \ + --databaseId \ + --tableId \ + --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md b/docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..828caf8f10 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md @@ -0,0 +1,3 @@ +appwrite tables upsertRows \ + --databaseId \ + --tableId diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..bf0cca08c1 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..c9eb3af82c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-email-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-email-column.md new file mode 100644 index 0000000000..3952161779 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-email-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..7b16da6c14 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-float-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-float-column.md new file mode 100644 index 0000000000..6608864efe --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-float-column.md @@ -0,0 +1,20 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-index.md b/docs/examples/1.8.x/console-web/examples/tables/create-index.md new file mode 100644 index 0000000000..c303dd289d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-index.md @@ -0,0 +1,19 @@ +import { Client, Tables, IndexType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createIndex( + '', // databaseId + '', // tableId + '', // key + IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..0490b71189 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md @@ -0,0 +1,20 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..644f520032 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..5658eec690 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md @@ -0,0 +1,20 @@ +import { Client, Tables, RelationshipType, RelationMutate } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + RelationMutate.Cascade // onDelete (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-row.md b/docs/examples/1.8.x/console-web/examples/tables/create-row.md new file mode 100644 index 0000000000..ba18cb6fba --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-row.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +const tables = new Tables(client); + +const result = await tables.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-rows.md b/docs/examples/1.8.x/console-web/examples/tables/create-rows.md new file mode 100644 index 0000000000..bd7f984ee3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-rows.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const result = await tables.createRows( + '', // databaseId + '', // tableId + [] // rows +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-string-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-string-column.md new file mode 100644 index 0000000000..6c1fbd7c99 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-string-column.md @@ -0,0 +1,20 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-url-column.md b/docs/examples/1.8.x/console-web/examples/tables/create-url-column.md new file mode 100644 index 0000000000..88e1fc584d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create-url-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/create.md b/docs/examples/1.8.x/console-web/examples/tables/create.md new file mode 100644 index 0000000000..a7bda74508 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/create.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.create( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..35cb78686c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-column.md b/docs/examples/1.8.x/console-web/examples/tables/delete-column.md new file mode 100644 index 0000000000..642856448a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/delete-column.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-index.md b/docs/examples/1.8.x/console-web/examples/tables/delete-index.md new file mode 100644 index 0000000000..f517513909 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/delete-index.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-row.md b/docs/examples/1.8.x/console-web/examples/tables/delete-row.md new file mode 100644 index 0000000000..accbb3092a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-rows.md b/docs/examples/1.8.x/console-web/examples/tables/delete-rows.md new file mode 100644 index 0000000000..adbb613a35 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/delete-rows.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete.md b/docs/examples/1.8.x/console-web/examples/tables/delete.md new file mode 100644 index 0000000000..f235d8dda0 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/delete.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.delete( + '', // databaseId + '' // tableId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-column.md b/docs/examples/1.8.x/console-web/examples/tables/get-column.md new file mode 100644 index 0000000000..7bd7f2db30 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/get-column.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.getColumn( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-index.md b/docs/examples/1.8.x/console-web/examples/tables/get-index.md new file mode 100644 index 0000000000..dc8c3362cf --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/get-index.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.getIndex( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-row.md b/docs/examples/1.8.x/console-web/examples/tables/get-row.md new file mode 100644 index 0000000000..f37558d4ff --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/get-row.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md b/docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md new file mode 100644 index 0000000000..4e6ca3270d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md @@ -0,0 +1,15 @@ +import { Client, Tables, } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.getTableUsage( + '', // databaseId + '', // tableId + .24h // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-usage.md b/docs/examples/1.8.x/console-web/examples/tables/get-usage.md new file mode 100644 index 0000000000..0f9d31c92d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/get-usage.md @@ -0,0 +1,15 @@ +import { Client, Tables, DatabaseUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.getUsage( + '', // databaseId + '', // tableId + DatabaseUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get.md b/docs/examples/1.8.x/console-web/examples/tables/get.md new file mode 100644 index 0000000000..2b8951582a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/get.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.get( + '', // databaseId + '' // tableId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md b/docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..ed9710a0e3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-columns.md b/docs/examples/1.8.x/console-web/examples/tables/list-columns.md new file mode 100644 index 0000000000..91348c4e61 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/list-columns.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-indexes.md b/docs/examples/1.8.x/console-web/examples/tables/list-indexes.md new file mode 100644 index 0000000000..0ae874663d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/list-indexes.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-logs.md b/docs/examples/1.8.x/console-web/examples/tables/list-logs.md new file mode 100644 index 0000000000..04d6c2300c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/list-logs.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.listLogs( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md b/docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md new file mode 100644 index 0000000000..691e589a77 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.listRowLogs( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-rows.md b/docs/examples/1.8.x/console-web/examples/tables/list-rows.md new file mode 100644 index 0000000000..79f5e242a5 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/list.md b/docs/examples/1.8.x/console-web/examples/tables/list.md new file mode 100644 index 0000000000..e8eb3c3dd6 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/list.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.list( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..e4bb9012e6 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..d24683aafb --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-email-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-email-column.md new file mode 100644 index 0000000000..b9e2483191 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-email-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..bfe084212c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-float-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-float-column.md new file mode 100644 index 0000000000..9075e31e69 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-float-column.md @@ -0,0 +1,20 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..c45e4735a9 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md @@ -0,0 +1,20 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..f7cdb490dc --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..192eac7175 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md @@ -0,0 +1,17 @@ +import { Client, Tables, RelationMutate } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-row.md b/docs/examples/1.8.x/console-web/examples/tables/update-row.md new file mode 100644 index 0000000000..0db00657c2 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-row.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-rows.md b/docs/examples/1.8.x/console-web/examples/tables/update-rows.md new file mode 100644 index 0000000000..72b2244f75 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-rows.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-string-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-string-column.md new file mode 100644 index 0000000000..8f6b3b5dad --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-string-column.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-url-column.md b/docs/examples/1.8.x/console-web/examples/tables/update-url-column.md new file mode 100644 index 0000000000..a2cb65d700 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update-url-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/update.md b/docs/examples/1.8.x/console-web/examples/tables/update.md new file mode 100644 index 0000000000..f0552604af --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/update.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tables = new Tables(client); + +const result = await tables.update( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/upsert-row.md b/docs/examples/1.8.x/console-web/examples/tables/upsert-row.md new file mode 100644 index 0000000000..f1cb65e675 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +const tables = new Tables(client); + +const result = await tables.upsertRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tables/upsert-rows.md b/docs/examples/1.8.x/console-web/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..2d818cdbca --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tables/upsert-rows.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const result = await tables.upsertRows( + '', // databaseId + '' // tableId +); + +console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..5b3e987b9b --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnBoolean result = await tables.createBooleanColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: false, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..1ad3fa250d --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnDatetime result = await tables.createDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md new file mode 100644 index 0000000000..fa7ec71410 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnEmail result = await tables.createEmailColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'email@example.com', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..5ab6bcc774 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnEnum result = await tables.createEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md new file mode 100644 index 0000000000..43331187ea --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnFloat result = await tables.createFloatColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + min: 0, // (optional) + max: 0, // (optional) + xdefault: 0, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-index.md b/docs/examples/1.8.x/server-dart/examples/tables/create-index.md new file mode 100644 index 0000000000..d76c46959f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-index.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnIndex result = await tables.createIndex( + databaseId: '', + tableId: '', + key: '', + type: IndexType.key, + columns: [], + orders: [], // (optional) + lengths: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..3304325af7 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnInteger result = await tables.createIntegerColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + min: 0, // (optional) + max: 0, // (optional) + xdefault: 0, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..68c7abf754 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnIp result = await tables.createIpColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..a059740bf8 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnRelationship result = await tables.createRelationshipColumn( + databaseId: '', + tableId: '', + relatedTableId: '', + type: RelationshipType.oneToOne, + twoWay: false, // (optional) + key: '', // (optional) + twoWayKey: '', // (optional) + onDelete: RelationMutate.cascade, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-row.md b/docs/examples/1.8.x/server-dart/examples/tables/create-row.md new file mode 100644 index 0000000000..1ce1e1db7a --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-row.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +Tables tables = Tables(client); + +Row result = await tables.createRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/create-rows.md new file mode 100644 index 0000000000..219f2d2d33 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +RowList result = await tables.createRows( + databaseId: '', + tableId: '', + rows: [], +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md new file mode 100644 index 0000000000..17e192b27e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnString result = await tables.createStringColumn( + databaseId: '', + tableId: '', + key: '', + size: 1, + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) + encrypt: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md new file mode 100644 index 0000000000..d3692fc7ac --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnUrl result = await tables.createUrlColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'https://example.com', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create.md b/docs/examples/1.8.x/server-dart/examples/tables/create.md new file mode 100644 index 0000000000..c3a4b2a989 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/create.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +Table result = await tables.create( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // (optional) + rowSecurity: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..33d296110c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +Row result = await tables.decrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: 0, // (optional) + min: 0, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-column.md b/docs/examples/1.8.x/server-dart/examples/tables/delete-column.md new file mode 100644 index 0000000000..466564f618 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/delete-column.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +await tables.deleteColumn( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-index.md b/docs/examples/1.8.x/server-dart/examples/tables/delete-index.md new file mode 100644 index 0000000000..f2dfdbe74b --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/delete-index.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +await tables.deleteIndex( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-row.md b/docs/examples/1.8.x/server-dart/examples/tables/delete-row.md new file mode 100644 index 0000000000..b84c1b7a9f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/delete-row.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Tables tables = Tables(client); + +await tables.deleteRow( + databaseId: '', + tableId: '', + rowId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md new file mode 100644 index 0000000000..41dc3a9520 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +await tables.deleteRows( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete.md b/docs/examples/1.8.x/server-dart/examples/tables/delete.md new file mode 100644 index 0000000000..07c9815422 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/delete.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +await tables.delete( + databaseId: '', + tableId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get-column.md b/docs/examples/1.8.x/server-dart/examples/tables/get-column.md new file mode 100644 index 0000000000..087139c87d --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/get-column.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + + result = await tables.getColumn( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get-index.md b/docs/examples/1.8.x/server-dart/examples/tables/get-index.md new file mode 100644 index 0000000000..3f79deef2f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/get-index.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnIndex result = await tables.getIndex( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get-row.md b/docs/examples/1.8.x/server-dart/examples/tables/get-row.md new file mode 100644 index 0000000000..7efd04a69d --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/get-row.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Tables tables = Tables(client); + +Row result = await tables.getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get.md b/docs/examples/1.8.x/server-dart/examples/tables/get.md new file mode 100644 index 0000000000..d02f9ff9d2 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/get.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +Table result = await tables.get( + databaseId: '', + tableId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..188ab5d1ad --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +Row result = await tables.incrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: 0, // (optional) + max: 0, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list-columns.md b/docs/examples/1.8.x/server-dart/examples/tables/list-columns.md new file mode 100644 index 0000000000..7b2d479ea3 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/list-columns.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnList result = await tables.listColumns( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md new file mode 100644 index 0000000000..e7418de3bc --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnIndexList result = await tables.listIndexes( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/list-rows.md new file mode 100644 index 0000000000..05f9567ac2 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/list-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Tables tables = Tables(client); + +RowList result = await tables.listRows( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list.md b/docs/examples/1.8.x/server-dart/examples/tables/list.md new file mode 100644 index 0000000000..51a19c099d --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/list.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +TableList result = await tables.list( + databaseId: '', + queries: [], // (optional) + search: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..c452238d7c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnBoolean result = await tables.updateBooleanColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: false, + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..5b41d7e532 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnDatetime result = await tables.updateDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md new file mode 100644 index 0000000000..444649a4fd --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnEmail result = await tables.updateEmailColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'email@example.com', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..2e0566418a --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnEnum result = await tables.updateEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md new file mode 100644 index 0000000000..199d3840d6 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnFloat result = await tables.updateFloatColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..479e63d870 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnInteger result = await tables.updateIntegerColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..837ae4e606 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnIp result = await tables.updateIpColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..45745627ef --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnRelationship result = await tables.updateRelationshipColumn( + databaseId: '', + tableId: '', + key: '', + onDelete: RelationMutate.cascade, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-row.md b/docs/examples/1.8.x/server-dart/examples/tables/update-row.md new file mode 100644 index 0000000000..436329235a --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-row.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Tables tables = Tables(client); + +Row result = await tables.updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // (optional) + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/update-rows.md new file mode 100644 index 0000000000..3d2aaf3e28 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-rows.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +RowList result = await tables.updateRows( + databaseId: '', + tableId: '', + data: {}, // (optional) + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md new file mode 100644 index 0000000000..dbd569feac --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnString result = await tables.updateStringColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + size: 1, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md new file mode 100644 index 0000000000..8630c718b5 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +ColumnUrl result = await tables.updateUrlColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'https://example.com', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update.md b/docs/examples/1.8.x/server-dart/examples/tables/update.md new file mode 100644 index 0000000000..28ce03cd6c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/update.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +Table result = await tables.update( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // (optional) + rowSecurity: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-dart/examples/tables/upsert-row.md new file mode 100644 index 0000000000..47f93f2434 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/upsert-row.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +Tables tables = Tables(client); + +Row result = await tables.upsertRow( + databaseId: '', + tableId: '', + rowId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-dart/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..73ceffa917 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tables/upsert-rows.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // Your secret API key + +Tables tables = Tables(client); + +RowList result = await tables.upsertRows( + databaseId: '', + tableId: '', +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..3f9abc8c05 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..898b67a787 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md new file mode 100644 index 0000000000..82872e4087 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..afbb8d00aa --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md new file mode 100644 index 0000000000..44658bbaa9 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-index.md b/docs/examples/1.8.x/server-deno/examples/tables/create-index.md new file mode 100644 index 0000000000..c255189881 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-index.md @@ -0,0 +1,18 @@ +import { Client, Tables, IndexType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createIndex( + '', // databaseId + '', // tableId + '', // key + IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..0f1721b24a --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..ca96de6293 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..8c7e26e62c --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md @@ -0,0 +1,19 @@ +import { Client, Tables, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + RelationMutate.Cascade // onDelete (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-row.md b/docs/examples/1.8.x/server-deno/examples/tables/create-row.md new file mode 100644 index 0000000000..12cec49af0 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-row.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +const tables = new Tables(client); + +const response = await tables.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/create-rows.md new file mode 100644 index 0000000000..6c4f7d5627 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-rows.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md new file mode 100644 index 0000000000..db7ac8a760 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md new file mode 100644 index 0000000000..8d6f127c00 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create.md b/docs/examples/1.8.x/server-deno/examples/tables/create.md new file mode 100644 index 0000000000..9c75c22c3d --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/create.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.create( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..e561acc529 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-column.md b/docs/examples/1.8.x/server-deno/examples/tables/delete-column.md new file mode 100644 index 0000000000..89900bfbf0 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/delete-column.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-index.md b/docs/examples/1.8.x/server-deno/examples/tables/delete-index.md new file mode 100644 index 0000000000..a17791cef2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/delete-index.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-row.md b/docs/examples/1.8.x/server-deno/examples/tables/delete-row.md new file mode 100644 index 0000000000..8f30eae2d2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/delete-row.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const tables = new Tables(client); + +const response = await tables.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md new file mode 100644 index 0000000000..c5aa88f9a2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete.md b/docs/examples/1.8.x/server-deno/examples/tables/delete.md new file mode 100644 index 0000000000..36df1373dc --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/delete.md @@ -0,0 +1,13 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.delete( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get-column.md b/docs/examples/1.8.x/server-deno/examples/tables/get-column.md new file mode 100644 index 0000000000..8a56af67e7 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/get-column.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.getColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get-index.md b/docs/examples/1.8.x/server-deno/examples/tables/get-index.md new file mode 100644 index 0000000000..61105dc661 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/get-index.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.getIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get-row.md b/docs/examples/1.8.x/server-deno/examples/tables/get-row.md new file mode 100644 index 0000000000..674ea3e648 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/get-row.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const tables = new Tables(client); + +const response = await tables.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get.md b/docs/examples/1.8.x/server-deno/examples/tables/get.md new file mode 100644 index 0000000000..cc1dcb8c51 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/get.md @@ -0,0 +1,13 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.get( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..9779d8776e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list-columns.md b/docs/examples/1.8.x/server-deno/examples/tables/list-columns.md new file mode 100644 index 0000000000..63ec0777bb --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/list-columns.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md new file mode 100644 index 0000000000..587d19f362 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/list-rows.md new file mode 100644 index 0000000000..6db6bea439 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/list-rows.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const tables = new Tables(client); + +const response = await tables.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list.md b/docs/examples/1.8.x/server-deno/examples/tables/list.md new file mode 100644 index 0000000000..d4da8409c9 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/list.md @@ -0,0 +1,14 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.list( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..8710c27ede --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..e1ca760e31 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md new file mode 100644 index 0000000000..b0e25348d4 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..8771213a79 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md new file mode 100644 index 0000000000..a2e6f55c1f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..51ea17f943 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md @@ -0,0 +1,19 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..4a5a1d0f81 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..c83b82037a --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md @@ -0,0 +1,16 @@ +import { Client, Tables, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-row.md b/docs/examples/1.8.x/server-deno/examples/tables/update-row.md new file mode 100644 index 0000000000..13da5615e7 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-row.md @@ -0,0 +1,16 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const tables = new Tables(client); + +const response = await tables.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/update-rows.md new file mode 100644 index 0000000000..1bc0a18b98 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-rows.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md new file mode 100644 index 0000000000..00dd310b1e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md @@ -0,0 +1,18 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md new file mode 100644 index 0000000000..2ebf80a356 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update.md b/docs/examples/1.8.x/server-deno/examples/tables/update.md new file mode 100644 index 0000000000..43b51bd284 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/update.md @@ -0,0 +1,17 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.update( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-deno/examples/tables/upsert-row.md new file mode 100644 index 0000000000..45e932c7f6 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/upsert-row.md @@ -0,0 +1,15 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +const tables = new Tables(client); + +const response = await tables.upsertRow( + '', // databaseId + '', // tableId + '' // rowId +); diff --git a/docs/examples/1.8.x/server-deno/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-deno/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..9e3f542051 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tables/upsert-rows.md @@ -0,0 +1,13 @@ +import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // Your secret API key + +const tables = new Tables(client); + +const response = await tables.upsertRows( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..1492487721 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnBoolean result = await tables.CreateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..6a1e07b907 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnDatetime result = await tables.CreateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md new file mode 100644 index 0000000000..a4740484f5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnEmail result = await tables.CreateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..9529ad1331 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnEnum result = await tables.CreateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: new List(), + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md new file mode 100644 index 0000000000..f8146ce272 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnFloat result = await tables.CreateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md new file mode 100644 index 0000000000..4ea3817da2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnIndex result = await tables.CreateIndex( + databaseId: "", + tableId: "", + key: "", + type: IndexType.Key, + columns: new List(), + orders: new List(), // optional + lengths: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..6090426792 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnInteger result = await tables.CreateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..b5e5067e6f --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnIp result = await tables.CreateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..7c4cba49dd --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md @@ -0,0 +1,22 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnRelationship result = await tables.CreateRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: RelationshipType.OneToOne, + twoWay: false, // optional + key: "", // optional + twoWayKey: "", // optional + onDelete: RelationMutate.Cascade // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-row.md new file mode 100644 index 0000000000..642bfe457c --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-row.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetSession("") // The user session to authenticate with + .SetKey("") // Your secret API key + .SetJWT(""); // Your secret JSON Web Token + +Tables tables = new Tables(client); + +Row result = await tables.CreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [object], + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-rows.md new file mode 100644 index 0000000000..1d44dc51ed --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetAdmin("") // + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +RowList result = await tables.CreateRows( + databaseId: "", + tableId: "", + rows: new List() +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md new file mode 100644 index 0000000000..e623ac0789 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnString result = await tables.CreateStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false, // optional + encrypt: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md new file mode 100644 index 0000000000..7a0fbd0a83 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnUrl result = await tables.CreateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create.md b/docs/examples/1.8.x/server-dotnet/examples/tables/create.md new file mode 100644 index 0000000000..694f4101a7 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/create.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +Table result = await tables.Create( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..220fb2b18a --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +Row result = await tables.DecrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + min: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md new file mode 100644 index 0000000000..ca8987eec9 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +await tables.DeleteColumn( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md new file mode 100644 index 0000000000..ba7a024167 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +await tables.DeleteIndex( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md new file mode 100644 index 0000000000..95bae6ad6b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Tables tables = new Tables(client); + +await tables.DeleteRow( + databaseId: "", + tableId: "", + rowId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md new file mode 100644 index 0000000000..46a6e0ba94 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +await tables.DeleteRows( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete.md b/docs/examples/1.8.x/server-dotnet/examples/tables/delete.md new file mode 100644 index 0000000000..bcff3ea05a --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/delete.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +await tables.Delete( + databaseId: "", + tableId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md new file mode 100644 index 0000000000..71ebb81aef --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + + result = await tables.GetColumn( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md b/docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md new file mode 100644 index 0000000000..f5b886e3e9 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnIndex result = await tables.GetIndex( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md new file mode 100644 index 0000000000..474b3342c9 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Tables tables = new Tables(client); + +Row result = await tables.GetRow( + databaseId: "", + tableId: "", + rowId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get.md b/docs/examples/1.8.x/server-dotnet/examples/tables/get.md new file mode 100644 index 0000000000..1e86d228a6 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/get.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +Table result = await tables.Get( + databaseId: "", + tableId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..e8ccd8ca78 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +Row result = await tables.IncrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + max: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md b/docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md new file mode 100644 index 0000000000..fe8c739cf9 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnList result = await tables.ListColumns( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md new file mode 100644 index 0000000000..907a21048f --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnIndexList result = await tables.ListIndexes( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md new file mode 100644 index 0000000000..474c597a1c --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Tables tables = new Tables(client); + +RowList result = await tables.ListRows( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list.md b/docs/examples/1.8.x/server-dotnet/examples/tables/list.md new file mode 100644 index 0000000000..2871a927c4 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/list.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +TableList result = await tables.List( + databaseId: "", + queries: new List(), // optional + search: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..5c610fbe7a --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnBoolean result = await tables.UpdateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..754d0f1ae6 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnDatetime result = await tables.UpdateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md new file mode 100644 index 0000000000..6000c54e8f --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnEmail result = await tables.UpdateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..2eaa1a51a1 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnEnum result = await tables.UpdateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: new List(), + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md new file mode 100644 index 0000000000..7d18d8e624 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnFloat result = await tables.UpdateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..0b3b85652c --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnInteger result = await tables.UpdateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..ccdd0d5235 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnIp result = await tables.UpdateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..be6aa31f73 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnRelationship result = await tables.UpdateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: RelationMutate.Cascade, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md new file mode 100644 index 0000000000..d049ccf805 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Tables tables = new Tables(client); + +Row result = await tables.UpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [object], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md new file mode 100644 index 0000000000..9d2c51c4b3 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +RowList result = await tables.UpdateRows( + databaseId: "", + tableId: "", + data: [object], // optional + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md new file mode 100644 index 0000000000..da280e7d8c --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnString result = await tables.UpdateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md new file mode 100644 index 0000000000..1ce961da2b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +ColumnUrl result = await tables.UpdateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update.md b/docs/examples/1.8.x/server-dotnet/examples/tables/update.md new file mode 100644 index 0000000000..584c61c6bb --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/update.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +Table result = await tables.Update( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-row.md new file mode 100644 index 0000000000..a73c4e2402 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-row.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetSession("") // The user session to authenticate with + .SetKey("") // Your secret API key + .SetJWT(""); // Your secret JSON Web Token + +Tables tables = new Tables(client); + +Row result = await tables.UpsertRow( + databaseId: "", + tableId: "", + rowId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..07e5e927c6 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tables/upsert-rows.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetAdmin("") // + .SetKey(""); // Your secret API key + +Tables tables = new Tables(client); + +RowList result = await tables.UpsertRows( + databaseId: "", + tableId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..70a666257f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateBooleanColumn( + "", + "", + "", + false, + tables.WithCreateBooleanColumnDefault(false), + tables.WithCreateBooleanColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..beb8bd09e6 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateDatetimeColumn( + "", + "", + "", + false, + tables.WithCreateDatetimeColumnDefault(""), + tables.WithCreateDatetimeColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-email-column.md new file mode 100644 index 0000000000..449cc0e88a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-email-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateEmailColumn( + "", + "", + "", + false, + tables.WithCreateEmailColumnDefault("email@example.com"), + tables.WithCreateEmailColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..8f3bb84bb7 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateEnumColumn( + "", + "", + "", + []interface{}{}, + false, + tables.WithCreateEnumColumnDefault(""), + tables.WithCreateEnumColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-float-column.md new file mode 100644 index 0000000000..eeabd851b9 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-float-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateFloatColumn( + "", + "", + "", + false, + tables.WithCreateFloatColumnMin(0), + tables.WithCreateFloatColumnMax(0), + tables.WithCreateFloatColumnDefault(0), + tables.WithCreateFloatColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-index.md b/docs/examples/1.8.x/server-go/examples/tables/create-index.md new file mode 100644 index 0000000000..1737b29f6f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-index.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateIndex( + "", + "", + "", + "key", + []interface{}{}, + tables.WithCreateIndexOrders([]interface{}{}), + tables.WithCreateIndexLengths([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..45a81f6415 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateIntegerColumn( + "", + "", + "", + false, + tables.WithCreateIntegerColumnMin(0), + tables.WithCreateIntegerColumnMax(0), + tables.WithCreateIntegerColumnDefault(0), + tables.WithCreateIntegerColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..f6d203d65e --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateIpColumn( + "", + "", + "", + false, + tables.WithCreateIpColumnDefault(""), + tables.WithCreateIpColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..e2e6de59de --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateRelationshipColumn( + "", + "", + "", + "oneToOne", + tables.WithCreateRelationshipColumnTwoWay(false), + tables.WithCreateRelationshipColumnKey(""), + tables.WithCreateRelationshipColumnTwoWayKey(""), + tables.WithCreateRelationshipColumnOnDelete("cascade"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-row.md b/docs/examples/1.8.x/server-go/examples/tables/create-row.md new file mode 100644 index 0000000000..329f2a1c9c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-row.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithSession("") // The user session to authenticate with + client.WithKey("") // Your secret API key + client.WithJWT("") // Your secret JSON Web Token + ) + + service := tables.New(client) + response, error := service.CreateRow( + "", + "", + "", + map[string]interface{}{}, + tables.WithCreateRowPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-rows.md b/docs/examples/1.8.x/server-go/examples/tables/create-rows.md new file mode 100644 index 0000000000..7d32206bea --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithAdmin("") // + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateRows( + "", + "", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-string-column.md new file mode 100644 index 0000000000..afb41e2728 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-string-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateStringColumn( + "", + "", + "", + 1, + false, + tables.WithCreateStringColumnDefault(""), + tables.WithCreateStringColumnArray(false), + tables.WithCreateStringColumnEncrypt(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-go/examples/tables/create-url-column.md new file mode 100644 index 0000000000..c4e30e30cd --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create-url-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.CreateUrlColumn( + "", + "", + "", + false, + tables.WithCreateUrlColumnDefault("https://example.com"), + tables.WithCreateUrlColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/create.md b/docs/examples/1.8.x/server-go/examples/tables/create.md new file mode 100644 index 0000000000..672824daa6 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/create.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.Create( + "", + "", + "", + tables.WithCreatePermissions(interface{}{"read("any")"}), + tables.WithCreateRowSecurity(false), + tables.WithCreateEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..8ef1d26a59 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.DecrementRowColumn( + "", + "", + "", + "", + tables.WithDecrementRowColumnValue(0), + tables.WithDecrementRowColumnMin(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-column.md b/docs/examples/1.8.x/server-go/examples/tables/delete-column.md new file mode 100644 index 0000000000..f66fc199c3 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/delete-column.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.DeleteColumn( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-index.md b/docs/examples/1.8.x/server-go/examples/tables/delete-index.md new file mode 100644 index 0000000000..1dddeef4e8 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/delete-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.DeleteIndex( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-row.md b/docs/examples/1.8.x/server-go/examples/tables/delete-row.md new file mode 100644 index 0000000000..9f55934e41 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/delete-row.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := tables.New(client) + response, error := service.DeleteRow( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-go/examples/tables/delete-rows.md new file mode 100644 index 0000000000..3ad38f8067 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/delete-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.DeleteRows( + "", + "", + tables.WithDeleteRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete.md b/docs/examples/1.8.x/server-go/examples/tables/delete.md new file mode 100644 index 0000000000..9637acc51d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/delete.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.Delete( + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/get-column.md b/docs/examples/1.8.x/server-go/examples/tables/get-column.md new file mode 100644 index 0000000000..292d22800e --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/get-column.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.GetColumn( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/get-index.md b/docs/examples/1.8.x/server-go/examples/tables/get-index.md new file mode 100644 index 0000000000..077e823195 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/get-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.GetIndex( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/get-row.md b/docs/examples/1.8.x/server-go/examples/tables/get-row.md new file mode 100644 index 0000000000..a224c60d98 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/get-row.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := tables.New(client) + response, error := service.GetRow( + "", + "", + "", + tables.WithGetRowQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/get.md b/docs/examples/1.8.x/server-go/examples/tables/get.md new file mode 100644 index 0000000000..60304a8fd0 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/get.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.Get( + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..5d8b2f5578 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.IncrementRowColumn( + "", + "", + "", + "", + tables.WithIncrementRowColumnValue(0), + tables.WithIncrementRowColumnMax(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/list-columns.md b/docs/examples/1.8.x/server-go/examples/tables/list-columns.md new file mode 100644 index 0000000000..25712ef2a7 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/list-columns.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.ListColumns( + "", + "", + tables.WithListColumnsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-go/examples/tables/list-indexes.md new file mode 100644 index 0000000000..0be8e81164 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/list-indexes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.ListIndexes( + "", + "", + tables.WithListIndexesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/list-rows.md b/docs/examples/1.8.x/server-go/examples/tables/list-rows.md new file mode 100644 index 0000000000..aadbcf1dad --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/list-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := tables.New(client) + response, error := service.ListRows( + "", + "", + tables.WithListRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/list.md b/docs/examples/1.8.x/server-go/examples/tables/list.md new file mode 100644 index 0000000000..1942b7a2d2 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/list.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.List( + "", + tables.WithListQueries([]interface{}{}), + tables.WithListSearch(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..c76c3bb1cc --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateBooleanColumn( + "", + "", + "", + false, + false, + tables.WithUpdateBooleanColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..e093904ad5 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateDatetimeColumn( + "", + "", + "", + false, + "", + tables.WithUpdateDatetimeColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-email-column.md new file mode 100644 index 0000000000..08845b5149 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-email-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateEmailColumn( + "", + "", + "", + false, + "email@example.com", + tables.WithUpdateEmailColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..e639f850ba --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateEnumColumn( + "", + "", + "", + []interface{}{}, + false, + "", + tables.WithUpdateEnumColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-float-column.md new file mode 100644 index 0000000000..83fa3777c2 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-float-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateFloatColumn( + "", + "", + "", + false, + 0, + tables.WithUpdateFloatColumnMin(0), + tables.WithUpdateFloatColumnMax(0), + tables.WithUpdateFloatColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..5bbea02709 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateIntegerColumn( + "", + "", + "", + false, + 0, + tables.WithUpdateIntegerColumnMin(0), + tables.WithUpdateIntegerColumnMax(0), + tables.WithUpdateIntegerColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..f67711aaed --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateIpColumn( + "", + "", + "", + false, + "", + tables.WithUpdateIpColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..1ec20edbb6 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateRelationshipColumn( + "", + "", + "", + tables.WithUpdateRelationshipColumnOnDelete("cascade"), + tables.WithUpdateRelationshipColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-row.md b/docs/examples/1.8.x/server-go/examples/tables/update-row.md new file mode 100644 index 0000000000..8ef1189769 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-row.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := tables.New(client) + response, error := service.UpdateRow( + "", + "", + "", + tables.WithUpdateRowData(map[string]interface{}{}), + tables.WithUpdateRowPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-rows.md b/docs/examples/1.8.x/server-go/examples/tables/update-rows.md new file mode 100644 index 0000000000..7579e32851 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-rows.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateRows( + "", + "", + tables.WithUpdateRowsData(map[string]interface{}{}), + tables.WithUpdateRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-string-column.md new file mode 100644 index 0000000000..0a21b05e19 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-string-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateStringColumn( + "", + "", + "", + false, + "", + tables.WithUpdateStringColumnSize(1), + tables.WithUpdateStringColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-go/examples/tables/update-url-column.md new file mode 100644 index 0000000000..aeb0541648 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update-url-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpdateUrlColumn( + "", + "", + "", + false, + "https://example.com", + tables.WithUpdateUrlColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/update.md b/docs/examples/1.8.x/server-go/examples/tables/update.md new file mode 100644 index 0000000000..7a75c10713 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/update.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.Update( + "", + "", + "", + tables.WithUpdatePermissions(interface{}{"read("any")"}), + tables.WithUpdateRowSecurity(false), + tables.WithUpdateEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-go/examples/tables/upsert-row.md new file mode 100644 index 0000000000..9bc9f00f8b --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/upsert-row.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithSession("") // The user session to authenticate with + client.WithKey("") // Your secret API key + client.WithJWT("") // Your secret JSON Web Token + ) + + service := tables.New(client) + response, error := service.UpsertRow( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-go/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..bc5a4db007 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tables/upsert-rows.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tables" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithAdmin("") // + client.WithKey("") // Your secret API key + ) + + service := tables.New(client) + response, error := service.UpsertRows( + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..564b1a964c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md @@ -0,0 +1,20 @@ +mutation { + tablesCreateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..34055c27fa --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md @@ -0,0 +1,21 @@ +mutation { + tablesCreateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md new file mode 100644 index 0000000000..a45001d0be --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md @@ -0,0 +1,21 @@ +mutation { + tablesCreateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..5d1c516e3a --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md @@ -0,0 +1,23 @@ +mutation { + tablesCreateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + elements + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md new file mode 100644 index 0000000000..09bf481a33 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md @@ -0,0 +1,24 @@ +mutation { + tablesCreateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, + max: 0, + default: 0, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-index.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-index.md new file mode 100644 index 0000000000..bc47403c64 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-index.md @@ -0,0 +1,21 @@ +mutation { + tablesCreateIndex( + databaseId: "", + tableId: "", + key: "", + type: "key", + columns: [], + orders: [], + lengths: [] + ) { + key + type + status + error + columns + lengths + orders + _createdAt + _updatedAt + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..04273b18b5 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md @@ -0,0 +1,24 @@ +mutation { + tablesCreateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, + max: 0, + default: 0, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..c2f07c760b --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md @@ -0,0 +1,21 @@ +mutation { + tablesCreateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..8e56bd3867 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md @@ -0,0 +1,27 @@ +mutation { + tablesCreateRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: "oneToOne", + twoWay: false, + key: "", + twoWayKey: "", + onDelete: "cascade" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + relatedTable + relationType + twoWay + twoWayKey + onDelete + side + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-row.md new file mode 100644 index 0000000000..c88a7f36cf --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-row.md @@ -0,0 +1,18 @@ +mutation { + tablesCreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md new file mode 100644 index 0000000000..a4ae62cfae --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md @@ -0,0 +1,19 @@ +mutation { + tablesCreateRows( + databaseId: "", + tableId: "", + rows: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md new file mode 100644 index 0000000000..b0b11c2610 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md @@ -0,0 +1,24 @@ +mutation { + tablesCreateStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", + array: false, + encrypt: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + encrypt + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md new file mode 100644 index 0000000000..134208b432 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md @@ -0,0 +1,21 @@ +mutation { + tablesCreateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create.md b/docs/examples/1.8.x/server-graphql/examples/tables/create.md new file mode 100644 index 0000000000..73af2c4a8c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/create.md @@ -0,0 +1,31 @@ +mutation { + tablesCreate( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], + rowSecurity: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + _permissions + databaseId + name + enabled + rowSecurity + columns + indexes { + key + type + status + error + columns + lengths + orders + _createdAt + _updatedAt + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..4ee58849ff --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDecrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, + min: 0 + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md new file mode 100644 index 0000000000..2c2ab098d6 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md @@ -0,0 +1,9 @@ +mutation { + tablesDeleteColumn( + databaseId: "", + tableId: "", + key: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md new file mode 100644 index 0000000000..c95db41fd6 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md @@ -0,0 +1,9 @@ +mutation { + tablesDeleteIndex( + databaseId: "", + tableId: "", + key: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md new file mode 100644 index 0000000000..f3a35c1df1 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md @@ -0,0 +1,9 @@ +mutation { + tablesDeleteRow( + databaseId: "", + tableId: "", + rowId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md new file mode 100644 index 0000000000..1ee227b7e5 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md @@ -0,0 +1,19 @@ +mutation { + tablesDeleteRows( + databaseId: "", + tableId: "", + queries: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete.md b/docs/examples/1.8.x/server-graphql/examples/tables/delete.md new file mode 100644 index 0000000000..1749422f6a --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/delete.md @@ -0,0 +1,8 @@ +mutation { + tablesDelete( + databaseId: "", + tableId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/get-column.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-index.md b/docs/examples/1.8.x/server-graphql/examples/tables/get-index.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/get-row.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get.md b/docs/examples/1.8.x/server-graphql/examples/tables/get.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..f84f149672 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md @@ -0,0 +1,19 @@ +mutation { + tablesIncrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, + max: 0 + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-columns.md b/docs/examples/1.8.x/server-graphql/examples/tables/list-columns.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-graphql/examples/tables/list-indexes.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/list-rows.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list.md b/docs/examples/1.8.x/server-graphql/examples/tables/list.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..541abd97cc --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md @@ -0,0 +1,20 @@ +mutation { + tablesUpdateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..01714377a4 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md @@ -0,0 +1,21 @@ +mutation { + tablesUpdateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md new file mode 100644 index 0000000000..ffb3a21e66 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md @@ -0,0 +1,21 @@ +mutation { + tablesUpdateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..45ddb00d6f --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md @@ -0,0 +1,23 @@ +mutation { + tablesUpdateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + elements + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md new file mode 100644 index 0000000000..f592a53858 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md @@ -0,0 +1,24 @@ +mutation { + tablesUpdateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, + max: 0, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..a51f02d4d7 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md @@ -0,0 +1,24 @@ +mutation { + tablesUpdateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, + max: 0, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..c353c79105 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md @@ -0,0 +1,21 @@ +mutation { + tablesUpdateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..e94800345b --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md @@ -0,0 +1,24 @@ +mutation { + tablesUpdateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: "cascade", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + relatedTable + relationType + twoWay + twoWayKey + onDelete + side + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-row.md new file mode 100644 index 0000000000..8449d8499b --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-row.md @@ -0,0 +1,18 @@ +mutation { + tablesUpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md new file mode 100644 index 0000000000..510648f6e1 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md @@ -0,0 +1,20 @@ +mutation { + tablesUpdateRows( + databaseId: "", + tableId: "", + data: "{}", + queries: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md new file mode 100644 index 0000000000..0771d9a6af --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md @@ -0,0 +1,23 @@ +mutation { + tablesUpdateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + encrypt + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md new file mode 100644 index 0000000000..a5c4a4432d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md @@ -0,0 +1,21 @@ +mutation { + tablesUpdateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update.md b/docs/examples/1.8.x/server-graphql/examples/tables/update.md new file mode 100644 index 0000000000..4aa434c3ed --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/update.md @@ -0,0 +1,31 @@ +mutation { + tablesUpdate( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], + rowSecurity: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + _permissions + databaseId + name + enabled + rowSecurity + columns + indexes { + key + type + status + error + columns + lengths + orders + _createdAt + _updatedAt + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/tables/upsert-row.md new file mode 100644 index 0000000000..480d7651bd --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/upsert-row.md @@ -0,0 +1,16 @@ +mutation { + tablesUpsertRow( + databaseId: "", + tableId: "", + rowId: "" + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-graphql/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..6015470c16 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tables/upsert-rows.md @@ -0,0 +1,18 @@ +mutation { + tablesUpsertRows( + databaseId: "", + tableId: "" + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md new file mode 100644 index 0000000000..2336ee90e0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createBooleanColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + false, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md new file mode 100644 index 0000000000..dd3df83dbf --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createDatetimeColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md new file mode 100644 index 0000000000..3b130d1ecd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createEmailColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "email@example.com", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md new file mode 100644 index 0000000000..73c6e1c7de --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createEnumColumn( + "", // databaseId + "", // tableId + "", // key + listOf(), // elements + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md new file mode 100644 index 0000000000..dd6f207ff4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createFloatColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // min (optional) + 0, // max (optional) + 0, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-index.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-index.md new file mode 100644 index 0000000000..2a4df003c0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-index.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; +import io.appwrite.enums.IndexType; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createIndex( + "", // databaseId + "", // tableId + "", // key + IndexType.KEY, // type + listOf(), // columns + listOf(), // orders (optional) + listOf(), // lengths (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md new file mode 100644 index 0000000000..3546ac8174 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createIntegerColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // min (optional) + 0, // max (optional) + 0, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md new file mode 100644 index 0000000000..825d8b0c5c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createIpColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md new file mode 100644 index 0000000000..7a0b50a541 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md @@ -0,0 +1,31 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; +import io.appwrite.enums.RelationshipType; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createRelationshipColumn( + "", // databaseId + "", // tableId + "", // relatedTableId + RelationshipType.ONETOONE, // type + false, // twoWay (optional) + "", // key (optional) + "", // twoWayKey (optional) + RelationMutate.CASCADE, // onDelete (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-row.md new file mode 100644 index 0000000000..7ba3678aad --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-row.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT(""); // Your secret JSON Web Token + +Tables tables = new Tables(client); + +tables.createRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-rows.md new file mode 100644 index 0000000000..c20aa2c11f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createRows( + "", // databaseId + "", // tableId + listOf(), // rows + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md new file mode 100644 index 0000000000..b8cb626601 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createStringColumn( + "", // databaseId + "", // tableId + "", // key + 1, // size + false, // required + "", // default (optional) + false, // array (optional) + false, // encrypt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md new file mode 100644 index 0000000000..91e90c8bc4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.createUrlColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "https://example.com", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create.md b/docs/examples/1.8.x/server-kotlin/java/tables/create.md new file mode 100644 index 0000000000..6a9faf06dd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/create.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.create( + "", // databaseId + "", // tableId + "", // name + listOf("read("any")"), // permissions (optional) + false, // rowSecurity (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md new file mode 100644 index 0000000000..9e79f36e14 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.decrementRowColumn( + "", // databaseId + "", // tableId + "", // rowId + "", // column + 0, // value (optional) + 0, // min (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md new file mode 100644 index 0000000000..f14390c905 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.deleteColumn( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md new file mode 100644 index 0000000000..1b22eb00d8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.deleteIndex( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md new file mode 100644 index 0000000000..a48745a225 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Tables tables = new Tables(client); + +tables.deleteRow( + "", // databaseId + "", // tableId + "", // rowId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md new file mode 100644 index 0000000000..6a86321fad --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.deleteRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete.md b/docs/examples/1.8.x/server-kotlin/java/tables/delete.md new file mode 100644 index 0000000000..e777c7292e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/delete.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.delete( + "", // databaseId + "", // tableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/get-column.md new file mode 100644 index 0000000000..b4f7e1298f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/get-column.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.getColumn( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get-index.md b/docs/examples/1.8.x/server-kotlin/java/tables/get-index.md new file mode 100644 index 0000000000..5bcd59d4cd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/get-index.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.getIndex( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/get-row.md new file mode 100644 index 0000000000..7f72c25cd8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/get-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Tables tables = new Tables(client); + +tables.getRow( + "", // databaseId + "", // tableId + "", // rowId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get.md b/docs/examples/1.8.x/server-kotlin/java/tables/get.md new file mode 100644 index 0000000000..6f3c639450 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/get.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.get( + "", // databaseId + "", // tableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md new file mode 100644 index 0000000000..f9c828398a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.incrementRowColumn( + "", // databaseId + "", // tableId + "", // rowId + "", // column + 0, // value (optional) + 0, // max (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md b/docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md new file mode 100644 index 0000000000..05e1960021 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.listColumns( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md b/docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md new file mode 100644 index 0000000000..c9bd445fe8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.listIndexes( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md new file mode 100644 index 0000000000..8cbc356556 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Tables tables = new Tables(client); + +tables.listRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list.md b/docs/examples/1.8.x/server-kotlin/java/tables/list.md new file mode 100644 index 0000000000..c3e0c559aa --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/list.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.list( + "", // databaseId + listOf(), // queries (optional) + "", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md new file mode 100644 index 0000000000..647190e7bc --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateBooleanColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + false, // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md new file mode 100644 index 0000000000..38e0e60da5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateDatetimeColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md new file mode 100644 index 0000000000..918884e0b3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateEmailColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "email@example.com", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md new file mode 100644 index 0000000000..b1bbc83520 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateEnumColumn( + "", // databaseId + "", // tableId + "", // key + listOf(), // elements + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md new file mode 100644 index 0000000000..977c23727c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateFloatColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md new file mode 100644 index 0000000000..d2ad81d0eb --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateIntegerColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md new file mode 100644 index 0000000000..cd6e67bc2c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateIpColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md new file mode 100644 index 0000000000..e0dc185e0e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateRelationshipColumn( + "", // databaseId + "", // tableId + "", // key + RelationMutate.CASCADE, // onDelete (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-row.md new file mode 100644 index 0000000000..8270c3fa9b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-row.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Tables tables = new Tables(client); + +tables.updateRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md new file mode 100644 index 0000000000..a51878508f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateRows( + "", // databaseId + "", // tableId + mapOf( "a" to "b" ), // data (optional) + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md new file mode 100644 index 0000000000..31e279d068 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateStringColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + 1, // size (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md b/docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md new file mode 100644 index 0000000000..201e578ac6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.updateUrlColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "https://example.com", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update.md b/docs/examples/1.8.x/server-kotlin/java/tables/update.md new file mode 100644 index 0000000000..cf560cb461 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/update.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.update( + "", // databaseId + "", // tableId + "", // name + listOf("read("any")"), // permissions (optional) + false, // rowSecurity (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/upsert-row.md b/docs/examples/1.8.x/server-kotlin/java/tables/upsert-row.md new file mode 100644 index 0000000000..11127c5bfa --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/upsert-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT(""); // Your secret JSON Web Token + +Tables tables = new Tables(client); + +tables.upsertRow( + "", // databaseId + "", // tableId + "", // rowId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/java/tables/upsert-rows.md new file mode 100644 index 0000000000..14b382263b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tables/upsert-rows.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tables; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey(""); // Your secret API key + +Tables tables = new Tables(client); + +tables.upsertRows( + "", // databaseId + "", // tableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md new file mode 100644 index 0000000000..68b8dc51bd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createBooleanColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = false, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md new file mode 100644 index 0000000000..8740a71d3c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createDatetimeColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md new file mode 100644 index 0000000000..34a6cb669f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createEmailColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "email@example.com", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md new file mode 100644 index 0000000000..d3d2fc9286 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createEnumColumn( + databaseId = "", + tableId = "", + key = "", + elements = listOf(), + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md new file mode 100644 index 0000000000..8540430cea --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createFloatColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + min = 0, // optional + max = 0, // optional + default = 0, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md new file mode 100644 index 0000000000..053c88a93a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables +import io.appwrite.enums.IndexType + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createIndex( + databaseId = "", + tableId = "", + key = "", + type = IndexType.KEY, + columns = listOf(), + orders = listOf(), // optional + lengths = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md new file mode 100644 index 0000000000..1222746259 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createIntegerColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + min = 0, // optional + max = 0, // optional + default = 0, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md new file mode 100644 index 0000000000..277c756d24 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createIpColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md new file mode 100644 index 0000000000..aa07fac6a8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md @@ -0,0 +1,22 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables +import io.appwrite.enums.RelationshipType + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createRelationshipColumn( + databaseId = "", + tableId = "", + relatedTableId = "", + type = RelationshipType.ONETOONE, + twoWay = false, // optional + key = "", // optional + twoWayKey = "", // optional + onDelete = "cascade" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md new file mode 100644 index 0000000000..5df0890f99 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT("") // Your secret JSON Web Token + +val tables = Tables(client) + +val response = tables.createRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-rows.md new file mode 100644 index 0000000000..f549d6fb8c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createRows( + databaseId = "", + tableId = "", + rows = listOf() +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md new file mode 100644 index 0000000000..d82026c31d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createStringColumn( + databaseId = "", + tableId = "", + key = "", + size = 1, + required = false, + default = "", // optional + array = false, // optional + encrypt = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md new file mode 100644 index 0000000000..42f50e9ec9 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.createUrlColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "https://example.com", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md new file mode 100644 index 0000000000..3dc1d1a37d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.create( + databaseId = "", + tableId = "", + name = "", + permissions = listOf("read("any")"), // optional + rowSecurity = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md new file mode 100644 index 0000000000..f78f7bbed7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.decrementRowColumn( + databaseId = "", + tableId = "", + rowId = "", + column = "", + value = 0, // optional + min = 0 // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md new file mode 100644 index 0000000000..d41f2ceabf --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.deleteColumn( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md new file mode 100644 index 0000000000..7af6648f2f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.deleteIndex( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md new file mode 100644 index 0000000000..d182ccff95 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val tables = Tables(client) + +val response = tables.deleteRow( + databaseId = "", + tableId = "", + rowId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md new file mode 100644 index 0000000000..54ff6b690c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.deleteRows( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md new file mode 100644 index 0000000000..5cbd03226a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.delete( + databaseId = "", + tableId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md new file mode 100644 index 0000000000..6f4d65b4dc --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.getColumn( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md new file mode 100644 index 0000000000..660502f228 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.getIndex( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md new file mode 100644 index 0000000000..cbaaa6c3e9 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val tables = Tables(client) + +val response = tables.getRow( + databaseId = "", + tableId = "", + rowId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md new file mode 100644 index 0000000000..ff6d354c15 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.get( + databaseId = "", + tableId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md new file mode 100644 index 0000000000..7917b7f939 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.incrementRowColumn( + databaseId = "", + tableId = "", + rowId = "", + column = "", + value = 0, // optional + max = 0 // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md new file mode 100644 index 0000000000..4c1765193d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.listColumns( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md new file mode 100644 index 0000000000..bcd1fe75ab --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.listIndexes( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md new file mode 100644 index 0000000000..38b776acb8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val tables = Tables(client) + +val response = tables.listRows( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md new file mode 100644 index 0000000000..37b03445da --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.list( + databaseId = "", + queries = listOf(), // optional + search = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md new file mode 100644 index 0000000000..10a0422d2d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateBooleanColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = false, + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md new file mode 100644 index 0000000000..69ccf0354e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateDatetimeColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md new file mode 100644 index 0000000000..593a89b4ce --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateEmailColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "email@example.com", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md new file mode 100644 index 0000000000..b672e3e155 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateEnumColumn( + databaseId = "", + tableId = "", + key = "", + elements = listOf(), + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md new file mode 100644 index 0000000000..005c4e64a5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateFloatColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md new file mode 100644 index 0000000000..39da19d562 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateIntegerColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md new file mode 100644 index 0000000000..40e54bcdfd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateIpColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md new file mode 100644 index 0000000000..d4c36e8802 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateRelationshipColumn( + databaseId = "", + tableId = "", + key = "", + onDelete = "cascade", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md new file mode 100644 index 0000000000..6d3d9a47f7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val tables = Tables(client) + +val response = tables.updateRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // optional + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md new file mode 100644 index 0000000000..aac87c19b0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateRows( + databaseId = "", + tableId = "", + data = mapOf( "a" to "b" ), // optional + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md new file mode 100644 index 0000000000..bb5b1f4bcf --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateStringColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + size = 1, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md new file mode 100644 index 0000000000..07f43e3907 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.updateUrlColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "https://example.com", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md new file mode 100644 index 0000000000..381532316d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.update( + databaseId = "", + tableId = "", + name = "", + permissions = listOf("read("any")"), // optional + rowSecurity = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-row.md new file mode 100644 index 0000000000..6e02b3abe9 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT("") // Your secret JSON Web Token + +val tables = Tables(client) + +val response = tables.upsertRow( + databaseId = "", + tableId = "", + rowId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-rows.md new file mode 100644 index 0000000000..d639e3d30b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tables/upsert-rows.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tables + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey("") // Your secret API key + +val tables = Tables(client) + +val response = tables.upsertRows( + databaseId = "", + tableId = "" +) diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..64893d77a8 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..0d63244727 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md new file mode 100644 index 0000000000..2257fdd7d6 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..dbc75feea5 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md new file mode 100644 index 0000000000..690b5849eb --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md new file mode 100644 index 0000000000..aef047ba5f --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createIndex( + '', // databaseId + '', // tableId + '', // key + sdk.IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..05e66b548c --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..69b5c635d2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..b6e7fa517f --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + sdk.RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + sdk.RelationMutate.Cascade // onDelete (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-row.md new file mode 100644 index 0000000000..84da608d41 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-row.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +const tables = new sdk.Tables(client); + +const result = await tables.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-rows.md new file mode 100644 index 0000000000..6a6918b8df --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md new file mode 100644 index 0000000000..8e14cb45c9 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md new file mode 100644 index 0000000000..73cdfa3710 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create.md b/docs/examples/1.8.x/server-nodejs/examples/tables/create.md new file mode 100644 index 0000000000..54d6bc61bd --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/create.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.create( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..2e7df6aa92 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md new file mode 100644 index 0000000000..a892c61baa --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md new file mode 100644 index 0000000000..f6bc7919db --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md new file mode 100644 index 0000000000..5bc60cd6cb --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const tables = new sdk.Tables(client); + +const result = await tables.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md new file mode 100644 index 0000000000..11b16b71ae --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete.md b/docs/examples/1.8.x/server-nodejs/examples/tables/delete.md new file mode 100644 index 0000000000..fed3eee5a4 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/delete.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.delete( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md new file mode 100644 index 0000000000..daa20e17e2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.getColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md b/docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md new file mode 100644 index 0000000000..56ba871d67 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.getIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md new file mode 100644 index 0000000000..df952d9595 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const tables = new sdk.Tables(client); + +const result = await tables.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get.md b/docs/examples/1.8.x/server-nodejs/examples/tables/get.md new file mode 100644 index 0000000000..b078574b5c --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/get.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.get( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..bb5856c74a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md b/docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md new file mode 100644 index 0000000000..f9af43bea5 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md new file mode 100644 index 0000000000..7eaf4b8710 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md new file mode 100644 index 0000000000..aa5b341649 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const tables = new sdk.Tables(client); + +const result = await tables.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list.md b/docs/examples/1.8.x/server-nodejs/examples/tables/list.md new file mode 100644 index 0000000000..872a98df08 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/list.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.list( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..84ff5d2bef --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..c02559a171 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md new file mode 100644 index 0000000000..9560b60e29 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..861fce6add --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md new file mode 100644 index 0000000000..01845ca3cc --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..0b7432247f --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..6ba5eccf3e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..3409b8caad --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + sdk.RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md new file mode 100644 index 0000000000..ff8e98eb38 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const tables = new sdk.Tables(client); + +const result = await tables.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md new file mode 100644 index 0000000000..72cef07202 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md new file mode 100644 index 0000000000..f9445a50c1 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md new file mode 100644 index 0000000000..c6ffdf3044 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update.md b/docs/examples/1.8.x/server-nodejs/examples/tables/update.md new file mode 100644 index 0000000000..4fd981ffbf --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/update.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.update( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-row.md new file mode 100644 index 0000000000..2b08d56785 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-row.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token + +const tables = new sdk.Tables(client); + +const result = await tables.upsertRow( + '', // databaseId + '', // tableId + '' // rowId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..75d681dbf0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tables/upsert-rows.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setAdmin('') // + .setKey(''); // Your secret API key + +const tables = new sdk.Tables(client); + +const result = await tables.upsertRows( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..28339753ac --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createBooleanColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: false, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..d7f18f2ede --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-email-column.md new file mode 100644 index 0000000000..15ec2cf2e5 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-email-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createEmailColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'email@example.com', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..aa2b6138f7 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-float-column.md new file mode 100644 index 0000000000..1f620dc887 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-float-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createFloatColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-index.md b/docs/examples/1.8.x/server-php/examples/tables/create-index.md new file mode 100644 index 0000000000..9844e041d4 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-index.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createIndex( + databaseId: '', + tableId: '', + key: '', + type: IndexType::KEY(), + columns: [], + orders: [], // optional + lengths: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..185f12c5cb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createIntegerColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..1f74e4dd72 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createIpColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..c86b4c558a --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md @@ -0,0 +1,23 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createRelationshipColumn( + databaseId: '', + tableId: '', + relatedTableId: '', + type: RelationshipType::ONETOONE(), + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: RelationMutate::CASCADE() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-row.md b/docs/examples/1.8.x/server-php/examples/tables/create-row.md new file mode 100644 index 0000000000..6b64a7e058 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-row.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setSession('') // The user session to authenticate with + ->setKey('') // Your secret API key + ->setJWT(''); // Your secret JSON Web Token + +$tables = new Tables($client); + +$result = $tables->createRow( + databaseId: '', + tableId: '', + rowId: '', + data: [], + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-rows.md b/docs/examples/1.8.x/server-php/examples/tables/create-rows.md new file mode 100644 index 0000000000..a1bf72ad13 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setAdmin('') // + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createRows( + databaseId: '', + tableId: '', + rows: [] +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-string-column.md new file mode 100644 index 0000000000..085aff25c8 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-string-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createStringColumn( + databaseId: '', + tableId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false, // optional + encrypt: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-php/examples/tables/create-url-column.md new file mode 100644 index 0000000000..d0bdb55dd4 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create-url-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->createUrlColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'https://example.com', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/create.md b/docs/examples/1.8.x/server-php/examples/tables/create.md new file mode 100644 index 0000000000..773d7a24eb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/create.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->create( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..b0c44b6d0a --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->decrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: null, // optional + min: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-column.md b/docs/examples/1.8.x/server-php/examples/tables/delete-column.md new file mode 100644 index 0000000000..9bd6738cb7 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/delete-column.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->deleteColumn( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-index.md b/docs/examples/1.8.x/server-php/examples/tables/delete-index.md new file mode 100644 index 0000000000..bbd748433a --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/delete-index.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->deleteIndex( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-row.md b/docs/examples/1.8.x/server-php/examples/tables/delete-row.md new file mode 100644 index 0000000000..0c4ab6ef40 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/delete-row.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$tables = new Tables($client); + +$result = $tables->deleteRow( + databaseId: '', + tableId: '', + rowId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-php/examples/tables/delete-rows.md new file mode 100644 index 0000000000..b0c984cc17 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/delete-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->deleteRows( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete.md b/docs/examples/1.8.x/server-php/examples/tables/delete.md new file mode 100644 index 0000000000..f145eedc91 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/delete.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->delete( + databaseId: '', + tableId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/get-column.md b/docs/examples/1.8.x/server-php/examples/tables/get-column.md new file mode 100644 index 0000000000..b8b676564e --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/get-column.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->getColumn( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/get-index.md b/docs/examples/1.8.x/server-php/examples/tables/get-index.md new file mode 100644 index 0000000000..5d1139d596 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/get-index.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->getIndex( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/get-row.md b/docs/examples/1.8.x/server-php/examples/tables/get-row.md new file mode 100644 index 0000000000..ccde387b89 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/get-row.md @@ -0,0 +1,18 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$tables = new Tables($client); + +$result = $tables->getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/get.md b/docs/examples/1.8.x/server-php/examples/tables/get.md new file mode 100644 index 0000000000..d07ef7338a --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/get.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->get( + databaseId: '', + tableId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..aa5a3c0d53 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->incrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: null, // optional + max: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/list-columns.md b/docs/examples/1.8.x/server-php/examples/tables/list-columns.md new file mode 100644 index 0000000000..0338567240 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/list-columns.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->listColumns( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-php/examples/tables/list-indexes.md new file mode 100644 index 0000000000..df1f8c6aca --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/list-indexes.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->listIndexes( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/list-rows.md b/docs/examples/1.8.x/server-php/examples/tables/list-rows.md new file mode 100644 index 0000000000..2041d72b05 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/list-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$tables = new Tables($client); + +$result = $tables->listRows( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/list.md b/docs/examples/1.8.x/server-php/examples/tables/list.md new file mode 100644 index 0000000000..37df0a4baa --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/list.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->list( + databaseId: '', + queries: [], // optional + search: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..8ad80506d8 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateBooleanColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: false, + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..5185357f17 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-email-column.md new file mode 100644 index 0000000000..7acbb811eb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-email-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateEmailColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'email@example.com', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..478905af67 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-float-column.md new file mode 100644 index 0000000000..1d9c5fd997 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-float-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateFloatColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..f6998db0a2 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateIntegerColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..e7906fbd0f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateIpColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..d6505c77f1 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateRelationshipColumn( + databaseId: '', + tableId: '', + key: '', + onDelete: RelationMutate::CASCADE(), // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-row.md b/docs/examples/1.8.x/server-php/examples/tables/update-row.md new file mode 100644 index 0000000000..921c43d935 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-row.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$tables = new Tables($client); + +$result = $tables->updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: [], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-rows.md b/docs/examples/1.8.x/server-php/examples/tables/update-rows.md new file mode 100644 index 0000000000..f61fa2b17d --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-rows.md @@ -0,0 +1,18 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateRows( + databaseId: '', + tableId: '', + data: [], // optional + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-string-column.md new file mode 100644 index 0000000000..8856ec19c1 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-string-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateStringColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-php/examples/tables/update-url-column.md new file mode 100644 index 0000000000..faa46d1806 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update-url-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->updateUrlColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'https://example.com', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/update.md b/docs/examples/1.8.x/server-php/examples/tables/update.md new file mode 100644 index 0000000000..39f076b8f8 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/update.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->update( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-php/examples/tables/upsert-row.md new file mode 100644 index 0000000000..2bddd9b5b3 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/upsert-row.md @@ -0,0 +1,18 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setSession('') // The user session to authenticate with + ->setKey('') // Your secret API key + ->setJWT(''); // Your secret JSON Web Token + +$tables = new Tables($client); + +$result = $tables->upsertRow( + databaseId: '', + tableId: '', + rowId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-php/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..5ed5f028a9 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tables/upsert-rows.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setAdmin('') // + ->setKey(''); // Your secret API key + +$tables = new Tables($client); + +$result = $tables->upsertRows( + databaseId: '', + tableId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..cfbaa3b0ee --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_boolean_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = False, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..a9f76b5e5f --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_datetime_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-email-column.md new file mode 100644 index 0000000000..73ac0faad6 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-email-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_email_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'email@example.com', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..2013c39fa0 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_enum_column( + database_id = '', + table_id = '', + key = '', + elements = [], + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-float-column.md new file mode 100644 index 0000000000..a56a196093 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-float-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_float_column( + database_id = '', + table_id = '', + key = '', + required = False, + min = None, # optional + max = None, # optional + default = None, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-index.md b/docs/examples/1.8.x/server-python/examples/tables/create-index.md new file mode 100644 index 0000000000..69086af0b0 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-index.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables +from appwrite.enums import IndexType + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_index( + database_id = '', + table_id = '', + key = '', + type = IndexType.KEY, + columns = [], + orders = [], # optional + lengths = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..d52b14bc5c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_integer_column( + database_id = '', + table_id = '', + key = '', + required = False, + min = None, # optional + max = None, # optional + default = None, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..b5c7ef56db --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_ip_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..187271f887 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md @@ -0,0 +1,21 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables +from appwrite.enums import RelationshipType + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_relationship_column( + database_id = '', + table_id = '', + related_table_id = '', + type = RelationshipType.ONETOONE, + two_way = False, # optional + key = '', # optional + two_way_key = '', # optional + on_delete = RelationMutate.CASCADE # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-row.md b/docs/examples/1.8.x/server-python/examples/tables/create-row.md new file mode 100644 index 0000000000..8850a974b8 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-row.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_session('') # The user session to authenticate with +client.set_key('') # Your secret API key +client.set_jwt('') # Your secret JSON Web Token + +tables = Tables(client) + +result = tables.create_row( + database_id = '', + table_id = '', + row_id = '', + data = {}, + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-rows.md b/docs/examples/1.8.x/server-python/examples/tables/create-rows.md new file mode 100644 index 0000000000..3fae165081 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_admin('') # +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_rows( + database_id = '', + table_id = '', + rows = [] +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-string-column.md new file mode 100644 index 0000000000..1308fea2ad --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-string-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_string_column( + database_id = '', + table_id = '', + key = '', + size = 1, + required = False, + default = '', # optional + array = False, # optional + encrypt = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-python/examples/tables/create-url-column.md new file mode 100644 index 0000000000..f15c3e0574 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create-url-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create_url_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'https://example.com', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/create.md b/docs/examples/1.8.x/server-python/examples/tables/create.md new file mode 100644 index 0000000000..3a02843c4d --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/create.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.create( + database_id = '', + table_id = '', + name = '', + permissions = ["read("any")"], # optional + row_security = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..bf027d6e76 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.decrement_row_column( + database_id = '', + table_id = '', + row_id = '', + column = '', + value = None, # optional + min = None # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-column.md b/docs/examples/1.8.x/server-python/examples/tables/delete-column.md new file mode 100644 index 0000000000..cf2dd6d5e5 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/delete-column.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.delete_column( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-index.md b/docs/examples/1.8.x/server-python/examples/tables/delete-index.md new file mode 100644 index 0000000000..5f78d1ce1d --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/delete-index.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.delete_index( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-row.md b/docs/examples/1.8.x/server-python/examples/tables/delete-row.md new file mode 100644 index 0000000000..40a8b09fcf --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/delete-row.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +tables = Tables(client) + +result = tables.delete_row( + database_id = '', + table_id = '', + row_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-python/examples/tables/delete-rows.md new file mode 100644 index 0000000000..236aea1c9b --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/delete-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.delete_rows( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete.md b/docs/examples/1.8.x/server-python/examples/tables/delete.md new file mode 100644 index 0000000000..de48bfc2b5 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/delete.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.delete( + database_id = '', + table_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/get-column.md b/docs/examples/1.8.x/server-python/examples/tables/get-column.md new file mode 100644 index 0000000000..4bd4617142 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/get-column.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.get_column( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/get-index.md b/docs/examples/1.8.x/server-python/examples/tables/get-index.md new file mode 100644 index 0000000000..cf88017fbe --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/get-index.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.get_index( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/get-row.md b/docs/examples/1.8.x/server-python/examples/tables/get-row.md new file mode 100644 index 0000000000..25fefb23fd --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/get-row.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +tables = Tables(client) + +result = tables.get_row( + database_id = '', + table_id = '', + row_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/get.md b/docs/examples/1.8.x/server-python/examples/tables/get.md new file mode 100644 index 0000000000..789410cfb7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/get.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.get( + database_id = '', + table_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..cfb923029e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.increment_row_column( + database_id = '', + table_id = '', + row_id = '', + column = '', + value = None, # optional + max = None # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/list-columns.md b/docs/examples/1.8.x/server-python/examples/tables/list-columns.md new file mode 100644 index 0000000000..d9c5b16468 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/list-columns.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.list_columns( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-python/examples/tables/list-indexes.md new file mode 100644 index 0000000000..0b0bb585e7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/list-indexes.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.list_indexes( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/list-rows.md b/docs/examples/1.8.x/server-python/examples/tables/list-rows.md new file mode 100644 index 0000000000..2ece6f6cf7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/list-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +tables = Tables(client) + +result = tables.list_rows( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/list.md b/docs/examples/1.8.x/server-python/examples/tables/list.md new file mode 100644 index 0000000000..55a99e996d --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/list.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.list( + database_id = '', + queries = [], # optional + search = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..1bc7a4afac --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_boolean_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = False, + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..157ff44a7b --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_datetime_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-email-column.md new file mode 100644 index 0000000000..8b9e4cad36 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-email-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_email_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'email@example.com', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..b46971beac --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_enum_column( + database_id = '', + table_id = '', + key = '', + elements = [], + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-float-column.md new file mode 100644 index 0000000000..243a26f0aa --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-float-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_float_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..99b55c17a7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_integer_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..2fb470ae6e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_ip_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..35a307c7e2 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_relationship_column( + database_id = '', + table_id = '', + key = '', + on_delete = RelationMutate.CASCADE, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-row.md b/docs/examples/1.8.x/server-python/examples/tables/update-row.md new file mode 100644 index 0000000000..4a71fc97f2 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-row.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +tables = Tables(client) + +result = tables.update_row( + database_id = '', + table_id = '', + row_id = '', + data = {}, # optional + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-rows.md b/docs/examples/1.8.x/server-python/examples/tables/update-rows.md new file mode 100644 index 0000000000..a834346678 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-rows.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_rows( + database_id = '', + table_id = '', + data = {}, # optional + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-string-column.md new file mode 100644 index 0000000000..252c26433e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-string-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_string_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + size = 1, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-python/examples/tables/update-url-column.md new file mode 100644 index 0000000000..235e2f3bc4 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update-url-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update_url_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'https://example.com', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/update.md b/docs/examples/1.8.x/server-python/examples/tables/update.md new file mode 100644 index 0000000000..c567bd5500 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/update.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.update( + database_id = '', + table_id = '', + name = '', + permissions = ["read("any")"], # optional + row_security = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-python/examples/tables/upsert-row.md new file mode 100644 index 0000000000..e418708bc3 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/upsert-row.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_session('') # The user session to authenticate with +client.set_key('') # Your secret API key +client.set_jwt('') # Your secret JSON Web Token + +tables = Tables(client) + +result = tables.upsert_row( + database_id = '', + table_id = '', + row_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-python/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..85c2e94d69 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tables/upsert-rows.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.tables import Tables + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_admin('') # +client.set_key('') # Your secret API key + +tables = Tables(client) + +result = tables.upsert_rows( + database_id = '', + table_id = '' +) diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..4152d8538f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/boolean HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": false, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..d5318d96db --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/datetime HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": , + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md new file mode 100644 index 0000000000..b213fa6ceb --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": "email@example.com", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..125f617f1f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/enum HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "elements": [], + "required": false, + "default": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md new file mode 100644 index 0000000000..2e010318ff --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/float HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "min": 0, + "max": 0, + "default": 0, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-index.md b/docs/examples/1.8.x/server-rest/examples/tables/create-index.md new file mode 100644 index 0000000000..eaddec973a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-index.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/indexes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "type": "key", + "columns": [], + "orders": [], + "lengths": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..f284dc03ef --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/integer HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "min": 0, + "max": 0, + "default": 0, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..8def17fc27 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/ip HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": , + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..d8feb21916 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/relationship HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "relatedTableId": "", + "type": "oneToOne", + "twoWay": false, + "key": , + "twoWayKey": , + "onDelete": "cascade" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-row.md b/docs/examples/1.8.x/server-rest/examples/tables/create-row.md new file mode 100644 index 0000000000..075be16fa4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-row.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "rowId": "", + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/create-rows.md new file mode 100644 index 0000000000..ad3d6983cc --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-rows.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "rows": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md new file mode 100644 index 0000000000..e654a05e3a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/string HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "size": 1, + "required": false, + "default": "", + "array": false, + "encrypt": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md new file mode 100644 index 0000000000..d98d77c68d --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/tables/{tableId}/columns/url HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": "https://example.com", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/create.md b/docs/examples/1.8.x/server-rest/examples/tables/create.md new file mode 100644 index 0000000000..14e1f6ec05 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/create.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/tables HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "tableId": "", + "name": "", + "permissions": ["read(\"any\")"], + "rowSecurity": false, + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..a76efb3a69 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "value": 0, + "min": 0 +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete-column.md b/docs/examples/1.8.x/server-rest/examples/tables/delete-column.md new file mode 100644 index 0000000000..2bda57366c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/delete-column.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/tables/{tableId}/columns/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete-index.md b/docs/examples/1.8.x/server-rest/examples/tables/delete-index.md new file mode 100644 index 0000000000..ffffc38c64 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/delete-index.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/tables/{tableId}/indexes/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete-row.md b/docs/examples/1.8.x/server-rest/examples/tables/delete-row.md new file mode 100644 index 0000000000..f10adef821 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/delete-row.md @@ -0,0 +1,9 @@ +DELETE /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md new file mode 100644 index 0000000000..fcaf8fb472 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md @@ -0,0 +1,10 @@ +DELETE /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "queries": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/delete.md b/docs/examples/1.8.x/server-rest/examples/tables/delete.md new file mode 100644 index 0000000000..379bead1ad --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/delete.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/tables/get-column.md b/docs/examples/1.8.x/server-rest/examples/tables/get-column.md new file mode 100644 index 0000000000..31d1856539 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/get-column.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/tables/{tableId}/columns/{key} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/get-index.md b/docs/examples/1.8.x/server-rest/examples/tables/get-index.md new file mode 100644 index 0000000000..076058d7f3 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/get-index.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/tables/{tableId}/indexes/{key} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/get-row.md b/docs/examples/1.8.x/server-rest/examples/tables/get-row.md new file mode 100644 index 0000000000..0b827f18a8 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/get-row.md @@ -0,0 +1,7 @@ +GET /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/get.md b/docs/examples/1.8.x/server-rest/examples/tables/get.md new file mode 100644 index 0000000000..74877ec0c0 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/get.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..480645c39c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "value": 0, + "max": 0 +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/list-columns.md b/docs/examples/1.8.x/server-rest/examples/tables/list-columns.md new file mode 100644 index 0000000000..152b36ca26 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/list-columns.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/tables/{tableId}/columns HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-rest/examples/tables/list-indexes.md new file mode 100644 index 0000000000..ee10a85d5e --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/list-indexes.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/tables/{tableId}/indexes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/list-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/list-rows.md new file mode 100644 index 0000000000..46e69ab609 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/list-rows.md @@ -0,0 +1,7 @@ +GET /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/list.md b/docs/examples/1.8.x/server-rest/examples/tables/list.md new file mode 100644 index 0000000000..e856ef7241 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/list.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/tables HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..e4a1c4602a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/boolean/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": false, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..6b531dc604 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/datetime/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": , + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md new file mode 100644 index 0000000000..531aa7a31a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/email/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "email@example.com", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..b02936fc5a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/enum/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "elements": [], + "required": false, + "default": "", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md new file mode 100644 index 0000000000..313acb6c20 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md @@ -0,0 +1,14 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/float/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "min": 0, + "max": 0, + "default": 0, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..a2552e93ff --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md @@ -0,0 +1,14 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/integer/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "min": 0, + "max": 0, + "default": 0, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..b3cef978e2 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/ip/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": , + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..19fed27fdf --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/{key}/relationship HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "onDelete": "cascade", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-row.md b/docs/examples/1.8.x/server-rest/examples/tables/update-row.md new file mode 100644 index 0000000000..20c92d746b --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-row.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/update-rows.md new file mode 100644 index 0000000000..249653070c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-rows.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "data": {}, + "queries": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md new file mode 100644 index 0000000000..7a25ee52e8 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/string/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "size": 1, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md new file mode 100644 index 0000000000..2097e91d85 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/url/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "https://example.com", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/update.md b/docs/examples/1.8.x/server-rest/examples/tables/update.md new file mode 100644 index 0000000000..786a36cf3c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/update.md @@ -0,0 +1,13 @@ +PUT /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "name": "", + "permissions": ["read(\"any\")"], + "rowSecurity": false, + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-rest/examples/tables/upsert-row.md new file mode 100644 index 0000000000..7edca8018c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/upsert-row.md @@ -0,0 +1,9 @@ +PUT /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + diff --git a/docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..cfcb914866 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md @@ -0,0 +1,7 @@ +PUT /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..7df3908513 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_boolean_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: false, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..2d65509184 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_datetime_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md new file mode 100644 index 0000000000..01f7ad43b5 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_email_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'email@example.com', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..97fcb589e4 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_enum_column( + database_id: '', + table_id: '', + key: '', + elements: [], + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md new file mode 100644 index 0000000000..9df32a3f5b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_float_column( + database_id: '', + table_id: '', + key: '', + required: false, + min: null, # optional + max: null, # optional + default: null, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-index.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-index.md new file mode 100644 index 0000000000..3c8dfdfb6b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-index.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_index( + database_id: '', + table_id: '', + key: '', + type: IndexType::KEY, + columns: [], + orders: [], # optional + lengths: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..d0c5c78108 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_integer_column( + database_id: '', + table_id: '', + key: '', + required: false, + min: null, # optional + max: null, # optional + default: null, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..0c97840a27 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_ip_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..8f7fb841aa --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md @@ -0,0 +1,22 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_relationship_column( + database_id: '', + table_id: '', + related_table_id: '', + type: RelationshipType::ONETOONE, + two_way: false, # optional + key: '', # optional + two_way_key: '', # optional + on_delete: RelationMutate::CASCADE # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-row.md new file mode 100644 index 0000000000..a625249700 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-row.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_session('') # The user session to authenticate with + .set_key('') # Your secret API key + .set_jwt('') # Your secret JSON Web Token + +tables = Tables.new(client) + +result = tables.create_row( + database_id: '', + table_id: '', + row_id: '', + data: {}, + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-rows.md new file mode 100644 index 0000000000..2e78b96cbc --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_admin('') # + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_rows( + database_id: '', + table_id: '', + rows: [] +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md new file mode 100644 index 0000000000..d47cf49e0c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_string_column( + database_id: '', + table_id: '', + key: '', + size: 1, + required: false, + default: '', # optional + array: false, # optional + encrypt: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md new file mode 100644 index 0000000000..fcfebac7a8 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create_url_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'https://example.com', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create.md b/docs/examples/1.8.x/server-ruby/examples/tables/create.md new file mode 100644 index 0000000000..5a255fafac --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/create.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.create( + database_id: '', + table_id: '', + name: '', + permissions: ["read("any")"], # optional + row_security: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..e22afcb0ad --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.decrement_row_column( + database_id: '', + table_id: '', + row_id: '', + column: '', + value: null, # optional + min: null # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md new file mode 100644 index 0000000000..245864053f --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.delete_column( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md new file mode 100644 index 0000000000..54bd5455aa --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.delete_index( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md new file mode 100644 index 0000000000..9841fc2d2f --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +tables = Tables.new(client) + +result = tables.delete_row( + database_id: '', + table_id: '', + row_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md new file mode 100644 index 0000000000..7be1e4bc70 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.delete_rows( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete.md b/docs/examples/1.8.x/server-ruby/examples/tables/delete.md new file mode 100644 index 0000000000..ca607f2b6b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/delete.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.delete( + database_id: '', + table_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/get-column.md new file mode 100644 index 0000000000..1a1469d005 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/get-column.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.get_column( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get-index.md b/docs/examples/1.8.x/server-ruby/examples/tables/get-index.md new file mode 100644 index 0000000000..7d762ce8ae --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/get-index.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.get_index( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/get-row.md new file mode 100644 index 0000000000..4526bb7316 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/get-row.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +tables = Tables.new(client) + +result = tables.get_row( + database_id: '', + table_id: '', + row_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get.md b/docs/examples/1.8.x/server-ruby/examples/tables/get.md new file mode 100644 index 0000000000..22ba02aebc --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/get.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.get( + database_id: '', + table_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..c0a91d4b62 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.increment_row_column( + database_id: '', + table_id: '', + row_id: '', + column: '', + value: null, # optional + max: null # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md b/docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md new file mode 100644 index 0000000000..7e851564c2 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.list_columns( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md new file mode 100644 index 0000000000..0789291071 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.list_indexes( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md new file mode 100644 index 0000000000..bc9a0a49f6 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +tables = Tables.new(client) + +result = tables.list_rows( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list.md b/docs/examples/1.8.x/server-ruby/examples/tables/list.md new file mode 100644 index 0000000000..7cf987ebb9 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/list.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.list( + database_id: '', + queries: [], # optional + search: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..a09b365cd1 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_boolean_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: false, + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..55e0484b4c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_datetime_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md new file mode 100644 index 0000000000..285cd6655a --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_email_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'email@example.com', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..90773ed9e4 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_enum_column( + database_id: '', + table_id: '', + key: '', + elements: [], + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md new file mode 100644 index 0000000000..0bb992bd3c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_float_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..35f8c471a8 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_integer_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..2ad1840a9d --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_ip_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..de86fd53d7 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_relationship_column( + database_id: '', + table_id: '', + key: '', + on_delete: RelationMutate::CASCADE, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-row.md new file mode 100644 index 0000000000..500927dcf0 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-row.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +tables = Tables.new(client) + +result = tables.update_row( + database_id: '', + table_id: '', + row_id: '', + data: {}, # optional + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md new file mode 100644 index 0000000000..8cee1810be --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_rows( + database_id: '', + table_id: '', + data: {}, # optional + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md new file mode 100644 index 0000000000..2240f49555 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_string_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + size: 1, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md new file mode 100644 index 0000000000..0947a78a9e --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update_url_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'https://example.com', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update.md b/docs/examples/1.8.x/server-ruby/examples/tables/update.md new file mode 100644 index 0000000000..003d3d041c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/update.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.update( + database_id: '', + table_id: '', + name: '', + permissions: ["read("any")"], # optional + row_security: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-ruby/examples/tables/upsert-row.md new file mode 100644 index 0000000000..d96172e1ec --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/upsert-row.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_session('') # The user session to authenticate with + .set_key('') # Your secret API key + .set_jwt('') # Your secret JSON Web Token + +tables = Tables.new(client) + +result = tables.upsert_row( + database_id: '', + table_id: '', + row_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-ruby/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..8987b1ee0e --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tables/upsert-rows.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_admin('') # + .set_key('') # Your secret API key + +tables = Tables.new(client) + +result = tables.upsert_rows( + database_id: '', + table_id: '' +) diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md new file mode 100644 index 0000000000..1b9627afac --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnBoolean = try await tables.createBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md new file mode 100644 index 0000000000..e002fb8042 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnDatetime = try await tables.createDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md new file mode 100644 index 0000000000..338493dbc5 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnEmail = try await tables.createEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md new file mode 100644 index 0000000000..a6a9fff2c4 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnEnum = try await tables.createEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md new file mode 100644 index 0000000000..12e4062454 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnFloat = try await tables.createFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-index.md b/docs/examples/1.8.x/server-swift/examples/tables/create-index.md new file mode 100644 index 0000000000..03dea1ac48 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-index.md @@ -0,0 +1,20 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnIndex = try await tables.createIndex( + databaseId: "", + tableId: "", + key: "", + type: .key, + columns: [], + orders: [], // optional + lengths: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md new file mode 100644 index 0000000000..6c04294025 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnInteger = try await tables.createIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md new file mode 100644 index 0000000000..2cd0b2795f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnIp = try await tables.createIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md new file mode 100644 index 0000000000..66b993cf9a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md @@ -0,0 +1,21 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnRelationship = try await tables.createRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: .oneToOne, + twoWay: false, // optional + key: "", // optional + twoWayKey: "", // optional + onDelete: .cascade // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-row.md b/docs/examples/1.8.x/server-swift/examples/tables/create-row.md new file mode 100644 index 0000000000..a736355127 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-row.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT("") // Your secret JSON Web Token + +let tables = Tables(client) + +let row = try await tables.createRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/create-rows.md new file mode 100644 index 0000000000..ee2095f08f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey("") // Your secret API key + +let tables = Tables(client) + +let rowList = try await tables.createRows( + databaseId: "", + tableId: "", + rows: [] +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md new file mode 100644 index 0000000000..e83ffdf367 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnString = try await tables.createStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false, // optional + encrypt: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md b/docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md new file mode 100644 index 0000000000..150b51309d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnUrl = try await tables.createUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create.md b/docs/examples/1.8.x/server-swift/examples/tables/create.md new file mode 100644 index 0000000000..0843dfd242 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/create.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let table = try await tables.create( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md b/docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md new file mode 100644 index 0000000000..ef24324780 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let row = try await tables.decrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + min: 0 // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-column.md b/docs/examples/1.8.x/server-swift/examples/tables/delete-column.md new file mode 100644 index 0000000000..07f825ddbe --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/delete-column.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let result = try await tables.deleteColumn( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-index.md b/docs/examples/1.8.x/server-swift/examples/tables/delete-index.md new file mode 100644 index 0000000000..b6d2e5bfea --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/delete-index.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let result = try await tables.deleteIndex( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-row.md b/docs/examples/1.8.x/server-swift/examples/tables/delete-row.md new file mode 100644 index 0000000000..92bc38777e --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/delete-row.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let tables = Tables(client) + +let result = try await tables.deleteRow( + databaseId: "", + tableId: "", + rowId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md new file mode 100644 index 0000000000..d27fbce85f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let rowList = try await tables.deleteRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete.md b/docs/examples/1.8.x/server-swift/examples/tables/delete.md new file mode 100644 index 0000000000..aefa1d8cda --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/delete.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let result = try await tables.delete( + databaseId: "", + tableId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get-column.md b/docs/examples/1.8.x/server-swift/examples/tables/get-column.md new file mode 100644 index 0000000000..653f79dce7 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/get-column.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let result = try await tables.getColumn( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get-index.md b/docs/examples/1.8.x/server-swift/examples/tables/get-index.md new file mode 100644 index 0000000000..6835f56aa0 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/get-index.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnIndex = try await tables.getIndex( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get-row.md b/docs/examples/1.8.x/server-swift/examples/tables/get-row.md new file mode 100644 index 0000000000..e2ff10f09a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/get-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let tables = Tables(client) + +let row = try await tables.getRow( + databaseId: "", + tableId: "", + rowId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get.md b/docs/examples/1.8.x/server-swift/examples/tables/get.md new file mode 100644 index 0000000000..610bf42529 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/get.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let table = try await tables.get( + databaseId: "", + tableId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md b/docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md new file mode 100644 index 0000000000..6ea883d612 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let row = try await tables.incrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + max: 0 // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list-columns.md b/docs/examples/1.8.x/server-swift/examples/tables/list-columns.md new file mode 100644 index 0000000000..88c86137a4 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/list-columns.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnList = try await tables.listColumns( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md new file mode 100644 index 0000000000..2ea8e99eca --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnIndexList = try await tables.listIndexes( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/list-rows.md new file mode 100644 index 0000000000..ca2e5b0d4b --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/list-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let tables = Tables(client) + +let rowList = try await tables.listRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list.md b/docs/examples/1.8.x/server-swift/examples/tables/list.md new file mode 100644 index 0000000000..e135b50289 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/list.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let tableList = try await tables.list( + databaseId: "", + queries: [], // optional + search: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md new file mode 100644 index 0000000000..e0d1ea2f9f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnBoolean = try await tables.updateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md new file mode 100644 index 0000000000..f09e27920b --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnDatetime = try await tables.updateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md new file mode 100644 index 0000000000..f7b8cc4ede --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnEmail = try await tables.updateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md new file mode 100644 index 0000000000..776da72e59 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnEnum = try await tables.updateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md new file mode 100644 index 0000000000..d6cd34c4b5 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnFloat = try await tables.updateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md new file mode 100644 index 0000000000..e1265cedbf --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnInteger = try await tables.updateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md new file mode 100644 index 0000000000..4f3538bb7a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnIp = try await tables.updateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md new file mode 100644 index 0000000000..74bfd62750 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md @@ -0,0 +1,18 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnRelationship = try await tables.updateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: .cascade, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-row.md b/docs/examples/1.8.x/server-swift/examples/tables/update-row.md new file mode 100644 index 0000000000..7fa81f6b58 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-row.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let tables = Tables(client) + +let row = try await tables.updateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/update-rows.md new file mode 100644 index 0000000000..d7cd0697da --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-rows.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let rowList = try await tables.updateRows( + databaseId: "", + tableId: "", + data: [:], // optional + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md new file mode 100644 index 0000000000..ba14d9a96a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnString = try await tables.updateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md b/docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md new file mode 100644 index 0000000000..19015e4c88 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let columnUrl = try await tables.updateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update.md b/docs/examples/1.8.x/server-swift/examples/tables/update.md new file mode 100644 index 0000000000..c9840a0a51 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/update.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tables = Tables(client) + +let table = try await tables.update( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/upsert-row.md b/docs/examples/1.8.x/server-swift/examples/tables/upsert-row.md new file mode 100644 index 0000000000..c5c5b73afc --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/upsert-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT("") // Your secret JSON Web Token + +let tables = Tables(client) + +let row = try await tables.upsertRow( + databaseId: "", + tableId: "", + rowId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tables/upsert-rows.md b/docs/examples/1.8.x/server-swift/examples/tables/upsert-rows.md new file mode 100644 index 0000000000..037d927dc9 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tables/upsert-rows.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setAdmin("") // + .setKey("") // Your secret API key + +let tables = Tables(client) + +let rowList = try await tables.upsertRows( + databaseId: "", + tableId: "" +) + From c9d9c4ab7674296dc74635128ef6939312e151e3 Mon Sep 17 00:00:00 2001 From: Darshan Date: Mon, 28 Jul 2025 11:49:49 +0530 Subject: [PATCH 22/24] reset: docs for easier review. --- .../java/databases/create-document.md | 4 ++- .../java/databases/upsert-document.md | 6 ++-- .../java/functions/create-execution.md | 2 +- .../client-android/java/grids/create-row.md | 26 --------------- .../client-android/java/grids/delete-row.md | 24 -------------- .../client-android/java/grids/get-row.md | 25 -------------- .../client-android/java/grids/list-rows.md | 24 -------------- .../client-android/java/grids/update-row.md | 26 --------------- .../client-android/java/grids/upsert-row.md | 26 --------------- .../kotlin/databases/create-document.md | 4 ++- .../kotlin/databases/upsert-document.md | 6 ++-- .../kotlin/functions/create-execution.md | 2 +- .../client-android/kotlin/grids/create-row.md | 17 ---------- .../client-android/kotlin/grids/delete-row.md | 15 --------- .../client-android/kotlin/grids/get-row.md | 16 --------- .../client-android/kotlin/grids/list-rows.md | 15 --------- .../client-android/kotlin/grids/update-row.md | 17 ---------- .../client-android/kotlin/grids/upsert-row.md | 17 ---------- .../examples/databases/create-document.md | 4 ++- .../examples/databases/upsert-document.md | 8 ++--- .../examples/functions/create-execution.md | 2 +- .../client-apple/examples/grids/create-row.md | 16 --------- .../client-apple/examples/grids/delete-row.md | 14 -------- .../client-apple/examples/grids/get-row.md | 15 --------- .../client-apple/examples/grids/list-rows.md | 14 -------- .../client-apple/examples/grids/update-row.md | 16 --------- .../client-apple/examples/grids/upsert-row.md | 16 --------- .../examples/databases/create-document.md | 4 ++- .../examples/databases/upsert-document.md | 6 ++-- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-row.md | 15 --------- .../examples/grids/delete-row.md | 13 -------- .../client-flutter/examples/grids/get-row.md | 14 -------- .../examples/grids/list-rows.md | 13 -------- .../examples/grids/update-row.md | 15 --------- .../examples/grids/upsert-row.md | 15 --------- .../examples/databases/upsert-document.md | 4 +-- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-row.md | 18 ---------- .../examples/grids/delete-row.md | 9 ----- .../client-graphql/examples/grids/get-row.md | 0 .../examples/grids/list-rows.md | 0 .../examples/grids/update-row.md | 18 ---------- .../examples/grids/upsert-row.md | 18 ---------- .../examples/storage/create-file.md | 2 +- .../examples/databases/create-document.md | 4 ++- .../examples/databases/upsert-document.md | 8 ++--- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-row.md | 17 ---------- .../examples/grids/delete-row.md | 15 --------- .../examples/grids/get-row.md | 16 --------- .../examples/grids/list-rows.md | 15 --------- .../examples/grids/update-row.md | 17 ---------- .../examples/grids/upsert-row.md | 17 ---------- .../account/create-anonymous-session.md | 2 +- .../account/create-email-password-session.md | 2 +- .../examples/account/create-email-token.md | 2 +- .../examples/account/create-j-w-t.md | 2 +- .../account/create-magic-u-r-l-token.md | 2 +- .../account/create-mfa-authenticator.md | 2 +- .../examples/account/create-mfa-challenge.md | 2 +- .../account/create-mfa-recovery-codes.md | 2 +- .../examples/account/create-o-auth2session.md | 2 +- .../examples/account/create-o-auth2token.md | 2 +- .../examples/account/create-phone-token.md | 2 +- .../account/create-phone-verification.md | 2 +- .../examples/account/create-push-target.md | 2 +- .../examples/account/create-recovery.md | 2 +- .../examples/account/create-session.md | 2 +- .../examples/account/create-verification.md | 2 +- .../client-rest/examples/account/create.md | 2 +- .../examples/account/delete-identity.md | 2 +- .../account/delete-mfa-authenticator.md | 2 +- .../examples/account/delete-push-target.md | 2 +- .../examples/account/delete-session.md | 2 +- .../examples/account/delete-sessions.md | 2 +- .../account/get-mfa-recovery-codes.md | 2 +- .../client-rest/examples/account/get-prefs.md | 2 +- .../examples/account/get-session.md | 2 +- .../1.8.x/client-rest/examples/account/get.md | 2 +- .../examples/account/list-identities.md | 2 +- .../client-rest/examples/account/list-logs.md | 2 +- .../examples/account/list-mfa-factors.md | 2 +- .../examples/account/list-sessions.md | 2 +- .../examples/account/update-email.md | 2 +- .../examples/account/update-m-f-a.md | 2 +- .../account/update-magic-u-r-l-session.md | 2 +- .../account/update-mfa-authenticator.md | 2 +- .../examples/account/update-mfa-challenge.md | 2 +- .../account/update-mfa-recovery-codes.md | 2 +- .../examples/account/update-name.md | 2 +- .../examples/account/update-password.md | 2 +- .../examples/account/update-phone-session.md | 2 +- .../account/update-phone-verification.md | 2 +- .../examples/account/update-phone.md | 2 +- .../examples/account/update-prefs.md | 2 +- .../examples/account/update-push-target.md | 2 +- .../examples/account/update-recovery.md | 2 +- .../examples/account/update-session.md | 2 +- .../examples/account/update-status.md | 2 +- .../examples/account/update-verification.md | 2 +- .../examples/avatars/get-browser.md | 2 +- .../examples/avatars/get-credit-card.md | 2 +- .../examples/avatars/get-favicon.md | 2 +- .../client-rest/examples/avatars/get-flag.md | 2 +- .../client-rest/examples/avatars/get-image.md | 2 +- .../examples/avatars/get-initials.md | 2 +- .../client-rest/examples/avatars/get-q-r.md | 2 +- .../examples/databases/create-document.md | 2 +- .../examples/databases/delete-document.md | 2 +- .../examples/databases/get-document.md | 2 +- .../examples/databases/list-documents.md | 2 +- .../examples/databases/update-document.md | 2 +- .../examples/databases/upsert-document.md | 6 +--- .../examples/functions/create-execution.md | 4 +-- .../examples/functions/get-execution.md | 2 +- .../examples/functions/list-executions.md | 2 +- .../client-rest/examples/graphql/mutation.md | 2 +- .../client-rest/examples/graphql/query.md | 2 +- .../client-rest/examples/grids/create-row.md | 13 -------- .../client-rest/examples/grids/delete-row.md | 8 ----- .../client-rest/examples/grids/get-row.md | 6 ---- .../client-rest/examples/grids/list-rows.md | 6 ---- .../client-rest/examples/grids/update-row.md | 12 ------- .../client-rest/examples/grids/upsert-row.md | 12 ------- .../1.8.x/client-rest/examples/locale/get.md | 2 +- .../client-rest/examples/locale/list-codes.md | 2 +- .../examples/locale/list-continents.md | 2 +- .../examples/locale/list-countries-e-u.md | 2 +- .../examples/locale/list-countries-phones.md | 2 +- .../examples/locale/list-countries.md | 2 +- .../examples/locale/list-currencies.md | 2 +- .../examples/locale/list-languages.md | 2 +- .../examples/messaging/create-subscriber.md | 2 +- .../examples/messaging/delete-subscriber.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/storage/delete-file.md | 2 +- .../examples/storage/get-file-download.md | 2 +- .../examples/storage/get-file-preview.md | 2 +- .../examples/storage/get-file-view.md | 2 +- .../client-rest/examples/storage/get-file.md | 2 +- .../examples/storage/list-files.md | 2 +- .../examples/storage/update-file.md | 2 +- .../examples/teams/create-membership.md | 2 +- .../client-rest/examples/teams/create.md | 2 +- .../examples/teams/delete-membership.md | 2 +- .../client-rest/examples/teams/delete.md | 2 +- .../examples/teams/get-membership.md | 2 +- .../client-rest/examples/teams/get-prefs.md | 2 +- .../1.8.x/client-rest/examples/teams/get.md | 2 +- .../examples/teams/list-memberships.md | 2 +- .../1.8.x/client-rest/examples/teams/list.md | 2 +- .../teams/update-membership-status.md | 2 +- .../examples/teams/update-membership.md | 2 +- .../client-rest/examples/teams/update-name.md | 2 +- .../examples/teams/update-prefs.md | 2 +- .../examples/databases/create-document.md | 4 ++- .../examples/databases/upsert-document.md | 8 ++--- .../examples/functions/create-execution.md | 2 +- .../client-web/examples/grids/create-row.md | 17 ---------- .../client-web/examples/grids/delete-row.md | 15 --------- .../client-web/examples/grids/get-row.md | 16 --------- .../client-web/examples/grids/list-rows.md | 15 --------- .../client-web/examples/grids/update-row.md | 17 ---------- .../client-web/examples/grids/upsert-row.md | 17 ---------- .../examples/databases/upsert-document.md | 4 +-- .../examples/databases/upsert-documents.md | 3 +- .../examples/grids/create-boolean-column.md | 7 ---- .../examples/grids/create-database.md | 4 --- .../examples/grids/create-datetime-column.md | 7 ---- .../examples/grids/create-email-column.md | 7 ---- .../examples/grids/create-enum-column.md | 8 ----- .../examples/grids/create-float-column.md | 9 ----- .../examples/grids/create-index.md | 8 ----- .../examples/grids/create-integer-column.md | 9 ----- .../examples/grids/create-ip-column.md | 7 ---- .../grids/create-relationship-column.md | 9 ----- .../console-cli/examples/grids/create-row.md | 6 ---- .../console-cli/examples/grids/create-rows.md | 4 --- .../examples/grids/create-string-column.md | 9 ----- .../examples/grids/create-table.md | 7 ---- .../examples/grids/create-url-column.md | 7 ---- .../examples/grids/decrement-row-column.md | 7 ---- .../examples/grids/delete-column.md | 4 --- .../examples/grids/delete-database.md | 2 -- .../examples/grids/delete-index.md | 4 --- .../console-cli/examples/grids/delete-row.md | 4 --- .../console-cli/examples/grids/delete-rows.md | 4 --- .../examples/grids/delete-table.md | 3 -- .../console-cli/examples/grids/get-column.md | 4 --- .../examples/grids/get-database-usage.md | 3 -- .../examples/grids/get-database.md | 2 -- .../console-cli/examples/grids/get-index.md | 4 --- .../console-cli/examples/grids/get-row.md | 5 --- .../examples/grids/get-table-usage.md | 4 --- .../console-cli/examples/grids/get-table.md | 3 -- .../examples/grids/increment-row-column.md | 7 ---- .../examples/grids/list-columns.md | 4 --- .../examples/grids/list-database-logs.md | 3 -- .../examples/grids/list-database-usage.md | 2 -- .../examples/grids/list-databases.md | 3 -- .../examples/grids/list-indexes.md | 4 --- .../examples/grids/list-row-logs.md | 5 --- .../console-cli/examples/grids/list-rows.md | 4 --- .../examples/grids/list-table-logs.md | 4 --- .../console-cli/examples/grids/list-tables.md | 4 --- .../examples/grids/update-boolean-column.md | 7 ---- .../examples/grids/update-database.md | 4 --- .../examples/grids/update-datetime-column.md | 7 ---- .../examples/grids/update-email-column.md | 7 ---- .../examples/grids/update-enum-column.md | 8 ----- .../examples/grids/update-float-column.md | 9 ----- .../examples/grids/update-integer-column.md | 9 ----- .../examples/grids/update-ip-column.md | 7 ---- .../grids/update-relationship-column.md | 6 ---- .../console-cli/examples/grids/update-row.md | 6 ---- .../console-cli/examples/grids/update-rows.md | 5 --- .../examples/grids/update-string-column.md | 8 ----- .../examples/grids/update-table.md | 7 ---- .../examples/grids/update-url-column.md | 7 ---- .../console-cli/examples/grids/upsert-row.md | 6 ---- .../console-cli/examples/grids/upsert-rows.md | 4 --- .../examples/databases/create-document.md | 4 ++- .../examples/databases/create-documents.md | 3 +- .../examples/databases/upsert-document.md | 8 ++--- .../examples/databases/upsert-documents.md | 6 ++-- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 18 ---------- .../examples/grids/create-database.md | 15 --------- .../examples/grids/create-datetime-column.md | 18 ---------- .../examples/grids/create-email-column.md | 18 ---------- .../examples/grids/create-enum-column.md | 19 ----------- .../examples/grids/create-float-column.md | 20 ----------- .../examples/grids/create-index.md | 19 ----------- .../examples/grids/create-integer-column.md | 20 ----------- .../examples/grids/create-ip-column.md | 18 ---------- .../grids/create-relationship-column.md | 20 ----------- .../console-web/examples/grids/create-row.md | 17 ---------- .../console-web/examples/grids/create-rows.md | 15 --------- .../examples/grids/create-string-column.md | 20 ----------- .../examples/grids/create-table.md | 18 ---------- .../examples/grids/create-url-column.md | 18 ---------- .../examples/grids/decrement-row-column.md | 18 ---------- .../examples/grids/delete-column.md | 15 --------- .../examples/grids/delete-database.md | 13 -------- .../examples/grids/delete-index.md | 15 --------- .../console-web/examples/grids/delete-row.md | 15 --------- .../console-web/examples/grids/delete-rows.md | 15 --------- .../examples/grids/delete-table.md | 14 -------- .../console-web/examples/grids/get-column.md | 15 --------- .../examples/grids/get-database-usage.md | 14 -------- .../examples/grids/get-database.md | 13 -------- .../console-web/examples/grids/get-index.md | 15 --------- .../console-web/examples/grids/get-row.md | 16 --------- .../examples/grids/get-table-usage.md | 15 --------- .../console-web/examples/grids/get-table.md | 14 -------- .../examples/grids/increment-row-column.md | 18 ---------- .../examples/grids/list-columns.md | 15 --------- .../examples/grids/list-database-logs.md | 14 -------- .../examples/grids/list-database-usage.md | 13 -------- .../examples/grids/list-databases.md | 14 -------- .../examples/grids/list-indexes.md | 15 --------- .../examples/grids/list-row-logs.md | 16 --------- .../console-web/examples/grids/list-rows.md | 15 --------- .../examples/grids/list-table-logs.md | 15 --------- .../console-web/examples/grids/list-tables.md | 15 --------- .../examples/grids/update-boolean-column.md | 18 ---------- .../examples/grids/update-database.md | 15 --------- .../examples/grids/update-datetime-column.md | 18 ---------- .../examples/grids/update-email-column.md | 18 ---------- .../examples/grids/update-enum-column.md | 19 ----------- .../examples/grids/update-float-column.md | 20 ----------- .../examples/grids/update-integer-column.md | 20 ----------- .../examples/grids/update-ip-column.md | 18 ---------- .../grids/update-relationship-column.md | 17 ---------- .../console-web/examples/grids/update-row.md | 17 ---------- .../console-web/examples/grids/update-rows.md | 16 --------- .../examples/grids/update-string-column.md | 19 ----------- .../examples/grids/update-table.md | 18 ---------- .../examples/grids/update-url-column.md | 18 ---------- .../console-web/examples/grids/upsert-row.md | 17 ---------- .../console-web/examples/grids/upsert-rows.md | 15 --------- .../examples/databases/create-document.md | 5 +-- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 7 ++-- .../examples/databases/upsert-documents.md | 3 +- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 17 ---------- .../examples/grids/create-database.md | 14 -------- .../examples/grids/create-datetime-column.md | 17 ---------- .../examples/grids/create-email-column.md | 17 ---------- .../examples/grids/create-enum-column.md | 18 ---------- .../examples/grids/create-float-column.md | 19 ----------- .../examples/grids/create-index.md | 18 ---------- .../examples/grids/create-integer-column.md | 19 ----------- .../examples/grids/create-ip-column.md | 17 ---------- .../grids/create-relationship-column.md | 19 ----------- .../server-dart/examples/grids/create-row.md | 16 --------- .../server-dart/examples/grids/create-rows.md | 14 -------- .../examples/grids/create-string-column.md | 19 ----------- .../examples/grids/create-table.md | 17 ---------- .../examples/grids/create-url-column.md | 17 ---------- .../examples/grids/decrement-row-column.md | 17 ---------- .../examples/grids/delete-column.md | 14 -------- .../examples/grids/delete-database.md | 12 ------- .../examples/grids/delete-index.md | 14 -------- .../server-dart/examples/grids/delete-row.md | 14 -------- .../server-dart/examples/grids/delete-rows.md | 14 -------- .../examples/grids/delete-table.md | 13 -------- .../server-dart/examples/grids/get-column.md | 14 -------- .../examples/grids/get-database.md | 12 ------- .../server-dart/examples/grids/get-index.md | 14 -------- .../server-dart/examples/grids/get-row.md | 15 --------- .../server-dart/examples/grids/get-table.md | 13 -------- .../examples/grids/increment-row-column.md | 17 ---------- .../examples/grids/list-columns.md | 14 -------- .../examples/grids/list-databases.md | 13 -------- .../examples/grids/list-indexes.md | 14 -------- .../server-dart/examples/grids/list-rows.md | 14 -------- .../server-dart/examples/grids/list-tables.md | 14 -------- .../examples/grids/update-boolean-column.md | 17 ---------- .../examples/grids/update-database.md | 14 -------- .../examples/grids/update-datetime-column.md | 17 ---------- .../examples/grids/update-email-column.md | 17 ---------- .../examples/grids/update-enum-column.md | 18 ---------- .../examples/grids/update-float-column.md | 19 ----------- .../examples/grids/update-integer-column.md | 19 ----------- .../examples/grids/update-ip-column.md | 17 ---------- .../grids/update-relationship-column.md | 16 --------- .../server-dart/examples/grids/update-row.md | 16 --------- .../server-dart/examples/grids/update-rows.md | 15 --------- .../examples/grids/update-string-column.md | 18 ---------- .../examples/grids/update-table.md | 17 ---------- .../examples/grids/update-url-column.md | 17 ---------- .../server-dart/examples/grids/upsert-row.md | 16 --------- .../server-dart/examples/grids/upsert-rows.md | 14 -------- .../examples/databases/create-document.md | 5 +-- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 9 +++-- .../examples/databases/upsert-documents.md | 5 ++- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 17 ---------- .../examples/grids/create-database.md | 14 -------- .../examples/grids/create-datetime-column.md | 17 ---------- .../examples/grids/create-email-column.md | 17 ---------- .../examples/grids/create-enum-column.md | 18 ---------- .../examples/grids/create-float-column.md | 19 ----------- .../examples/grids/create-index.md | 18 ---------- .../examples/grids/create-integer-column.md | 19 ----------- .../examples/grids/create-ip-column.md | 17 ---------- .../grids/create-relationship-column.md | 19 ----------- .../server-deno/examples/grids/create-row.md | 16 --------- .../server-deno/examples/grids/create-rows.md | 14 -------- .../examples/grids/create-string-column.md | 19 ----------- .../examples/grids/create-table.md | 17 ---------- .../examples/grids/create-url-column.md | 17 ---------- .../examples/grids/decrement-row-column.md | 17 ---------- .../examples/grids/delete-column.md | 14 -------- .../examples/grids/delete-database.md | 12 ------- .../examples/grids/delete-index.md | 14 -------- .../server-deno/examples/grids/delete-row.md | 14 -------- .../server-deno/examples/grids/delete-rows.md | 14 -------- .../examples/grids/delete-table.md | 13 -------- .../server-deno/examples/grids/get-column.md | 14 -------- .../examples/grids/get-database.md | 12 ------- .../server-deno/examples/grids/get-index.md | 14 -------- .../server-deno/examples/grids/get-row.md | 15 --------- .../server-deno/examples/grids/get-table.md | 13 -------- .../examples/grids/increment-row-column.md | 17 ---------- .../examples/grids/list-columns.md | 14 -------- .../examples/grids/list-databases.md | 13 -------- .../examples/grids/list-indexes.md | 14 -------- .../server-deno/examples/grids/list-rows.md | 14 -------- .../server-deno/examples/grids/list-tables.md | 14 -------- .../examples/grids/update-boolean-column.md | 17 ---------- .../examples/grids/update-database.md | 14 -------- .../examples/grids/update-datetime-column.md | 17 ---------- .../examples/grids/update-email-column.md | 17 ---------- .../examples/grids/update-enum-column.md | 18 ---------- .../examples/grids/update-float-column.md | 19 ----------- .../examples/grids/update-integer-column.md | 19 ----------- .../examples/grids/update-ip-column.md | 17 ---------- .../grids/update-relationship-column.md | 16 --------- .../server-deno/examples/grids/update-row.md | 16 --------- .../server-deno/examples/grids/update-rows.md | 15 --------- .../examples/grids/update-string-column.md | 18 ---------- .../examples/grids/update-table.md | 17 ---------- .../examples/grids/update-url-column.md | 17 ---------- .../server-deno/examples/grids/upsert-row.md | 16 --------- .../server-deno/examples/grids/upsert-rows.md | 14 -------- .../examples/databases/create-document.md | 5 +-- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 9 +++-- .../examples/databases/upsert-documents.md | 5 ++- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 19 ----------- .../examples/grids/create-database.md | 16 --------- .../examples/grids/create-datetime-column.md | 19 ----------- .../examples/grids/create-email-column.md | 19 ----------- .../examples/grids/create-enum-column.md | 20 ----------- .../examples/grids/create-float-column.md | 21 ------------ .../examples/grids/create-index.md | 21 ------------ .../examples/grids/create-integer-column.md | 21 ------------ .../examples/grids/create-ip-column.md | 19 ----------- .../grids/create-relationship-column.md | 22 ------------- .../examples/grids/create-row.md | 18 ---------- .../examples/grids/create-rows.md | 16 --------- .../examples/grids/create-string-column.md | 21 ------------ .../examples/grids/create-table.md | 19 ----------- .../examples/grids/create-url-column.md | 19 ----------- .../examples/grids/decrement-row-column.md | 19 ----------- .../examples/grids/delete-column.md | 16 --------- .../examples/grids/delete-database.md | 14 -------- .../examples/grids/delete-index.md | 16 --------- .../examples/grids/delete-row.md | 16 --------- .../examples/grids/delete-rows.md | 16 --------- .../examples/grids/delete-table.md | 15 --------- .../examples/grids/get-column.md | 16 --------- .../examples/grids/get-database.md | 14 -------- .../server-dotnet/examples/grids/get-index.md | 16 --------- .../server-dotnet/examples/grids/get-row.md | 17 ---------- .../server-dotnet/examples/grids/get-table.md | 15 --------- .../examples/grids/increment-row-column.md | 19 ----------- .../examples/grids/list-columns.md | 16 --------- .../examples/grids/list-databases.md | 15 --------- .../examples/grids/list-indexes.md | 16 --------- .../server-dotnet/examples/grids/list-rows.md | 16 --------- .../examples/grids/list-tables.md | 16 --------- .../examples/grids/update-boolean-column.md | 19 ----------- .../examples/grids/update-database.md | 16 --------- .../examples/grids/update-datetime-column.md | 19 ----------- .../examples/grids/update-email-column.md | 19 ----------- .../examples/grids/update-enum-column.md | 20 ----------- .../examples/grids/update-float-column.md | 21 ------------ .../examples/grids/update-integer-column.md | 21 ------------ .../examples/grids/update-ip-column.md | 19 ----------- .../grids/update-relationship-column.md | 19 ----------- .../examples/grids/update-row.md | 18 ---------- .../examples/grids/update-rows.md | 17 ---------- .../examples/grids/update-string-column.md | 20 ----------- .../examples/grids/update-table.md | 19 ----------- .../examples/grids/update-url-column.md | 19 ----------- .../examples/grids/upsert-row.md | 18 ---------- .../examples/grids/upsert-rows.md | 16 --------- .../examples/databases/create-document.md | 3 +- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 5 ++- .../examples/databases/upsert-documents.md | 3 +- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 31 ----------------- .../examples/grids/create-database.md | 28 ---------------- .../examples/grids/create-datetime-column.md | 31 ----------------- .../examples/grids/create-email-column.md | 31 ----------------- .../examples/grids/create-enum-column.md | 32 ------------------ .../examples/grids/create-float-column.md | 33 ------------------- .../server-go/examples/grids/create-index.md | 32 ------------------ .../examples/grids/create-integer-column.md | 33 ------------------- .../examples/grids/create-ip-column.md | 31 ----------------- .../grids/create-relationship-column.md | 33 ------------------- .../server-go/examples/grids/create-row.md | 30 ----------------- .../server-go/examples/grids/create-rows.md | 28 ---------------- .../examples/grids/create-string-column.md | 33 ------------------- .../server-go/examples/grids/create-table.md | 31 ----------------- .../examples/grids/create-url-column.md | 31 ----------------- .../examples/grids/decrement-row-column.md | 31 ----------------- .../server-go/examples/grids/delete-column.md | 28 ---------------- .../examples/grids/delete-database.md | 26 --------------- .../server-go/examples/grids/delete-index.md | 28 ---------------- .../server-go/examples/grids/delete-row.md | 28 ---------------- .../server-go/examples/grids/delete-rows.md | 28 ---------------- .../server-go/examples/grids/delete-table.md | 27 --------------- .../server-go/examples/grids/get-column.md | 28 ---------------- .../server-go/examples/grids/get-database.md | 26 --------------- .../server-go/examples/grids/get-index.md | 28 ---------------- .../1.8.x/server-go/examples/grids/get-row.md | 29 ---------------- .../server-go/examples/grids/get-table.md | 27 --------------- .../examples/grids/increment-row-column.md | 31 ----------------- .../server-go/examples/grids/list-columns.md | 28 ---------------- .../examples/grids/list-databases.md | 27 --------------- .../server-go/examples/grids/list-indexes.md | 28 ---------------- .../server-go/examples/grids/list-rows.md | 28 ---------------- .../server-go/examples/grids/list-tables.md | 28 ---------------- .../examples/grids/update-boolean-column.md | 31 ----------------- .../examples/grids/update-database.md | 28 ---------------- .../examples/grids/update-datetime-column.md | 31 ----------------- .../examples/grids/update-email-column.md | 31 ----------------- .../examples/grids/update-enum-column.md | 32 ------------------ .../examples/grids/update-float-column.md | 33 ------------------- .../examples/grids/update-integer-column.md | 33 ------------------- .../examples/grids/update-ip-column.md | 31 ----------------- .../grids/update-relationship-column.md | 30 ----------------- .../server-go/examples/grids/update-row.md | 30 ----------------- .../server-go/examples/grids/update-rows.md | 29 ---------------- .../examples/grids/update-string-column.md | 32 ------------------ .../server-go/examples/grids/update-table.md | 31 ----------------- .../examples/grids/update-url-column.md | 31 ----------------- .../server-go/examples/grids/upsert-row.md | 30 ----------------- .../server-go/examples/grids/upsert-rows.md | 28 ---------------- .../examples/databases/create-collection.md | 5 ++- .../examples/databases/create-index.md | 5 ++- .../examples/databases/update-collection.md | 5 ++- .../examples/databases/upsert-document.md | 4 +-- .../examples/databases/upsert-documents.md | 3 +- .../examples/functions/create-deployment.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 20 ----------- .../examples/grids/create-database.md | 13 -------- .../examples/grids/create-datetime-column.md | 21 ------------ .../examples/grids/create-email-column.md | 21 ------------ .../examples/grids/create-enum-column.md | 23 ------------- .../examples/grids/create-float-column.md | 24 -------------- .../examples/grids/create-index.md | 22 ------------- .../examples/grids/create-integer-column.md | 24 -------------- .../examples/grids/create-ip-column.md | 21 ------------ .../grids/create-relationship-column.md | 27 --------------- .../examples/grids/create-row.md | 18 ---------- .../examples/grids/create-rows.md | 19 ----------- .../examples/grids/create-string-column.md | 24 -------------- .../examples/grids/create-table.md | 32 ------------------ .../examples/grids/create-url-column.md | 21 ------------ .../examples/grids/decrement-row-column.md | 19 ----------- .../examples/grids/delete-column.md | 9 ----- .../examples/grids/delete-database.md | 7 ---- .../examples/grids/delete-index.md | 9 ----- .../examples/grids/delete-row.md | 9 ----- .../examples/grids/delete-rows.md | 19 ----------- .../examples/grids/delete-table.md | 8 ----- .../examples/grids/get-column.md | 0 .../examples/grids/get-database.md | 0 .../examples/grids/get-index.md | 0 .../server-graphql/examples/grids/get-row.md | 0 .../examples/grids/get-table.md | 0 .../examples/grids/increment-row-column.md | 19 ----------- .../examples/grids/list-columns.md | 0 .../examples/grids/list-databases.md | 0 .../examples/grids/list-indexes.md | 0 .../examples/grids/list-rows.md | 0 .../examples/grids/list-tables.md | 0 .../examples/grids/update-boolean-column.md | 20 ----------- .../examples/grids/update-database.md | 13 -------- .../examples/grids/update-datetime-column.md | 21 ------------ .../examples/grids/update-email-column.md | 21 ------------ .../examples/grids/update-enum-column.md | 23 ------------- .../examples/grids/update-float-column.md | 24 -------------- .../examples/grids/update-integer-column.md | 24 -------------- .../examples/grids/update-ip-column.md | 21 ------------ .../grids/update-relationship-column.md | 24 -------------- .../examples/grids/update-row.md | 18 ---------- .../examples/grids/update-rows.md | 20 ----------- .../examples/grids/update-string-column.md | 23 ------------- .../examples/grids/update-table.md | 32 ------------------ .../examples/grids/update-url-column.md | 21 ------------ .../examples/grids/upsert-row.md | 18 ---------- .../examples/grids/upsert-rows.md | 19 ----------- .../examples/sites/create-deployment.md | 2 +- .../examples/storage/create-file.md | 2 +- .../java/databases/create-document.md | 5 +-- .../java/databases/create-documents.md | 2 +- .../java/databases/upsert-document.md | 7 ++-- .../java/databases/upsert-documents.md | 3 +- .../java/functions/create-execution.md | 2 +- .../java/grids/create-boolean-column.md | 28 ---------------- .../java/grids/create-database.md | 25 -------------- .../java/grids/create-datetime-column.md | 28 ---------------- .../java/grids/create-email-column.md | 28 ---------------- .../java/grids/create-enum-column.md | 29 ---------------- .../java/grids/create-float-column.md | 30 ----------------- .../server-kotlin/java/grids/create-index.md | 30 ----------------- .../java/grids/create-integer-column.md | 30 ----------------- .../java/grids/create-ip-column.md | 28 ---------------- .../java/grids/create-relationship-column.md | 31 ----------------- .../server-kotlin/java/grids/create-row.md | 27 --------------- .../server-kotlin/java/grids/create-rows.md | 25 -------------- .../java/grids/create-string-column.md | 30 ----------------- .../server-kotlin/java/grids/create-table.md | 28 ---------------- .../java/grids/create-url-column.md | 28 ---------------- .../java/grids/decrement-row-column.md | 28 ---------------- .../server-kotlin/java/grids/delete-column.md | 25 -------------- .../java/grids/delete-database.md | 23 ------------- .../server-kotlin/java/grids/delete-index.md | 25 -------------- .../server-kotlin/java/grids/delete-row.md | 25 -------------- .../server-kotlin/java/grids/delete-rows.md | 25 -------------- .../server-kotlin/java/grids/delete-table.md | 24 -------------- .../server-kotlin/java/grids/get-column.md | 25 -------------- .../server-kotlin/java/grids/get-database.md | 23 ------------- .../server-kotlin/java/grids/get-index.md | 25 -------------- .../1.8.x/server-kotlin/java/grids/get-row.md | 26 --------------- .../server-kotlin/java/grids/get-table.md | 24 -------------- .../java/grids/increment-row-column.md | 28 ---------------- .../server-kotlin/java/grids/list-columns.md | 25 -------------- .../java/grids/list-databases.md | 24 -------------- .../server-kotlin/java/grids/list-indexes.md | 25 -------------- .../server-kotlin/java/grids/list-rows.md | 25 -------------- .../server-kotlin/java/grids/list-tables.md | 25 -------------- .../java/grids/update-boolean-column.md | 28 ---------------- .../java/grids/update-database.md | 25 -------------- .../java/grids/update-datetime-column.md | 28 ---------------- .../java/grids/update-email-column.md | 28 ---------------- .../java/grids/update-enum-column.md | 29 ---------------- .../java/grids/update-float-column.md | 30 ----------------- .../java/grids/update-integer-column.md | 30 ----------------- .../java/grids/update-ip-column.md | 28 ---------------- .../java/grids/update-relationship-column.md | 27 --------------- .../server-kotlin/java/grids/update-row.md | 27 --------------- .../server-kotlin/java/grids/update-rows.md | 26 --------------- .../java/grids/update-string-column.md | 29 ---------------- .../server-kotlin/java/grids/update-table.md | 28 ---------------- .../java/grids/update-url-column.md | 28 ---------------- .../server-kotlin/java/grids/upsert-row.md | 27 --------------- .../server-kotlin/java/grids/upsert-rows.md | 25 -------------- .../kotlin/databases/create-document.md | 3 +- .../kotlin/databases/create-documents.md | 2 +- .../kotlin/databases/upsert-document.md | 7 ++-- .../kotlin/databases/upsert-documents.md | 5 ++- .../kotlin/functions/create-execution.md | 2 +- .../kotlin/grids/create-boolean-column.md | 19 ----------- .../kotlin/grids/create-database.md | 16 --------- .../kotlin/grids/create-datetime-column.md | 19 ----------- .../kotlin/grids/create-email-column.md | 19 ----------- .../kotlin/grids/create-enum-column.md | 20 ----------- .../kotlin/grids/create-float-column.md | 21 ------------ .../kotlin/grids/create-index.md | 21 ------------ .../kotlin/grids/create-integer-column.md | 21 ------------ .../kotlin/grids/create-ip-column.md | 19 ----------- .../grids/create-relationship-column.md | 22 ------------- .../server-kotlin/kotlin/grids/create-row.md | 18 ---------- .../server-kotlin/kotlin/grids/create-rows.md | 16 --------- .../kotlin/grids/create-string-column.md | 21 ------------ .../kotlin/grids/create-table.md | 19 ----------- .../kotlin/grids/create-url-column.md | 19 ----------- .../kotlin/grids/decrement-row-column.md | 19 ----------- .../kotlin/grids/delete-column.md | 16 --------- .../kotlin/grids/delete-database.md | 14 -------- .../kotlin/grids/delete-index.md | 16 --------- .../server-kotlin/kotlin/grids/delete-row.md | 16 --------- .../server-kotlin/kotlin/grids/delete-rows.md | 16 --------- .../kotlin/grids/delete-table.md | 15 --------- .../server-kotlin/kotlin/grids/get-column.md | 16 --------- .../kotlin/grids/get-database.md | 14 -------- .../server-kotlin/kotlin/grids/get-index.md | 16 --------- .../server-kotlin/kotlin/grids/get-row.md | 17 ---------- .../server-kotlin/kotlin/grids/get-table.md | 15 --------- .../kotlin/grids/increment-row-column.md | 19 ----------- .../kotlin/grids/list-columns.md | 16 --------- .../kotlin/grids/list-databases.md | 15 --------- .../kotlin/grids/list-indexes.md | 16 --------- .../server-kotlin/kotlin/grids/list-rows.md | 16 --------- .../server-kotlin/kotlin/grids/list-tables.md | 16 --------- .../kotlin/grids/update-boolean-column.md | 19 ----------- .../kotlin/grids/update-database.md | 16 --------- .../kotlin/grids/update-datetime-column.md | 19 ----------- .../kotlin/grids/update-email-column.md | 19 ----------- .../kotlin/grids/update-enum-column.md | 20 ----------- .../kotlin/grids/update-float-column.md | 21 ------------ .../kotlin/grids/update-integer-column.md | 21 ------------ .../kotlin/grids/update-ip-column.md | 19 ----------- .../grids/update-relationship-column.md | 18 ---------- .../server-kotlin/kotlin/grids/update-row.md | 18 ---------- .../server-kotlin/kotlin/grids/update-rows.md | 17 ---------- .../kotlin/grids/update-string-column.md | 20 ----------- .../kotlin/grids/update-table.md | 19 ----------- .../kotlin/grids/update-url-column.md | 19 ----------- .../server-kotlin/kotlin/grids/upsert-row.md | 18 ---------- .../server-kotlin/kotlin/grids/upsert-rows.md | 16 --------- .../examples/databases/create-document.md | 5 +-- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 9 +++-- .../examples/databases/upsert-documents.md | 5 ++- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 17 ---------- .../examples/grids/create-database.md | 14 -------- .../examples/grids/create-datetime-column.md | 17 ---------- .../examples/grids/create-email-column.md | 17 ---------- .../examples/grids/create-enum-column.md | 18 ---------- .../examples/grids/create-float-column.md | 19 ----------- .../examples/grids/create-index.md | 18 ---------- .../examples/grids/create-integer-column.md | 19 ----------- .../examples/grids/create-ip-column.md | 17 ---------- .../grids/create-relationship-column.md | 19 ----------- .../examples/grids/create-row.md | 16 --------- .../examples/grids/create-rows.md | 14 -------- .../examples/grids/create-string-column.md | 19 ----------- .../examples/grids/create-table.md | 17 ---------- .../examples/grids/create-url-column.md | 17 ---------- .../examples/grids/decrement-row-column.md | 17 ---------- .../examples/grids/delete-column.md | 14 -------- .../examples/grids/delete-database.md | 12 ------- .../examples/grids/delete-index.md | 14 -------- .../examples/grids/delete-row.md | 14 -------- .../examples/grids/delete-rows.md | 14 -------- .../examples/grids/delete-table.md | 13 -------- .../examples/grids/get-column.md | 14 -------- .../examples/grids/get-database.md | 12 ------- .../server-nodejs/examples/grids/get-index.md | 14 -------- .../server-nodejs/examples/grids/get-row.md | 15 --------- .../server-nodejs/examples/grids/get-table.md | 13 -------- .../examples/grids/increment-row-column.md | 17 ---------- .../examples/grids/list-columns.md | 14 -------- .../examples/grids/list-databases.md | 13 -------- .../examples/grids/list-indexes.md | 14 -------- .../server-nodejs/examples/grids/list-rows.md | 14 -------- .../examples/grids/list-tables.md | 14 -------- .../examples/grids/update-boolean-column.md | 17 ---------- .../examples/grids/update-database.md | 14 -------- .../examples/grids/update-datetime-column.md | 17 ---------- .../examples/grids/update-email-column.md | 17 ---------- .../examples/grids/update-enum-column.md | 18 ---------- .../examples/grids/update-float-column.md | 19 ----------- .../examples/grids/update-integer-column.md | 19 ----------- .../examples/grids/update-ip-column.md | 17 ---------- .../grids/update-relationship-column.md | 16 --------- .../examples/grids/update-row.md | 16 --------- .../examples/grids/update-rows.md | 15 --------- .../examples/grids/update-string-column.md | 18 ---------- .../examples/grids/update-table.md | 17 ---------- .../examples/grids/update-url-column.md | 17 ---------- .../examples/grids/upsert-row.md | 16 --------- .../examples/grids/upsert-rows.md | 14 -------- .../examples/databases/create-document.md | 5 +-- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 9 +++-- .../examples/databases/upsert-documents.md | 5 ++- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 20 ----------- .../examples/grids/create-database.md | 17 ---------- .../examples/grids/create-datetime-column.md | 20 ----------- .../examples/grids/create-email-column.md | 20 ----------- .../examples/grids/create-enum-column.md | 21 ------------ .../examples/grids/create-float-column.md | 22 ------------- .../server-php/examples/grids/create-index.md | 22 ------------- .../examples/grids/create-integer-column.md | 22 ------------- .../examples/grids/create-ip-column.md | 20 ----------- .../grids/create-relationship-column.md | 23 ------------- .../server-php/examples/grids/create-row.md | 19 ----------- .../server-php/examples/grids/create-rows.md | 17 ---------- .../examples/grids/create-string-column.md | 22 ------------- .../server-php/examples/grids/create-table.md | 20 ----------- .../examples/grids/create-url-column.md | 20 ----------- .../examples/grids/decrement-row-column.md | 20 ----------- .../examples/grids/delete-column.md | 17 ---------- .../examples/grids/delete-database.md | 15 --------- .../server-php/examples/grids/delete-index.md | 17 ---------- .../server-php/examples/grids/delete-row.md | 17 ---------- .../server-php/examples/grids/delete-rows.md | 17 ---------- .../server-php/examples/grids/delete-table.md | 16 --------- .../server-php/examples/grids/get-column.md | 17 ---------- .../server-php/examples/grids/get-database.md | 15 --------- .../server-php/examples/grids/get-index.md | 17 ---------- .../server-php/examples/grids/get-row.md | 18 ---------- .../server-php/examples/grids/get-table.md | 16 --------- .../examples/grids/increment-row-column.md | 20 ----------- .../server-php/examples/grids/list-columns.md | 17 ---------- .../examples/grids/list-databases.md | 16 --------- .../server-php/examples/grids/list-indexes.md | 17 ---------- .../server-php/examples/grids/list-rows.md | 17 ---------- .../server-php/examples/grids/list-tables.md | 17 ---------- .../examples/grids/update-boolean-column.md | 20 ----------- .../examples/grids/update-database.md | 17 ---------- .../examples/grids/update-datetime-column.md | 20 ----------- .../examples/grids/update-email-column.md | 20 ----------- .../examples/grids/update-enum-column.md | 21 ------------ .../examples/grids/update-float-column.md | 22 ------------- .../examples/grids/update-integer-column.md | 22 ------------- .../examples/grids/update-ip-column.md | 20 ----------- .../grids/update-relationship-column.md | 19 ----------- .../server-php/examples/grids/update-row.md | 19 ----------- .../server-php/examples/grids/update-rows.md | 18 ---------- .../examples/grids/update-string-column.md | 21 ------------ .../server-php/examples/grids/update-table.md | 20 ----------- .../examples/grids/update-url-column.md | 20 ----------- .../server-php/examples/grids/upsert-row.md | 19 ----------- .../server-php/examples/grids/upsert-rows.md | 17 ---------- .../examples/databases/create-document.md | 3 +- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 7 ++-- .../examples/databases/upsert-documents.md | 5 ++- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 18 ---------- .../examples/grids/create-database.md | 15 --------- .../examples/grids/create-datetime-column.md | 18 ---------- .../examples/grids/create-email-column.md | 18 ---------- .../examples/grids/create-enum-column.md | 19 ----------- .../examples/grids/create-float-column.md | 20 ----------- .../examples/grids/create-index.md | 20 ----------- .../examples/grids/create-integer-column.md | 20 ----------- .../examples/grids/create-ip-column.md | 18 ---------- .../grids/create-relationship-column.md | 21 ------------ .../examples/grids/create-row.md | 17 ---------- .../examples/grids/create-rows.md | 15 --------- .../examples/grids/create-string-column.md | 20 ----------- .../examples/grids/create-table.md | 18 ---------- .../examples/grids/create-url-column.md | 18 ---------- .../examples/grids/decrement-row-column.md | 18 ---------- .../examples/grids/delete-column.md | 15 --------- .../examples/grids/delete-database.md | 13 -------- .../examples/grids/delete-index.md | 15 --------- .../examples/grids/delete-row.md | 15 --------- .../examples/grids/delete-rows.md | 15 --------- .../examples/grids/delete-table.md | 14 -------- .../examples/grids/get-column.md | 15 --------- .../examples/grids/get-database.md | 13 -------- .../server-python/examples/grids/get-index.md | 15 --------- .../server-python/examples/grids/get-row.md | 16 --------- .../server-python/examples/grids/get-table.md | 14 -------- .../examples/grids/increment-row-column.md | 18 ---------- .../examples/grids/list-columns.md | 15 --------- .../examples/grids/list-databases.md | 14 -------- .../examples/grids/list-indexes.md | 15 --------- .../server-python/examples/grids/list-rows.md | 15 --------- .../examples/grids/list-tables.md | 15 --------- .../examples/grids/update-boolean-column.md | 18 ---------- .../examples/grids/update-database.md | 15 --------- .../examples/grids/update-datetime-column.md | 18 ---------- .../examples/grids/update-email-column.md | 18 ---------- .../examples/grids/update-enum-column.md | 19 ----------- .../examples/grids/update-float-column.md | 20 ----------- .../examples/grids/update-integer-column.md | 20 ----------- .../examples/grids/update-ip-column.md | 18 ---------- .../grids/update-relationship-column.md | 17 ---------- .../examples/grids/update-row.md | 17 ---------- .../examples/grids/update-rows.md | 16 --------- .../examples/grids/update-string-column.md | 19 ----------- .../examples/grids/update-table.md | 18 ---------- .../examples/grids/update-url-column.md | 18 ---------- .../examples/grids/upsert-row.md | 17 ---------- .../examples/grids/upsert-rows.md | 15 --------- .../account/create-anonymous-session.md | 2 +- .../account/create-email-password-session.md | 2 +- .../examples/account/create-email-token.md | 2 +- .../examples/account/create-j-w-t.md | 2 +- .../account/create-magic-u-r-l-token.md | 2 +- .../account/create-mfa-authenticator.md | 2 +- .../examples/account/create-mfa-challenge.md | 2 +- .../account/create-mfa-recovery-codes.md | 2 +- .../examples/account/create-o-auth2token.md | 2 +- .../examples/account/create-phone-token.md | 2 +- .../account/create-phone-verification.md | 2 +- .../examples/account/create-recovery.md | 2 +- .../examples/account/create-session.md | 2 +- .../examples/account/create-verification.md | 2 +- .../server-rest/examples/account/create.md | 2 +- .../examples/account/delete-identity.md | 2 +- .../account/delete-mfa-authenticator.md | 2 +- .../examples/account/delete-session.md | 2 +- .../examples/account/delete-sessions.md | 2 +- .../account/get-mfa-recovery-codes.md | 2 +- .../server-rest/examples/account/get-prefs.md | 2 +- .../examples/account/get-session.md | 2 +- .../1.8.x/server-rest/examples/account/get.md | 2 +- .../examples/account/list-identities.md | 2 +- .../server-rest/examples/account/list-logs.md | 2 +- .../examples/account/list-mfa-factors.md | 2 +- .../examples/account/list-sessions.md | 2 +- .../examples/account/update-email.md | 2 +- .../examples/account/update-m-f-a.md | 2 +- .../account/update-magic-u-r-l-session.md | 2 +- .../account/update-mfa-authenticator.md | 2 +- .../examples/account/update-mfa-challenge.md | 2 +- .../account/update-mfa-recovery-codes.md | 2 +- .../examples/account/update-name.md | 2 +- .../examples/account/update-password.md | 2 +- .../examples/account/update-phone-session.md | 2 +- .../account/update-phone-verification.md | 2 +- .../examples/account/update-phone.md | 2 +- .../examples/account/update-prefs.md | 2 +- .../examples/account/update-recovery.md | 2 +- .../examples/account/update-session.md | 2 +- .../examples/account/update-status.md | 2 +- .../examples/account/update-verification.md | 2 +- .../examples/avatars/get-browser.md | 2 +- .../examples/avatars/get-credit-card.md | 2 +- .../examples/avatars/get-favicon.md | 2 +- .../server-rest/examples/avatars/get-flag.md | 2 +- .../server-rest/examples/avatars/get-image.md | 2 +- .../examples/avatars/get-initials.md | 2 +- .../server-rest/examples/avatars/get-q-r.md | 2 +- .../databases/create-boolean-attribute.md | 2 +- .../examples/databases/create-collection.md | 2 +- .../databases/create-datetime-attribute.md | 2 +- .../examples/databases/create-document.md | 2 +- .../examples/databases/create-documents.md | 2 +- .../databases/create-email-attribute.md | 2 +- .../databases/create-enum-attribute.md | 2 +- .../databases/create-float-attribute.md | 2 +- .../examples/databases/create-index.md | 2 +- .../databases/create-integer-attribute.md | 2 +- .../examples/databases/create-ip-attribute.md | 2 +- .../create-relationship-attribute.md | 2 +- .../databases/create-string-attribute.md | 2 +- .../databases/create-url-attribute.md | 2 +- .../server-rest/examples/databases/create.md | 2 +- .../databases/decrement-document-attribute.md | 2 +- .../examples/databases/delete-attribute.md | 2 +- .../examples/databases/delete-collection.md | 2 +- .../examples/databases/delete-document.md | 2 +- .../examples/databases/delete-documents.md | 2 +- .../examples/databases/delete-index.md | 2 +- .../server-rest/examples/databases/delete.md | 2 +- .../examples/databases/get-attribute.md | 2 +- .../examples/databases/get-collection.md | 2 +- .../examples/databases/get-document.md | 2 +- .../examples/databases/get-index.md | 2 +- .../server-rest/examples/databases/get.md | 2 +- .../databases/increment-document-attribute.md | 2 +- .../examples/databases/list-attributes.md | 2 +- .../examples/databases/list-collections.md | 2 +- .../examples/databases/list-documents.md | 2 +- .../examples/databases/list-indexes.md | 2 +- .../server-rest/examples/databases/list.md | 2 +- .../databases/update-boolean-attribute.md | 2 +- .../examples/databases/update-collection.md | 2 +- .../databases/update-datetime-attribute.md | 2 +- .../examples/databases/update-document.md | 2 +- .../examples/databases/update-documents.md | 2 +- .../databases/update-email-attribute.md | 2 +- .../databases/update-enum-attribute.md | 2 +- .../databases/update-float-attribute.md | 2 +- .../databases/update-integer-attribute.md | 2 +- .../examples/databases/update-ip-attribute.md | 2 +- .../update-relationship-attribute.md | 2 +- .../databases/update-string-attribute.md | 2 +- .../databases/update-url-attribute.md | 2 +- .../server-rest/examples/databases/update.md | 2 +- .../examples/databases/upsert-document.md | 6 +--- .../examples/databases/upsert-documents.md | 5 +-- .../examples/functions/create-deployment.md | 2 +- .../functions/create-duplicate-deployment.md | 2 +- .../examples/functions/create-execution.md | 4 +-- .../functions/create-template-deployment.md | 2 +- .../examples/functions/create-variable.md | 2 +- .../functions/create-vcs-deployment.md | 2 +- .../server-rest/examples/functions/create.md | 2 +- .../examples/functions/delete-deployment.md | 2 +- .../examples/functions/delete-execution.md | 2 +- .../examples/functions/delete-variable.md | 2 +- .../server-rest/examples/functions/delete.md | 2 +- .../functions/get-deployment-download.md | 2 +- .../examples/functions/get-deployment.md | 2 +- .../examples/functions/get-execution.md | 2 +- .../examples/functions/get-variable.md | 2 +- .../server-rest/examples/functions/get.md | 2 +- .../examples/functions/list-deployments.md | 2 +- .../examples/functions/list-executions.md | 2 +- .../examples/functions/list-runtimes.md | 2 +- .../examples/functions/list-specifications.md | 2 +- .../examples/functions/list-variables.md | 2 +- .../server-rest/examples/functions/list.md | 2 +- .../functions/update-deployment-status.md | 2 +- .../functions/update-function-deployment.md | 2 +- .../examples/functions/update-variable.md | 2 +- .../server-rest/examples/functions/update.md | 2 +- .../server-rest/examples/graphql/mutation.md | 2 +- .../server-rest/examples/graphql/query.md | 2 +- .../examples/grids/create-boolean-column.md | 13 -------- .../examples/grids/create-database.md | 12 ------- .../examples/grids/create-datetime-column.md | 13 -------- .../examples/grids/create-email-column.md | 13 -------- .../examples/grids/create-enum-column.md | 14 -------- .../examples/grids/create-float-column.md | 15 --------- .../examples/grids/create-index.md | 14 -------- .../examples/grids/create-integer-column.md | 15 --------- .../examples/grids/create-ip-column.md | 13 -------- .../grids/create-relationship-column.md | 15 --------- .../server-rest/examples/grids/create-row.md | 14 -------- .../server-rest/examples/grids/create-rows.md | 12 ------- .../examples/grids/create-string-column.md | 15 --------- .../examples/grids/create-table.md | 14 -------- .../examples/grids/create-url-column.md | 13 -------- .../examples/grids/decrement-row-column.md | 11 ------- .../examples/grids/delete-column.md | 7 ---- .../examples/grids/delete-database.md | 7 ---- .../examples/grids/delete-index.md | 7 ---- .../server-rest/examples/grids/delete-row.md | 9 ----- .../server-rest/examples/grids/delete-rows.md | 10 ------ .../examples/grids/delete-table.md | 7 ---- .../server-rest/examples/grids/get-column.md | 5 --- .../examples/grids/get-database.md | 5 --- .../server-rest/examples/grids/get-index.md | 5 --- .../server-rest/examples/grids/get-row.md | 7 ---- .../server-rest/examples/grids/get-table.md | 5 --- .../examples/grids/increment-row-column.md | 11 ------- .../examples/grids/list-columns.md | 5 --- .../examples/grids/list-databases.md | 5 --- .../examples/grids/list-indexes.md | 5 --- .../server-rest/examples/grids/list-rows.md | 7 ---- .../server-rest/examples/grids/list-tables.md | 5 --- .../examples/grids/update-boolean-column.md | 12 ------- .../examples/grids/update-database.md | 11 ------- .../examples/grids/update-datetime-column.md | 12 ------- .../examples/grids/update-email-column.md | 12 ------- .../examples/grids/update-enum-column.md | 13 -------- .../examples/grids/update-float-column.md | 14 -------- .../examples/grids/update-integer-column.md | 14 -------- .../examples/grids/update-ip-column.md | 12 ------- .../grids/update-relationship-column.md | 11 ------- .../server-rest/examples/grids/update-row.md | 13 -------- .../server-rest/examples/grids/update-rows.md | 11 ------- .../examples/grids/update-string-column.md | 13 -------- .../examples/grids/update-table.md | 13 -------- .../examples/grids/update-url-column.md | 12 ------- .../server-rest/examples/grids/upsert-row.md | 13 -------- .../server-rest/examples/grids/upsert-rows.md | 10 ------ .../examples/health/get-antivirus.md | 2 +- .../server-rest/examples/health/get-cache.md | 2 +- .../examples/health/get-certificate.md | 2 +- .../server-rest/examples/health/get-d-b.md | 2 +- .../examples/health/get-failed-jobs.md | 2 +- .../examples/health/get-pub-sub.md | 2 +- .../examples/health/get-queue-builds.md | 2 +- .../examples/health/get-queue-certificates.md | 2 +- .../examples/health/get-queue-databases.md | 2 +- .../examples/health/get-queue-deletes.md | 2 +- .../examples/health/get-queue-functions.md | 2 +- .../examples/health/get-queue-logs.md | 2 +- .../examples/health/get-queue-mails.md | 2 +- .../examples/health/get-queue-messaging.md | 2 +- .../examples/health/get-queue-migrations.md | 2 +- .../health/get-queue-stats-resources.md | 2 +- .../examples/health/get-queue-usage.md | 2 +- .../examples/health/get-queue-webhooks.md | 2 +- .../examples/health/get-storage-local.md | 2 +- .../examples/health/get-storage.md | 2 +- .../server-rest/examples/health/get-time.md | 2 +- .../1.8.x/server-rest/examples/health/get.md | 2 +- .../1.8.x/server-rest/examples/locale/get.md | 2 +- .../server-rest/examples/locale/list-codes.md | 2 +- .../examples/locale/list-continents.md | 2 +- .../examples/locale/list-countries-e-u.md | 2 +- .../examples/locale/list-countries-phones.md | 2 +- .../examples/locale/list-countries.md | 2 +- .../examples/locale/list-currencies.md | 2 +- .../examples/locale/list-languages.md | 2 +- .../messaging/create-apns-provider.md | 2 +- .../examples/messaging/create-email.md | 2 +- .../examples/messaging/create-fcm-provider.md | 2 +- .../messaging/create-mailgun-provider.md | 2 +- .../messaging/create-msg91provider.md | 2 +- .../examples/messaging/create-push.md | 2 +- .../messaging/create-sendgrid-provider.md | 2 +- .../examples/messaging/create-sms.md | 2 +- .../messaging/create-smtp-provider.md | 2 +- .../examples/messaging/create-subscriber.md | 2 +- .../messaging/create-telesign-provider.md | 2 +- .../messaging/create-textmagic-provider.md | 2 +- .../examples/messaging/create-topic.md | 2 +- .../messaging/create-twilio-provider.md | 2 +- .../messaging/create-vonage-provider.md | 2 +- .../examples/messaging/delete-provider.md | 2 +- .../examples/messaging/delete-subscriber.md | 2 +- .../examples/messaging/delete-topic.md | 2 +- .../server-rest/examples/messaging/delete.md | 2 +- .../examples/messaging/get-message.md | 2 +- .../examples/messaging/get-provider.md | 2 +- .../examples/messaging/get-subscriber.md | 2 +- .../examples/messaging/get-topic.md | 2 +- .../examples/messaging/list-message-logs.md | 2 +- .../examples/messaging/list-messages.md | 2 +- .../examples/messaging/list-provider-logs.md | 2 +- .../examples/messaging/list-providers.md | 2 +- .../messaging/list-subscriber-logs.md | 2 +- .../examples/messaging/list-subscribers.md | 2 +- .../examples/messaging/list-targets.md | 2 +- .../examples/messaging/list-topic-logs.md | 2 +- .../examples/messaging/list-topics.md | 2 +- .../messaging/update-apns-provider.md | 2 +- .../examples/messaging/update-email.md | 2 +- .../examples/messaging/update-fcm-provider.md | 2 +- .../messaging/update-mailgun-provider.md | 2 +- .../messaging/update-msg91provider.md | 2 +- .../examples/messaging/update-push.md | 2 +- .../messaging/update-sendgrid-provider.md | 2 +- .../examples/messaging/update-sms.md | 2 +- .../messaging/update-smtp-provider.md | 2 +- .../messaging/update-telesign-provider.md | 2 +- .../messaging/update-textmagic-provider.md | 2 +- .../examples/messaging/update-topic.md | 2 +- .../messaging/update-twilio-provider.md | 2 +- .../messaging/update-vonage-provider.md | 2 +- .../examples/sites/create-deployment.md | 2 +- .../sites/create-duplicate-deployment.md | 2 +- .../sites/create-template-deployment.md | 2 +- .../examples/sites/create-variable.md | 2 +- .../examples/sites/create-vcs-deployment.md | 2 +- .../server-rest/examples/sites/create.md | 2 +- .../examples/sites/delete-deployment.md | 2 +- .../server-rest/examples/sites/delete-log.md | 2 +- .../examples/sites/delete-variable.md | 2 +- .../server-rest/examples/sites/delete.md | 2 +- .../examples/sites/get-deployment-download.md | 2 +- .../examples/sites/get-deployment.md | 2 +- .../server-rest/examples/sites/get-log.md | 2 +- .../examples/sites/get-variable.md | 2 +- .../1.8.x/server-rest/examples/sites/get.md | 2 +- .../examples/sites/list-deployments.md | 2 +- .../examples/sites/list-frameworks.md | 2 +- .../server-rest/examples/sites/list-logs.md | 2 +- .../examples/sites/list-specifications.md | 2 +- .../examples/sites/list-variables.md | 2 +- .../1.8.x/server-rest/examples/sites/list.md | 2 +- .../sites/update-deployment-status.md | 2 +- .../examples/sites/update-site-deployment.md | 2 +- .../examples/sites/update-variable.md | 2 +- .../server-rest/examples/sites/update.md | 2 +- .../examples/storage/create-bucket.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/storage/delete-bucket.md | 2 +- .../examples/storage/delete-file.md | 2 +- .../examples/storage/get-bucket.md | 2 +- .../examples/storage/get-file-download.md | 2 +- .../examples/storage/get-file-preview.md | 2 +- .../examples/storage/get-file-view.md | 2 +- .../server-rest/examples/storage/get-file.md | 2 +- .../examples/storage/list-buckets.md | 2 +- .../examples/storage/list-files.md | 2 +- .../examples/storage/update-bucket.md | 2 +- .../examples/storage/update-file.md | 2 +- .../examples/teams/create-membership.md | 2 +- .../server-rest/examples/teams/create.md | 2 +- .../examples/teams/delete-membership.md | 2 +- .../server-rest/examples/teams/delete.md | 2 +- .../examples/teams/get-membership.md | 2 +- .../server-rest/examples/teams/get-prefs.md | 2 +- .../1.8.x/server-rest/examples/teams/get.md | 2 +- .../examples/teams/list-memberships.md | 2 +- .../1.8.x/server-rest/examples/teams/list.md | 2 +- .../teams/update-membership-status.md | 2 +- .../examples/teams/update-membership.md | 2 +- .../server-rest/examples/teams/update-name.md | 2 +- .../examples/teams/update-prefs.md | 2 +- .../examples/tokens/create-file-token.md | 2 +- .../server-rest/examples/tokens/delete.md | 2 +- .../1.8.x/server-rest/examples/tokens/get.md | 2 +- .../1.8.x/server-rest/examples/tokens/list.md | 2 +- .../server-rest/examples/tokens/update.md | 2 +- .../examples/users/create-argon2user.md | 2 +- .../examples/users/create-bcrypt-user.md | 2 +- .../examples/users/create-j-w-t.md | 2 +- .../examples/users/create-m-d5user.md | 2 +- .../users/create-mfa-recovery-codes.md | 2 +- .../examples/users/create-p-h-pass-user.md | 2 +- .../examples/users/create-s-h-a-user.md | 2 +- .../users/create-scrypt-modified-user.md | 2 +- .../examples/users/create-scrypt-user.md | 2 +- .../examples/users/create-session.md | 2 +- .../examples/users/create-target.md | 2 +- .../examples/users/create-token.md | 2 +- .../server-rest/examples/users/create.md | 2 +- .../examples/users/delete-identity.md | 2 +- .../users/delete-mfa-authenticator.md | 2 +- .../examples/users/delete-session.md | 2 +- .../examples/users/delete-sessions.md | 2 +- .../examples/users/delete-target.md | 2 +- .../server-rest/examples/users/delete.md | 2 +- .../examples/users/get-mfa-recovery-codes.md | 2 +- .../server-rest/examples/users/get-prefs.md | 2 +- .../server-rest/examples/users/get-target.md | 2 +- .../1.8.x/server-rest/examples/users/get.md | 2 +- .../examples/users/list-identities.md | 2 +- .../server-rest/examples/users/list-logs.md | 2 +- .../examples/users/list-memberships.md | 2 +- .../examples/users/list-mfa-factors.md | 2 +- .../examples/users/list-sessions.md | 2 +- .../examples/users/list-targets.md | 2 +- .../1.8.x/server-rest/examples/users/list.md | 2 +- .../users/update-email-verification.md | 2 +- .../examples/users/update-email.md | 2 +- .../examples/users/update-labels.md | 2 +- .../users/update-mfa-recovery-codes.md | 2 +- .../server-rest/examples/users/update-mfa.md | 2 +- .../server-rest/examples/users/update-name.md | 2 +- .../examples/users/update-password.md | 2 +- .../users/update-phone-verification.md | 2 +- .../examples/users/update-phone.md | 2 +- .../examples/users/update-prefs.md | 2 +- .../examples/users/update-status.md | 2 +- .../examples/users/update-target.md | 2 +- .../examples/databases/create-document.md | 3 +- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 7 ++-- .../examples/databases/upsert-documents.md | 5 ++- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 19 ----------- .../examples/grids/create-database.md | 16 --------- .../examples/grids/create-datetime-column.md | 19 ----------- .../examples/grids/create-email-column.md | 19 ----------- .../examples/grids/create-enum-column.md | 20 ----------- .../examples/grids/create-float-column.md | 21 ------------ .../examples/grids/create-index.md | 21 ------------ .../examples/grids/create-integer-column.md | 21 ------------ .../examples/grids/create-ip-column.md | 19 ----------- .../grids/create-relationship-column.md | 22 ------------- .../server-ruby/examples/grids/create-row.md | 18 ---------- .../server-ruby/examples/grids/create-rows.md | 16 --------- .../examples/grids/create-string-column.md | 21 ------------ .../examples/grids/create-table.md | 19 ----------- .../examples/grids/create-url-column.md | 19 ----------- .../examples/grids/decrement-row-column.md | 19 ----------- .../examples/grids/delete-column.md | 16 --------- .../examples/grids/delete-database.md | 14 -------- .../examples/grids/delete-index.md | 16 --------- .../server-ruby/examples/grids/delete-row.md | 16 --------- .../server-ruby/examples/grids/delete-rows.md | 16 --------- .../examples/grids/delete-table.md | 15 --------- .../server-ruby/examples/grids/get-column.md | 16 --------- .../examples/grids/get-database.md | 14 -------- .../server-ruby/examples/grids/get-index.md | 16 --------- .../server-ruby/examples/grids/get-row.md | 17 ---------- .../server-ruby/examples/grids/get-table.md | 15 --------- .../examples/grids/increment-row-column.md | 19 ----------- .../examples/grids/list-columns.md | 16 --------- .../examples/grids/list-databases.md | 15 --------- .../examples/grids/list-indexes.md | 16 --------- .../server-ruby/examples/grids/list-rows.md | 16 --------- .../server-ruby/examples/grids/list-tables.md | 16 --------- .../examples/grids/update-boolean-column.md | 19 ----------- .../examples/grids/update-database.md | 16 --------- .../examples/grids/update-datetime-column.md | 19 ----------- .../examples/grids/update-email-column.md | 19 ----------- .../examples/grids/update-enum-column.md | 20 ----------- .../examples/grids/update-float-column.md | 21 ------------ .../examples/grids/update-integer-column.md | 21 ------------ .../examples/grids/update-ip-column.md | 19 ----------- .../grids/update-relationship-column.md | 18 ---------- .../server-ruby/examples/grids/update-row.md | 18 ---------- .../server-ruby/examples/grids/update-rows.md | 17 ---------- .../examples/grids/update-string-column.md | 20 ----------- .../examples/grids/update-table.md | 19 ----------- .../examples/grids/update-url-column.md | 19 ----------- .../server-ruby/examples/grids/upsert-row.md | 18 ---------- .../server-ruby/examples/grids/upsert-rows.md | 16 --------- .../examples/databases/create-document.md | 3 +- .../examples/databases/create-documents.md | 2 +- .../examples/databases/upsert-document.md | 7 ++-- .../examples/databases/upsert-documents.md | 5 ++- .../examples/functions/create-execution.md | 2 +- .../examples/grids/create-boolean-column.md | 18 ---------- .../examples/grids/create-database.md | 15 --------- .../examples/grids/create-datetime-column.md | 18 ---------- .../examples/grids/create-email-column.md | 18 ---------- .../examples/grids/create-enum-column.md | 19 ----------- .../examples/grids/create-float-column.md | 20 ----------- .../examples/grids/create-index.md | 20 ----------- .../examples/grids/create-integer-column.md | 20 ----------- .../examples/grids/create-ip-column.md | 18 ---------- .../grids/create-relationship-column.md | 21 ------------ .../server-swift/examples/grids/create-row.md | 17 ---------- .../examples/grids/create-rows.md | 15 --------- .../examples/grids/create-string-column.md | 20 ----------- .../examples/grids/create-table.md | 18 ---------- .../examples/grids/create-url-column.md | 18 ---------- .../examples/grids/decrement-row-column.md | 18 ---------- .../examples/grids/delete-column.md | 15 --------- .../examples/grids/delete-database.md | 13 -------- .../examples/grids/delete-index.md | 15 --------- .../server-swift/examples/grids/delete-row.md | 15 --------- .../examples/grids/delete-rows.md | 15 --------- .../examples/grids/delete-table.md | 14 -------- .../server-swift/examples/grids/get-column.md | 15 --------- .../examples/grids/get-database.md | 13 -------- .../server-swift/examples/grids/get-index.md | 15 --------- .../server-swift/examples/grids/get-row.md | 16 --------- .../server-swift/examples/grids/get-table.md | 14 -------- .../examples/grids/increment-row-column.md | 18 ---------- .../examples/grids/list-columns.md | 15 --------- .../examples/grids/list-databases.md | 14 -------- .../examples/grids/list-indexes.md | 15 --------- .../server-swift/examples/grids/list-rows.md | 15 --------- .../examples/grids/list-tables.md | 15 --------- .../examples/grids/update-boolean-column.md | 18 ---------- .../examples/grids/update-database.md | 15 --------- .../examples/grids/update-datetime-column.md | 18 ---------- .../examples/grids/update-email-column.md | 18 ---------- .../examples/grids/update-enum-column.md | 19 ----------- .../examples/grids/update-float-column.md | 20 ----------- .../examples/grids/update-integer-column.md | 20 ----------- .../examples/grids/update-ip-column.md | 18 ---------- .../grids/update-relationship-column.md | 18 ---------- .../server-swift/examples/grids/update-row.md | 17 ---------- .../examples/grids/update-rows.md | 16 --------- .../examples/grids/update-string-column.md | 19 ----------- .../examples/grids/update-table.md | 18 ---------- .../examples/grids/update-url-column.md | 18 ---------- .../server-swift/examples/grids/upsert-row.md | 17 ---------- .../examples/grids/upsert-rows.md | 15 --------- 1284 files changed, 579 insertions(+), 14178 deletions(-) delete mode 100644 docs/examples/1.8.x/client-android/java/grids/create-row.md delete mode 100644 docs/examples/1.8.x/client-android/java/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/client-android/java/grids/get-row.md delete mode 100644 docs/examples/1.8.x/client-android/java/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/client-android/java/grids/update-row.md delete mode 100644 docs/examples/1.8.x/client-android/java/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/create-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/get-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/update-row.md delete mode 100644 docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/client-web/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/client-web/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-database.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-index.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-table.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-database.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-index.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/delete-table.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-database.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-index.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/get-table.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-columns.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-databases.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/list-tables.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-database.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-rows.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-table.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md delete mode 100644 docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md diff --git a/docs/examples/1.8.x/client-android/java/databases/create-document.md b/docs/examples/1.8.x/client-android/java/databases/create-document.md index 4804d751e3..7fb129bb0b 100644 --- a/docs/examples/1.8.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/create-document.md @@ -4,7 +4,9 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT(""); // Your secret JSON Web Token Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/client-android/java/databases/upsert-document.md b/docs/examples/1.8.x/client-android/java/databases/upsert-document.md index 868576b982..ba7336f3f9 100644 --- a/docs/examples/1.8.x/client-android/java/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/upsert-document.md @@ -4,7 +4,9 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT(""); // Your secret JSON Web Token Databases databases = new Databases(client); @@ -12,8 +14,6 @@ databases.upsertDocument( "", // databaseId "", // collectionId "", // documentId - mapOf( "a" to "b" ), // data - listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/client-android/java/functions/create-execution.md b/docs/examples/1.8.x/client-android/java/functions/create-execution.md index 06c50278a5..c138b0ef86 100644 --- a/docs/examples/1.8.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.8.x/client-android/java/functions/create-execution.md @@ -15,7 +15,7 @@ functions.createExecution( "", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) - "", // scheduledAt (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/client-android/java/grids/create-row.md b/docs/examples/1.8.x/client-android/java/grids/create-row.md deleted file mode 100644 index 93cea1f09c..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/create-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.createRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/delete-row.md b/docs/examples/1.8.x/client-android/java/grids/delete-row.md deleted file mode 100644 index a73c03a06e..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/delete-row.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.deleteRow( - "", // databaseId - "", // tableId - "", // rowId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/get-row.md b/docs/examples/1.8.x/client-android/java/grids/get-row.md deleted file mode 100644 index 4968759d6b..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/get-row.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.getRow( - "", // databaseId - "", // tableId - "", // rowId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/list-rows.md b/docs/examples/1.8.x/client-android/java/grids/list-rows.md deleted file mode 100644 index 55336dc452..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/list-rows.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.listRows( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/update-row.md b/docs/examples/1.8.x/client-android/java/grids/update-row.md deleted file mode 100644 index 23dc0907eb..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/update-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.updateRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/upsert-row.md b/docs/examples/1.8.x/client-android/java/grids/upsert-row.md deleted file mode 100644 index 3938fde103..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/upsert-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.upsertRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md index 849a636afb..0bafb315e7 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md @@ -4,7 +4,9 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("") // Your secret JSON Web Token val databases = Databases(client) diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md index a31dfc8797..7939fde2be 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md @@ -4,7 +4,9 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("") // Your secret JSON Web Token val databases = Databases(client) @@ -12,6 +14,4 @@ val result = databases.upsertDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), - permissions = listOf("read("any")"), // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.8.x/client-android/kotlin/functions/create-execution.md index 5e1950b8d9..cb7c60bac1 100644 --- a/docs/examples/1.8.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.8.x/client-android/kotlin/functions/create-execution.md @@ -15,5 +15,5 @@ val result = functions.createExecution( path = "", // (optional) method = ExecutionMethod.GET, // (optional) headers = mapOf( "a" to "b" ), // (optional) - scheduledAt = "", // (optional) + scheduledAt = "", // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md deleted file mode 100644 index 5b29ac0db0..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.createRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), - permissions = listOf("read("any")"), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md deleted file mode 100644 index e85ff6c4ad..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.deleteRow( - databaseId = "", - tableId = "", - rowId = "", -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md deleted file mode 100644 index 0b6c313645..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.getRow( - databaseId = "", - tableId = "", - rowId = "", - queries = listOf(), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md b/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md deleted file mode 100644 index 153e62787f..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.listRows( - databaseId = "", - tableId = "", - queries = listOf(), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md deleted file mode 100644 index 8dff0b157c..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.updateRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), // (optional) - permissions = listOf("read("any")"), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md deleted file mode 100644 index a6f5bb846e..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.upsertRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), // (optional) - permissions = listOf("read("any")"), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md index 51adb64bb3..6c2baee728 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md @@ -2,7 +2,9 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("") // Your secret JSON Web Token let databases = Databases(client) diff --git a/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md index 3e1bf83a66..bb713146ec 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md @@ -2,15 +2,15 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("") // Your secret JSON Web Token let databases = Databases(client) let document = try await databases.upsertDocument( databaseId: "", collectionId: "", - documentId: "", - data: [:], - permissions: ["read("any")"] // optional + documentId: "" ) diff --git a/docs/examples/1.8.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.8.x/client-apple/examples/functions/create-execution.md index b7311df846..7470e9ebf6 100644 --- a/docs/examples/1.8.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-apple/examples/functions/create-execution.md @@ -14,6 +14,6 @@ let execution = try await functions.createExecution( path: "", // optional method: .gET, // optional headers: [:], // optional - scheduledAt: "" // optional + scheduledAt: "" // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/grids/create-row.md b/docs/examples/1.8.x/client-apple/examples/grids/create-row.md deleted file mode 100644 index 0739b27949..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/create-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let row = try await grids.createRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md b/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md deleted file mode 100644 index 58ae835ec5..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let result = try await grids.deleteRow( - databaseId: "", - tableId: "", - rowId: "" -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/get-row.md b/docs/examples/1.8.x/client-apple/examples/grids/get-row.md deleted file mode 100644 index fccdad1f34..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let row = try await grids.getRow( - databaseId: "", - tableId: "", - rowId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md b/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md deleted file mode 100644 index 1b4d885a64..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let rowList = try await grids.listRows( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/update-row.md b/docs/examples/1.8.x/client-apple/examples/grids/update-row.md deleted file mode 100644 index 95a3611a92..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let row = try await grids.updateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md deleted file mode 100644 index c5638a4881..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let row = try await grids.upsertRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md index 27efc34580..4f286fff95 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md @@ -2,7 +2,9 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token Databases databases = Databases(client); diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md index 398a99cb1d..ec3af47c3a 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md @@ -2,7 +2,9 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token Databases databases = Databases(client); @@ -10,6 +12,4 @@ Document result = await databases.upsertDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, - permissions: ["read("any")"], // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md index bbd7cd37a6..d2a3d9e00a 100644 --- a/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-flutter/examples/functions/create-execution.md @@ -13,5 +13,5 @@ Execution result = await functions.createExecution( path: '', // optional method: ExecutionMethod.gET, // optional headers: {}, // optional - scheduledAt: '', // optional + scheduledAt: '', // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md deleted file mode 100644 index 2f80a01806..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -Row result = await grids.createRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, - permissions: ["read("any")"], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md deleted file mode 100644 index 04f5aec544..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -await grids.deleteRow( - databaseId: '', - tableId: '', - rowId: '', -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md deleted file mode 100644 index a8a380ee7c..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -Row result = await grids.getRow( - databaseId: '', - tableId: '', - rowId: '', - queries: [], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md b/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md deleted file mode 100644 index 6654c57aaa..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -RowList result = await grids.listRows( - databaseId: '', - tableId: '', - queries: [], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md deleted file mode 100644 index 293f38877a..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -Row result = await grids.updateRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, // optional - permissions: ["read("any")"], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md deleted file mode 100644 index 2cec5621b7..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -Row result = await grids.upsertRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, // optional - permissions: ["read("any")"], // optional -); diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md index 9d1e753081..c381fe35a3 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md @@ -2,9 +2,7 @@ mutation { databasesUpsertDocument( databaseId: "", collectionId: "", - documentId: "", - data: "{}", - permissions: ["read("any")"] + documentId: "" ) { _id _sequence diff --git a/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md b/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md index 8979880723..1479aa3bb6 100644 --- a/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-graphql/examples/functions/create-execution.md @@ -6,7 +6,7 @@ mutation { path: "", method: "GET", headers: "{}", - scheduledAt: "" + scheduledAt: "" ) { _id _createdAt diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md deleted file mode 100644 index cffb7361f2..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsCreateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md deleted file mode 100644 index 40dcbdc219..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - gridsDeleteRow( - databaseId: "", - tableId: "", - rowId: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/get-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/get-row.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md b/docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md deleted file mode 100644 index 2bb105e8c0..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsUpdateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md deleted file mode 100644 index f8e0606109..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsUpsertRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md b/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md index 50161e433f..97e2150c39 100644 --- a/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md index 1b28231ed3..ec768fcfaf 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md @@ -2,7 +2,9 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token const databases = new Databases(client); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md index ae423d12a7..56d3af23ae 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md @@ -2,16 +2,16 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token const databases = new Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '', // documentId - {}, // data - ["read("any")"] // permissions (optional) + '' // documentId ); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md index 7d850c8103..72c71f7767 100644 --- a/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md @@ -13,7 +13,7 @@ const result = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md deleted file mode 100644 index 9fdbce2dd9..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md deleted file mode 100644 index 33a5a50a69..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md deleted file mode 100644 index 7df0636b2e..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md b/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md deleted file mode 100644 index 3fd58773ef..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md deleted file mode 100644 index 39b147758f..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md deleted file mode 100644 index 54443a6a4d..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.upsertRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md index b62c82a6a8..2079b045d1 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md @@ -1,6 +1,6 @@ POST /v1/account/sessions/anonymous HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md index 1103d2ebfb..8aee0e5b15 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ POST /v1/account/sessions/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md index 552b724b9c..98c5c9b454 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md b/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md index 62a7dee7e9..a8da4695c3 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md @@ -1,6 +1,6 @@ POST /v1/account/jwts HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md index 29d68bd0fa..a3db43516a 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/magic-url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-authenticator.md index 62a068b6cf..8d6b52b877 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md index dd5ef4c731..9a84c0ef69 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/challenge HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-recovery-codes.md index f09323df0b..797824d5d7 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md index d136722ec8..293170b490 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md @@ -1,4 +1,4 @@ GET /v1/account/sessions/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md index 8a0cab614f..dd1dd3ec5e 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md @@ -1,4 +1,4 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md index 5127c8377a..eef1021d9e 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-phone-verification.md b/docs/examples/1.8.x/client-rest/examples/account/create-phone-verification.md index 57b3b7d160..d161e580ff 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-phone-verification.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ POST /v1/account/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-push-target.md b/docs/examples/1.8.x/client-rest/examples/account/create-push-target.md index 459a2a2ecc..5844ccc19e 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-push-target.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-push-target.md @@ -1,7 +1,7 @@ POST /v1/account/targets/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-recovery.md b/docs/examples/1.8.x/client-rest/examples/account/create-recovery.md index ea0146228b..c195b96a5e 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-recovery.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-recovery.md @@ -1,7 +1,7 @@ POST /v1/account/recovery HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-session.md index 0acc50cda6..18e3b1acdd 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-session.md @@ -1,7 +1,7 @@ POST /v1/account/sessions/token HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-verification.md b/docs/examples/1.8.x/client-rest/examples/account/create-verification.md index ed5479dbe5..1185d3a875 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-verification.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-verification.md @@ -1,7 +1,7 @@ POST /v1/account/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create.md b/docs/examples/1.8.x/client-rest/examples/account/create.md index 15bb386f41..f546c07de5 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create.md @@ -1,7 +1,7 @@ POST /v1/account HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-identity.md b/docs/examples/1.8.x/client-rest/examples/account/delete-identity.md index bacca18870..edb036a593 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-identity.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/account/identities/{identityId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/delete-mfa-authenticator.md index a0eb5a0869..de58948195 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-push-target.md b/docs/examples/1.8.x/client-rest/examples/account/delete-push-target.md index 9ec6e20d27..fdfc75a41b 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-push-target.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ DELETE /v1/account/targets/{targetId}/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-session.md b/docs/examples/1.8.x/client-rest/examples/account/delete-session.md index c9b0f48d6f..9454a84913 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-sessions.md b/docs/examples/1.8.x/client-rest/examples/account/delete-sessions.md index 0b3fcd1c45..97931c12e5 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-sessions.md +++ b/docs/examples/1.8.x/client-rest/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/get-mfa-recovery-codes.md index 2ab10a2475..81edee5234 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/account/get-mfa-recovery-codes.md @@ -1,6 +1,6 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/get-prefs.md b/docs/examples/1.8.x/client-rest/examples/account/get-prefs.md index a038dacbfd..13a0b74d8f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/get-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/get-session.md b/docs/examples/1.8.x/client-rest/examples/account/get-session.md index 3e372a05ef..9417755b04 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/get-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/get-session.md @@ -1,6 +1,6 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/get.md b/docs/examples/1.8.x/client-rest/examples/account/get.md index 104b643074..023a6d116f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/get.md +++ b/docs/examples/1.8.x/client-rest/examples/account/get.md @@ -1,6 +1,6 @@ GET /v1/account HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-identities.md b/docs/examples/1.8.x/client-rest/examples/account/list-identities.md index 5acb221584..65edceb8d6 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/list-identities.md +++ b/docs/examples/1.8.x/client-rest/examples/account/list-identities.md @@ -1,6 +1,6 @@ GET /v1/account/identities HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-logs.md b/docs/examples/1.8.x/client-rest/examples/account/list-logs.md index 8314123c9e..71e2e138ef 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/list-logs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/list-logs.md @@ -1,6 +1,6 @@ GET /v1/account/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/client-rest/examples/account/list-mfa-factors.md index c591143d4e..217ec6cb30 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/client-rest/examples/account/list-mfa-factors.md @@ -1,6 +1,6 @@ GET /v1/account/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-sessions.md b/docs/examples/1.8.x/client-rest/examples/account/list-sessions.md index 89ef6962c9..7bff23f25b 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/list-sessions.md +++ b/docs/examples/1.8.x/client-rest/examples/account/list-sessions.md @@ -1,6 +1,6 @@ GET /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-email.md b/docs/examples/1.8.x/client-rest/examples/account/update-email.md index 382327e31b..fc3baaf4a4 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-email.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/account/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md b/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md index a22b169751..803c47a857 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ PATCH /v1/account/mfa HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md index 1a82afbfcc..3238322e0f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ PUT /v1/account/sessions/magic-url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-authenticator.md index 780472291c..9d3e5dceea 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-challenge.md index b6a7e92b28..ddc27ae334 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ PUT /v1/account/mfa/challenge HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-recovery-codes.md index 74e9225f3e..e4ab8abb3b 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-name.md b/docs/examples/1.8.x/client-rest/examples/account/update-name.md index 4c9c0e302c..f2f7caa204 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-name.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-name.md @@ -1,7 +1,7 @@ PATCH /v1/account/name HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-password.md b/docs/examples/1.8.x/client-rest/examples/account/update-password.md index e05a1c2b7f..4f69b9ab3f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-password.md @@ -1,7 +1,7 @@ PATCH /v1/account/password HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md index 54872eecd2..f1bc27d201 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ PUT /v1/account/sessions/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-phone-verification.md b/docs/examples/1.8.x/client-rest/examples/account/update-phone-verification.md index 1d4dc22520..ee6f5a68ff 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-phone-verification.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ PUT /v1/account/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-phone.md b/docs/examples/1.8.x/client-rest/examples/account/update-phone.md index 791caadb0d..bbe602a181 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-phone.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-phone.md @@ -1,7 +1,7 @@ PATCH /v1/account/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md index 24f2d3bcb6..aeabc2b68f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md @@ -1,7 +1,7 @@ PATCH /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-push-target.md b/docs/examples/1.8.x/client-rest/examples/account/update-push-target.md index 95210b5a1c..2e42a2d67f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-push-target.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-push-target.md @@ -1,7 +1,7 @@ PUT /v1/account/targets/{targetId}/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md index 7d40ee79fe..054aacc8ed 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md @@ -1,7 +1,7 @@ PUT /v1/account/recovery HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-session.md index 8e2257aeed..9b2ba0e4a7 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-session.md @@ -1,7 +1,7 @@ PATCH /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-status.md b/docs/examples/1.8.x/client-rest/examples/account/update-status.md index 557697fe5f..8a3e01db0b 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-status.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-status.md @@ -1,7 +1,7 @@ PATCH /v1/account/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-verification.md b/docs/examples/1.8.x/client-rest/examples/account/update-verification.md index a4dcbf76a3..0c5ed8b55d 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-verification.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-verification.md @@ -1,7 +1,7 @@ PUT /v1/account/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-browser.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-browser.md index 9de9d99173..e5f6f22ab5 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-browser.md @@ -1,6 +1,6 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-credit-card.md index ed30226d3b..ab513115f8 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-credit-card.md @@ -1,6 +1,6 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-favicon.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-favicon.md index 8eaca9452e..837dba633c 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-favicon.md @@ -1,6 +1,6 @@ GET /v1/avatars/favicon HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-flag.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-flag.md index 07172e89d8..d0c92d7c02 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-flag.md @@ -1,6 +1,6 @@ GET /v1/avatars/flags/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-image.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-image.md index 98d4898e6f..2f80018f20 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-image.md @@ -1,6 +1,6 @@ GET /v1/avatars/image HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-initials.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-initials.md index 93a70a80ab..f3879b5d52 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-initials.md @@ -1,6 +1,6 @@ GET /v1/avatars/initials HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md index 39e513c810..263c54742c 100644 --- a/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md @@ -1,6 +1,6 @@ GET /v1/avatars/qr HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md index e9b165e2ac..3126197555 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/delete-document.md b/docs/examples/1.8.x/client-rest/examples/databases/delete-document.md index 2ee4f92ec4..6b86aba853 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/delete-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/delete-document.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/get-document.md b/docs/examples/1.8.x/client-rest/examples/databases/get-document.md index dac5e48131..a32db40087 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/get-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/get-document.md @@ -1,6 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/list-documents.md b/docs/examples/1.8.x/client-rest/examples/databases/list-documents.md index e5c4936d6f..22ca529e89 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/list-documents.md @@ -1,6 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/update-document.md b/docs/examples/1.8.x/client-rest/examples/databases/update-document.md index ffc5d36011..945b957c6e 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/update-document.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md index d2baeac6a8..7cfa380a40 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md @@ -1,12 +1,8 @@ PUT /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/functions/create-execution.md b/docs/examples/1.8.x/client-rest/examples/functions/create-execution.md index 4ae83f3096..fec92ddab0 100644 --- a/docs/examples/1.8.x/client-rest/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-rest/examples/functions/create-execution.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: @@ -12,5 +12,5 @@ X-Appwrite-JWT: "path": "", "method": "GET", "headers": {}, - "scheduledAt": "" + "scheduledAt": } diff --git a/docs/examples/1.8.x/client-rest/examples/functions/get-execution.md b/docs/examples/1.8.x/client-rest/examples/functions/get-execution.md index e2f3e97d10..7df2f3acbe 100644 --- a/docs/examples/1.8.x/client-rest/examples/functions/get-execution.md +++ b/docs/examples/1.8.x/client-rest/examples/functions/get-execution.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/functions/list-executions.md b/docs/examples/1.8.x/client-rest/examples/functions/list-executions.md index 445ed1fa83..b2ab0e05d1 100644 --- a/docs/examples/1.8.x/client-rest/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/client-rest/examples/functions/list-executions.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/graphql/mutation.md b/docs/examples/1.8.x/client-rest/examples/graphql/mutation.md index 4080765d58..db3b1c0c78 100644 --- a/docs/examples/1.8.x/client-rest/examples/graphql/mutation.md +++ b/docs/examples/1.8.x/client-rest/examples/graphql/mutation.md @@ -2,7 +2,7 @@ POST /v1/graphql/mutation HTTP/1.1 Host: cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/graphql/query.md b/docs/examples/1.8.x/client-rest/examples/graphql/query.md index b05ce724c8..8fc41efcfe 100644 --- a/docs/examples/1.8.x/client-rest/examples/graphql/query.md +++ b/docs/examples/1.8.x/client-rest/examples/graphql/query.md @@ -2,7 +2,7 @@ POST /v1/graphql HTTP/1.1 Host: cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/create-row.md b/docs/examples/1.8.x/client-rest/examples/grids/create-row.md deleted file mode 100644 index 98b261ecba..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/create-row.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "rowId": "", - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md b/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md deleted file mode 100644 index 6f702a8526..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md +++ /dev/null @@ -1,8 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/client-rest/examples/grids/get-row.md b/docs/examples/1.8.x/client-rest/examples/grids/get-row.md deleted file mode 100644 index 876fe0f796..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/get-row.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md b/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md deleted file mode 100644 index 86751cfcaf..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/update-row.md b/docs/examples/1.8.x/client-rest/examples/grids/update-row.md deleted file mode 100644 index bacfb5389a..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/update-row.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md deleted file mode 100644 index 7368fc436d..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md +++ /dev/null @@ -1,12 +0,0 @@ -PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/locale/get.md b/docs/examples/1.8.x/client-rest/examples/locale/get.md index 8f8a1741e6..0d67644583 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/get.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/get.md @@ -1,6 +1,6 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md b/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md index 61110f6527..f362c5987e 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md @@ -1,6 +1,6 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md b/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md index cb96cc4e16..93db4fb302 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md @@ -1,6 +1,6 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md index d4de74a879..09eba6168f 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md index 0e1ed67a7d..94ef0bb943 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md index 58e487a875..dc8289980a 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md @@ -1,6 +1,6 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md b/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md index a3a9b96c48..9a3af20c94 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md @@ -1,6 +1,6 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md b/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md index 8c7cbabddf..7d90c8b40a 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md @@ -1,6 +1,6 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md b/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md index 708ec0782a..94e98c4438 100644 --- a/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md index 1cb9c3e516..e5ac0830a3 100644 --- a/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md index 0f83797b70..f044b577b2 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md b/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md index e00392a525..8d074341fe 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md index 92991d0727..58c9c6d276 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md index e84dd4dd85..ff24de4ec4 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md index f482706f6f..9c95a2b48f 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file.md index 4f929caadf..ffb3703fe1 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/list-files.md b/docs/examples/1.8.x/client-rest/examples/storage/list-files.md index 977bb9e713..d1258b97de 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/list-files.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/list-files.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/update-file.md b/docs/examples/1.8.x/client-rest/examples/storage/update-file.md index fed35bb860..210433622b 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/update-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/update-file.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md index f96f20c2b8..83e4803502 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md @@ -1,7 +1,7 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/create.md b/docs/examples/1.8.x/client-rest/examples/teams/create.md index 33cf95ba01..c80b2bda8e 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/create.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/create.md @@ -1,7 +1,7 @@ POST /v1/teams HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md index 8da481d5cf..0fc17e11ee 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/delete.md b/docs/examples/1.8.x/client-rest/examples/teams/delete.md index d1dc59c23a..ad614b17d1 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/delete.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/delete.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md index 6e7379b0d7..dbe034f34b 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md b/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md index e541fd3fd8..ddb863181d 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get.md b/docs/examples/1.8.x/client-rest/examples/teams/get.md index 32d9156267..730d23a03b 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md b/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md index 4e364053b3..82a9f82c33 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/list.md b/docs/examples/1.8.x/client-rest/examples/teams/list.md index e5f0439a13..00a419269a 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/list.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/list.md @@ -1,6 +1,6 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md b/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md index da2c9189cd..9d828118f0 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md index b1010ea460..3768499d16 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-name.md b/docs/examples/1.8.x/client-rest/examples/teams/update-name.md index cd92d686ce..ec381348e8 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-name.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-name.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md b/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md index e17dcdb260..1db6300350 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-web/examples/databases/create-document.md b/docs/examples/1.8.x/client-web/examples/databases/create-document.md index 916cc92689..401a67488c 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/create-document.md @@ -2,7 +2,9 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token const databases = new Databases(client); diff --git a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md index cfefe06242..a581396da8 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md @@ -2,16 +2,16 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT(''); // Your secret JSON Web Token const databases = new Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '', // documentId - {}, // data - ["read("any")"] // permissions (optional) + '' // documentId ); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/functions/create-execution.md b/docs/examples/1.8.x/client-web/examples/functions/create-execution.md index be9bb508c0..8f07523b2b 100644 --- a/docs/examples/1.8.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-web/examples/functions/create-execution.md @@ -13,7 +13,7 @@ const result = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/create-row.md b/docs/examples/1.8.x/client-web/examples/grids/create-row.md deleted file mode 100644 index 9dc6de2769..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/delete-row.md b/docs/examples/1.8.x/client-web/examples/grids/delete-row.md deleted file mode 100644 index 7d3fb7df7e..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/get-row.md b/docs/examples/1.8.x/client-web/examples/grids/get-row.md deleted file mode 100644 index 778377b61b..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/list-rows.md b/docs/examples/1.8.x/client-web/examples/grids/list-rows.md deleted file mode 100644 index 07de125329..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/update-row.md b/docs/examples/1.8.x/client-web/examples/grids/update-row.md deleted file mode 100644 index f37659e3ca..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md deleted file mode 100644 index 8850c27ebd..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.upsertRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md b/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md index 40932014ba..151e466d02 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md @@ -1,6 +1,4 @@ appwrite databases upsertDocument \ --databaseId \ --collectionId \ - --documentId \ - --data '{ "key": "value" }' \ - + --documentId diff --git a/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md b/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md index cb1677b14c..30c7dc5b4b 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md @@ -1,4 +1,3 @@ appwrite databases upsertDocuments \ --databaseId \ - --collectionId \ - --documents one two three + --collectionId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md deleted file mode 100644 index 3a26ed2935..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createBooleanColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-database.md b/docs/examples/1.8.x/console-cli/examples/grids/create-database.md deleted file mode 100644 index 741d5f83ee..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-database.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids createDatabase \ - --databaseId \ - --name \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md deleted file mode 100644 index 1efced687d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createDatetimeColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md deleted file mode 100644 index f0758d2753..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createEmailColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md deleted file mode 100644 index e6ca5fdbd6..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite grids createEnumColumn \ - --databaseId \ - --tableId \ - --key '' \ - --elements one two three \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md deleted file mode 100644 index a17535614d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids createFloatColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-index.md b/docs/examples/1.8.x/console-cli/examples/grids/create-index.md deleted file mode 100644 index 9b92ecc614..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-index.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite grids createIndex \ - --databaseId \ - --tableId \ - --key '' \ - --type key \ - --columns one two three \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md deleted file mode 100644 index 0e7d408fea..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids createIntegerColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md deleted file mode 100644 index bc16e6b9a7..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createIpColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md deleted file mode 100644 index d60fd4516a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids createRelationshipColumn \ - --databaseId \ - --tableId \ - --relatedTableId \ - --type oneToOne \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-row.md b/docs/examples/1.8.x/console-cli/examples/grids/create-row.md deleted file mode 100644 index f59ac8253c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-row.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite grids createRow \ - --databaseId \ - --tableId \ - --rowId \ - --data '{ "key": "value" }' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md deleted file mode 100644 index 8d89674dc6..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids createRows \ - --databaseId \ - --tableId \ - --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md deleted file mode 100644 index 658bedec06..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids createStringColumn \ - --databaseId \ - --tableId \ - --key '' \ - --size 1 \ - --required false \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-table.md b/docs/examples/1.8.x/console-cli/examples/grids/create-table.md deleted file mode 100644 index 9e707fde1c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-table.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createTable \ - --databaseId \ - --tableId \ - --name \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md deleted file mode 100644 index 88adbdbb5d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createUrlColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md deleted file mode 100644 index f3c1a50c2d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids decrementRowColumn \ - --databaseId \ - --tableId \ - --rowId \ - --column '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md deleted file mode 100644 index 0b60af67cc..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids deleteColumn \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md deleted file mode 100644 index c5e0ad3c63..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite grids deleteDatabase \ - --databaseId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md deleted file mode 100644 index 0a1f6dc404..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids deleteIndex \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md deleted file mode 100644 index b360f6919a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids deleteRow \ - --databaseId \ - --tableId \ - --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md deleted file mode 100644 index 46b768f28d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids deleteRows \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md deleted file mode 100644 index 416a07052d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids deleteTable \ - --databaseId \ - --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-column.md b/docs/examples/1.8.x/console-cli/examples/grids/get-column.md deleted file mode 100644 index f875d56d33..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-column.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids getColumn \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md deleted file mode 100644 index 0c35ea978d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids getDatabaseUsage \ - --databaseId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-database.md b/docs/examples/1.8.x/console-cli/examples/grids/get-database.md deleted file mode 100644 index f2232bb5c0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-database.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite grids getDatabase \ - --databaseId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-index.md b/docs/examples/1.8.x/console-cli/examples/grids/get-index.md deleted file mode 100644 index 6f88f74c23..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-index.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids getIndex \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-row.md b/docs/examples/1.8.x/console-cli/examples/grids/get-row.md deleted file mode 100644 index 73cc207eec..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-row.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite grids getRow \ - --databaseId \ - --tableId \ - --rowId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md deleted file mode 100644 index e4002ec61e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids getTableUsage \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-table.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table.md deleted file mode 100644 index e44c98ad83..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-table.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids getTable \ - --databaseId \ - --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md b/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md deleted file mode 100644 index b4b84b6392..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids incrementRowColumn \ - --databaseId \ - --tableId \ - --rowId \ - --column '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md b/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md deleted file mode 100644 index 968643bb6c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listColumns \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md deleted file mode 100644 index c135a2b358..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids listDatabaseLogs \ - --databaseId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md deleted file mode 100644 index f13c4e4e0a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite grids listDatabaseUsage \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md b/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md deleted file mode 100644 index 11d448043a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids listDatabases \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md deleted file mode 100644 index 85df307deb..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listIndexes \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md deleted file mode 100644 index 3a073e4708..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite grids listRowLogs \ - --databaseId \ - --tableId \ - --rowId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md deleted file mode 100644 index 99bf470bfb..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listRows \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md deleted file mode 100644 index e38af040a6..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listTableLogs \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md b/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md deleted file mode 100644 index 69f464ba86..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listTables \ - --databaseId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md deleted file mode 100644 index a980b12aa0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateBooleanColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default false \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-database.md b/docs/examples/1.8.x/console-cli/examples/grids/update-database.md deleted file mode 100644 index 079e88dfd0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-database.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids updateDatabase \ - --databaseId \ - --name \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md deleted file mode 100644 index 97ee021e80..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateDatetimeColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default '' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md deleted file mode 100644 index d8b0827d62..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateEmailColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default email@example.com \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md deleted file mode 100644 index 82eb62f996..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite grids updateEnumColumn \ - --databaseId \ - --tableId \ - --key '' \ - --elements one two three \ - --required false \ - --default \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md deleted file mode 100644 index ef3a4ad36f..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids updateFloatColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default null \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md deleted file mode 100644 index 5b83ca938b..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids updateIntegerColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default null \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md deleted file mode 100644 index b0e6b8cf3a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateIpColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default '' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md deleted file mode 100644 index 00ddda788c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite grids updateRelationshipColumn \ - --databaseId \ - --tableId \ - --key '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-row.md b/docs/examples/1.8.x/console-cli/examples/grids/update-row.md deleted file mode 100644 index b89566b570..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-row.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite grids updateRow \ - --databaseId \ - --tableId \ - --rowId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md deleted file mode 100644 index 72c63ddb41..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite grids updateRows \ - --databaseId \ - --tableId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md deleted file mode 100644 index a6b6280560..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite grids updateStringColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-table.md b/docs/examples/1.8.x/console-cli/examples/grids/update-table.md deleted file mode 100644 index 66e26b1752..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-table.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateTable \ - --databaseId \ - --tableId \ - --name \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md deleted file mode 100644 index ad41af9fa1..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateUrlColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default https://example.com \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md b/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md deleted file mode 100644 index 8a356e7a1e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite grids upsertRow \ - --databaseId \ - --tableId \ - --rowId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md deleted file mode 100644 index e4e31c1e83..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids upsertRows \ - --databaseId \ - --tableId \ - --rows one two three diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-document.md b/docs/examples/1.8.x/console-web/examples/databases/create-document.md index 1b96d07899..4524017dd5 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-document.md @@ -2,7 +2,9 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setSession('') // + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token const databases = new Databases(client); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-documents.md b/docs/examples/1.8.x/console-web/examples/databases/create-documents.md index 09f3007208..f7ffbe809c 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-documents.md @@ -2,7 +2,8 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setAdmin('') // + .setKey(''); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md index 3b89ed3aef..6d92656543 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md @@ -2,16 +2,16 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setSession('') // + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token const databases = new Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '', // documentId - {}, // data - ["read("any")"] // permissions (optional) + '' // documentId ); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/upsert-documents.md b/docs/examples/1.8.x/console-web/examples/databases/upsert-documents.md index 2d12f7caec..519b0ec160 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/console-web/examples/databases/upsert-documents.md @@ -2,14 +2,14 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setAdmin('') // + .setKey(''); // Your secret API key const databases = new Databases(client); const result = await databases.upsertDocuments( '', // databaseId - '', // collectionId - [] // documents + '' // collectionId ); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-execution.md b/docs/examples/1.8.x/console-web/examples/functions/create-execution.md index 1886a831f2..813e1fd0a7 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-execution.md @@ -13,7 +13,7 @@ const result = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md deleted file mode 100644 index 5a61510aa7..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-database.md b/docs/examples/1.8.x/console-web/examples/grids/create-database.md deleted file mode 100644 index b7eeb33253..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-database.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createDatabase( - '', // databaseId - '', // name - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md deleted file mode 100644 index 7580178d62..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md deleted file mode 100644 index 9e44cbbd66..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md deleted file mode 100644 index c596b1408a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md deleted file mode 100644 index d1b4c21898..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-index.md b/docs/examples/1.8.x/console-web/examples/grids/create-index.md deleted file mode 100644 index 2c22cafde8..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-index.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids, IndexType } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createIndex( - '', // databaseId - '', // tableId - '', // key - IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md deleted file mode 100644 index 709694e358..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md deleted file mode 100644 index 1691d3fc81..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md deleted file mode 100644 index 5536e26488..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids, RelationshipType, RelationMutate } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRelationshipColumn( - '', // databaseId - '', // tableId - '', // relatedTableId - RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - RelationMutate.Cascade // onDelete (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-row.md b/docs/examples/1.8.x/console-web/examples/grids/create-row.md deleted file mode 100644 index f5259cff2d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-rows.md b/docs/examples/1.8.x/console-web/examples/grids/create-rows.md deleted file mode 100644 index ff84c045cb..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRows( - '', // databaseId - '', // tableId - [] // rows -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md deleted file mode 100644 index 4032caede0..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createStringColumn( - '', // databaseId - '', // tableId - '', // key - 1, // size - false, // required - '', // default (optional) - false, // array (optional) - false // encrypt (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-table.md b/docs/examples/1.8.x/console-web/examples/grids/create-table.md deleted file mode 100644 index 74227efe98..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-table.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createTable( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md deleted file mode 100644 index 4991da6cd6..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md deleted file mode 100644 index 6e0abb0ac8..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.decrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // min (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-column.md b/docs/examples/1.8.x/console-web/examples/grids/delete-column.md deleted file mode 100644 index 8e46121f01..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteColumn( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-database.md b/docs/examples/1.8.x/console-web/examples/grids/delete-database.md deleted file mode 100644 index b34b4adfdb..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-database.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteDatabase( - '' // databaseId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-index.md b/docs/examples/1.8.x/console-web/examples/grids/delete-index.md deleted file mode 100644 index 9e405de80f..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteIndex( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-row.md b/docs/examples/1.8.x/console-web/examples/grids/delete-row.md deleted file mode 100644 index cc49130d4f..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md b/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md deleted file mode 100644 index fdaa4278fa..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-table.md b/docs/examples/1.8.x/console-web/examples/grids/delete-table.md deleted file mode 100644 index 1817122ec3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-table.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteTable( - '', // databaseId - '' // tableId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-column.md b/docs/examples/1.8.x/console-web/examples/grids/get-column.md deleted file mode 100644 index 116cee2f24..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getColumn( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md deleted file mode 100644 index f961dc4fdf..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids, DatabaseUsageRange } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getDatabaseUsage( - '', // databaseId - DatabaseUsageRange.TwentyFourHours // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-database.md b/docs/examples/1.8.x/console-web/examples/grids/get-database.md deleted file mode 100644 index d41e9c2d45..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-database.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getDatabase( - '' // databaseId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-index.md b/docs/examples/1.8.x/console-web/examples/grids/get-index.md deleted file mode 100644 index 34880a8c0e..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getIndex( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-row.md b/docs/examples/1.8.x/console-web/examples/grids/get-row.md deleted file mode 100644 index 29b51f2225..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md deleted file mode 100644 index 5684786fb7..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids, GridUsageRange } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getTableUsage( - '', // databaseId - '', // tableId - GridUsageRange.TwentyFourHours // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-table.md b/docs/examples/1.8.x/console-web/examples/grids/get-table.md deleted file mode 100644 index b98d321f28..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-table.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getTable( - '', // databaseId - '' // tableId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md b/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md deleted file mode 100644 index 5177cd6c08..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.incrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // max (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-columns.md b/docs/examples/1.8.x/console-web/examples/grids/list-columns.md deleted file mode 100644 index cd72e91daf..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listColumns( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md deleted file mode 100644 index cf20dc6b49..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listDatabaseLogs( - '', // databaseId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md b/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md deleted file mode 100644 index 09faf5f2f5..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids, DatabaseUsageRange } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listDatabaseUsage( - DatabaseUsageRange.TwentyFourHours // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-databases.md b/docs/examples/1.8.x/console-web/examples/grids/list-databases.md deleted file mode 100644 index 871d29ebe8..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-databases.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listDatabases( - [], // queries (optional) - '' // search (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md b/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md deleted file mode 100644 index b8755d0b82..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listIndexes( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md deleted file mode 100644 index 0fcde33520..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listRowLogs( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-rows.md b/docs/examples/1.8.x/console-web/examples/grids/list-rows.md deleted file mode 100644 index 4eb3b71407..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md deleted file mode 100644 index e7f756886d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listTableLogs( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-tables.md b/docs/examples/1.8.x/console-web/examples/grids/list-tables.md deleted file mode 100644 index 9288788dfe..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-tables.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listTables( - '', // databaseId - [], // queries (optional) - '' // search (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md deleted file mode 100644 index 84dd95cd41..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-database.md b/docs/examples/1.8.x/console-web/examples/grids/update-database.md deleted file mode 100644 index abd6b285fd..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-database.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateDatabase( - '', // databaseId - '', // name - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md deleted file mode 100644 index 81fa471471..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md deleted file mode 100644 index 3a63b0d4d3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md deleted file mode 100644 index 7c6d2e1b03..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md deleted file mode 100644 index 6662f4b00f..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md deleted file mode 100644 index 95c0510a1a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md deleted file mode 100644 index e92db67751..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md deleted file mode 100644 index bdfd71f71c..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids, RelationMutate } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRelationshipColumn( - '', // databaseId - '', // tableId - '', // key - RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-row.md b/docs/examples/1.8.x/console-web/examples/grids/update-row.md deleted file mode 100644 index a86f5fd58b..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-rows.md b/docs/examples/1.8.x/console-web/examples/grids/update-rows.md deleted file mode 100644 index 939615a5bd..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRows( - '', // databaseId - '', // tableId - {}, // data (optional) - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md deleted file mode 100644 index b0b92f041e..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateStringColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - 1, // size (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-table.md b/docs/examples/1.8.x/console-web/examples/grids/update-table.md deleted file mode 100644 index 8988133beb..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-table.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateTable( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md deleted file mode 100644 index ecad0043a3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md b/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md deleted file mode 100644 index 66764b001a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.upsertRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md b/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md deleted file mode 100644 index b79a74d7e1..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.upsertRows( - '', // databaseId - '', // tableId - [] // rows -); - -console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md index 1d58fc586c..1c9af5112c 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md @@ -2,8 +2,9 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token Databases databases = Databases(client); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-documents.md b/docs/examples/1.8.x/server-dart/examples/databases/create-documents.md index ba0e34950b..f66ef9f1a9 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-documents.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setAdmin('') // .setKey(''); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md index 93e306ebce..f17f6cbbbd 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md @@ -2,8 +2,9 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token Databases databases = Databases(client); @@ -11,6 +12,4 @@ Document result = await databases.upsertDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, - permissions: ["read("any")"], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-dart/examples/databases/upsert-documents.md index cd35014f63..f60a37935a 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/upsert-documents.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setAdmin('') // .setKey(''); // Your secret API key Databases databases = Databases(client); @@ -10,5 +10,4 @@ Databases databases = Databases(client); DocumentList result = await databases.upsertDocuments( databaseId: '', collectionId: '', - documents: [], ); diff --git a/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md index 64b28d5f0c..2ae64bce55 100644 --- a/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-dart/examples/functions/create-execution.md @@ -14,5 +14,5 @@ Execution result = await functions.createExecution( path: '', // (optional) method: ExecutionMethod.gET, // (optional) headers: {}, // (optional) - scheduledAt: '', // (optional) + scheduledAt: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md deleted file mode 100644 index d462336207..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnBoolean result = await grids.createBooleanColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: false, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-database.md b/docs/examples/1.8.x/server-dart/examples/grids/create-database.md deleted file mode 100644 index d77e3747c9..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -Database result = await grids.createDatabase( - databaseId: '', - name: '', - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md deleted file mode 100644 index 88365e0d0f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnDatetime result = await grids.createDatetimeColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md deleted file mode 100644 index 69d6c03d8f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnEmail result = await grids.createEmailColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 'email@example.com', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md deleted file mode 100644 index a3a1e3ff60..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnEnum result = await grids.createEnumColumn( - databaseId: '', - tableId: '', - key: '', - elements: [], - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md deleted file mode 100644 index eba5e98ccc..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnFloat result = await grids.createFloatColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - min: 0, // (optional) - max: 0, // (optional) - xdefault: 0, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-index.md b/docs/examples/1.8.x/server-dart/examples/grids/create-index.md deleted file mode 100644 index 4926b9ec83..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnIndex result = await grids.createIndex( - databaseId: '', - tableId: '', - key: '', - type: IndexType.key, - columns: [], - orders: [], // (optional) - lengths: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md deleted file mode 100644 index d5bfdf3144..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnInteger result = await grids.createIntegerColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - min: 0, // (optional) - max: 0, // (optional) - xdefault: 0, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md deleted file mode 100644 index 91b83fde8c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnIp result = await grids.createIpColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md deleted file mode 100644 index 99f0427a85..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnRelationship result = await grids.createRelationshipColumn( - databaseId: '', - tableId: '', - relatedTableId: '', - type: RelationshipType.oneToOne, - twoWay: false, // (optional) - key: '', // (optional) - twoWayKey: '', // (optional) - onDelete: RelationMutate.cascade, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-row.md b/docs/examples/1.8.x/server-dart/examples/grids/create-row.md deleted file mode 100644 index 4db0893686..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -Row result = await grids.createRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, - permissions: ["read("any")"], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md deleted file mode 100644 index 111d061c3e..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -RowList result = await grids.createRows( - databaseId: '', - tableId: '', - rows: [], -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md deleted file mode 100644 index 74b9cb7fa6..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnString result = await grids.createStringColumn( - databaseId: '', - tableId: '', - key: '', - size: 1, - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) - encrypt: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-table.md b/docs/examples/1.8.x/server-dart/examples/grids/create-table.md deleted file mode 100644 index 1bb7afadd3..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-table.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -Table result = await grids.createTable( - databaseId: '', - tableId: '', - name: '', - permissions: ["read("any")"], // (optional) - rowSecurity: false, // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md deleted file mode 100644 index cc129fce97..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnUrl result = await grids.createUrlColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 'https://example.com', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md deleted file mode 100644 index ad0744dbc6..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -Row result = await grids.decrementRowColumn( - databaseId: '', - tableId: '', - rowId: '', - column: '', - value: 0, // (optional) - min: 0, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md deleted file mode 100644 index e326064f4f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteColumn( - databaseId: '', - tableId: '', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md deleted file mode 100644 index 0738454382..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteDatabase( - databaseId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md deleted file mode 100644 index 14dbccb979..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteIndex( - databaseId: '', - tableId: '', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md deleted file mode 100644 index 8a37455490..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -await grids.deleteRow( - databaseId: '', - tableId: '', - rowId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md deleted file mode 100644 index dd2214fc68..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteRows( - databaseId: '', - tableId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md deleted file mode 100644 index af29d31b87..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteTable( - databaseId: '', - tableId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-column.md b/docs/examples/1.8.x/server-dart/examples/grids/get-column.md deleted file mode 100644 index 4040124454..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - - result = await grids.getColumn( - databaseId: '', - tableId: '', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-database.md b/docs/examples/1.8.x/server-dart/examples/grids/get-database.md deleted file mode 100644 index e8a674b1ab..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-database.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -Database result = await grids.getDatabase( - databaseId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-index.md b/docs/examples/1.8.x/server-dart/examples/grids/get-index.md deleted file mode 100644 index 6e66a55b37..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnIndex result = await grids.getIndex( - databaseId: '', - tableId: '', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-row.md b/docs/examples/1.8.x/server-dart/examples/grids/get-row.md deleted file mode 100644 index da2a609d32..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -Row result = await grids.getRow( - databaseId: '', - tableId: '', - rowId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-table.md b/docs/examples/1.8.x/server-dart/examples/grids/get-table.md deleted file mode 100644 index d38fca0455..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-table.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -Table result = await grids.getTable( - databaseId: '', - tableId: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md deleted file mode 100644 index 14c041404c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -Row result = await grids.incrementRowColumn( - databaseId: '', - tableId: '', - rowId: '', - column: '', - value: 0, // (optional) - max: 0, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md b/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md deleted file mode 100644 index 222b5ba172..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnList result = await grids.listColumns( - databaseId: '', - tableId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md b/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md deleted file mode 100644 index 14e2c78b63..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -DatabaseList result = await grids.listDatabases( - queries: [], // (optional) - search: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md deleted file mode 100644 index 218c3e0ccc..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnIndexList result = await grids.listIndexes( - databaseId: '', - tableId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md deleted file mode 100644 index 49f2a7ef21..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -RowList result = await grids.listRows( - databaseId: '', - tableId: '', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md b/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md deleted file mode 100644 index 4f1e08b713..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -TableList result = await grids.listTables( - databaseId: '', - queries: [], // (optional) - search: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md deleted file mode 100644 index e9e5a1fe32..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnBoolean result = await grids.updateBooleanColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: false, - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-database.md b/docs/examples/1.8.x/server-dart/examples/grids/update-database.md deleted file mode 100644 index d65a80185f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -Database result = await grids.updateDatabase( - databaseId: '', - name: '', - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md deleted file mode 100644 index 6eb1bb6cbf..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnDatetime result = await grids.updateDatetimeColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md deleted file mode 100644 index 0fabb3e6a3..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnEmail result = await grids.updateEmailColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 'email@example.com', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md deleted file mode 100644 index 5aa1613b75..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnEnum result = await grids.updateEnumColumn( - databaseId: '', - tableId: '', - key: '', - elements: [], - xrequired: false, - xdefault: '', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md deleted file mode 100644 index 0326f3c6f8..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnFloat result = await grids.updateFloatColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 0, - min: 0, // (optional) - max: 0, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md deleted file mode 100644 index 3572a064b3..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnInteger result = await grids.updateIntegerColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 0, - min: 0, // (optional) - max: 0, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md deleted file mode 100644 index a75ff07569..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnIp result = await grids.updateIpColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md deleted file mode 100644 index 4ecb479124..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnRelationship result = await grids.updateRelationshipColumn( - databaseId: '', - tableId: '', - key: '', - onDelete: RelationMutate.cascade, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-row.md b/docs/examples/1.8.x/server-dart/examples/grids/update-row.md deleted file mode 100644 index f11cf400cb..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -Row result = await grids.updateRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, // (optional) - permissions: ["read("any")"], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md deleted file mode 100644 index 6dd4db1d3c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -RowList result = await grids.updateRows( - databaseId: '', - tableId: '', - data: {}, // (optional) - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md deleted file mode 100644 index 2bc58912cb..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnString result = await grids.updateStringColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: '', - size: 1, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-table.md b/docs/examples/1.8.x/server-dart/examples/grids/update-table.md deleted file mode 100644 index c5c497eddf..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-table.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -Table result = await grids.updateTable( - databaseId: '', - tableId: '', - name: '', - permissions: ["read("any")"], // (optional) - rowSecurity: false, // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md deleted file mode 100644 index 79359f5436..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -ColumnUrl result = await grids.updateUrlColumn( - databaseId: '', - tableId: '', - key: '', - xrequired: false, - xdefault: 'https://example.com', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md deleted file mode 100644 index e8a697664e..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -Row result = await grids.upsertRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, // (optional) - permissions: ["read("any")"], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md deleted file mode 100644 index b12d6960f0..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -Grids grids = Grids(client); - -RowList result = await grids.upsertRows( - databaseId: '', - tableId: '', - rows: [], -); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md index be8a1bdac9..f18b4f30dc 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md @@ -2,8 +2,9 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token const databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-documents.md b/docs/examples/1.8.x/server-deno/examples/databases/create-documents.md index 26c9796cf0..fa3fe84731 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setAdmin('') // .setKey(''); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md index f05100e3df..a8a61ca43c 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md @@ -2,15 +2,14 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token const databases = new Databases(client); const response = await databases.upsertDocument( '', // databaseId '', // collectionId - '', // documentId - {}, // data - ["read("any")"] // permissions (optional) + '' // documentId ); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-deno/examples/databases/upsert-documents.md index 0cd804bfb6..bf9e7ded89 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/upsert-documents.md @@ -2,13 +2,12 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setAdmin('') // .setKey(''); // Your secret API key const databases = new Databases(client); const response = await databases.upsertDocuments( '', // databaseId - '', // collectionId - [] // documents + '' // collectionId ); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md index 58c6c494b1..bec6a17db2 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md @@ -14,5 +14,5 @@ const response = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md deleted file mode 100644 index 7097a84ebe..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-database.md b/docs/examples/1.8.x/server-deno/examples/grids/create-database.md deleted file mode 100644 index 3b1a67d75a..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createDatabase( - '', // databaseId - '', // name - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md deleted file mode 100644 index f33479cd2e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md deleted file mode 100644 index eec09fb453..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md deleted file mode 100644 index df68204c8b..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md deleted file mode 100644 index e7fdc524dc..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-index.md b/docs/examples/1.8.x/server-deno/examples/grids/create-index.md deleted file mode 100644 index d1442d57be..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids, IndexType } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createIndex( - '', // databaseId - '', // tableId - '', // key - IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md deleted file mode 100644 index 0dc377dff2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md deleted file mode 100644 index 222e262042..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md deleted file mode 100644 index 5cfc17ebbd..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createRelationshipColumn( - '', // databaseId - '', // tableId - '', // relatedTableId - RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - RelationMutate.Cascade // onDelete (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-row.md b/docs/examples/1.8.x/server-deno/examples/grids/create-row.md deleted file mode 100644 index 0bf0ec7f09..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md deleted file mode 100644 index e5d81e6f68..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createRows( - '', // databaseId - '', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md deleted file mode 100644 index fb73a25faa..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createStringColumn( - '', // databaseId - '', // tableId - '', // key - 1, // size - false, // required - '', // default (optional) - false, // array (optional) - false // encrypt (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-table.md b/docs/examples/1.8.x/server-deno/examples/grids/create-table.md deleted file mode 100644 index 832b9c5218..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-table.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createTable( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md deleted file mode 100644 index 905d86c6cf..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md deleted file mode 100644 index cd86f6f8f3..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.decrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // min (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md deleted file mode 100644 index d299323df6..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteColumn( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md deleted file mode 100644 index aad02459e4..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteDatabase( - '' // databaseId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md deleted file mode 100644 index 2354fc2485..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteIndex( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md deleted file mode 100644 index b62fd2145f..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md deleted file mode 100644 index a1c75d7fd2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md deleted file mode 100644 index b7b09bc1ed..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteTable( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-column.md b/docs/examples/1.8.x/server-deno/examples/grids/get-column.md deleted file mode 100644 index cd78228565..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.getColumn( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-database.md b/docs/examples/1.8.x/server-deno/examples/grids/get-database.md deleted file mode 100644 index c1fecfeff7..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-database.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.getDatabase( - '' // databaseId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-index.md b/docs/examples/1.8.x/server-deno/examples/grids/get-index.md deleted file mode 100644 index 8f3a48aec2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.getIndex( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-row.md b/docs/examples/1.8.x/server-deno/examples/grids/get-row.md deleted file mode 100644 index 257b24b67e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-table.md b/docs/examples/1.8.x/server-deno/examples/grids/get-table.md deleted file mode 100644 index 5b9c36ab44..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-table.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.getTable( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md deleted file mode 100644 index d01174e938..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.incrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // max (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md b/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md deleted file mode 100644 index 3e249e2782..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.listColumns( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md b/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md deleted file mode 100644 index 40ce554e50..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.listDatabases( - [], // queries (optional) - '' // search (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md deleted file mode 100644 index e605c67cc6..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.listIndexes( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md deleted file mode 100644 index 2416578d70..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md b/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md deleted file mode 100644 index f68d5465b5..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.listTables( - '', // databaseId - [], // queries (optional) - '' // search (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md deleted file mode 100644 index 22c0fe97f8..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-database.md b/docs/examples/1.8.x/server-deno/examples/grids/update-database.md deleted file mode 100644 index 0fc883028e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateDatabase( - '', // databaseId - '', // name - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md deleted file mode 100644 index 00cee55b33..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md deleted file mode 100644 index eb263b428f..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md deleted file mode 100644 index 974dcc99cb..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md deleted file mode 100644 index c1375b015f..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md deleted file mode 100644 index c46dbb1994..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md deleted file mode 100644 index 2013e16429..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md deleted file mode 100644 index 5151a5c5bc..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateRelationshipColumn( - '', // databaseId - '', // tableId - '', // key - RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-row.md b/docs/examples/1.8.x/server-deno/examples/grids/update-row.md deleted file mode 100644 index 5e37a9cb90..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md deleted file mode 100644 index 35dc58d22d..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateRows( - '', // databaseId - '', // tableId - {}, // data (optional) - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md deleted file mode 100644 index ff0113baeb..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateStringColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - 1, // size (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-table.md b/docs/examples/1.8.x/server-deno/examples/grids/update-table.md deleted file mode 100644 index ce01cd0fc7..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-table.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateTable( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md deleted file mode 100644 index 285f88fbfd..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md deleted file mode 100644 index 33534265d5..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.upsertRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md deleted file mode 100644 index 8cd7218f17..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.upsertRows( - '', // databaseId - '', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md index 52254e0c25..cb4bc62ced 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md @@ -4,8 +4,9 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with + .SetSession("") // The user session to authenticate with + .SetKey("") // Your secret API key + .SetJWT(""); // Your secret JSON Web Token Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-documents.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-documents.md index dad710f0df..c46715b25d 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-documents.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID + .SetAdmin("") // .SetKey(""); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md index c0876bfa73..c809a497fe 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md @@ -4,15 +4,14 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with + .SetSession("") // The user session to authenticate with + .SetKey("") // Your secret API key + .SetJWT(""); // Your secret JSON Web Token Databases databases = new Databases(client); Document result = await databases.UpsertDocument( databaseId: "", collectionId: "", - documentId: "", - data: [object], - permissions: ["read("any")"] // optional + documentId: "" ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-documents.md index 6c124c16e5..48c0aa7044 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-documents.md @@ -4,13 +4,12 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID + .SetAdmin("") // .SetKey(""); // Your secret API key Databases databases = new Databases(client); DocumentList result = await databases.UpsertDocuments( databaseId: "", - collectionId: "", - documents: new List() + collectionId: "" ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.8.x/server-dotnet/examples/functions/create-execution.md index 98d1b2f3ff..c8fd5595e9 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-dotnet/examples/functions/create-execution.md @@ -17,5 +17,5 @@ Execution result = await functions.CreateExecution( path: "", // optional method: ExecutionMethod.GET, // optional headers: [object], // optional - scheduledAt: "" // optional + scheduledAt: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md deleted file mode 100644 index e173d1189b..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnBoolean result = await grids.CreateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md deleted file mode 100644 index 7006f00d01..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -Database result = await grids.CreateDatabase( - databaseId: "", - name: "", - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md deleted file mode 100644 index b4e730fc6d..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnDatetime result = await grids.CreateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md deleted file mode 100644 index bb2cad7dbd..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnEmail result = await grids.CreateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md deleted file mode 100644 index 4ce99366ad..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnEnum result = await grids.CreateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: new List(), - required: false, - default: "", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md deleted file mode 100644 index 3ecd76c367..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnFloat result = await grids.CreateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md deleted file mode 100644 index 854ed47e81..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIndex result = await grids.CreateIndex( - databaseId: "", - tableId: "", - key: "", - type: IndexType.Key, - columns: new List(), - orders: new List(), // optional - lengths: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md deleted file mode 100644 index ef13d5569c..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnInteger result = await grids.CreateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md deleted file mode 100644 index bfaa594d49..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIp result = await grids.CreateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md deleted file mode 100644 index 614f5d4fec..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnRelationship result = await grids.CreateRelationshipColumn( - databaseId: "", - tableId: "", - relatedTableId: "", - type: RelationshipType.OneToOne, - twoWay: false, // optional - key: "", // optional - twoWayKey: "", // optional - onDelete: RelationMutate.Cascade // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md deleted file mode 100644 index 235c9b5c4e..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -Row result = await grids.CreateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [object], - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md deleted file mode 100644 index 42ee3ef6a2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -RowList result = await grids.CreateRows( - databaseId: "", - tableId: "", - rows: new List() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md deleted file mode 100644 index ca00dcf32e..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnString result = await grids.CreateStringColumn( - databaseId: "", - tableId: "", - key: "", - size: 1, - required: false, - default: "", // optional - array: false, // optional - encrypt: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md deleted file mode 100644 index 50fdfa878e..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -Table result = await grids.CreateTable( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md deleted file mode 100644 index 8a4f69bd26..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnUrl result = await grids.CreateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md deleted file mode 100644 index b17e902e45..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -Row result = await grids.DecrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, // optional - min: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md deleted file mode 100644 index 24f23546ba..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteColumn( - databaseId: "", - tableId: "", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md deleted file mode 100644 index 38f28a001a..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteDatabase( - databaseId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md deleted file mode 100644 index 5a037e2a96..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteIndex( - databaseId: "", - tableId: "", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md deleted file mode 100644 index 13972747a8..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -await grids.DeleteRow( - databaseId: "", - tableId: "", - rowId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md deleted file mode 100644 index 4ddd11b6d1..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteRows( - databaseId: "", - tableId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md deleted file mode 100644 index 9741ac2c2e..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteTable( - databaseId: "", - tableId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md deleted file mode 100644 index 2c6d7a3944..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - - result = await grids.GetColumn( - databaseId: "", - tableId: "", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md deleted file mode 100644 index 5aebe5104d..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -Database result = await grids.GetDatabase( - databaseId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md deleted file mode 100644 index ff99a21ed0..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIndex result = await grids.GetIndex( - databaseId: "", - tableId: "", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md deleted file mode 100644 index c75e0e50d5..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -Row result = await grids.GetRow( - databaseId: "", - tableId: "", - rowId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md deleted file mode 100644 index 7fcecc6170..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -Table result = await grids.GetTable( - databaseId: "", - tableId: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md deleted file mode 100644 index 3e6d044905..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -Row result = await grids.IncrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, // optional - max: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md deleted file mode 100644 index e8478c1d23..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnList result = await grids.ListColumns( - databaseId: "", - tableId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md deleted file mode 100644 index f37deb8ef2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -DatabaseList result = await grids.ListDatabases( - queries: new List(), // optional - search: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md deleted file mode 100644 index b6f3737b43..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIndexList result = await grids.ListIndexes( - databaseId: "", - tableId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md deleted file mode 100644 index a1a64fe256..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -RowList result = await grids.ListRows( - databaseId: "", - tableId: "", - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md deleted file mode 100644 index 85f431b7ef..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -TableList result = await grids.ListTables( - databaseId: "", - queries: new List(), // optional - search: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md deleted file mode 100644 index ff2376e403..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnBoolean result = await grids.UpdateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md deleted file mode 100644 index cd3b0a236d..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -Database result = await grids.UpdateDatabase( - databaseId: "", - name: "", - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md deleted file mode 100644 index 7b630922e8..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnDatetime result = await grids.UpdateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md deleted file mode 100644 index 9ce04025ca..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnEmail result = await grids.UpdateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md deleted file mode 100644 index b29b3615de..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnEnum result = await grids.UpdateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: new List(), - required: false, - default: "", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md deleted file mode 100644 index 96db20a2c5..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnFloat result = await grids.UpdateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md deleted file mode 100644 index 87e6b0fee2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnInteger result = await grids.UpdateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md deleted file mode 100644 index 789c6c98e6..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIp result = await grids.UpdateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md deleted file mode 100644 index a1d30a43a2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnRelationship result = await grids.UpdateRelationshipColumn( - databaseId: "", - tableId: "", - key: "", - onDelete: RelationMutate.Cascade, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md deleted file mode 100644 index 2dc2b23d32..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -Row result = await grids.UpdateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [object], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md deleted file mode 100644 index c0103c9639..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -RowList result = await grids.UpdateRows( - databaseId: "", - tableId: "", - data: [object], // optional - queries: new List() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md deleted file mode 100644 index 2277142eb8..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnString result = await grids.UpdateStringColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - size: 1, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md deleted file mode 100644 index 76362573a5..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -Table result = await grids.UpdateTable( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md deleted file mode 100644 index 8054b60e3f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -ColumnUrl result = await grids.UpdateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md deleted file mode 100644 index 7f517a2f09..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -Row result = await grids.UpsertRow( - databaseId: "", - tableId: "", - rowId: "", - data: [object], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md deleted file mode 100644 index 1cb3b54d0b..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key - -Grids grids = new Grids(client); - -RowList result = await grids.UpsertRows( - databaseId: "", - tableId: "", - rows: new List() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-document.md b/docs/examples/1.8.x/server-go/examples/databases/create-document.md index fe96a0d601..8990beaa8d 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-document.md @@ -9,8 +9,9 @@ import ( func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID client.WithSession("") // The user session to authenticate with + client.WithKey("") // Your secret API key + client.WithJWT("") // Your secret JSON Web Token ) service := databases.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-documents.md b/docs/examples/1.8.x/server-go/examples/databases/create-documents.md index 9e4da5dac7..d85d0d5395 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-documents.md @@ -9,7 +9,7 @@ import ( func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID + client.WithAdmin("") // client.WithKey("") // Your secret API key ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md index e6241b9198..c5304b1860 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md @@ -9,8 +9,9 @@ import ( func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID client.WithSession("") // The user session to authenticate with + client.WithKey("") // Your secret API key + client.WithJWT("") // Your secret JSON Web Token ) service := databases.New(client) @@ -18,8 +19,6 @@ func main() { "", "", "", - map[string]interface{}{}, - databases.WithUpsertDocumentPermissions(interface{}{"read("any")"}), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-go/examples/databases/upsert-documents.md index d2731cd128..5fe0fc5831 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-go/examples/databases/upsert-documents.md @@ -9,7 +9,7 @@ import ( func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID + client.WithAdmin("") // client.WithKey("") // Your secret API key ) @@ -17,7 +17,6 @@ func main() { response, error := service.UpsertDocuments( "", "", - []interface{}{}, ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/functions/create-execution.md b/docs/examples/1.8.x/server-go/examples/functions/create-execution.md index bc839e422e..33657d2503 100644 --- a/docs/examples/1.8.x/server-go/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-go/examples/functions/create-execution.md @@ -21,7 +21,7 @@ func main() { functions.WithCreateExecutionPath(""), functions.WithCreateExecutionMethod("GET"), functions.WithCreateExecutionHeaders(map[string]interface{}{}), - functions.WithCreateExecutionScheduledAt(""), + functions.WithCreateExecutionScheduledAt(""), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md deleted file mode 100644 index 11d8b0ca50..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateBooleanColumn( - "", - "", - "", - false, - grids.WithCreateBooleanColumnDefault(false), - grids.WithCreateBooleanColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-database.md b/docs/examples/1.8.x/server-go/examples/grids/create-database.md deleted file mode 100644 index d66dea2c03..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-database.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateDatabase( - "", - "", - grids.WithCreateDatabaseEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md deleted file mode 100644 index e386f763ff..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateDatetimeColumn( - "", - "", - "", - false, - grids.WithCreateDatetimeColumnDefault(""), - grids.WithCreateDatetimeColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md deleted file mode 100644 index 9ecdf5cadf..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateEmailColumn( - "", - "", - "", - false, - grids.WithCreateEmailColumnDefault("email@example.com"), - grids.WithCreateEmailColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md deleted file mode 100644 index 35a2ed3f0f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateEnumColumn( - "", - "", - "", - []interface{}{}, - false, - grids.WithCreateEnumColumnDefault(""), - grids.WithCreateEnumColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md deleted file mode 100644 index 765eb58f24..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateFloatColumn( - "", - "", - "", - false, - grids.WithCreateFloatColumnMin(0), - grids.WithCreateFloatColumnMax(0), - grids.WithCreateFloatColumnDefault(0), - grids.WithCreateFloatColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-index.md b/docs/examples/1.8.x/server-go/examples/grids/create-index.md deleted file mode 100644 index ad39cc5c83..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-index.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateIndex( - "", - "", - "", - "key", - []interface{}{}, - grids.WithCreateIndexOrders([]interface{}{}), - grids.WithCreateIndexLengths([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md deleted file mode 100644 index 3b67883650..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateIntegerColumn( - "", - "", - "", - false, - grids.WithCreateIntegerColumnMin(0), - grids.WithCreateIntegerColumnMax(0), - grids.WithCreateIntegerColumnDefault(0), - grids.WithCreateIntegerColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md deleted file mode 100644 index 8954c91144..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateIpColumn( - "", - "", - "", - false, - grids.WithCreateIpColumnDefault(""), - grids.WithCreateIpColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md deleted file mode 100644 index 2ce5bd2acd..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateRelationshipColumn( - "", - "", - "", - "oneToOne", - grids.WithCreateRelationshipColumnTwoWay(false), - grids.WithCreateRelationshipColumnKey(""), - grids.WithCreateRelationshipColumnTwoWayKey(""), - grids.WithCreateRelationshipColumnOnDelete("cascade"), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-row.md b/docs/examples/1.8.x/server-go/examples/grids/create-row.md deleted file mode 100644 index b2e8aac2a2..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-row.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.CreateRow( - "", - "", - "", - map[string]interface{}{}, - grids.WithCreateRowPermissions(interface{}{"read("any")"}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-rows.md b/docs/examples/1.8.x/server-go/examples/grids/create-rows.md deleted file mode 100644 index 95442b0231..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateRows( - "", - "", - []interface{}{}, - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md deleted file mode 100644 index 0033ea1af6..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateStringColumn( - "", - "", - "", - 1, - false, - grids.WithCreateStringColumnDefault(""), - grids.WithCreateStringColumnArray(false), - grids.WithCreateStringColumnEncrypt(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-table.md b/docs/examples/1.8.x/server-go/examples/grids/create-table.md deleted file mode 100644 index adc367db5c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-table.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateTable( - "", - "", - "", - grids.WithCreateTablePermissions(interface{}{"read("any")"}), - grids.WithCreateTableRowSecurity(false), - grids.WithCreateTableEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md deleted file mode 100644 index 3e93fe1838..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateUrlColumn( - "", - "", - "", - false, - grids.WithCreateUrlColumnDefault("https://example.com"), - grids.WithCreateUrlColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md deleted file mode 100644 index cb36ada619..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DecrementRowColumn( - "", - "", - "", - "", - grids.WithDecrementRowColumnValue(0), - grids.WithDecrementRowColumnMin(0), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-column.md b/docs/examples/1.8.x/server-go/examples/grids/delete-column.md deleted file mode 100644 index 6b73e86c05..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-column.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteColumn( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-database.md b/docs/examples/1.8.x/server-go/examples/grids/delete-database.md deleted file mode 100644 index 4d74f859fc..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-database.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteDatabase( - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-index.md b/docs/examples/1.8.x/server-go/examples/grids/delete-index.md deleted file mode 100644 index c34a2752ac..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-index.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteIndex( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-row.md b/docs/examples/1.8.x/server-go/examples/grids/delete-row.md deleted file mode 100644 index cb072c49bd..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-row.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.DeleteRow( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md deleted file mode 100644 index 0ce880f996..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteRows( - "", - "", - grids.WithDeleteRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-table.md b/docs/examples/1.8.x/server-go/examples/grids/delete-table.md deleted file mode 100644 index 66e031a5ce..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-table.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteTable( - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-column.md b/docs/examples/1.8.x/server-go/examples/grids/get-column.md deleted file mode 100644 index bff6153550..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-column.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.GetColumn( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-database.md b/docs/examples/1.8.x/server-go/examples/grids/get-database.md deleted file mode 100644 index 4f80bf5590..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-database.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.GetDatabase( - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-index.md b/docs/examples/1.8.x/server-go/examples/grids/get-index.md deleted file mode 100644 index 5982b49b2e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-index.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.GetIndex( - "", - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-row.md b/docs/examples/1.8.x/server-go/examples/grids/get-row.md deleted file mode 100644 index 1551d4969b..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-row.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.GetRow( - "", - "", - "", - grids.WithGetRowQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-table.md b/docs/examples/1.8.x/server-go/examples/grids/get-table.md deleted file mode 100644 index 1f96e8526d..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-table.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.GetTable( - "", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md deleted file mode 100644 index 52f5858884..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.IncrementRowColumn( - "", - "", - "", - "", - grids.WithIncrementRowColumnValue(0), - grids.WithIncrementRowColumnMax(0), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-columns.md b/docs/examples/1.8.x/server-go/examples/grids/list-columns.md deleted file mode 100644 index ae411a216c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-columns.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.ListColumns( - "", - "", - grids.WithListColumnsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-databases.md b/docs/examples/1.8.x/server-go/examples/grids/list-databases.md deleted file mode 100644 index e43bd7d100..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-databases.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.ListDatabases( - grids.WithListDatabasesQueries([]interface{}{}), - grids.WithListDatabasesSearch(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md deleted file mode 100644 index 092c75301a..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.ListIndexes( - "", - "", - grids.WithListIndexesQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-rows.md b/docs/examples/1.8.x/server-go/examples/grids/list-rows.md deleted file mode 100644 index b406f106bb..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.ListRows( - "", - "", - grids.WithListRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-tables.md b/docs/examples/1.8.x/server-go/examples/grids/list-tables.md deleted file mode 100644 index f38879c65b..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-tables.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.ListTables( - "", - grids.WithListTablesQueries([]interface{}{}), - grids.WithListTablesSearch(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md deleted file mode 100644 index 5ffc910caf..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateBooleanColumn( - "", - "", - "", - false, - false, - grids.WithUpdateBooleanColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-database.md b/docs/examples/1.8.x/server-go/examples/grids/update-database.md deleted file mode 100644 index 9f9c95546a..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-database.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateDatabase( - "", - "", - grids.WithUpdateDatabaseEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md deleted file mode 100644 index 5bf6440a74..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateDatetimeColumn( - "", - "", - "", - false, - "", - grids.WithUpdateDatetimeColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md deleted file mode 100644 index 8ebbdcabc4..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateEmailColumn( - "", - "", - "", - false, - "email@example.com", - grids.WithUpdateEmailColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md deleted file mode 100644 index edec1cbcc0..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateEnumColumn( - "", - "", - "", - []interface{}{}, - false, - "", - grids.WithUpdateEnumColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md deleted file mode 100644 index 80057dab06..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateFloatColumn( - "", - "", - "", - false, - 0, - grids.WithUpdateFloatColumnMin(0), - grids.WithUpdateFloatColumnMax(0), - grids.WithUpdateFloatColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md deleted file mode 100644 index a3b9bd316c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateIntegerColumn( - "", - "", - "", - false, - 0, - grids.WithUpdateIntegerColumnMin(0), - grids.WithUpdateIntegerColumnMax(0), - grids.WithUpdateIntegerColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md deleted file mode 100644 index 888c69e9ee..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateIpColumn( - "", - "", - "", - false, - "", - grids.WithUpdateIpColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md deleted file mode 100644 index db57f41995..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateRelationshipColumn( - "", - "", - "", - grids.WithUpdateRelationshipColumnOnDelete("cascade"), - grids.WithUpdateRelationshipColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-row.md b/docs/examples/1.8.x/server-go/examples/grids/update-row.md deleted file mode 100644 index e1a99f289f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-row.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.UpdateRow( - "", - "", - "", - grids.WithUpdateRowData(map[string]interface{}{}), - grids.WithUpdateRowPermissions(interface{}{"read("any")"}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-rows.md b/docs/examples/1.8.x/server-go/examples/grids/update-rows.md deleted file mode 100644 index f2b0c0c6de..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-rows.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateRows( - "", - "", - grids.WithUpdateRowsData(map[string]interface{}{}), - grids.WithUpdateRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md deleted file mode 100644 index a50fcb704c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateStringColumn( - "", - "", - "", - false, - "", - grids.WithUpdateStringColumnSize(1), - grids.WithUpdateStringColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-table.md b/docs/examples/1.8.x/server-go/examples/grids/update-table.md deleted file mode 100644 index cf1bef575f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-table.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateTable( - "", - "", - "", - grids.WithUpdateTablePermissions(interface{}{"read("any")"}), - grids.WithUpdateTableRowSecurity(false), - grids.WithUpdateTableEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md deleted file mode 100644 index 0c28025e5c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateUrlColumn( - "", - "", - "", - false, - "https://example.com", - grids.WithUpdateUrlColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md deleted file mode 100644 index bc104a159a..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.UpsertRow( - "", - "", - "", - grids.WithUpsertRowData(map[string]interface{}{}), - grids.WithUpsertRowPermissions(interface{}{"read("any")"}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md deleted file mode 100644 index 6282f9da2e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("") // Your project ID - client.WithKey("") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpsertRows( - "", - "", - []interface{}{}, - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md index 7ee68b41c7..00dfba1e7b 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md @@ -17,9 +17,6 @@ mutation { documentSecurity attributes indexes { - _id - _createdAt - _updatedAt key type status @@ -27,6 +24,8 @@ mutation { attributes lengths orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-index.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-index.md index 38e64980b2..c647930943 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-index.md @@ -8,9 +8,6 @@ mutation { orders: [], lengths: [] ) { - _id - _createdAt - _updatedAt key type status @@ -18,5 +15,7 @@ mutation { attributes lengths orders + _createdAt + _updatedAt } } diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-collection.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-collection.md index ad43b879d2..040578ae9d 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-collection.md @@ -17,9 +17,6 @@ mutation { documentSecurity attributes indexes { - _id - _createdAt - _updatedAt key type status @@ -27,6 +24,8 @@ mutation { attributes lengths orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md index 9d1e753081..c381fe35a3 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md @@ -2,9 +2,7 @@ mutation { databasesUpsertDocument( databaseId: "", collectionId: "", - documentId: "", - data: "{}", - permissions: ["read("any")"] + documentId: "" ) { _id _sequence diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-documents.md index 2bfb765915..b4bf914eca 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-documents.md @@ -1,8 +1,7 @@ mutation { databasesUpsertDocuments( databaseId: "", - collectionId: "", - documents: [] + collectionId: "" ) { total documents { diff --git a/docs/examples/1.8.x/server-graphql/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-graphql/examples/functions/create-deployment.md index 3751448e57..0e7cc7d19a 100644 --- a/docs/examples/1.8.x/server-graphql/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-graphql/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md b/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md index 8979880723..1479aa3bb6 100644 --- a/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-graphql/examples/functions/create-execution.md @@ -6,7 +6,7 @@ mutation { path: "", method: "GET", headers: "{}", - scheduledAt: "" + scheduledAt: "" ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md deleted file mode 100644 index bd7abcb175..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - gridsCreateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md deleted file mode 100644 index 41d37ebdee..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md +++ /dev/null @@ -1,13 +0,0 @@ -mutation { - gridsCreateDatabase( - databaseId: "", - name: "", - enabled: false - ) { - _id - name - _createdAt - _updatedAt - enabled - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md deleted file mode 100644 index aa14c43156..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsCreateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md deleted file mode 100644 index c9bc913726..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsCreateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md deleted file mode 100644 index 8ace10f9ac..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - gridsCreateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: [], - required: false, - default: "", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - elements - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md deleted file mode 100644 index 92031d03ca..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsCreateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, - max: 0, - default: 0, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md deleted file mode 100644 index cc338ddad2..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - gridsCreateIndex( - databaseId: "", - tableId: "", - key: "", - type: "key", - columns: [], - orders: [], - lengths: [] - ) { - _id - _createdAt - _updatedAt - key - type - status - error - columns - lengths - orders - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md deleted file mode 100644 index 735d47c8ac..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsCreateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, - max: 0, - default: 0, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md deleted file mode 100644 index 241d308f09..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsCreateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md deleted file mode 100644 index 2c08478e09..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,27 +0,0 @@ -mutation { - gridsCreateRelationshipColumn( - databaseId: "", - tableId: "", - relatedTableId: "", - type: "oneToOne", - twoWay: false, - key: "", - twoWayKey: "", - onDelete: "cascade" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - relatedTable - relationType - twoWay - twoWayKey - onDelete - side - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md deleted file mode 100644 index cffb7361f2..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsCreateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md deleted file mode 100644 index cd134ec201..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsCreateRows( - databaseId: "", - tableId: "", - rows: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md deleted file mode 100644 index 57b42c6010..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsCreateStringColumn( - databaseId: "", - tableId: "", - key: "", - size: 1, - required: false, - default: "", - array: false, - encrypt: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - size - default - encrypt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md deleted file mode 100644 index 77335ad867..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md +++ /dev/null @@ -1,32 +0,0 @@ -mutation { - gridsCreateTable( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], - rowSecurity: false, - enabled: false - ) { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - rowSecurity - columns - indexes { - _id - _createdAt - _updatedAt - key - type - status - error - columns - lengths - orders - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md deleted file mode 100644 index 07ca9ab869..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsCreateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md deleted file mode 100644 index 6b47884a92..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsDecrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, - min: 0 - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md deleted file mode 100644 index 0ad25321b5..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - gridsDeleteColumn( - databaseId: "", - tableId: "", - key: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md deleted file mode 100644 index a3e3d1a5bf..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - gridsDeleteDatabase( - databaseId: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md deleted file mode 100644 index 0921aa0aef..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - gridsDeleteIndex( - databaseId: "", - tableId: "", - key: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md deleted file mode 100644 index 40dcbdc219..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - gridsDeleteRow( - databaseId: "", - tableId: "", - rowId: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md deleted file mode 100644 index 69559934a4..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsDeleteRows( - databaseId: "", - tableId: "", - queries: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md deleted file mode 100644 index a145be50d9..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - gridsDeleteTable( - databaseId: "", - tableId: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md deleted file mode 100644 index 709e6b2f0d..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsIncrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, - max: 0 - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md deleted file mode 100644 index 67c8495471..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - gridsUpdateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md deleted file mode 100644 index 02c045b9cd..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md +++ /dev/null @@ -1,13 +0,0 @@ -mutation { - gridsUpdateDatabase( - databaseId: "", - name: "", - enabled: false - ) { - _id - name - _createdAt - _updatedAt - enabled - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md deleted file mode 100644 index 5e19393c67..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsUpdateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md deleted file mode 100644 index caa6153896..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsUpdateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md deleted file mode 100644 index c3d90f4e23..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - gridsUpdateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: [], - required: false, - default: "", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - elements - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md deleted file mode 100644 index a6b700ce73..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsUpdateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, - max: 0, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md deleted file mode 100644 index fcc53102d1..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsUpdateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, - max: 0, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md deleted file mode 100644 index f867063151..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsUpdateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md deleted file mode 100644 index e24311b53a..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsUpdateRelationshipColumn( - databaseId: "", - tableId: "", - key: "", - onDelete: "cascade", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - relatedTable - relationType - twoWay - twoWayKey - onDelete - side - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md deleted file mode 100644 index 2bb105e8c0..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsUpdateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md deleted file mode 100644 index 99df9b0b99..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - gridsUpdateRows( - databaseId: "", - tableId: "", - data: "{}", - queries: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md deleted file mode 100644 index c98f49a807..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - gridsUpdateStringColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - size: 1, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - size - default - encrypt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md deleted file mode 100644 index cea6d5cfff..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md +++ /dev/null @@ -1,32 +0,0 @@ -mutation { - gridsUpdateTable( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], - rowSecurity: false, - enabled: false - ) { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - rowSecurity - columns - indexes { - _id - _createdAt - _updatedAt - key - type - status - error - columns - lengths - orders - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md deleted file mode 100644 index c64d93882d..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsUpdateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md deleted file mode 100644 index f8e0606109..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsUpsertRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md deleted file mode 100644 index d456e9883d..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsUpsertRows( - databaseId: "", - tableId: "", - rows: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md index 26970a18a8..8f77dd60eb 100644 --- a/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md b/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md index 70bf6cbb1f..5b4f9a0c22 100644 --- a/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md index 5231be33d6..368b816219 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md @@ -4,8 +4,9 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with + .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT(""); // Your secret JSON Web Token Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md index 0de0c276ed..77d79812a9 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setAdmin("") // .setKey(""); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md index daa44141e2..b1b4de4db4 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md @@ -4,8 +4,9 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with + .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT(""); // Your secret JSON Web Token Databases databases = new Databases(client); @@ -13,8 +14,6 @@ databases.upsertDocument( "", // databaseId "", // collectionId "", // documentId - mapOf( "a" to "b" ), // data - listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md index 95e9a33ef2..0bf0c1778c 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setAdmin("") // .setKey(""); // Your secret API key Databases databases = new Databases(client); @@ -12,7 +12,6 @@ Databases databases = new Databases(client); databases.upsertDocuments( "", // databaseId "", // collectionId - listOf(), // documents new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md index 93efa0adf8..82d48fa55b 100644 --- a/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md @@ -16,7 +16,7 @@ functions.createExecution( "", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) - "", // scheduledAt (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md deleted file mode 100644 index 2981fc8cf4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createBooleanColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - false, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md deleted file mode 100644 index 4c6155962e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createDatabase( - "", // databaseId - "", // name - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md deleted file mode 100644 index 7389ea9a94..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createDatetimeColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md deleted file mode 100644 index be481047e1..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createEmailColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "email@example.com", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md deleted file mode 100644 index 33c6b63e27..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createEnumColumn( - "", // databaseId - "", // tableId - "", // key - listOf(), // elements - false, // required - "", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md deleted file mode 100644 index d66f1b5c60..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createFloatColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - 0, // min (optional) - 0, // max (optional) - 0, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md deleted file mode 100644 index 670310bb66..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; -import io.appwrite.enums.IndexType; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createIndex( - "", // databaseId - "", // tableId - "", // key - IndexType.KEY, // type - listOf(), // columns - listOf(), // orders (optional) - listOf(), // lengths (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md deleted file mode 100644 index 342654ef1a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createIntegerColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - 0, // min (optional) - 0, // max (optional) - 0, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md deleted file mode 100644 index d72e7dd59d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createIpColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md deleted file mode 100644 index 2d1c5fb22a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md +++ /dev/null @@ -1,31 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; -import io.appwrite.enums.RelationshipType; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createRelationshipColumn( - "", // databaseId - "", // tableId - "", // relatedTableId - RelationshipType.ONETOONE, // type - false, // twoWay (optional) - "", // key (optional) - "", // twoWayKey (optional) - RelationMutate.CASCADE, // onDelete (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md deleted file mode 100644 index 6b954814c0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.createRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md deleted file mode 100644 index a55855d8f5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createRows( - "", // databaseId - "", // tableId - listOf(), // rows - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md deleted file mode 100644 index b819afb4b4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createStringColumn( - "", // databaseId - "", // tableId - "", // key - 1, // size - false, // required - "", // default (optional) - false, // array (optional) - false, // encrypt (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md deleted file mode 100644 index aa98b81de6..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createTable( - "", // databaseId - "", // tableId - "", // name - listOf("read("any")"), // permissions (optional) - false, // rowSecurity (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md deleted file mode 100644 index d8761440b3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.createUrlColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "https://example.com", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md deleted file mode 100644 index 407ea83f81..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.decrementRowColumn( - "", // databaseId - "", // tableId - "", // rowId - "", // column - 0, // value (optional) - 0, // min (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md deleted file mode 100644 index cc3c40fba7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteColumn( - "", // databaseId - "", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md deleted file mode 100644 index fca41e75ea..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteDatabase( - "", // databaseId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md deleted file mode 100644 index 43449e908f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteIndex( - "", // databaseId - "", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md deleted file mode 100644 index cb812bac12..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.deleteRow( - "", // databaseId - "", // tableId - "", // rowId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md deleted file mode 100644 index 2425af9e8c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteRows( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md deleted file mode 100644 index dbbb4781ba..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteTable( - "", // databaseId - "", // tableId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md deleted file mode 100644 index 1d630f17d7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.getColumn( - "", // databaseId - "", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md deleted file mode 100644 index bc7eea4dbb..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.getDatabase( - "", // databaseId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md deleted file mode 100644 index 14163c34a9..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.getIndex( - "", // databaseId - "", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md deleted file mode 100644 index e9d89c92b8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.getRow( - "", // databaseId - "", // tableId - "", // rowId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md deleted file mode 100644 index 39d090219b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.getTable( - "", // databaseId - "", // tableId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md deleted file mode 100644 index aaccf0a1a3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.incrementRowColumn( - "", // databaseId - "", // tableId - "", // rowId - "", // column - 0, // value (optional) - 0, // max (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md deleted file mode 100644 index f95ca925a6..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.listColumns( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md deleted file mode 100644 index 97f7263dd4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.listDatabases( - listOf(), // queries (optional) - "", // search (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md deleted file mode 100644 index aa5b11a8c2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.listIndexes( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md deleted file mode 100644 index ccf3d74a25..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.listRows( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md deleted file mode 100644 index 0a60dbeebe..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.listTables( - "", // databaseId - listOf(), // queries (optional) - "", // search (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md deleted file mode 100644 index e3d6b71b70..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateBooleanColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - false, // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md deleted file mode 100644 index da9bd7d04b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateDatabase( - "", // databaseId - "", // name - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md deleted file mode 100644 index ede33229ad..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateDatetimeColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md deleted file mode 100644 index 48803eb4f4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateEmailColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "email@example.com", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md deleted file mode 100644 index 63dc238d2e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateEnumColumn( - "", // databaseId - "", // tableId - "", // key - listOf(), // elements - false, // required - "", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md deleted file mode 100644 index 9833f5ec8b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateFloatColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - 0, // default - 0, // min (optional) - 0, // max (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md deleted file mode 100644 index 059b1328d5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateIntegerColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - 0, // default - 0, // min (optional) - 0, // max (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md deleted file mode 100644 index 8e31214981..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateIpColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md deleted file mode 100644 index b90b21b164..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateRelationshipColumn( - "", // databaseId - "", // tableId - "", // key - RelationMutate.CASCADE, // onDelete (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md deleted file mode 100644 index 5f95afb5f5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.updateRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md deleted file mode 100644 index 67c9a1be89..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateRows( - "", // databaseId - "", // tableId - mapOf( "a" to "b" ), // data (optional) - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md deleted file mode 100644 index 13e266abc0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateStringColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "", // default - 1, // size (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md deleted file mode 100644 index 24dfc05e49..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateTable( - "", // databaseId - "", // tableId - "", // name - listOf("read("any")"), // permissions (optional) - false, // rowSecurity (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md deleted file mode 100644 index 5217121225..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateUrlColumn( - "", // databaseId - "", // tableId - "", // key - false, // required - "https://example.com", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md deleted file mode 100644 index 8f1b8670df..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.upsertRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md deleted file mode 100644 index 2081f0f19f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey(""); // Your secret API key - -Grids grids = new Grids(client); - -grids.upsertRows( - "", // databaseId - "", // tableId - listOf(), // rows - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md index 695fdbdfaa..93da01eefa 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md @@ -4,8 +4,9 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT("") // Your secret JSON Web Token val databases = Databases(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-documents.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-documents.md index 41a98dc016..ddce31c71c 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-documents.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setAdmin("") // .setKey("") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md index d8be0e13db..df261dbcb6 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md @@ -4,15 +4,14 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT("") // Your secret JSON Web Token val databases = Databases(client) val response = databases.upsertDocument( databaseId = "", collectionId = "", - documentId = "", - data = mapOf( "a" to "b" ), - permissions = listOf("read("any")") // optional + documentId = "" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-documents.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-documents.md index ca861c61b2..1cb376f107 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-documents.md @@ -4,13 +4,12 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setAdmin("") // .setKey("") // Your secret API key val databases = Databases(client) val response = databases.upsertDocuments( databaseId = "", - collectionId = "", - documents = listOf() + collectionId = "" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md index 2734412232..94bfa2310c 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/functions/create-execution.md @@ -16,5 +16,5 @@ val response = functions.createExecution( path = "", // optional method = "GET", // optional headers = mapOf( "a" to "b" ), // optional - scheduledAt = "" // optional + scheduledAt = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md deleted file mode 100644 index 5966655e1e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createBooleanColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = false, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md deleted file mode 100644 index bc9999ff18..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createDatabase( - databaseId = "", - name = "", - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md deleted file mode 100644 index f3b11b5018..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createDatetimeColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md deleted file mode 100644 index a70dd3ac45..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createEmailColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "email@example.com", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md deleted file mode 100644 index 3858155479..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createEnumColumn( - databaseId = "", - tableId = "", - key = "", - elements = listOf(), - required = false, - default = "", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md deleted file mode 100644 index d7b4c0155d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createFloatColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - min = 0, // optional - max = 0, // optional - default = 0, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md deleted file mode 100644 index df16a35cc2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids -import io.appwrite.enums.IndexType - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createIndex( - databaseId = "", - tableId = "", - key = "", - type = IndexType.KEY, - columns = listOf(), - orders = listOf(), // optional - lengths = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md deleted file mode 100644 index db8bde2d72..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createIntegerColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - min = 0, // optional - max = 0, // optional - default = 0, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md deleted file mode 100644 index f3ab36bd0c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createIpColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md deleted file mode 100644 index 9ba4cafbb7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids -import io.appwrite.enums.RelationshipType - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createRelationshipColumn( - databaseId = "", - tableId = "", - relatedTableId = "", - type = RelationshipType.ONETOONE, - twoWay = false, // optional - key = "", // optional - twoWayKey = "", // optional - onDelete = "cascade" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md deleted file mode 100644 index 0c3d2531c5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.createRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), - permissions = listOf("read("any")") // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md deleted file mode 100644 index 9c7da7c93b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createRows( - databaseId = "", - tableId = "", - rows = listOf() -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md deleted file mode 100644 index f6793c817b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createStringColumn( - databaseId = "", - tableId = "", - key = "", - size = 1, - required = false, - default = "", // optional - array = false, // optional - encrypt = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md deleted file mode 100644 index 55de471725..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createTable( - databaseId = "", - tableId = "", - name = "", - permissions = listOf("read("any")"), // optional - rowSecurity = false, // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md deleted file mode 100644 index 33311e29ca..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.createUrlColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "https://example.com", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md deleted file mode 100644 index 9a450f66f3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.decrementRowColumn( - databaseId = "", - tableId = "", - rowId = "", - column = "", - value = 0, // optional - min = 0 // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md deleted file mode 100644 index 09636dae09..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteColumn( - databaseId = "", - tableId = "", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md deleted file mode 100644 index f872453a99..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteDatabase( - databaseId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md deleted file mode 100644 index d3037ca6b0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteIndex( - databaseId = "", - tableId = "", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md deleted file mode 100644 index 25b60e0e2d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.deleteRow( - databaseId = "", - tableId = "", - rowId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md deleted file mode 100644 index c3aa106eac..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteRows( - databaseId = "", - tableId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md deleted file mode 100644 index f0208d4345..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteTable( - databaseId = "", - tableId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md deleted file mode 100644 index 92890a7dc3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.getColumn( - databaseId = "", - tableId = "", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md deleted file mode 100644 index fd91ab0ad3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.getDatabase( - databaseId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md deleted file mode 100644 index 7c0b2dc8cb..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.getIndex( - databaseId = "", - tableId = "", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md deleted file mode 100644 index b217814b27..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.getRow( - databaseId = "", - tableId = "", - rowId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md deleted file mode 100644 index d8a4cd243e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.getTable( - databaseId = "", - tableId = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md deleted file mode 100644 index adbe5c287e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.incrementRowColumn( - databaseId = "", - tableId = "", - rowId = "", - column = "", - value = 0, // optional - max = 0 // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md deleted file mode 100644 index b033eb423d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.listColumns( - databaseId = "", - tableId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md deleted file mode 100644 index c713568269..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.listDatabases( - queries = listOf(), // optional - search = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md deleted file mode 100644 index 84bbcbd232..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.listIndexes( - databaseId = "", - tableId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md deleted file mode 100644 index ea54280ff3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.listRows( - databaseId = "", - tableId = "", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md deleted file mode 100644 index 6bb5a588b2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.listTables( - databaseId = "", - queries = listOf(), // optional - search = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md deleted file mode 100644 index b9360ec99e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateBooleanColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = false, - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md deleted file mode 100644 index ae8aacc343..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateDatabase( - databaseId = "", - name = "", - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md deleted file mode 100644 index 50282217d7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateDatetimeColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md deleted file mode 100644 index a9c2996800..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateEmailColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "email@example.com", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md deleted file mode 100644 index c23eef358b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateEnumColumn( - databaseId = "", - tableId = "", - key = "", - elements = listOf(), - required = false, - default = "", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md deleted file mode 100644 index 1054c34fbd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateFloatColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = 0, - min = 0, // optional - max = 0, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md deleted file mode 100644 index 288c74b4fe..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateIntegerColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = 0, - min = 0, // optional - max = 0, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md deleted file mode 100644 index cbc358a3b6..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateIpColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md deleted file mode 100644 index 99df537cfe..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateRelationshipColumn( - databaseId = "", - tableId = "", - key = "", - onDelete = "cascade", // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md deleted file mode 100644 index ae18af353a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.updateRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), // optional - permissions = listOf("read("any")") // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md deleted file mode 100644 index 3682cd0724..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateRows( - databaseId = "", - tableId = "", - data = mapOf( "a" to "b" ), // optional - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md deleted file mode 100644 index 8f7a213260..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateStringColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "", - size = 1, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md deleted file mode 100644 index 99232d858f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateTable( - databaseId = "", - tableId = "", - name = "", - permissions = listOf("read("any")"), // optional - rowSecurity = false, // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md deleted file mode 100644 index 65d299dba8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateUrlColumn( - databaseId = "", - tableId = "", - key = "", - required = false, - default = "https://example.com", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md deleted file mode 100644 index cbf0f38c8d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.upsertRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), // optional - permissions = listOf("read("any")") // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md deleted file mode 100644 index c767b66803..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -val grids = Grids(client) - -val response = grids.upsertRows( - databaseId = "", - tableId = "", - rows = listOf() -) diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md index a2e77b9241..44cfc3c199 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md @@ -2,8 +2,9 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token const databases = new sdk.Databases(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-documents.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-documents.md index d73df44cd1..7ecaa6bef4 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-documents.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setAdmin('') // .setKey(''); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md index fcc62d601c..7f2ffba3a3 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md @@ -2,15 +2,14 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with + .setSession('') // The user session to authenticate with + .setKey('') // Your secret API key + .setJWT(''); // Your secret JSON Web Token const databases = new sdk.Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '', // documentId - {}, // data - ["read("any")"] // permissions (optional) + '' // documentId ); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-documents.md index 425b7ba51f..52f7b55e11 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-documents.md @@ -2,13 +2,12 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setAdmin('') // .setKey(''); // Your secret API key const databases = new sdk.Databases(client); const result = await databases.upsertDocuments( '', // databaseId - '', // collectionId - [] // documents + '' // collectionId ); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md index 5671483191..3c89030ca6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md @@ -14,5 +14,5 @@ const result = await functions.createExecution( '', // path (optional) sdk.ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md deleted file mode 100644 index dae3f30840..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md deleted file mode 100644 index 720c0d6f23..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createDatabase( - '', // databaseId - '', // name - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md deleted file mode 100644 index d2b5c7e00f..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md deleted file mode 100644 index ce56e96d85..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md deleted file mode 100644 index 653b1ed75c..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md deleted file mode 100644 index dc6aee4805..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md deleted file mode 100644 index 975fa3047e..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createIndex( - '', // databaseId - '', // tableId - '', // key - sdk.IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md deleted file mode 100644 index 3444f82b58..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md deleted file mode 100644 index 52a9e8fbeb..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md deleted file mode 100644 index c0270dab85..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createRelationshipColumn( - '', // databaseId - '', // tableId - '', // relatedTableId - sdk.RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - sdk.RelationMutate.Cascade // onDelete (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md deleted file mode 100644 index a8495c4b94..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md deleted file mode 100644 index c9400a4edf..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createRows( - '', // databaseId - '', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md deleted file mode 100644 index f72d042dfb..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createStringColumn( - '', // databaseId - '', // tableId - '', // key - 1, // size - false, // required - '', // default (optional) - false, // array (optional) - false // encrypt (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md deleted file mode 100644 index d022de372f..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createTable( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md deleted file mode 100644 index 83c6d5a01b..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md deleted file mode 100644 index a166a1bfc0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.decrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // min (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md deleted file mode 100644 index 7130f48cae..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteColumn( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md deleted file mode 100644 index 4a31d091b7..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteDatabase( - '' // databaseId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md deleted file mode 100644 index b266062053..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteIndex( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md deleted file mode 100644 index cf202374a0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md deleted file mode 100644 index aa36bacbda..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md deleted file mode 100644 index d3bb221e0d..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteTable( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md deleted file mode 100644 index d3b08936d2..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.getColumn( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md deleted file mode 100644 index 7d27bbca94..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.getDatabase( - '' // databaseId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md deleted file mode 100644 index e47b942df9..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.getIndex( - '', // databaseId - '', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md deleted file mode 100644 index 15c753000a..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md deleted file mode 100644 index f7b28eb191..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.getTable( - '', // databaseId - '' // tableId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md deleted file mode 100644 index ac5257f658..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.incrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // max (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md deleted file mode 100644 index dbfaac0262..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.listColumns( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md deleted file mode 100644 index 8a20b2ac88..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.listDatabases( - [], // queries (optional) - '' // search (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md deleted file mode 100644 index 8a102996a6..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.listIndexes( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md deleted file mode 100644 index 9f9bb3bc33..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md deleted file mode 100644 index e020b883e0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.listTables( - '', // databaseId - [], // queries (optional) - '' // search (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md deleted file mode 100644 index b695e2d194..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md deleted file mode 100644 index 689c38f605..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateDatabase( - '', // databaseId - '', // name - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md deleted file mode 100644 index 8ec6f1cda7..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md deleted file mode 100644 index f8e0918819..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md deleted file mode 100644 index bda1aad53a..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md deleted file mode 100644 index ae3d5ceb4b..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md deleted file mode 100644 index a3e28bc406..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md deleted file mode 100644 index ff8692f81e..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md deleted file mode 100644 index 19f957f67a..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateRelationshipColumn( - '', // databaseId - '', // tableId - '', // key - sdk.RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md deleted file mode 100644 index 79c845f558..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md deleted file mode 100644 index 65c8f63cbd..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateRows( - '', // databaseId - '', // tableId - {}, // data (optional) - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md deleted file mode 100644 index b04f38bd5d..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateStringColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - 1, // size (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md deleted file mode 100644 index 3d80666600..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateTable( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md deleted file mode 100644 index aa368bfcc0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md deleted file mode 100644 index 03476fc311..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.upsertRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md deleted file mode 100644 index 19f2ce1a90..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.upsertRows( - '', // databaseId - '', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-document.md b/docs/examples/1.8.x/server-php/examples/databases/create-document.md index bf1ee3f62a..8726b37719 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-document.md @@ -5,8 +5,9 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with + ->setSession('') // The user session to authenticate with + ->setKey('') // Your secret API key + ->setJWT(''); // Your secret JSON Web Token $databases = new Databases($client); diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-documents.md b/docs/examples/1.8.x/server-php/examples/databases/create-documents.md index bc05f67260..9429b57aba 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-documents.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID + ->setAdmin('') // ->setKey(''); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md index 6cff8296a3..2f8464c995 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md @@ -5,15 +5,14 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with + ->setSession('') // The user session to authenticate with + ->setKey('') // Your secret API key + ->setJWT(''); // Your secret JSON Web Token $databases = new Databases($client); $result = $databases->upsertDocument( databaseId: '', collectionId: '', - documentId: '', - data: [], - permissions: ["read("any")"] // optional + documentId: '' ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-php/examples/databases/upsert-documents.md index d9f9efda5c..11898dc33a 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-php/examples/databases/upsert-documents.md @@ -5,13 +5,12 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID + ->setAdmin('') // ->setKey(''); // Your secret API key $databases = new Databases($client); $result = $databases->upsertDocuments( databaseId: '', - collectionId: '', - documents: [] + collectionId: '' ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/functions/create-execution.md b/docs/examples/1.8.x/server-php/examples/functions/create-execution.md index cd11b5ea6e..9aeb976cf3 100644 --- a/docs/examples/1.8.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-php/examples/functions/create-execution.md @@ -17,5 +17,5 @@ $result = $functions->createExecution( path: '', // optional method: ExecutionMethod::GET(), // optional headers: [], // optional - scheduledAt: '' // optional + scheduledAt: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md deleted file mode 100644 index 22e7cf8058..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createBooleanColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: false, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-database.md b/docs/examples/1.8.x/server-php/examples/grids/create-database.md deleted file mode 100644 index ff7c3f73fb..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-database.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createDatabase( - databaseId: '', - name: '', - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md deleted file mode 100644 index afb847fd30..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createDatetimeColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md deleted file mode 100644 index 7516614820..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createEmailColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: 'email@example.com', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md deleted file mode 100644 index f4a9ff2e5d..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md +++ /dev/null @@ -1,21 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createEnumColumn( - databaseId: '', - tableId: '', - key: '', - elements: [], - required: false, - default: '', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md deleted file mode 100644 index 7a02a1790b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createFloatColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - min: null, // optional - max: null, // optional - default: null, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-index.md b/docs/examples/1.8.x/server-php/examples/grids/create-index.md deleted file mode 100644 index 31bfdc2754..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-index.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createIndex( - databaseId: '', - tableId: '', - key: '', - type: IndexType::KEY(), - columns: [], - orders: [], // optional - lengths: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md deleted file mode 100644 index 6495fc6309..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createIntegerColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - min: null, // optional - max: null, // optional - default: null, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md deleted file mode 100644 index 65379a2f94..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createIpColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md deleted file mode 100644 index cde72569ad..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,23 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createRelationshipColumn( - databaseId: '', - tableId: '', - relatedTableId: '', - type: RelationshipType::ONETOONE(), - twoWay: false, // optional - key: '', // optional - twoWayKey: '', // optional - onDelete: RelationMutate::CASCADE() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-row.md b/docs/examples/1.8.x/server-php/examples/grids/create-row.md deleted file mode 100644 index 58f678c6c3..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->createRow( - databaseId: '', - tableId: '', - rowId: '', - data: [], - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-rows.md b/docs/examples/1.8.x/server-php/examples/grids/create-rows.md deleted file mode 100644 index 531ebaf846..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createRows( - databaseId: '', - tableId: '', - rows: [] -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md deleted file mode 100644 index a5acf25859..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createStringColumn( - databaseId: '', - tableId: '', - key: '', - size: 1, - required: false, - default: '', // optional - array: false, // optional - encrypt: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-table.md b/docs/examples/1.8.x/server-php/examples/grids/create-table.md deleted file mode 100644 index ca6e017375..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-table.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createTable( - databaseId: '', - tableId: '', - name: '', - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md deleted file mode 100644 index b0149f279b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createUrlColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: 'https://example.com', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md deleted file mode 100644 index d7db09ed30..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->decrementRowColumn( - databaseId: '', - tableId: '', - rowId: '', - column: '', - value: null, // optional - min: null // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-column.md b/docs/examples/1.8.x/server-php/examples/grids/delete-column.md deleted file mode 100644 index 3862ecbde9..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-column.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteColumn( - databaseId: '', - tableId: '', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-database.md b/docs/examples/1.8.x/server-php/examples/grids/delete-database.md deleted file mode 100644 index 761406ba9b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-database.md +++ /dev/null @@ -1,15 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteDatabase( - databaseId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-index.md b/docs/examples/1.8.x/server-php/examples/grids/delete-index.md deleted file mode 100644 index 913091455b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-index.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteIndex( - databaseId: '', - tableId: '', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-row.md b/docs/examples/1.8.x/server-php/examples/grids/delete-row.md deleted file mode 100644 index 14b72e6e56..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-row.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->deleteRow( - databaseId: '', - tableId: '', - rowId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md deleted file mode 100644 index 567b497f04..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteRows( - databaseId: '', - tableId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-table.md b/docs/examples/1.8.x/server-php/examples/grids/delete-table.md deleted file mode 100644 index ea0eeda80f..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-table.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteTable( - databaseId: '', - tableId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-column.md b/docs/examples/1.8.x/server-php/examples/grids/get-column.md deleted file mode 100644 index ac2c9bb0c4..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-column.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->getColumn( - databaseId: '', - tableId: '', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-database.md b/docs/examples/1.8.x/server-php/examples/grids/get-database.md deleted file mode 100644 index c3e9f896c2..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-database.md +++ /dev/null @@ -1,15 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->getDatabase( - databaseId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-index.md b/docs/examples/1.8.x/server-php/examples/grids/get-index.md deleted file mode 100644 index 2434fd933b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-index.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->getIndex( - databaseId: '', - tableId: '', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-row.md b/docs/examples/1.8.x/server-php/examples/grids/get-row.md deleted file mode 100644 index e13ea67209..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-row.md +++ /dev/null @@ -1,18 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->getRow( - databaseId: '', - tableId: '', - rowId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-table.md b/docs/examples/1.8.x/server-php/examples/grids/get-table.md deleted file mode 100644 index 1c9721f1c7..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-table.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->getTable( - databaseId: '', - tableId: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md deleted file mode 100644 index fc9ee9a9eb..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->incrementRowColumn( - databaseId: '', - tableId: '', - rowId: '', - column: '', - value: null, // optional - max: null // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-columns.md b/docs/examples/1.8.x/server-php/examples/grids/list-columns.md deleted file mode 100644 index 7be7581a28..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-columns.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->listColumns( - databaseId: '', - tableId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-databases.md b/docs/examples/1.8.x/server-php/examples/grids/list-databases.md deleted file mode 100644 index f5fec16a25..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-databases.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->listDatabases( - queries: [], // optional - search: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md deleted file mode 100644 index d23248e5d4..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->listIndexes( - databaseId: '', - tableId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-rows.md b/docs/examples/1.8.x/server-php/examples/grids/list-rows.md deleted file mode 100644 index c8537651c6..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->listRows( - databaseId: '', - tableId: '', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-tables.md b/docs/examples/1.8.x/server-php/examples/grids/list-tables.md deleted file mode 100644 index 95f4f7b65d..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-tables.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->listTables( - databaseId: '', - queries: [], // optional - search: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md deleted file mode 100644 index bc7405d35d..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateBooleanColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: false, - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-database.md b/docs/examples/1.8.x/server-php/examples/grids/update-database.md deleted file mode 100644 index 9d71e5e043..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-database.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateDatabase( - databaseId: '', - name: '', - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md deleted file mode 100644 index 6850a6d373..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateDatetimeColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md deleted file mode 100644 index 6fe7f82477..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateEmailColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: 'email@example.com', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md deleted file mode 100644 index 4a18d02488..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md +++ /dev/null @@ -1,21 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateEnumColumn( - databaseId: '', - tableId: '', - key: '', - elements: [], - required: false, - default: '', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md deleted file mode 100644 index 5e58f8efaf..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateFloatColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: null, - min: null, // optional - max: null, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md deleted file mode 100644 index c097b7e286..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md +++ /dev/null @@ -1,22 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateIntegerColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: null, - min: null, // optional - max: null, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md deleted file mode 100644 index 9ce131b8e1..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateIpColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md deleted file mode 100644 index a0241afb06..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateRelationshipColumn( - databaseId: '', - tableId: '', - key: '', - onDelete: RelationMutate::CASCADE(), // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-row.md b/docs/examples/1.8.x/server-php/examples/grids/update-row.md deleted file mode 100644 index a0aae15730..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-row.md +++ /dev/null @@ -1,19 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->updateRow( - databaseId: '', - tableId: '', - rowId: '', - data: [], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-rows.md b/docs/examples/1.8.x/server-php/examples/grids/update-rows.md deleted file mode 100644 index 270489f44e..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-rows.md +++ /dev/null @@ -1,18 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateRows( - databaseId: '', - tableId: '', - data: [], // optional - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md deleted file mode 100644 index 6213deb7aa..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateStringColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: '', - size: 1, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-table.md b/docs/examples/1.8.x/server-php/examples/grids/update-table.md deleted file mode 100644 index 1483eee2a9..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-table.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateTable( - databaseId: '', - tableId: '', - name: '', - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md deleted file mode 100644 index 7f7916c81a..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md +++ /dev/null @@ -1,20 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateUrlColumn( - databaseId: '', - tableId: '', - key: '', - required: false, - default: 'https://example.com', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md deleted file mode 100644 index a07cbe976f..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md +++ /dev/null @@ -1,19 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->upsertRow( - databaseId: '', - tableId: '', - rowId: '', - data: [], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md deleted file mode 100644 index 5d31648e02..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->upsertRows( - databaseId: '', - tableId: '', - rows: [] -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-document.md b/docs/examples/1.8.x/server-python/examples/databases/create-document.md index 1eaf0246f3..1a8500b0f2 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-document.md @@ -3,8 +3,9 @@ from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID client.set_session('') # The user session to authenticate with +client.set_key('') # Your secret API key +client.set_jwt('') # Your secret JSON Web Token databases = Databases(client) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-documents.md b/docs/examples/1.8.x/server-python/examples/databases/create-documents.md index 1b94e5165a..27ad6e8aa8 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-documents.md @@ -3,7 +3,7 @@ from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID +client.set_admin('') # client.set_key('') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md index c491ea4f44..8711e442c5 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md @@ -3,15 +3,14 @@ from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID client.set_session('') # The user session to authenticate with +client.set_key('') # Your secret API key +client.set_jwt('') # Your secret JSON Web Token databases = Databases(client) result = databases.upsert_document( database_id = '', collection_id = '', - document_id = '', - data = {}, - permissions = ["read("any")"] # optional + document_id = '' ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-python/examples/databases/upsert-documents.md index 5136d5fcb1..79888c8be3 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-python/examples/databases/upsert-documents.md @@ -3,13 +3,12 @@ from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID +client.set_admin('') # client.set_key('') # Your secret API key databases = Databases(client) result = databases.upsert_documents( database_id = '', - collection_id = '', - documents = [] + collection_id = '' ) diff --git a/docs/examples/1.8.x/server-python/examples/functions/create-execution.md b/docs/examples/1.8.x/server-python/examples/functions/create-execution.md index f80b8646c2..b41c7e376c 100644 --- a/docs/examples/1.8.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-python/examples/functions/create-execution.md @@ -15,5 +15,5 @@ result = functions.create_execution( path = '', # optional method = ExecutionMethod.GET, # optional headers = {}, # optional - scheduled_at = '' # optional + scheduled_at = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md deleted file mode 100644 index 73d8323533..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_boolean_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = False, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-database.md b/docs/examples/1.8.x/server-python/examples/grids/create-database.md deleted file mode 100644 index a7749e4903..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-database.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_database( - database_id = '', - name = '', - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md deleted file mode 100644 index a98024c16c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_datetime_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md deleted file mode 100644 index 372cbafce3..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_email_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = 'email@example.com', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md deleted file mode 100644 index d7b47c80cb..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_enum_column( - database_id = '', - table_id = '', - key = '', - elements = [], - required = False, - default = '', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md deleted file mode 100644 index 5a52128ac1..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_float_column( - database_id = '', - table_id = '', - key = '', - required = False, - min = None, # optional - max = None, # optional - default = None, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-index.md b/docs/examples/1.8.x/server-python/examples/grids/create-index.md deleted file mode 100644 index 1d67b8abc0..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-index.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids -from appwrite.enums import IndexType - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_index( - database_id = '', - table_id = '', - key = '', - type = IndexType.KEY, - columns = [], - orders = [], # optional - lengths = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md deleted file mode 100644 index aed49578aa..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_integer_column( - database_id = '', - table_id = '', - key = '', - required = False, - min = None, # optional - max = None, # optional - default = None, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md deleted file mode 100644 index af873c91a1..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_ip_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md deleted file mode 100644 index 3cb858d260..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,21 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids -from appwrite.enums import RelationshipType - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_relationship_column( - database_id = '', - table_id = '', - related_table_id = '', - type = RelationshipType.ONETOONE, - two_way = False, # optional - key = '', # optional - two_way_key = '', # optional - on_delete = RelationMutate.CASCADE # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-row.md b/docs/examples/1.8.x/server-python/examples/grids/create-row.md deleted file mode 100644 index 5645f0bd23..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.create_row( - database_id = '', - table_id = '', - row_id = '', - data = {}, - permissions = ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-rows.md b/docs/examples/1.8.x/server-python/examples/grids/create-rows.md deleted file mode 100644 index 3274c48a10..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_rows( - database_id = '', - table_id = '', - rows = [] -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md deleted file mode 100644 index 3771a070ba..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_string_column( - database_id = '', - table_id = '', - key = '', - size = 1, - required = False, - default = '', # optional - array = False, # optional - encrypt = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-table.md b/docs/examples/1.8.x/server-python/examples/grids/create-table.md deleted file mode 100644 index 64c1b50d69..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-table.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_table( - database_id = '', - table_id = '', - name = '', - permissions = ["read("any")"], # optional - row_security = False, # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md deleted file mode 100644 index 45c1a2d82e..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.create_url_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = 'https://example.com', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md deleted file mode 100644 index 9608337398..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.decrement_row_column( - database_id = '', - table_id = '', - row_id = '', - column = '', - value = None, # optional - min = None # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-column.md b/docs/examples/1.8.x/server-python/examples/grids/delete-column.md deleted file mode 100644 index 650a1c3578..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.delete_column( - database_id = '', - table_id = '', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-database.md b/docs/examples/1.8.x/server-python/examples/grids/delete-database.md deleted file mode 100644 index 9898c07bc8..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-database.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.delete_database( - database_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-index.md b/docs/examples/1.8.x/server-python/examples/grids/delete-index.md deleted file mode 100644 index fed36f1d9c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.delete_index( - database_id = '', - table_id = '', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-row.md b/docs/examples/1.8.x/server-python/examples/grids/delete-row.md deleted file mode 100644 index eb1e661738..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.delete_row( - database_id = '', - table_id = '', - row_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md deleted file mode 100644 index 31503cdee1..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.delete_rows( - database_id = '', - table_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-table.md b/docs/examples/1.8.x/server-python/examples/grids/delete-table.md deleted file mode 100644 index d170c31d20..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-table.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.delete_table( - database_id = '', - table_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-column.md b/docs/examples/1.8.x/server-python/examples/grids/get-column.md deleted file mode 100644 index a724e07b0a..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.get_column( - database_id = '', - table_id = '', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-database.md b/docs/examples/1.8.x/server-python/examples/grids/get-database.md deleted file mode 100644 index e393d7587b..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-database.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.get_database( - database_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-index.md b/docs/examples/1.8.x/server-python/examples/grids/get-index.md deleted file mode 100644 index 6e3753dea5..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.get_index( - database_id = '', - table_id = '', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-row.md b/docs/examples/1.8.x/server-python/examples/grids/get-row.md deleted file mode 100644 index 939a992868..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.get_row( - database_id = '', - table_id = '', - row_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-table.md b/docs/examples/1.8.x/server-python/examples/grids/get-table.md deleted file mode 100644 index afe24bd0f2..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-table.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.get_table( - database_id = '', - table_id = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md deleted file mode 100644 index 598cf58874..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.increment_row_column( - database_id = '', - table_id = '', - row_id = '', - column = '', - value = None, # optional - max = None # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-columns.md b/docs/examples/1.8.x/server-python/examples/grids/list-columns.md deleted file mode 100644 index b78327182c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.list_columns( - database_id = '', - table_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-databases.md b/docs/examples/1.8.x/server-python/examples/grids/list-databases.md deleted file mode 100644 index 78c5cb4bd7..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-databases.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.list_databases( - queries = [], # optional - search = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md deleted file mode 100644 index a6b52416c6..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.list_indexes( - database_id = '', - table_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-rows.md b/docs/examples/1.8.x/server-python/examples/grids/list-rows.md deleted file mode 100644 index 975f88f763..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.list_rows( - database_id = '', - table_id = '', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-tables.md b/docs/examples/1.8.x/server-python/examples/grids/list-tables.md deleted file mode 100644 index 3e2e5508bc..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-tables.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.list_tables( - database_id = '', - queries = [], # optional - search = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md deleted file mode 100644 index 6bcbf27355..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_boolean_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = False, - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-database.md b/docs/examples/1.8.x/server-python/examples/grids/update-database.md deleted file mode 100644 index 2df676bcbc..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-database.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_database( - database_id = '', - name = '', - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md deleted file mode 100644 index 6ae0e4dea5..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_datetime_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md deleted file mode 100644 index c1ff1d0637..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_email_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = 'email@example.com', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md deleted file mode 100644 index 6da49cfb81..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_enum_column( - database_id = '', - table_id = '', - key = '', - elements = [], - required = False, - default = '', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md deleted file mode 100644 index 8d3d9edb5f..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_float_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = None, - min = None, # optional - max = None, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md deleted file mode 100644 index 966f7b6805..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_integer_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = None, - min = None, # optional - max = None, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md deleted file mode 100644 index e5fccac320..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_ip_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md deleted file mode 100644 index fcff4591fd..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_relationship_column( - database_id = '', - table_id = '', - key = '', - on_delete = RelationMutate.CASCADE, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-row.md b/docs/examples/1.8.x/server-python/examples/grids/update-row.md deleted file mode 100644 index e379697ce4..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.update_row( - database_id = '', - table_id = '', - row_id = '', - data = {}, # optional - permissions = ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-rows.md b/docs/examples/1.8.x/server-python/examples/grids/update-rows.md deleted file mode 100644 index 344bb5904b..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_rows( - database_id = '', - table_id = '', - data = {}, # optional - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md deleted file mode 100644 index f303189b80..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_string_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = '', - size = 1, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-table.md b/docs/examples/1.8.x/server-python/examples/grids/update-table.md deleted file mode 100644 index cfd5b4d92e..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-table.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_table( - database_id = '', - table_id = '', - name = '', - permissions = ["read("any")"], # optional - row_security = False, # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md deleted file mode 100644 index ea6dc386ed..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.update_url_column( - database_id = '', - table_id = '', - key = '', - required = False, - default = 'https://example.com', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md deleted file mode 100644 index 79528818e0..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.upsert_row( - database_id = '', - table_id = '', - row_id = '', - data = {}, # optional - permissions = ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md deleted file mode 100644 index b7573d4794..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('') # Your project ID -client.set_key('') # Your secret API key - -grids = Grids(client) - -result = grids.upsert_rows( - database_id = '', - table_id = '', - rows = [] -) diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md index b62c82a6a8..2079b045d1 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md @@ -1,6 +1,6 @@ POST /v1/account/sessions/anonymous HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md index 1103d2ebfb..8aee0e5b15 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ POST /v1/account/sessions/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md index 552b724b9c..98c5c9b454 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md index 62a7dee7e9..a8da4695c3 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md @@ -1,6 +1,6 @@ POST /v1/account/jwts HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md index 29d68bd0fa..a3db43516a 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/magic-url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-authenticator.md index 62a068b6cf..8d6b52b877 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md index dd5ef4c731..9a84c0ef69 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/challenge HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-recovery-codes.md index f09323df0b..797824d5d7 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ POST /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md index 8a0cab614f..dd1dd3ec5e 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md @@ -1,4 +1,4 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md index 5127c8377a..eef1021d9e 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ POST /v1/account/tokens/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-phone-verification.md b/docs/examples/1.8.x/server-rest/examples/account/create-phone-verification.md index 57b3b7d160..d161e580ff 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-phone-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ POST /v1/account/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-recovery.md b/docs/examples/1.8.x/server-rest/examples/account/create-recovery.md index ea0146228b..c195b96a5e 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-recovery.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-recovery.md @@ -1,7 +1,7 @@ POST /v1/account/recovery HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-session.md index 0acc50cda6..18e3b1acdd 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-session.md @@ -1,7 +1,7 @@ POST /v1/account/sessions/token HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-verification.md b/docs/examples/1.8.x/server-rest/examples/account/create-verification.md index ed5479dbe5..1185d3a875 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-verification.md @@ -1,7 +1,7 @@ POST /v1/account/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create.md b/docs/examples/1.8.x/server-rest/examples/account/create.md index 15bb386f41..f546c07de5 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create.md @@ -1,7 +1,7 @@ POST /v1/account HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-identity.md b/docs/examples/1.8.x/server-rest/examples/account/delete-identity.md index bacca18870..edb036a593 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-identity.md +++ b/docs/examples/1.8.x/server-rest/examples/account/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/account/identities/{identityId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/delete-mfa-authenticator.md index a0eb5a0869..de58948195 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-session.md b/docs/examples/1.8.x/server-rest/examples/account/delete-session.md index c9b0f48d6f..9454a84913 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-sessions.md b/docs/examples/1.8.x/server-rest/examples/account/delete-sessions.md index 0b3fcd1c45..97931c12e5 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/get-mfa-recovery-codes.md index 2ab10a2475..81edee5234 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/account/get-mfa-recovery-codes.md @@ -1,6 +1,6 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/get-prefs.md b/docs/examples/1.8.x/server-rest/examples/account/get-prefs.md index a038dacbfd..13a0b74d8f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/get-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/get-session.md b/docs/examples/1.8.x/server-rest/examples/account/get-session.md index 3e372a05ef..9417755b04 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/get-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/get-session.md @@ -1,6 +1,6 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/get.md b/docs/examples/1.8.x/server-rest/examples/account/get.md index 104b643074..023a6d116f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/get.md +++ b/docs/examples/1.8.x/server-rest/examples/account/get.md @@ -1,6 +1,6 @@ GET /v1/account HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-identities.md b/docs/examples/1.8.x/server-rest/examples/account/list-identities.md index 5acb221584..65edceb8d6 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/list-identities.md +++ b/docs/examples/1.8.x/server-rest/examples/account/list-identities.md @@ -1,6 +1,6 @@ GET /v1/account/identities HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-logs.md b/docs/examples/1.8.x/server-rest/examples/account/list-logs.md index 8314123c9e..71e2e138ef 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/list-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/list-logs.md @@ -1,6 +1,6 @@ GET /v1/account/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-rest/examples/account/list-mfa-factors.md index c591143d4e..217ec6cb30 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-rest/examples/account/list-mfa-factors.md @@ -1,6 +1,6 @@ GET /v1/account/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-sessions.md b/docs/examples/1.8.x/server-rest/examples/account/list-sessions.md index 89ef6962c9..7bff23f25b 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/list-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/account/list-sessions.md @@ -1,6 +1,6 @@ GET /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-email.md b/docs/examples/1.8.x/server-rest/examples/account/update-email.md index 382327e31b..fc3baaf4a4 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/account/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md index a22b169751..803c47a857 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ PATCH /v1/account/mfa HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md index 1a82afbfcc..3238322e0f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ PUT /v1/account/sessions/magic-url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-authenticator.md index 780472291c..9d3e5dceea 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-challenge.md index b6a7e92b28..ddc27ae334 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ PUT /v1/account/mfa/challenge HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-recovery-codes.md index 74e9225f3e..e4ab8abb3b 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-name.md b/docs/examples/1.8.x/server-rest/examples/account/update-name.md index 4c9c0e302c..f2f7caa204 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-name.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-name.md @@ -1,7 +1,7 @@ PATCH /v1/account/name HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-password.md b/docs/examples/1.8.x/server-rest/examples/account/update-password.md index e05a1c2b7f..4f69b9ab3f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-password.md @@ -1,7 +1,7 @@ PATCH /v1/account/password HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md index 54872eecd2..f1bc27d201 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ PUT /v1/account/sessions/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: { diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-phone-verification.md b/docs/examples/1.8.x/server-rest/examples/account/update-phone-verification.md index 1d4dc22520..ee6f5a68ff 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-phone-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ PUT /v1/account/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-phone.md b/docs/examples/1.8.x/server-rest/examples/account/update-phone.md index 791caadb0d..bbe602a181 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-phone.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-phone.md @@ -1,7 +1,7 @@ PATCH /v1/account/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md index 24f2d3bcb6..aeabc2b68f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md @@ -1,7 +1,7 @@ PATCH /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md index 7d40ee79fe..054aacc8ed 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md @@ -1,7 +1,7 @@ PUT /v1/account/recovery HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-session.md index 8e2257aeed..9b2ba0e4a7 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-session.md @@ -1,7 +1,7 @@ PATCH /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-status.md b/docs/examples/1.8.x/server-rest/examples/account/update-status.md index 557697fe5f..8a3e01db0b 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-status.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-status.md @@ -1,7 +1,7 @@ PATCH /v1/account/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-verification.md b/docs/examples/1.8.x/server-rest/examples/account/update-verification.md index a4dcbf76a3..0c5ed8b55d 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-verification.md @@ -1,7 +1,7 @@ PUT /v1/account/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-browser.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-browser.md index 36999839cc..3f18fa0d1e 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-browser.md @@ -1,6 +1,6 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-credit-card.md index c9126af289..59a38fe8f3 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-credit-card.md @@ -1,6 +1,6 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-favicon.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-favicon.md index 5a928fc9cc..7a7c189da1 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-favicon.md @@ -1,6 +1,6 @@ GET /v1/avatars/favicon HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-flag.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-flag.md index c29ba10970..b4cd119359 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-flag.md @@ -1,6 +1,6 @@ GET /v1/avatars/flags/{code} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-image.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-image.md index dfc9fdcd92..ca6b5105c3 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-image.md @@ -1,6 +1,6 @@ GET /v1/avatars/image HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-initials.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-initials.md index c784f1ca56..eb90447158 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-initials.md @@ -1,6 +1,6 @@ GET /v1/avatars/initials HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md index bac1987d4e..77f7a3d382 100644 --- a/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md @@ -1,6 +1,6 @@ GET /v1/avatars/qr HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md index fb11c03cbd..8ae6c2d9ff 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md index 4f1e77728e..ea298e3706 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md index 3d0e718634..6ec4b332a5 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md index e4ba6ec1ff..a5c25315c2 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/create-documents.md index cee5405fb2..63503ebaaa 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-documents.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md index 02b7095d64..0fb7aa2814 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md index a921e10c5f..ba033a02ce 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md index ea9dde56ce..ee8cb7497f 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/float HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md index c78bdc37f9..6d9b486ed6 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md index cce3a3f265..721f10e0c7 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md index 80afccb4c1..61378e6780 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md index d9e6c6441c..c519a4a494 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/relationship HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md index 5591ca8d8a..7a5eafdf2a 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/string HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md index 4ee9595717..ea4d76ce06 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/url HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create.md b/docs/examples/1.8.x/server-rest/examples/databases/create.md index fd1ae143fa..dab52ff67c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create.md @@ -1,7 +1,7 @@ POST /v1/databases HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/decrement-document-attribute.md index 53ee43c6c5..d569f8d7e6 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/decrement-document-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/decrement HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-attribute.md index 5d8f7f2932..8b7f1eee07 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-collection.md index 96d044df4e..153b3a2bdd 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-document.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-document.md index b5580b04bf..ca093c9177 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-document.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-documents.md index cb27719953..49ab276fa6 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-documents.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete-index.md b/docs/examples/1.8.x/server-rest/examples/databases/delete-index.md index d8664ef7ca..9c27a6fd4c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete-index.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/delete.md b/docs/examples/1.8.x/server-rest/examples/databases/delete.md index 85d5f7bb0e..19cf58549a 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/delete.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/get-attribute.md index 60161187da..c4cd093de0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get-attribute.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/get-collection.md index 837138aaa0..0e33fc4ef7 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get-collection.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get-document.md b/docs/examples/1.8.x/server-rest/examples/databases/get-document.md index 78a0e7d37c..b71ec4f83c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get-document.md @@ -1,6 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get-index.md b/docs/examples/1.8.x/server-rest/examples/databases/get-index.md index 58665ed283..5aa5aa0fb2 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get-index.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/get.md b/docs/examples/1.8.x/server-rest/examples/databases/get.md index 644f251f56..7c43330625 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/get.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/get.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/increment-document-attribute.md index accfca5b06..8658cb0ee6 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/increment-document-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/increment HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list-attributes.md b/docs/examples/1.8.x/server-rest/examples/databases/list-attributes.md index 1d16e3308d..e829678007 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list-attributes.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list-attributes.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list-collections.md b/docs/examples/1.8.x/server-rest/examples/databases/list-collections.md index 18499144d3..0cfdce9c8e 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list-collections.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list-collections.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/list-documents.md index 468956232d..0bc5c9b7f9 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list-documents.md @@ -1,6 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list-indexes.md b/docs/examples/1.8.x/server-rest/examples/databases/list-indexes.md index 1e1f134ef0..e65ba2483c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list-indexes.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list-indexes.md @@ -1,5 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/list.md b/docs/examples/1.8.x/server-rest/examples/databases/list.md index 3b9530eec4..31db5cca0d 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/list.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/list.md @@ -1,5 +1,5 @@ GET /v1/databases HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md index 75f3d66b50..7a2ae34ce9 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/update-collection.md index 6d6e5603ed..4cba7f5230 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-collection.md @@ -1,7 +1,7 @@ PUT /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md index 59a477aca7..c9685e6c89 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-document.md b/docs/examples/1.8.x/server-rest/examples/databases/update-document.md index 9a156375de..19b25bdf45 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-document.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md index 69ea7a0d6f..f2606e3a1f 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md index 08257e8906..eece253459 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/email/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md index 8e69a703ea..47ef168090 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md index 214567660d..bb35f3450c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/float/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md index 1f566c1369..96290f4313 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md index 31bc18c587..9e3cf7d4b5 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md index 3cb7d4f679..645e8f8ae4 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md index 2026b854a9..650b6f1b8b 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/string/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md index 4f90c7ade3..8409285677 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/url/{key} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update.md b/docs/examples/1.8.x/server-rest/examples/databases/update.md index d57ad48927..02efbf5270 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update.md @@ -1,7 +1,7 @@ PUT /v1/databases/{databaseId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md index 97b61bfc7f..7339c7e611 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md @@ -1,13 +1,9 @@ PUT /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: X-Appwrite-JWT: -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/upsert-documents.md index 4bcb9cb0c0..1a24810a03 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/upsert-documents.md @@ -1,10 +1,7 @@ PUT /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: -{ - "documents": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md index f68e54dedc..5d65eff5fd 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-duplicate-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-duplicate-deployment.md index f2ba3c5f13..898117c117 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-duplicate-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments/duplicate HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-execution.md b/docs/examples/1.8.x/server-rest/examples/functions/create-execution.md index a2863046ce..5a4c7667cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-execution.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: @@ -13,5 +13,5 @@ X-Appwrite-JWT: "path": "", "method": "GET", "headers": {}, - "scheduledAt": "" + "scheduledAt": } diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-template-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-template-deployment.md index 18ebf65efe..656c2e2a27 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-template-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-template-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments/template HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-variable.md b/docs/examples/1.8.x/server-rest/examples/functions/create-variable.md index 7f71f07417..7251a3a352 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-variable.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/variables HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-vcs-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-vcs-deployment.md index cd409fa892..1b5267ca14 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-vcs-deployment.md @@ -1,7 +1,7 @@ POST /v1/functions/{functionId}/deployments/vcs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create.md b/docs/examples/1.8.x/server-rest/examples/functions/create.md index 1f034e60a4..c5f364ad63 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create.md @@ -1,7 +1,7 @@ POST /v1/functions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/delete-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/delete-deployment.md index 81a80209a8..b70f282167 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/delete-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/delete-execution.md b/docs/examples/1.8.x/server-rest/examples/functions/delete-execution.md index 020a9efc3e..fb26ae47aa 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/delete-execution.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/delete-variable.md b/docs/examples/1.8.x/server-rest/examples/functions/delete-variable.md index 88f4de15eb..aa01835ae4 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/delete-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/delete.md b/docs/examples/1.8.x/server-rest/examples/functions/delete.md index 2148d8148b..9f9ab74019 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/delete.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get-deployment-download.md b/docs/examples/1.8.x/server-rest/examples/functions/get-deployment-download.md index e9c9ce0073..9195d203ab 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get-deployment-download.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get-deployment-download.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/get-deployment.md index aa6e92449b..2557ca698e 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get-deployment.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get-execution.md b/docs/examples/1.8.x/server-rest/examples/functions/get-execution.md index 54da369660..52e54c2a6c 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get-execution.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get-execution.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get-variable.md b/docs/examples/1.8.x/server-rest/examples/functions/get-variable.md index 91f14f0db8..2a01307b0d 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get-variable.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/get.md b/docs/examples/1.8.x/server-rest/examples/functions/get.md index fb0f049f6d..062b7e67ec 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/get.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/get.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-deployments.md b/docs/examples/1.8.x/server-rest/examples/functions/list-deployments.md index db89edf692..5b4dabc679 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-deployments.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-deployments.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId}/deployments HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-executions.md b/docs/examples/1.8.x/server-rest/examples/functions/list-executions.md index 5876a8ba46..b0ac3076ab 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-executions.md @@ -1,6 +1,6 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-runtimes.md b/docs/examples/1.8.x/server-rest/examples/functions/list-runtimes.md index d8e4bc4272..762e47fbcb 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-runtimes.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-runtimes.md @@ -1,5 +1,5 @@ GET /v1/functions/runtimes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-specifications.md b/docs/examples/1.8.x/server-rest/examples/functions/list-specifications.md index 1a84b56ac9..989adc0576 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-specifications.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-specifications.md @@ -1,5 +1,5 @@ GET /v1/functions/specifications HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list-variables.md b/docs/examples/1.8.x/server-rest/examples/functions/list-variables.md index 41bfde5e28..b46b69fb5f 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list-variables.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list-variables.md @@ -1,5 +1,5 @@ GET /v1/functions/{functionId}/variables HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/list.md b/docs/examples/1.8.x/server-rest/examples/functions/list.md index e12af0e774..318a2d56ed 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/list.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/list.md @@ -1,5 +1,5 @@ GET /v1/functions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update-deployment-status.md b/docs/examples/1.8.x/server-rest/examples/functions/update-deployment-status.md index ba4a882910..8788e21c2b 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update-deployment-status.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update-deployment-status.md @@ -1,7 +1,7 @@ PATCH /v1/functions/{functionId}/deployments/{deploymentId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update-function-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/update-function-deployment.md index d649b2ea69..1f89f35da0 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update-function-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update-function-deployment.md @@ -1,7 +1,7 @@ PATCH /v1/functions/{functionId}/deployment HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update-variable.md b/docs/examples/1.8.x/server-rest/examples/functions/update-variable.md index 5a0ad6805d..36ae244548 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update-variable.md @@ -1,7 +1,7 @@ PUT /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update.md b/docs/examples/1.8.x/server-rest/examples/functions/update.md index 40329e5580..ee3b8b8c6d 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update.md @@ -1,7 +1,7 @@ PUT /v1/functions/{functionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/graphql/mutation.md b/docs/examples/1.8.x/server-rest/examples/graphql/mutation.md index 2d59370324..7d58d77ede 100644 --- a/docs/examples/1.8.x/server-rest/examples/graphql/mutation.md +++ b/docs/examples/1.8.x/server-rest/examples/graphql/mutation.md @@ -2,7 +2,7 @@ POST /v1/graphql/mutation HTTP/1.1 Host: cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/graphql/query.md b/docs/examples/1.8.x/server-rest/examples/graphql/query.md index c7242de6ef..8b87cd9f33 100644 --- a/docs/examples/1.8.x/server-rest/examples/graphql/query.md +++ b/docs/examples/1.8.x/server-rest/examples/graphql/query.md @@ -2,7 +2,7 @@ POST /v1/graphql HTTP/1.1 Host: cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md deleted file mode 100644 index d594385572..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/boolean HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": false, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-database.md b/docs/examples/1.8.x/server-rest/examples/grids/create-database.md deleted file mode 100644 index fd1ae143fa..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-database.md +++ /dev/null @@ -1,12 +0,0 @@ -POST /v1/databases HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "databaseId": "", - "name": "", - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md deleted file mode 100644 index 88505a8a1f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/datetime HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": , - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md deleted file mode 100644 index 28d733dab8..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/email HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": "email@example.com", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md deleted file mode 100644 index 35de1b5e2f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/enum HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "elements": [], - "required": false, - "default": "", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md deleted file mode 100644 index 9c9996aced..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/float HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "min": 0, - "max": 0, - "default": 0, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-index.md b/docs/examples/1.8.x/server-rest/examples/grids/create-index.md deleted file mode 100644 index 7a7487bdae..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/indexes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "type": "key", - "columns": [], - "orders": [], - "lengths": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md deleted file mode 100644 index be6eb92544..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/integer HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "min": 0, - "max": 0, - "default": 0, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md deleted file mode 100644 index 30406d7025..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/ip HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": , - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md deleted file mode 100644 index 75f54c9602..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/relationship HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "relatedTableId": "", - "type": "oneToOne", - "twoWay": false, - "key": , - "twoWayKey": , - "onDelete": "cascade" -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-row.md b/docs/examples/1.8.x/server-rest/examples/grids/create-row.md deleted file mode 100644 index 443b4e30c9..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-row.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - -{ - "rowId": "", - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md deleted file mode 100644 index 32578d87de..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md +++ /dev/null @@ -1,12 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - -{ - "rows": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md deleted file mode 100644 index 2a0b0dc372..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/string HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "size": 1, - "required": false, - "default": "", - "array": false, - "encrypt": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-table.md b/docs/examples/1.8.x/server-rest/examples/grids/create-table.md deleted file mode 100644 index 7c22e81e7c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-table.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "tableId": "", - "name": "", - "permissions": ["read(\"any\")"], - "rowSecurity": false, - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md deleted file mode 100644 index 5dada907a0..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/url HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "key": , - "required": false, - "default": "https://example.com", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md deleted file mode 100644 index 6548a58273..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId}/{column}/decrement HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "value": 0, - "min": 0 -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md deleted file mode 100644 index 2680bcf03a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md deleted file mode 100644 index 85d5f7bb0e..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md deleted file mode 100644 index ca7d67a1b4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md deleted file mode 100644 index 8fd3f6ee7d..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md deleted file mode 100644 index af1fabdb7a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md +++ /dev/null @@ -1,10 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "queries": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md deleted file mode 100644 index e068291849..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-column.md b/docs/examples/1.8.x/server-rest/examples/grids/get-column.md deleted file mode 100644 index 0888fb7273..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-column.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-database.md b/docs/examples/1.8.x/server-rest/examples/grids/get-database.md deleted file mode 100644 index 644f251f56..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-database.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-index.md b/docs/examples/1.8.x/server-rest/examples/grids/get-index.md deleted file mode 100644 index 3a9c1ae705..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-index.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-row.md b/docs/examples/1.8.x/server-rest/examples/grids/get-row.md deleted file mode 100644 index ba3b87bee0..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-row.md +++ /dev/null @@ -1,7 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-table.md b/docs/examples/1.8.x/server-rest/examples/grids/get-table.md deleted file mode 100644 index e562f5c763..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-table.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md deleted file mode 100644 index 4501951530..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId}/{column}/increment HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "value": 0, - "max": 0 -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md b/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md deleted file mode 100644 index 82859eaabd..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md b/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md deleted file mode 100644 index 3b9530eec4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md deleted file mode 100644 index 847b2342fe..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/indexes HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md deleted file mode 100644 index d22624083f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md +++ /dev/null @@ -1,7 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md b/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md deleted file mode 100644 index d3a4230165..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md deleted file mode 100644 index 4327743a81..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/boolean/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": false, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-database.md b/docs/examples/1.8.x/server-rest/examples/grids/update-database.md deleted file mode 100644 index d57ad48927..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-database.md +++ /dev/null @@ -1,11 +0,0 @@ -PUT /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "name": "", - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md deleted file mode 100644 index bbdc0c3bc4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/datetime/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": , - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md deleted file mode 100644 index b9145a1c33..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/email/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": "email@example.com", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md deleted file mode 100644 index 8d3d6c359f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/enum/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "elements": [], - "required": false, - "default": "", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md deleted file mode 100644 index 5e1a67c6a1..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md +++ /dev/null @@ -1,14 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/float/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "min": 0, - "max": 0, - "default": 0, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md deleted file mode 100644 index f45fbf278f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md +++ /dev/null @@ -1,14 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/integer/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "min": 0, - "max": 0, - "default": 0, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md deleted file mode 100644 index 5080aaab25..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/ip/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": , - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md deleted file mode 100644 index d5d188ced4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key}/relationship HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "onDelete": "cascade", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-row.md b/docs/examples/1.8.x/server-rest/examples/grids/update-row.md deleted file mode 100644 index 015fa8faf1..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-row.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md deleted file mode 100644 index eb5b77bb31..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "data": {}, - "queries": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md deleted file mode 100644 index eda416a4d9..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/string/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": "", - "size": 1, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-table.md b/docs/examples/1.8.x/server-rest/examples/grids/update-table.md deleted file mode 100644 index 02d68944f9..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-table.md +++ /dev/null @@ -1,13 +0,0 @@ -PUT /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "name": "", - "permissions": ["read(\"any\")"], - "rowSecurity": false, - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md deleted file mode 100644 index 4e0796887a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/url/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "required": false, - "default": "https://example.com", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md deleted file mode 100644 index c461d7c981..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md +++ /dev/null @@ -1,13 +0,0 @@ -PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-Key: -X-Appwrite-JWT: - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md deleted file mode 100644 index 5d9446550f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md +++ /dev/null @@ -1,10 +0,0 @@ -PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Key: - -{ - "rows": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md b/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md index f0e27277b1..2acacb5a5f 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md @@ -1,5 +1,5 @@ GET /v1/health/anti-virus HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-cache.md b/docs/examples/1.8.x/server-rest/examples/health/get-cache.md index e0628a1b8a..c98dcf8af1 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-cache.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-cache.md @@ -1,5 +1,5 @@ GET /v1/health/cache HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md b/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md index 8928e8f25a..9f4f5efee4 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md @@ -1,5 +1,5 @@ GET /v1/health/certificate HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md index f636c9c8e7..9f1efb921b 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md @@ -1,5 +1,5 @@ GET /v1/health/db HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md b/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md index b9bfab3b73..b646b7923f 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md @@ -1,5 +1,5 @@ GET /v1/health/queue/failed/{name} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md b/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md index e9ab32729c..d28025f719 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md @@ -1,5 +1,5 @@ GET /v1/health/pubsub HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md index c3d9189a65..d51b4d60b3 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md @@ -1,5 +1,5 @@ GET /v1/health/queue/builds HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md index d70ee360a8..0f3c2f65fe 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md @@ -1,5 +1,5 @@ GET /v1/health/queue/certificates HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md index 60fc6db3b2..ccc72c3404 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md @@ -1,5 +1,5 @@ GET /v1/health/queue/databases HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md index 5a9ce59da3..a4c5e15586 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md @@ -1,5 +1,5 @@ GET /v1/health/queue/deletes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md index 854100e092..a28dbf921c 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md @@ -1,5 +1,5 @@ GET /v1/health/queue/functions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md index 9fa98f13f5..0c16e61757 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md @@ -1,5 +1,5 @@ GET /v1/health/queue/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md index 2bb61550bb..82b6151af1 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md @@ -1,5 +1,5 @@ GET /v1/health/queue/mails HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md index 5fd0f35919..6082ec41bd 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md @@ -1,5 +1,5 @@ GET /v1/health/queue/messaging HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md index 2832b1c980..c9687b3224 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md @@ -1,5 +1,5 @@ GET /v1/health/queue/migrations HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md index 6500b1f84c..90eefe75fc 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md @@ -1,5 +1,5 @@ GET /v1/health/queue/stats-resources HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md index 9c4e797f32..663d39dd2f 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md @@ -1,5 +1,5 @@ GET /v1/health/queue/stats-usage HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md index 4db6cf7d8c..0843ad174f 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md @@ -1,5 +1,5 @@ GET /v1/health/queue/webhooks HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md b/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md index 31c9b8725f..9047713439 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md @@ -1,5 +1,5 @@ GET /v1/health/storage/local HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-storage.md b/docs/examples/1.8.x/server-rest/examples/health/get-storage.md index 69c4ebd910..1d46ab179e 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-storage.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-storage.md @@ -1,5 +1,5 @@ GET /v1/health/storage HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-time.md b/docs/examples/1.8.x/server-rest/examples/health/get-time.md index 5396aac6fb..7661df5732 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-time.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-time.md @@ -1,5 +1,5 @@ GET /v1/health/time HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get.md b/docs/examples/1.8.x/server-rest/examples/health/get.md index b37e30c4f8..c64b480826 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get.md @@ -1,5 +1,5 @@ GET /v1/health HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/get.md b/docs/examples/1.8.x/server-rest/examples/locale/get.md index 6c60c076b6..7b300acb41 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/get.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/get.md @@ -1,6 +1,6 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md b/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md index 3cc2aa9939..336ac1477f 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md @@ -1,6 +1,6 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md b/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md index 8d2b0fa19d..d99b138653 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md @@ -1,6 +1,6 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md index ae341f5982..3c94877234 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md index 9d59f37a19..09619edb36 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md index 19205d538d..0f1be7e5df 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md @@ -1,6 +1,6 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md b/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md index fbf6d63496..c1e03ecae2 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md @@ -1,6 +1,6 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md b/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md index 7f1304d6ff..1e2a125985 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md @@ -1,6 +1,6 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md index 47d3b98615..b6860358c1 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/apns HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md index b6c1392bb2..efec44982c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md index f234c80e6e..ec885465a7 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/fcm HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md index fd138606e2..8d0eb33938 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/mailgun HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md index edbd690d5d..2877ff7b89 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/msg91 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md index 08ba0357fe..6210273820 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md index 3fa7ee8dd8..a9f7c933dc 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/sendgrid HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md index 82926e2a82..f885563f6f 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/sms HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md index 5963ee474c..bbb8e7d212 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/smtp HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md index e22a626ac4..2e61d50b5c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md index a474db823f..198ccae6f5 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/telesign HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md index caa7bcd014..2f2ce558a7 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/textmagic HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md index 9974584212..a44af2764d 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md index e612eed8be..61fd63b52e 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/twilio HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md index fdd66526a9..16d1c6b594 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/vonage HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md index cfd1ff3b30..e25c3dcc1c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/providers/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md index 8226237777..b988897d60 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md index d340209e93..3c5c8a9cdb 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete.md index e076c96ebf..a918c2b6f8 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/messages/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md index ef9ef2c8df..abe744e9c7 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md index 361d634760..0d2ffe4eaa 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers/{providerId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md index c01c5876ac..a1629d4546 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md index df5256f5e3..5d7efd06de 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md index d8c982e7ea..066970a9fb 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md index 88964162e3..03a286c376 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md index 46c0f76a10..562264f48e 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers/{providerId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md index e454b3101b..43522ee34f 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md index 7fb1192035..f403362529 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/subscribers/{subscriberId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md index 06f67c27c1..a357f9dc3d 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md index 7c793cfae0..0b4f8caf6f 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId}/targets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md index e371aeb2b5..80073b2165 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md index 9f18e14b70..2835277aeb 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md index a55c593039..a398b186cb 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/apns/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md index 97f3911ed1..0ef5b89409 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/email/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md index d485981c5b..50e3a5400d 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/fcm/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md index ec132692c5..f05f0057e7 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/mailgun/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md index 1013915e5d..1c88425fc1 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/msg91/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md index 438ef373e5..adf269301c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/push/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md index fd30512320..28ffb526f8 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/sendgrid/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md index a917e270f7..b5ad82d0f9 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/sms/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md index 9fc45d6726..8e69659ce1 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/smtp/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md index 919e99577e..548d39dc92 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/telesign/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md index 94f965c44a..724b0a4afe 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/textmagic/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md index 75644d9828..add0bf8ee4 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md index 41d04c0c14..38730383b1 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/twilio/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md index 0344691e51..8c284c827f 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/vonage/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md index 669ac50a75..554d2a5365 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md index dbee572372..3da246715b 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/duplicate HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md index 3b21f4f754..e37819bfb2 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/template HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md index c34be9d619..73217d198c 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/variables HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md index 2e466da0f6..7d5fd3e92e 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/vcs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create.md b/docs/examples/1.8.x/server-rest/examples/sites/create.md index 52b4d87219..5493e9d2b6 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create.md @@ -1,7 +1,7 @@ POST /v1/sites HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md index 3df6aca50f..35bac59efc 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md index af1d1c339a..0bd2f661cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/logs/{logId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md index 008ab4b190..c3f1d2d293 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete.md b/docs/examples/1.8.x/server-rest/examples/sites/delete.md index 0657fff9ef..cdb4ced577 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md index 3ce065f600..d81a7dfc56 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md @@ -1,6 +1,6 @@ GET /v1/sites/{siteId}/deployments/{deploymentId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md index 2ad95813d9..381c20db77 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-log.md b/docs/examples/1.8.x/server-rest/examples/sites/get-log.md index 41dd30dc8f..6b8366461e 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-log.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-log.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/logs/{logId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md index c6d5e70211..7c9703ef88 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get.md b/docs/examples/1.8.x/server-rest/examples/sites/get.md index da7b67883f..f13b46ecab 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md b/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md index 0bc5467894..22512f809d 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md b/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md index 8c5f7ff318..0007a7cd78 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md @@ -1,5 +1,5 @@ GET /v1/sites/frameworks HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md b/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md index 57b35c4ef5..7e77b7e755 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md b/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md index cf31760070..17e8d281c6 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md @@ -1,5 +1,5 @@ GET /v1/sites/specifications HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md b/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md index 7e12fdfd02..4f99a74984 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/variables HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list.md b/docs/examples/1.8.x/server-rest/examples/sites/list.md index dc4dc3695f..d1800f05e5 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list.md @@ -1,5 +1,5 @@ GET /v1/sites HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md b/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md index d4f251c20f..697d9ac371 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md @@ -1,7 +1,7 @@ PATCH /v1/sites/{siteId}/deployments/{deploymentId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md index c288b2bf00..51d8736df5 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md @@ -1,7 +1,7 @@ PATCH /v1/sites/{siteId}/deployment HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md index c7fe824ac4..61902ee02f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md @@ -1,7 +1,7 @@ PUT /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update.md b/docs/examples/1.8.x/server-rest/examples/sites/update.md index 370984721f..ab3c4dddd1 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update.md @@ -1,7 +1,7 @@ PUT /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md index 59f1c4f403..8ca9c5701b 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md index 086fd6dc72..e8a54e723b 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md index d6083186de..3db8bfbb72 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md b/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md index 467fdf96d1..cc8a2481f7 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md index 2ad1e577c5..b7def1d44b 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md @@ -1,5 +1,5 @@ GET /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md index af382d3a9a..4d9c691ba9 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md index e00f0ff76f..e8a1bdeedf 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md index 79f47dcabc..d41b8a3512 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file.md index 4a479a78fc..e11aaa9f05 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md b/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md index bd61c61082..3061208d75 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md @@ -1,5 +1,5 @@ GET /v1/storage/buckets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/list-files.md b/docs/examples/1.8.x/server-rest/examples/storage/list-files.md index b040ad3a65..7cf8616335 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/list-files.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/list-files.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md index 0f966da0b5..adf12647e2 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/update-file.md b/docs/examples/1.8.x/server-rest/examples/storage/update-file.md index 1b0137a7de..d91ab4c2d6 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/update-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/update-file.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md index 773208cb45..f52f796d90 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md @@ -1,7 +1,7 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/create.md b/docs/examples/1.8.x/server-rest/examples/teams/create.md index 2e1881b5ff..27e7429464 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/create.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/create.md @@ -1,7 +1,7 @@ POST /v1/teams HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md index 454a3f6f4a..e897d84a12 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/delete.md b/docs/examples/1.8.x/server-rest/examples/teams/delete.md index 1bdf2a89ac..213489c7fb 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/delete.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md index 8a90498292..1d10cfe437 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md b/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md index e541fd3fd8..ddb863181d 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get.md b/docs/examples/1.8.x/server-rest/examples/teams/get.md index 491e04dc55..4ecf74596b 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md b/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md index 9b0fa00492..38cc17b71a 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/list.md b/docs/examples/1.8.x/server-rest/examples/teams/list.md index 95b6178e31..c67b429008 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/list.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/list.md @@ -1,6 +1,6 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md b/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md index da2c9189cd..9d828118f0 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md index a5b8c28723..6730d5c27c 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-name.md b/docs/examples/1.8.x/server-rest/examples/teams/update-name.md index 1d32b77d39..fa811a2438 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-name.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-name.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md index e17dcdb260..1db6300350 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md index 3d884e2c5d..c1fbb63d2d 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md @@ -1,7 +1,7 @@ POST /v1/tokens/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/delete.md b/docs/examples/1.8.x/server-rest/examples/tokens/delete.md index a955b4aef5..ee564b01c4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/delete.md @@ -1,7 +1,7 @@ DELETE /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/get.md b/docs/examples/1.8.x/server-rest/examples/tokens/get.md index 381945f58f..b39c8390e3 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/get.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/get.md @@ -1,5 +1,5 @@ GET /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/list.md b/docs/examples/1.8.x/server-rest/examples/tokens/list.md index 3b0782a81a..8909d05572 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/list.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/list.md @@ -1,5 +1,5 @@ GET /v1/tokens/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/update.md b/docs/examples/1.8.x/server-rest/examples/tokens/update.md index ab58a4842a..8ab9d60555 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/update.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/update.md @@ -1,7 +1,7 @@ PATCH /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md index 4985ecefd0..d557cf6d5f 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ POST /v1/users/argon2 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md index eaf1628252..cda7491160 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ POST /v1/users/bcrypt HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md index 8342089042..83208adadb 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/jwts HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md index 6e82969f00..d4896133a1 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ POST /v1/users/md5 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md index bef314b585..2f6524646d 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md index b75c9e23c5..4c10b1a82d 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ POST /v1/users/phpass HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md index 7757b44500..5c6467a2fe 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ POST /v1/users/sha HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md index 9fb5f8de0f..19d0650840 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ POST /v1/users/scrypt-modified HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md index ee8828f294..008eab6848 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ POST /v1/users/scrypt HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-session.md b/docs/examples/1.8.x/server-rest/examples/users/create-session.md index 955e253d39..ec71d421e0 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-session.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-session.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-target.md b/docs/examples/1.8.x/server-rest/examples/users/create-target.md index 08147220b2..fced935c1b 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-target.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/targets HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-token.md b/docs/examples/1.8.x/server-rest/examples/users/create-token.md index 2d3b58435a..4339252660 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-token.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-token.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/tokens HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create.md b/docs/examples/1.8.x/server-rest/examples/users/create.md index b638e6511e..67d377255b 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create.md @@ -1,7 +1,7 @@ POST /v1/users HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md b/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md index a9b2cd04f6..c2aa5eed16 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/users/identities/{identityId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md index 92d51fefb5..9d9e2e950f 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-session.md b/docs/examples/1.8.x/server-rest/examples/users/delete-session.md index 1ae56081ab..be204911a2 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-session.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md b/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md index f620f1addc..54f3a8d4f1 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-target.md b/docs/examples/1.8.x/server-rest/examples/users/delete-target.md index 4ea75b979b..77e2c23dd8 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-target.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete.md b/docs/examples/1.8.x/server-rest/examples/users/delete.md index be2533f442..c31212aa71 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md index 1f561f02ad..58dd32d2a4 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md b/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md index 4d55589a73..ac04cc5c44 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-target.md b/docs/examples/1.8.x/server-rest/examples/users/get-target.md index 3613d7acb6..2f19db7c7a 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-target.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get.md b/docs/examples/1.8.x/server-rest/examples/users/get.md index 53357720cf..f654676d9b 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get.md @@ -1,5 +1,5 @@ GET /v1/users/{userId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-identities.md b/docs/examples/1.8.x/server-rest/examples/users/list-identities.md index 40eed8beec..180a2127a4 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-identities.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-identities.md @@ -1,5 +1,5 @@ GET /v1/users/identities HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-logs.md b/docs/examples/1.8.x/server-rest/examples/users/list-logs.md index 526615b80f..7149f50abe 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-logs.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md b/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md index 24de2cdc59..7d32f2f726 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md index eb2d3691de..a75b26e1c5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md b/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md index 33efecd536..1ef39b835b 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-targets.md b/docs/examples/1.8.x/server-rest/examples/users/list-targets.md index 229559c958..e9542c0da0 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-targets.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-targets.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/targets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list.md b/docs/examples/1.8.x/server-rest/examples/users/list.md index 2938255449..a92f71439b 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list.md @@ -1,5 +1,5 @@ GET /v1/users HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md b/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md index 1db5556964..cf65c72b0c 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-email.md b/docs/examples/1.8.x/server-rest/examples/users/update-email.md index 48d871d8d4..10ccafb079 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-labels.md b/docs/examples/1.8.x/server-rest/examples/users/update-labels.md index d6acca5c7a..f01603f1f4 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-labels.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-labels.md @@ -1,7 +1,7 @@ PUT /v1/users/{userId}/labels HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md index 91e657aec7..aa3bb3f6e6 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PUT /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md b/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md index 8a5d1f5052..fce9198887 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/mfa HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-name.md b/docs/examples/1.8.x/server-rest/examples/users/update-name.md index ae1472387a..c8988dfb1d 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-name.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-name.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/name HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-password.md b/docs/examples/1.8.x/server-rest/examples/users/update-password.md index 40220f80d5..fb796d5619 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-password.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/password HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md b/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md index 837874a1e2..ca3958605b 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-phone.md b/docs/examples/1.8.x/server-rest/examples/users/update-phone.md index a36f0cc656..5bc196d668 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-phone.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-phone.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md index 5de942c081..1db82743e8 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-status.md b/docs/examples/1.8.x/server-rest/examples/users/update-status.md index 95e29fb66e..6d07f2e15f 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-status.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-status.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-target.md b/docs/examples/1.8.x/server-rest/examples/users/update-target.md index c5f92f342e..926fb166a4 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-target.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Response-Format: 1.7.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md index e6831084a1..ce8dea79ef 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md @@ -4,8 +4,9 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID .set_session('') # The user session to authenticate with + .set_key('') # Your secret API key + .set_jwt('') # Your secret JSON Web Token databases = Databases.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md index 16abc5e465..ecccdf5b21 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID + .set_admin('') # .set_key('') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md index 238081864f..d165e1e6cd 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md @@ -4,15 +4,14 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID .set_session('') # The user session to authenticate with + .set_key('') # Your secret API key + .set_jwt('') # Your secret JSON Web Token databases = Databases.new(client) result = databases.upsert_document( database_id: '', collection_id: '', - document_id: '', - data: {}, - permissions: ["read("any")"] # optional + document_id: '' ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md index 30c42aa439..8e404e684e 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md @@ -4,13 +4,12 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID + .set_admin('') # .set_key('') # Your secret API key databases = Databases.new(client) result = databases.upsert_documents( database_id: '', - collection_id: '', - documents: [] + collection_id: '' ) diff --git a/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md index 666b995d77..b64b1d5c57 100644 --- a/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md @@ -16,5 +16,5 @@ result = functions.create_execution( path: '', # optional method: ExecutionMethod::GET, # optional headers: {}, # optional - scheduled_at: '' # optional + scheduled_at: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md deleted file mode 100644 index 592f6028aa..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_boolean_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: false, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md deleted file mode 100644 index db94d2386e..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_database( - database_id: '', - name: '', - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md deleted file mode 100644 index 4bc97b94ae..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_datetime_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md deleted file mode 100644 index 4a1687d405..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_email_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: 'email@example.com', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md deleted file mode 100644 index 2a9b6de5de..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_enum_column( - database_id: '', - table_id: '', - key: '', - elements: [], - required: false, - default: '', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md deleted file mode 100644 index 0cd3bee568..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_float_column( - database_id: '', - table_id: '', - key: '', - required: false, - min: null, # optional - max: null, # optional - default: null, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md deleted file mode 100644 index 7ef4c2c790..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_index( - database_id: '', - table_id: '', - key: '', - type: IndexType::KEY, - columns: [], - orders: [], # optional - lengths: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md deleted file mode 100644 index ae7c416965..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_integer_column( - database_id: '', - table_id: '', - key: '', - required: false, - min: null, # optional - max: null, # optional - default: null, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md deleted file mode 100644 index e407abaee8..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_ip_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md deleted file mode 100644 index 3aecd5757d..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_relationship_column( - database_id: '', - table_id: '', - related_table_id: '', - type: RelationshipType::ONETOONE, - two_way: false, # optional - key: '', # optional - two_way_key: '', # optional - on_delete: RelationMutate::CASCADE # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md deleted file mode 100644 index 4c4433bd10..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.create_row( - database_id: '', - table_id: '', - row_id: '', - data: {}, - permissions: ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md deleted file mode 100644 index 1e619d25ce..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_rows( - database_id: '', - table_id: '', - rows: [] -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md deleted file mode 100644 index 7808c6cfa2..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_string_column( - database_id: '', - table_id: '', - key: '', - size: 1, - required: false, - default: '', # optional - array: false, # optional - encrypt: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md deleted file mode 100644 index ef3bc4b5cf..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_table( - database_id: '', - table_id: '', - name: '', - permissions: ["read("any")"], # optional - row_security: false, # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md deleted file mode 100644 index 55ff12a1c0..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_url_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: 'https://example.com', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md deleted file mode 100644 index fcbc6efedc..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.decrement_row_column( - database_id: '', - table_id: '', - row_id: '', - column: '', - value: null, # optional - min: null # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md deleted file mode 100644 index 79cf84f3fd..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_column( - database_id: '', - table_id: '', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md deleted file mode 100644 index 54d3660b9f..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_database( - database_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md deleted file mode 100644 index 3968cfb675..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_index( - database_id: '', - table_id: '', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md deleted file mode 100644 index 183f02c5d3..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.delete_row( - database_id: '', - table_id: '', - row_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md deleted file mode 100644 index 560d63b033..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_rows( - database_id: '', - table_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md deleted file mode 100644 index d0c15da17c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_table( - database_id: '', - table_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md deleted file mode 100644 index 6288772e65..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.get_column( - database_id: '', - table_id: '', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md deleted file mode 100644 index 49a5cde300..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.get_database( - database_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md deleted file mode 100644 index 78a923c0ff..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.get_index( - database_id: '', - table_id: '', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md deleted file mode 100644 index e8dc2cb6b1..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.get_row( - database_id: '', - table_id: '', - row_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md deleted file mode 100644 index bafdfe1140..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.get_table( - database_id: '', - table_id: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md deleted file mode 100644 index d09f72080c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.increment_row_column( - database_id: '', - table_id: '', - row_id: '', - column: '', - value: null, # optional - max: null # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md deleted file mode 100644 index 343775300b..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.list_columns( - database_id: '', - table_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md deleted file mode 100644 index 21e54951ee..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.list_databases( - queries: [], # optional - search: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md deleted file mode 100644 index 2229c87249..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.list_indexes( - database_id: '', - table_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md deleted file mode 100644 index 40b7be88a7..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.list_rows( - database_id: '', - table_id: '', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md deleted file mode 100644 index 69b213d3f3..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.list_tables( - database_id: '', - queries: [], # optional - search: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md deleted file mode 100644 index 78055c777f..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_boolean_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: false, - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md deleted file mode 100644 index 79216c3fd3..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_database( - database_id: '', - name: '', - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md deleted file mode 100644 index 1737c5a020..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_datetime_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md deleted file mode 100644 index bc1f4cd7b6..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_email_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: 'email@example.com', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md deleted file mode 100644 index 5012002e29..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_enum_column( - database_id: '', - table_id: '', - key: '', - elements: [], - required: false, - default: '', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md deleted file mode 100644 index e05037f10c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_float_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: null, - min: null, # optional - max: null, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md deleted file mode 100644 index 3ec34bd2f2..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_integer_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: null, - min: null, # optional - max: null, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md deleted file mode 100644 index 5394075ae5..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_ip_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md deleted file mode 100644 index 2c730048de..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_relationship_column( - database_id: '', - table_id: '', - key: '', - on_delete: RelationMutate::CASCADE, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md deleted file mode 100644 index 57dd5cd381..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.update_row( - database_id: '', - table_id: '', - row_id: '', - data: {}, # optional - permissions: ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md deleted file mode 100644 index 602670d67f..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_rows( - database_id: '', - table_id: '', - data: {}, # optional - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md deleted file mode 100644 index 09de9ba697..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_string_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: '', - size: 1, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md deleted file mode 100644 index 742a0c9829..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_table( - database_id: '', - table_id: '', - name: '', - permissions: ["read("any")"], # optional - row_security: false, # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md deleted file mode 100644 index fc3f055708..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_url_column( - database_id: '', - table_id: '', - key: '', - required: false, - default: 'https://example.com', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md deleted file mode 100644 index 2cf50d92d9..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.upsert_row( - database_id: '', - table_id: '', - row_id: '', - data: {}, # optional - permissions: ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md deleted file mode 100644 index af3a7e1dbf..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID - .set_key('') # Your secret API key - -grids = Grids.new(client) - -result = grids.upsert_rows( - database_id: '', - table_id: '', - rows: [] -) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md index daeaf144e1..4ee21048ab 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md @@ -2,8 +2,9 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT("") // Your secret JSON Web Token let databases = Databases(client) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-documents.md b/docs/examples/1.8.x/server-swift/examples/databases/create-documents.md index 2e992d9e3a..e4f8582f49 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-documents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setAdmin("") // .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md index e78bd458a0..9c9684e42d 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md @@ -2,16 +2,15 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key + .setJWT("") // Your secret JSON Web Token let databases = Databases(client) let document = try await databases.upsertDocument( databaseId: "", collectionId: "", - documentId: "", - data: [:], - permissions: ["read("any")"] // optional + documentId: "" ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-swift/examples/databases/upsert-documents.md index 544f02f9c0..e63b9a3e67 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/upsert-documents.md @@ -2,14 +2,13 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setAdmin("") // .setKey("") // Your secret API key let databases = Databases(client) let documentList = try await databases.upsertDocuments( databaseId: "", - collectionId: "", - documents: [] + collectionId: "" ) diff --git a/docs/examples/1.8.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.8.x/server-swift/examples/functions/create-execution.md index 46c9d69087..aae7a0f52f 100644 --- a/docs/examples/1.8.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-swift/examples/functions/create-execution.md @@ -15,6 +15,6 @@ let execution = try await functions.createExecution( path: "", // optional method: .gET, // optional headers: [:], // optional - scheduledAt: "" // optional + scheduledAt: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md deleted file mode 100644 index 4d0a226eb2..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnBoolean = try await grids.createBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-database.md b/docs/examples/1.8.x/server-swift/examples/grids/create-database.md deleted file mode 100644 index 75ec62df4b..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-database.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let database = try await grids.createDatabase( - databaseId: "", - name: "", - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md deleted file mode 100644 index 8271b44c9f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnDatetime = try await grids.createDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md deleted file mode 100644 index ca99534c78..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnEmail = try await grids.createEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md deleted file mode 100644 index 3d52e94a96..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnEnum = try await grids.createEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: [], - required: false, - default: "", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md deleted file mode 100644 index f0abdc7b9f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnFloat = try await grids.createFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-index.md b/docs/examples/1.8.x/server-swift/examples/grids/create-index.md deleted file mode 100644 index 2d0c1272b2..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-index.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnIndex = try await grids.createIndex( - databaseId: "", - tableId: "", - key: "", - type: .key, - columns: [], - orders: [], // optional - lengths: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md deleted file mode 100644 index dca7968bfb..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnInteger = try await grids.createIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md deleted file mode 100644 index 9517ed960f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnIp = try await grids.createIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md deleted file mode 100644 index 1ead20f97d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnRelationship = try await grids.createRelationshipColumn( - databaseId: "", - tableId: "", - relatedTableId: "", - type: .oneToOne, - twoWay: false, // optional - key: "", // optional - twoWayKey: "", // optional - onDelete: .cascade // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-row.md b/docs/examples/1.8.x/server-swift/examples/grids/create-row.md deleted file mode 100644 index 9d042b4034..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let row = try await grids.createRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md deleted file mode 100644 index 3e1aced6e7..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let rowList = try await grids.createRows( - databaseId: "", - tableId: "", - rows: [] -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md deleted file mode 100644 index 74eea86fe4..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnString = try await grids.createStringColumn( - databaseId: "", - tableId: "", - key: "", - size: 1, - required: false, - default: "", // optional - array: false, // optional - encrypt: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-table.md b/docs/examples/1.8.x/server-swift/examples/grids/create-table.md deleted file mode 100644 index 3792c0aee4..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-table.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let table = try await grids.createTable( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md deleted file mode 100644 index 7ea729aa1a..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnUrl = try await grids.createUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md deleted file mode 100644 index 9445843d71..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let row = try await grids.decrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, // optional - min: 0 // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md deleted file mode 100644 index b58a4d0890..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.deleteColumn( - databaseId: "", - tableId: "", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md deleted file mode 100644 index e7600d7726..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.deleteDatabase( - databaseId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md deleted file mode 100644 index d83cd551da..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.deleteIndex( - databaseId: "", - tableId: "", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md deleted file mode 100644 index d2d77234a3..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let result = try await grids.deleteRow( - databaseId: "", - tableId: "", - rowId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md deleted file mode 100644 index 6a3f145526..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let rowList = try await grids.deleteRows( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md deleted file mode 100644 index 8abdfcae2d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.deleteTable( - databaseId: "", - tableId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-column.md b/docs/examples/1.8.x/server-swift/examples/grids/get-column.md deleted file mode 100644 index 68c0d3933d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.getColumn( - databaseId: "", - tableId: "", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-database.md b/docs/examples/1.8.x/server-swift/examples/grids/get-database.md deleted file mode 100644 index f3936ae4ba..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-database.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let database = try await grids.getDatabase( - databaseId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-index.md b/docs/examples/1.8.x/server-swift/examples/grids/get-index.md deleted file mode 100644 index 24c3be9e27..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnIndex = try await grids.getIndex( - databaseId: "", - tableId: "", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-row.md b/docs/examples/1.8.x/server-swift/examples/grids/get-row.md deleted file mode 100644 index 4d3e53cba6..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let row = try await grids.getRow( - databaseId: "", - tableId: "", - rowId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-table.md b/docs/examples/1.8.x/server-swift/examples/grids/get-table.md deleted file mode 100644 index 9ad5e0c202..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-table.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let table = try await grids.getTable( - databaseId: "", - tableId: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md deleted file mode 100644 index 00d9663c22..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let row = try await grids.incrementRowColumn( - databaseId: "", - tableId: "", - rowId: "", - column: "", - value: 0, // optional - max: 0 // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md b/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md deleted file mode 100644 index facf87f9a3..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnList = try await grids.listColumns( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md b/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md deleted file mode 100644 index 26d50a24b1..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let databaseList = try await grids.listDatabases( - queries: [], // optional - search: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md deleted file mode 100644 index c31f162d5d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnIndexList = try await grids.listIndexes( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md deleted file mode 100644 index 01dd6637fc..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let rowList = try await grids.listRows( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md b/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md deleted file mode 100644 index af8cdd1264..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let tableList = try await grids.listTables( - databaseId: "", - queries: [], // optional - search: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md deleted file mode 100644 index 8994b79e7c..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnBoolean = try await grids.updateBooleanColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: false, - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-database.md b/docs/examples/1.8.x/server-swift/examples/grids/update-database.md deleted file mode 100644 index 827245bd97..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-database.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let database = try await grids.updateDatabase( - databaseId: "", - name: "", - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md deleted file mode 100644 index 7a59cd1ef1..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnDatetime = try await grids.updateDatetimeColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md deleted file mode 100644 index 3704401fa5..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnEmail = try await grids.updateEmailColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "email@example.com", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md deleted file mode 100644 index 946804a88c..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnEnum = try await grids.updateEnumColumn( - databaseId: "", - tableId: "", - key: "", - elements: [], - required: false, - default: "", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md deleted file mode 100644 index 10f0babb2c..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnFloat = try await grids.updateFloatColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md deleted file mode 100644 index 60e145e3b0..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnInteger = try await grids.updateIntegerColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md deleted file mode 100644 index 17f490d644..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnIp = try await grids.updateIpColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md deleted file mode 100644 index 994feefa92..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnRelationship = try await grids.updateRelationshipColumn( - databaseId: "", - tableId: "", - key: "", - onDelete: .cascade, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-row.md b/docs/examples/1.8.x/server-swift/examples/grids/update-row.md deleted file mode 100644 index 3e4408f700..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let row = try await grids.updateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md deleted file mode 100644 index c57463cc8a..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let rowList = try await grids.updateRows( - databaseId: "", - tableId: "", - data: [:], // optional - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md deleted file mode 100644 index e9e2d71c62..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnString = try await grids.updateStringColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "", - size: 1, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-table.md b/docs/examples/1.8.x/server-swift/examples/grids/update-table.md deleted file mode 100644 index 8b3fa5e12e..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-table.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let table = try await grids.updateTable( - databaseId: "", - tableId: "", - name: "", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md deleted file mode 100644 index b72666e240..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let columnUrl = try await grids.updateUrlColumn( - databaseId: "", - tableId: "", - key: "", - required: false, - default: "https://example.com", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md deleted file mode 100644 index 1d09e7b767..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let row = try await grids.upsertRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md deleted file mode 100644 index 84173c9c0f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setKey("") // Your secret API key - -let grids = Grids(client) - -let rowList = try await grids.upsertRows( - databaseId: "", - tableId: "", - rows: [] -) - From 0f7d06b4d52b0ed59d5c02694742c479a5a822d6 Mon Sep 17 00:00:00 2001 From: Darshan Date: Mon, 28 Jul 2025 11:50:08 +0530 Subject: [PATCH 23/24] reset: docs for easier review. --- docs/references/{grids => databases}/create-boolean-column.md | 0 docs/references/{grids => databases}/create-datetime-column.md | 0 docs/references/{grids => databases}/create-email-column.md | 0 docs/references/{grids => databases}/create-enum-column.md | 0 docs/references/{grids => databases}/create-float-column.md | 0 docs/references/{grids => databases}/create-integer-column.md | 0 docs/references/{grids => databases}/create-ip-column.md | 0 .../{grids => databases}/create-relationship-column.md | 0 docs/references/{grids => databases}/create-row.md | 0 docs/references/{grids => databases}/create-rows.md | 0 docs/references/{grids => databases}/create-string-column.md | 0 docs/references/{grids => databases}/create-table.md | 0 docs/references/{grids => databases}/create-url-column.md | 0 docs/references/{grids => databases}/decrement-row-column.md | 0 docs/references/{grids => databases}/delete-column.md | 0 docs/references/{grids => databases}/delete-row.md | 0 docs/references/{grids => databases}/delete-rows.md | 0 docs/references/{grids => databases}/delete-table.md | 0 docs/references/{grids => databases}/get-column.md | 0 docs/references/{grids => databases}/get-row-logs.md | 0 docs/references/{grids => databases}/get-row.md | 0 docs/references/{grids => databases}/get-table-logs.md | 0 docs/references/{grids => databases}/get-table-usage.md | 0 docs/references/{grids => databases}/get-table.md | 0 docs/references/{grids => databases}/increment-row-column.md | 0 docs/references/{grids => databases}/list-columns.md | 0 docs/references/{grids => databases}/list-rows.md | 0 docs/references/{grids => databases}/list-tables.md | 0 docs/references/{grids => databases}/update-boolean-column.md | 0 docs/references/{grids => databases}/update-datetime-column.md | 0 docs/references/{grids => databases}/update-email-column.md | 0 docs/references/{grids => databases}/update-enum-column.md | 0 docs/references/{grids => databases}/update-float-column.md | 0 docs/references/{grids => databases}/update-integer-column.md | 0 docs/references/{grids => databases}/update-ip-column.md | 0 .../{grids => databases}/update-relationship-column.md | 0 docs/references/{grids => databases}/update-row.md | 0 docs/references/{grids => databases}/update-rows.md | 0 docs/references/{grids => databases}/update-string-column.md | 0 docs/references/{grids => databases}/update-table.md | 0 docs/references/{grids => databases}/update-url-column.md | 0 docs/references/{grids => databases}/upsert-row.md | 0 docs/references/{grids => databases}/upsert-rows.md | 0 docs/references/grids/create-database.md | 1 - docs/references/grids/create-index.md | 2 -- docs/references/grids/delete-database.md | 1 - docs/references/grids/delete-index.md | 1 - docs/references/grids/get-database-usage.md | 1 - docs/references/grids/get-database.md | 1 - docs/references/grids/get-index.md | 1 - docs/references/grids/get-logs.md | 1 - docs/references/grids/list-database-usage.md | 1 - docs/references/grids/list-databases.md | 1 - docs/references/grids/list-indexes.md | 1 - docs/references/grids/update-database.md | 1 - 55 files changed, 13 deletions(-) rename docs/references/{grids => databases}/create-boolean-column.md (100%) rename docs/references/{grids => databases}/create-datetime-column.md (100%) rename docs/references/{grids => databases}/create-email-column.md (100%) rename docs/references/{grids => databases}/create-enum-column.md (100%) rename docs/references/{grids => databases}/create-float-column.md (100%) rename docs/references/{grids => databases}/create-integer-column.md (100%) rename docs/references/{grids => databases}/create-ip-column.md (100%) rename docs/references/{grids => databases}/create-relationship-column.md (100%) rename docs/references/{grids => databases}/create-row.md (100%) rename docs/references/{grids => databases}/create-rows.md (100%) rename docs/references/{grids => databases}/create-string-column.md (100%) rename docs/references/{grids => databases}/create-table.md (100%) rename docs/references/{grids => databases}/create-url-column.md (100%) rename docs/references/{grids => databases}/decrement-row-column.md (100%) rename docs/references/{grids => databases}/delete-column.md (100%) rename docs/references/{grids => databases}/delete-row.md (100%) rename docs/references/{grids => databases}/delete-rows.md (100%) rename docs/references/{grids => databases}/delete-table.md (100%) rename docs/references/{grids => databases}/get-column.md (100%) rename docs/references/{grids => databases}/get-row-logs.md (100%) rename docs/references/{grids => databases}/get-row.md (100%) rename docs/references/{grids => databases}/get-table-logs.md (100%) rename docs/references/{grids => databases}/get-table-usage.md (100%) rename docs/references/{grids => databases}/get-table.md (100%) rename docs/references/{grids => databases}/increment-row-column.md (100%) rename docs/references/{grids => databases}/list-columns.md (100%) rename docs/references/{grids => databases}/list-rows.md (100%) rename docs/references/{grids => databases}/list-tables.md (100%) rename docs/references/{grids => databases}/update-boolean-column.md (100%) rename docs/references/{grids => databases}/update-datetime-column.md (100%) rename docs/references/{grids => databases}/update-email-column.md (100%) rename docs/references/{grids => databases}/update-enum-column.md (100%) rename docs/references/{grids => databases}/update-float-column.md (100%) rename docs/references/{grids => databases}/update-integer-column.md (100%) rename docs/references/{grids => databases}/update-ip-column.md (100%) rename docs/references/{grids => databases}/update-relationship-column.md (100%) rename docs/references/{grids => databases}/update-row.md (100%) rename docs/references/{grids => databases}/update-rows.md (100%) rename docs/references/{grids => databases}/update-string-column.md (100%) rename docs/references/{grids => databases}/update-table.md (100%) rename docs/references/{grids => databases}/update-url-column.md (100%) rename docs/references/{grids => databases}/upsert-row.md (100%) rename docs/references/{grids => databases}/upsert-rows.md (100%) delete mode 100644 docs/references/grids/create-database.md delete mode 100644 docs/references/grids/create-index.md delete mode 100644 docs/references/grids/delete-database.md delete mode 100644 docs/references/grids/delete-index.md delete mode 100644 docs/references/grids/get-database-usage.md delete mode 100644 docs/references/grids/get-database.md delete mode 100644 docs/references/grids/get-index.md delete mode 100644 docs/references/grids/get-logs.md delete mode 100644 docs/references/grids/list-database-usage.md delete mode 100644 docs/references/grids/list-databases.md delete mode 100644 docs/references/grids/list-indexes.md delete mode 100644 docs/references/grids/update-database.md diff --git a/docs/references/grids/create-boolean-column.md b/docs/references/databases/create-boolean-column.md similarity index 100% rename from docs/references/grids/create-boolean-column.md rename to docs/references/databases/create-boolean-column.md diff --git a/docs/references/grids/create-datetime-column.md b/docs/references/databases/create-datetime-column.md similarity index 100% rename from docs/references/grids/create-datetime-column.md rename to docs/references/databases/create-datetime-column.md diff --git a/docs/references/grids/create-email-column.md b/docs/references/databases/create-email-column.md similarity index 100% rename from docs/references/grids/create-email-column.md rename to docs/references/databases/create-email-column.md diff --git a/docs/references/grids/create-enum-column.md b/docs/references/databases/create-enum-column.md similarity index 100% rename from docs/references/grids/create-enum-column.md rename to docs/references/databases/create-enum-column.md diff --git a/docs/references/grids/create-float-column.md b/docs/references/databases/create-float-column.md similarity index 100% rename from docs/references/grids/create-float-column.md rename to docs/references/databases/create-float-column.md diff --git a/docs/references/grids/create-integer-column.md b/docs/references/databases/create-integer-column.md similarity index 100% rename from docs/references/grids/create-integer-column.md rename to docs/references/databases/create-integer-column.md diff --git a/docs/references/grids/create-ip-column.md b/docs/references/databases/create-ip-column.md similarity index 100% rename from docs/references/grids/create-ip-column.md rename to docs/references/databases/create-ip-column.md diff --git a/docs/references/grids/create-relationship-column.md b/docs/references/databases/create-relationship-column.md similarity index 100% rename from docs/references/grids/create-relationship-column.md rename to docs/references/databases/create-relationship-column.md diff --git a/docs/references/grids/create-row.md b/docs/references/databases/create-row.md similarity index 100% rename from docs/references/grids/create-row.md rename to docs/references/databases/create-row.md diff --git a/docs/references/grids/create-rows.md b/docs/references/databases/create-rows.md similarity index 100% rename from docs/references/grids/create-rows.md rename to docs/references/databases/create-rows.md diff --git a/docs/references/grids/create-string-column.md b/docs/references/databases/create-string-column.md similarity index 100% rename from docs/references/grids/create-string-column.md rename to docs/references/databases/create-string-column.md diff --git a/docs/references/grids/create-table.md b/docs/references/databases/create-table.md similarity index 100% rename from docs/references/grids/create-table.md rename to docs/references/databases/create-table.md diff --git a/docs/references/grids/create-url-column.md b/docs/references/databases/create-url-column.md similarity index 100% rename from docs/references/grids/create-url-column.md rename to docs/references/databases/create-url-column.md diff --git a/docs/references/grids/decrement-row-column.md b/docs/references/databases/decrement-row-column.md similarity index 100% rename from docs/references/grids/decrement-row-column.md rename to docs/references/databases/decrement-row-column.md diff --git a/docs/references/grids/delete-column.md b/docs/references/databases/delete-column.md similarity index 100% rename from docs/references/grids/delete-column.md rename to docs/references/databases/delete-column.md diff --git a/docs/references/grids/delete-row.md b/docs/references/databases/delete-row.md similarity index 100% rename from docs/references/grids/delete-row.md rename to docs/references/databases/delete-row.md diff --git a/docs/references/grids/delete-rows.md b/docs/references/databases/delete-rows.md similarity index 100% rename from docs/references/grids/delete-rows.md rename to docs/references/databases/delete-rows.md diff --git a/docs/references/grids/delete-table.md b/docs/references/databases/delete-table.md similarity index 100% rename from docs/references/grids/delete-table.md rename to docs/references/databases/delete-table.md diff --git a/docs/references/grids/get-column.md b/docs/references/databases/get-column.md similarity index 100% rename from docs/references/grids/get-column.md rename to docs/references/databases/get-column.md diff --git a/docs/references/grids/get-row-logs.md b/docs/references/databases/get-row-logs.md similarity index 100% rename from docs/references/grids/get-row-logs.md rename to docs/references/databases/get-row-logs.md diff --git a/docs/references/grids/get-row.md b/docs/references/databases/get-row.md similarity index 100% rename from docs/references/grids/get-row.md rename to docs/references/databases/get-row.md diff --git a/docs/references/grids/get-table-logs.md b/docs/references/databases/get-table-logs.md similarity index 100% rename from docs/references/grids/get-table-logs.md rename to docs/references/databases/get-table-logs.md diff --git a/docs/references/grids/get-table-usage.md b/docs/references/databases/get-table-usage.md similarity index 100% rename from docs/references/grids/get-table-usage.md rename to docs/references/databases/get-table-usage.md diff --git a/docs/references/grids/get-table.md b/docs/references/databases/get-table.md similarity index 100% rename from docs/references/grids/get-table.md rename to docs/references/databases/get-table.md diff --git a/docs/references/grids/increment-row-column.md b/docs/references/databases/increment-row-column.md similarity index 100% rename from docs/references/grids/increment-row-column.md rename to docs/references/databases/increment-row-column.md diff --git a/docs/references/grids/list-columns.md b/docs/references/databases/list-columns.md similarity index 100% rename from docs/references/grids/list-columns.md rename to docs/references/databases/list-columns.md diff --git a/docs/references/grids/list-rows.md b/docs/references/databases/list-rows.md similarity index 100% rename from docs/references/grids/list-rows.md rename to docs/references/databases/list-rows.md diff --git a/docs/references/grids/list-tables.md b/docs/references/databases/list-tables.md similarity index 100% rename from docs/references/grids/list-tables.md rename to docs/references/databases/list-tables.md diff --git a/docs/references/grids/update-boolean-column.md b/docs/references/databases/update-boolean-column.md similarity index 100% rename from docs/references/grids/update-boolean-column.md rename to docs/references/databases/update-boolean-column.md diff --git a/docs/references/grids/update-datetime-column.md b/docs/references/databases/update-datetime-column.md similarity index 100% rename from docs/references/grids/update-datetime-column.md rename to docs/references/databases/update-datetime-column.md diff --git a/docs/references/grids/update-email-column.md b/docs/references/databases/update-email-column.md similarity index 100% rename from docs/references/grids/update-email-column.md rename to docs/references/databases/update-email-column.md diff --git a/docs/references/grids/update-enum-column.md b/docs/references/databases/update-enum-column.md similarity index 100% rename from docs/references/grids/update-enum-column.md rename to docs/references/databases/update-enum-column.md diff --git a/docs/references/grids/update-float-column.md b/docs/references/databases/update-float-column.md similarity index 100% rename from docs/references/grids/update-float-column.md rename to docs/references/databases/update-float-column.md diff --git a/docs/references/grids/update-integer-column.md b/docs/references/databases/update-integer-column.md similarity index 100% rename from docs/references/grids/update-integer-column.md rename to docs/references/databases/update-integer-column.md diff --git a/docs/references/grids/update-ip-column.md b/docs/references/databases/update-ip-column.md similarity index 100% rename from docs/references/grids/update-ip-column.md rename to docs/references/databases/update-ip-column.md diff --git a/docs/references/grids/update-relationship-column.md b/docs/references/databases/update-relationship-column.md similarity index 100% rename from docs/references/grids/update-relationship-column.md rename to docs/references/databases/update-relationship-column.md diff --git a/docs/references/grids/update-row.md b/docs/references/databases/update-row.md similarity index 100% rename from docs/references/grids/update-row.md rename to docs/references/databases/update-row.md diff --git a/docs/references/grids/update-rows.md b/docs/references/databases/update-rows.md similarity index 100% rename from docs/references/grids/update-rows.md rename to docs/references/databases/update-rows.md diff --git a/docs/references/grids/update-string-column.md b/docs/references/databases/update-string-column.md similarity index 100% rename from docs/references/grids/update-string-column.md rename to docs/references/databases/update-string-column.md diff --git a/docs/references/grids/update-table.md b/docs/references/databases/update-table.md similarity index 100% rename from docs/references/grids/update-table.md rename to docs/references/databases/update-table.md diff --git a/docs/references/grids/update-url-column.md b/docs/references/databases/update-url-column.md similarity index 100% rename from docs/references/grids/update-url-column.md rename to docs/references/databases/update-url-column.md diff --git a/docs/references/grids/upsert-row.md b/docs/references/databases/upsert-row.md similarity index 100% rename from docs/references/grids/upsert-row.md rename to docs/references/databases/upsert-row.md diff --git a/docs/references/grids/upsert-rows.md b/docs/references/databases/upsert-rows.md similarity index 100% rename from docs/references/grids/upsert-rows.md rename to docs/references/databases/upsert-rows.md diff --git a/docs/references/grids/create-database.md b/docs/references/grids/create-database.md deleted file mode 100644 index b608485341..0000000000 --- a/docs/references/grids/create-database.md +++ /dev/null @@ -1 +0,0 @@ -Create a new Database. diff --git a/docs/references/grids/create-index.md b/docs/references/grids/create-index.md deleted file mode 100644 index 6ce853a217..0000000000 --- a/docs/references/grids/create-index.md +++ /dev/null @@ -1,2 +0,0 @@ -Creates an index on the columns listed. Your index should include all the columns you will query in a single request. -Columns can be `key`, `fulltext`, and `unique`. \ No newline at end of file diff --git a/docs/references/grids/delete-database.md b/docs/references/grids/delete-database.md deleted file mode 100644 index 605fa290d3..0000000000 --- a/docs/references/grids/delete-database.md +++ /dev/null @@ -1 +0,0 @@ -Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database. \ No newline at end of file diff --git a/docs/references/grids/delete-index.md b/docs/references/grids/delete-index.md deleted file mode 100644 index c5b8f49e5f..0000000000 --- a/docs/references/grids/delete-index.md +++ /dev/null @@ -1 +0,0 @@ -Delete an index. \ No newline at end of file diff --git a/docs/references/grids/get-database-usage.md b/docs/references/grids/get-database-usage.md deleted file mode 100644 index d9298f4814..0000000000 --- a/docs/references/grids/get-database-usage.md +++ /dev/null @@ -1 +0,0 @@ -Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/grids/get-database.md b/docs/references/grids/get-database.md deleted file mode 100644 index 24183f6f6b..0000000000 --- a/docs/references/grids/get-database.md +++ /dev/null @@ -1 +0,0 @@ -Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata. \ No newline at end of file diff --git a/docs/references/grids/get-index.md b/docs/references/grids/get-index.md deleted file mode 100644 index cdea5b4f27..0000000000 --- a/docs/references/grids/get-index.md +++ /dev/null @@ -1 +0,0 @@ -Get index by ID. \ No newline at end of file diff --git a/docs/references/grids/get-logs.md b/docs/references/grids/get-logs.md deleted file mode 100644 index 8e49da4603..0000000000 --- a/docs/references/grids/get-logs.md +++ /dev/null @@ -1 +0,0 @@ -Get the database activity logs list by its unique ID. \ No newline at end of file diff --git a/docs/references/grids/list-database-usage.md b/docs/references/grids/list-database-usage.md deleted file mode 100644 index 2bf5ed81e1..0000000000 --- a/docs/references/grids/list-database-usage.md +++ /dev/null @@ -1 +0,0 @@ -List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/grids/list-databases.md b/docs/references/grids/list-databases.md deleted file mode 100644 index d93fb9d7a8..0000000000 --- a/docs/references/grids/list-databases.md +++ /dev/null @@ -1 +0,0 @@ -Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results. \ No newline at end of file diff --git a/docs/references/grids/list-indexes.md b/docs/references/grids/list-indexes.md deleted file mode 100644 index a0c7b2f861..0000000000 --- a/docs/references/grids/list-indexes.md +++ /dev/null @@ -1 +0,0 @@ -List indexes in the table. \ No newline at end of file diff --git a/docs/references/grids/update-database.md b/docs/references/grids/update-database.md deleted file mode 100644 index 4e99bf2e07..0000000000 --- a/docs/references/grids/update-database.md +++ /dev/null @@ -1 +0,0 @@ -Update a database by its unique ID. \ No newline at end of file From 503d7e13f8435ac4500509f1009b0872b6848344 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 28 Jul 2025 18:45:01 +1200 Subject: [PATCH 24/24] Update generator --- composer.json | 2 +- composer.lock | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index f2cbe2bff5..659d6221f7 100644 --- a/composer.json +++ b/composer.json @@ -86,7 +86,7 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "dev-feat-multiple-namespaces", + "appwrite/sdk-generator": "0.*.*", "phpunit/phpunit": "9.*", "swoole/ide-helper": "5.1.2", "phpstan/phpstan": "1.8.*", diff --git a/composer.lock b/composer.lock index 84f7ee3fa0..718dbaf64b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ee81ef96c463854d58fd5678c28ad896", + "content-hash": "f4876940be4499bea26a77a036dece4f", "packages": [ { "name": "adhocore/jwt", @@ -8239,9 +8239,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "appwrite/sdk-generator": 20 - }, + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": {