diff --git a/.gitignore b/.gitignore index 600a6aeb08..1d0f0533f2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,5 +16,5 @@ app/sdks dev/yasd_init.php .phpunit.result.cache Makefile -appwrite.json +appwrite.config.json /.zed/ \ No newline at end of file diff --git a/app/config/platforms.php b/app/config/platforms.php index 15eb8b3893..ae09c39cac 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -11,7 +11,7 @@ return [ [ 'key' => 'web', 'name' => 'Web', - 'version' => '18.1.0', + 'version' => '18.2.0', 'url' => 'https://github.com/appwrite/sdk-for-web', 'package' => 'https://www.npmjs.com/package/appwrite', 'enabled' => true, @@ -59,7 +59,7 @@ return [ [ 'key' => 'flutter', 'name' => 'Flutter', - 'version' => '17.0.2', + 'version' => '17.1.0', 'url' => 'https://github.com/appwrite/sdk-for-flutter', 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, @@ -77,7 +77,7 @@ return [ [ 'key' => 'apple', 'name' => 'Apple', - 'version' => '10.1.1', + 'version' => '10.2.0', 'url' => 'https://github.com/appwrite/sdk-for-apple', 'package' => 'https://github.com/appwrite/sdk-for-apple', 'enabled' => true, @@ -112,7 +112,7 @@ return [ [ 'key' => 'android', 'name' => 'Android', - 'version' => '8.1.0', + 'version' => '8.2.0', 'url' => 'https://github.com/appwrite/sdk-for-android', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android', 'enabled' => true, @@ -134,7 +134,7 @@ return [ [ 'key' => 'react-native', 'name' => 'React Native', - 'version' => '0.10.1', + 'version' => '0.11.0', 'url' => 'https://github.com/appwrite/sdk-for-react-native', 'package' => 'https://npmjs.com/package/react-native-appwrite', 'enabled' => true, @@ -199,7 +199,7 @@ return [ [ 'key' => 'web', 'name' => 'Console', - 'version' => '1.7.0', + 'version' => '1.9.0', 'url' => 'https://github.com/appwrite/sdk-for-console', 'package' => '', 'enabled' => true, @@ -217,7 +217,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '8.2.2', + 'version' => '8.3.0', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, @@ -251,7 +251,7 @@ return [ [ 'key' => 'nodejs', 'name' => 'Node.js', - 'version' => '17.1.0', + 'version' => '17.2.0', 'url' => 'https://github.com/appwrite/sdk-for-node', 'package' => 'https://www.npmjs.com/package/node-appwrite', 'enabled' => true, @@ -269,7 +269,7 @@ return [ [ 'key' => 'deno', 'name' => 'Deno', - 'version' => '15.0.0', + 'version' => '15.1.0', 'url' => 'https://github.com/appwrite/sdk-for-deno', 'package' => 'https://deno.land/x/appwrite', 'enabled' => true, @@ -287,7 +287,7 @@ return [ [ 'key' => 'php', 'name' => 'PHP', - 'version' => '15.0.0', + 'version' => '15.1.0', 'url' => 'https://github.com/appwrite/sdk-for-php', 'package' => 'https://packagist.org/packages/appwrite/appwrite', 'enabled' => true, @@ -305,7 +305,7 @@ return [ [ 'key' => 'python', 'name' => 'Python', - 'version' => '11.0.0', + 'version' => '11.1.0', 'url' => 'https://github.com/appwrite/sdk-for-python', 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, @@ -323,7 +323,7 @@ return [ [ 'key' => 'ruby', 'name' => 'Ruby', - 'version' => '16.0.0', + 'version' => '16.1.0', 'url' => 'https://github.com/appwrite/sdk-for-ruby', 'package' => 'https://rubygems.org/gems/appwrite', 'enabled' => true, @@ -341,7 +341,7 @@ return [ [ 'key' => 'go', 'name' => 'Go', - 'version' => '0.8.0', + 'version' => '0.9.0', 'url' => 'https://github.com/appwrite/sdk-for-go', 'package' => 'https://github.com/appwrite/sdk-for-go', 'enabled' => true, @@ -359,7 +359,7 @@ return [ [ 'key' => 'dotnet', 'name' => '.NET', - 'version' => '0.14.0', + 'version' => '0.14.1', 'url' => 'https://github.com/appwrite/sdk-for-dotnet', 'package' => 'https://www.nuget.org/packages/Appwrite', 'enabled' => true, @@ -377,7 +377,7 @@ return [ [ 'key' => 'dart', 'name' => 'Dart', - 'version' => '16.1.0', + 'version' => '16.2.0', 'url' => 'https://github.com/appwrite/sdk-for-dart', 'package' => 'https://pub.dev/packages/dart_appwrite', 'enabled' => true, @@ -395,7 +395,7 @@ return [ [ 'key' => 'kotlin', 'name' => 'Kotlin', - 'version' => '9.0.0', + 'version' => '9.1.0', 'url' => 'https://github.com/appwrite/sdk-for-kotlin', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin', 'enabled' => true, @@ -417,7 +417,7 @@ return [ [ 'key' => 'swift', 'name' => 'Swift', - 'version' => '10.1.0', + 'version' => '10.2.0', 'url' => 'https://github.com/appwrite/sdk-for-swift', 'package' => 'https://github.com/appwrite/sdk-for-swift', 'enabled' => true, diff --git a/app/config/variables.php b/app/config/variables.php index 2f9a5ab41a..71ed13a483 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -827,7 +827,7 @@ return [ ], [ 'name' => '_APP_FUNCTIONS_TIMEOUT', - 'description' => 'The maximum number of seconds allowed as a timeout value when creating a new function. The default value is 900 seconds. This is the global limit, timeout for individual functions are configured in the function\'s settings or in appwrite.json.', + 'description' => 'The maximum number of seconds allowed as a timeout value when creating a new function. The default value is 900 seconds. This is the global limit, timeout for individual functions are configured in the function\'s settings or in appwrite.config.json.', 'introduction' => '0.7.0', 'default' => '900', 'required' => false, @@ -1070,7 +1070,7 @@ return [ 'variables' => [ [ 'name' => '_APP_SITES_TIMEOUT', - 'description' => 'The maximum number of seconds allowed as a timeout value when creating a new site. The default value is 900 seconds. This is the global limit, timeout for individual functions are configured in the sites\'s settings or in appwrite.json.', + 'description' => 'The maximum number of seconds allowed as a timeout value when creating a new site. The default value is 900 seconds. This is the global limit, timeout for individual functions are configured in the sites\'s settings or in appwrite.config.json.', 'introduction' => '1.7.0', 'default' => '900', 'required' => false, diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index fcce0c3a63..4956e8b6a2 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -2239,7 +2239,30 @@ App::post('/v1/account/tokens/email') ]); $user->removeAttribute('$sequence'); - Authorization::skip(fn () => $dbForProject->createDocument('users', $user)); + $user = Authorization::skip(fn () => $dbForProject->createDocument('users', $user)); + try { + $target = Authorization::skip(fn () => $dbForProject->createDocument('targets', new Document([ + '$permissions' => [ + Permission::read(Role::user($user->getId())), + Permission::update(Role::user($user->getId())), + Permission::delete(Role::user($user->getId())), + ], + 'userId' => $user->getId(), + 'userInternalId' => $user->getSequence(), + 'providerType' => MESSAGE_TYPE_EMAIL, + 'identifier' => $email, + ]))); + $user->setAttribute('targets', [...$user->getAttribute('targets', []), $target]); + } catch (Duplicate) { + $existingTarget = $dbForProject->findOne('targets', [ + Query::equal('identifier', [$email]), + ]); + if (!$existingTarget->isEmpty()) { + $user->setAttribute('targets', $existingTarget, Document::SET_TYPE_APPEND); + } + } + + $dbForProject->purgeCachedDocument('users', $user->getId()); } $tokenSecret = Auth::codeGenerator(6); diff --git a/composer.json b/composer.json index 40740b711f..e0c9dc36af 100644 --- a/composer.json +++ b/composer.json @@ -62,7 +62,7 @@ "utopia-php/locale": "0.4.*", "utopia-php/logger": "0.6.*", "utopia-php/messaging": "0.18.*", - "utopia-php/migration": "0.13.3", + "utopia-php/migration": "0.13.*", "utopia-php/orchestration": "0.9.*", "utopia-php/platform": "0.7.*", "utopia-php/pools": "0.8.*", diff --git a/composer.lock b/composer.lock index bddc8ec936..3fc23b8dcf 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": "f152305ec0b90245773867cde288582d", + "content-hash": "a2740535c6a9ebbcf6d01df4d35bb78d", "packages": [ { "name": "adhocore/jwt", @@ -3993,16 +3993,16 @@ }, { "name": "utopia-php/migration", - "version": "0.13.3", + "version": "0.13.5", "source": { "type": "git", "url": "https://github.com/utopia-php/migration.git", - "reference": "cf6b192f78dacfa06b659646c228b203212b3c6b" + "reference": "8142d722d8eeec443e6d5df91b69ecf89b86df8e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/migration/zipball/cf6b192f78dacfa06b659646c228b203212b3c6b", - "reference": "cf6b192f78dacfa06b659646c228b203212b3c6b", + "url": "https://api.github.com/repos/utopia-php/migration/zipball/8142d722d8eeec443e6d5df91b69ecf89b86df8e", + "reference": "8142d722d8eeec443e6d5df91b69ecf89b86df8e", "shasum": "" }, "require": { @@ -4043,9 +4043,9 @@ ], "support": { "issues": "https://github.com/utopia-php/migration/issues", - "source": "https://github.com/utopia-php/migration/tree/0.13.3" + "source": "https://github.com/utopia-php/migration/tree/0.13.5" }, - "time": "2025-07-23T08:02:04+00:00" + "time": "2025-07-29T04:15:45+00:00" }, { "name": "utopia-php/orchestration", @@ -4810,16 +4810,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "0.41.24", + "version": "0.41.26", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "c9ebf8daa25332ca701515d42e8d0c4a7be6a489" + "reference": "5a13191a5a4bdec8fe1b1180ff67f75c4ff6ac0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/c9ebf8daa25332ca701515d42e8d0c4a7be6a489", - "reference": "c9ebf8daa25332ca701515d42e8d0c4a7be6a489", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/5a13191a5a4bdec8fe1b1180ff67f75c4ff6ac0b", + "reference": "5a13191a5a4bdec8fe1b1180ff67f75c4ff6ac0b", "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.24" + "source": "https://github.com/appwrite/sdk-generator/tree/0.41.26" }, - "time": "2025-07-28T06:27:00+00:00" + "time": "2025-07-30T06:53:12+00:00" }, { "name": "doctrine/annotations", @@ -8239,7 +8239,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { 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/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/tables/delete-row.md b/docs/examples/1.8.x/client-android/java/grids/delete-row.md similarity index 85% rename from docs/examples/1.8.x/client-android/java/tables/delete-row.md rename to docs/examples/1.8.x/client-android/java/grids/delete-row.md index 596a8b7aca..a73c03a06e 100644 --- a/docs/examples/1.8.x/client-android/java/tables/delete-row.md +++ b/docs/examples/1.8.x/client-android/java/grids/delete-row.md @@ -1,14 +1,14 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +import io.appwrite.services.Grids; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject(""); // Your project ID -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.deleteRow( +grids.deleteRow( "", // databaseId "", // tableId "", // rowId diff --git a/docs/examples/1.8.x/client-android/java/tables/get-row.md b/docs/examples/1.8.x/client-android/java/grids/get-row.md similarity index 86% rename from docs/examples/1.8.x/client-android/java/tables/get-row.md rename to docs/examples/1.8.x/client-android/java/grids/get-row.md index 882a195376..4968759d6b 100644 --- a/docs/examples/1.8.x/client-android/java/tables/get-row.md +++ b/docs/examples/1.8.x/client-android/java/grids/get-row.md @@ -1,14 +1,14 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +import io.appwrite.services.Grids; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject(""); // Your project ID -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.getRow( +grids.getRow( "", // databaseId "", // tableId "", // rowId diff --git a/docs/examples/1.8.x/client-android/java/tables/list-rows.md b/docs/examples/1.8.x/client-android/java/grids/list-rows.md similarity index 86% rename from docs/examples/1.8.x/client-android/java/tables/list-rows.md rename to docs/examples/1.8.x/client-android/java/grids/list-rows.md index 4d37570246..55336dc452 100644 --- a/docs/examples/1.8.x/client-android/java/tables/list-rows.md +++ b/docs/examples/1.8.x/client-android/java/grids/list-rows.md @@ -1,14 +1,14 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +import io.appwrite.services.Grids; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject(""); // Your project ID -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.listRows( +grids.listRows( "", // databaseId "", // tableId listOf(), // queries (optional) diff --git a/docs/examples/1.8.x/client-android/java/tables/update-row.md b/docs/examples/1.8.x/client-android/java/grids/update-row.md similarity index 87% rename from docs/examples/1.8.x/client-android/java/tables/update-row.md rename to docs/examples/1.8.x/client-android/java/grids/update-row.md index 0421c9cffb..23dc0907eb 100644 --- a/docs/examples/1.8.x/client-android/java/tables/update-row.md +++ b/docs/examples/1.8.x/client-android/java/grids/update-row.md @@ -1,14 +1,14 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +import io.appwrite.services.Grids; Client client = new Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject(""); // Your project ID -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateRow( +grids.updateRow( "", // databaseId "", // tableId "", // rowId 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/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/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/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-android/kotlin/tables/create-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md similarity index 61% rename from docs/examples/1.8.x/client-android/kotlin/tables/create-row.md rename to docs/examples/1.8.x/client-android/kotlin/grids/create-row.md index 8c581bf1d5..5b29ac0db0 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tables/create-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md @@ -1,16 +1,14 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +import io.appwrite.services.Grids 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 tables = Tables(client) +val grids = Grids(client) -val result = tables.createRow( +val result = grids.createRow( databaseId = "", tableId = "", rowId = "", diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md similarity index 77% rename from docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md rename to docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md index ffa3229f30..e85ff6c4ad 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tables/delete-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md @@ -1,14 +1,14 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +import io.appwrite.services.Grids val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID -val tables = Tables(client) +val grids = Grids(client) -val result = tables.deleteRow( +val result = grids.deleteRow( databaseId = "", tableId = "", rowId = "", diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/get-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md similarity index 80% rename from docs/examples/1.8.x/client-android/kotlin/tables/get-row.md rename to docs/examples/1.8.x/client-android/kotlin/grids/get-row.md index 15dabff397..0b6c313645 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tables/get-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md @@ -1,14 +1,14 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +import io.appwrite.services.Grids val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID -val tables = Tables(client) +val grids = Grids(client) -val result = tables.getRow( +val result = grids.getRow( databaseId = "", tableId = "", rowId = "", diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md b/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md similarity index 78% rename from docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md rename to docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md index ff36543938..153e62787f 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tables/list-rows.md +++ b/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md @@ -1,14 +1,14 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +import io.appwrite.services.Grids val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID -val tables = Tables(client) +val grids = Grids(client) -val result = tables.listRows( +val result = grids.listRows( databaseId = "", tableId = "", queries = listOf(), // (optional) diff --git a/docs/examples/1.8.x/client-android/kotlin/tables/update-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md similarity index 82% rename from docs/examples/1.8.x/client-android/kotlin/tables/update-row.md rename to docs/examples/1.8.x/client-android/kotlin/grids/update-row.md index e9b515cef4..8dff0b157c 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tables/update-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md @@ -1,14 +1,14 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +import io.appwrite.services.Grids val client = Client(context) .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID -val tables = Tables(client) +val grids = Grids(client) -val result = tables.updateRow( +val result = grids.updateRow( databaseId = "", tableId = "", rowId = "", 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-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/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/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-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/tables/delete-row.md b/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md similarity index 79% rename from docs/examples/1.8.x/client-apple/examples/tables/delete-row.md rename to docs/examples/1.8.x/client-apple/examples/grids/delete-row.md index 7d12ec4f4c..58ae835ec5 100644 --- a/docs/examples/1.8.x/client-apple/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md @@ -4,9 +4,9 @@ let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID -let tables = Tables(client) +let grids = Grids(client) -let result = try await tables.deleteRow( +let result = try await grids.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/grids/get-row.md similarity index 82% rename from docs/examples/1.8.x/client-apple/examples/tables/get-row.md rename to docs/examples/1.8.x/client-apple/examples/grids/get-row.md index 93fbef9e7c..fccdad1f34 100644 --- a/docs/examples/1.8.x/client-apple/examples/tables/get-row.md +++ b/docs/examples/1.8.x/client-apple/examples/grids/get-row.md @@ -4,9 +4,9 @@ let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID -let tables = Tables(client) +let grids = Grids(client) -let row = try await tables.getRow( +let row = try await grids.getRow( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/client-apple/examples/tables/list-rows.md b/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md similarity index 79% rename from docs/examples/1.8.x/client-apple/examples/tables/list-rows.md rename to docs/examples/1.8.x/client-apple/examples/grids/list-rows.md index 31545cce4d..1b4d885a64 100644 --- a/docs/examples/1.8.x/client-apple/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md @@ -4,9 +4,9 @@ let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID -let tables = Tables(client) +let grids = Grids(client) -let rowList = try await tables.listRows( +let rowList = try await grids.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/grids/update-row.md similarity index 83% rename from docs/examples/1.8.x/client-apple/examples/tables/update-row.md rename to docs/examples/1.8.x/client-apple/examples/grids/update-row.md index 601c4f0a77..95a3611a92 100644 --- a/docs/examples/1.8.x/client-apple/examples/tables/update-row.md +++ b/docs/examples/1.8.x/client-apple/examples/grids/update-row.md @@ -4,9 +4,9 @@ let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID -let tables = Tables(client) +let grids = Grids(client) -let row = try await tables.updateRow( +let row = try await grids.updateRow( databaseId: "", tableId: "", rowId: "", 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-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/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/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-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/tables/delete-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md similarity index 83% rename from docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md rename to docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md index 4187c4766d..04f5aec544 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md @@ -4,9 +4,9 @@ Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID -Tables tables = Tables(client); +Grids grids = Grids(client); -await tables.deleteRow( +await grids.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/grids/get-row.md similarity index 82% rename from docs/examples/1.8.x/client-flutter/examples/tables/get-row.md rename to docs/examples/1.8.x/client-flutter/examples/grids/get-row.md index 8d8c52caa6..a8a380ee7c 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tables/get-row.md +++ b/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md @@ -4,9 +4,9 @@ Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID -Tables tables = Tables(client); +Grids grids = Grids(client); -Row result = await tables.getRow( +Row result = await grids.getRow( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md b/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md similarity index 80% rename from docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md rename to docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md index f770bbbd92..6654c57aaa 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md @@ -4,9 +4,9 @@ Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID -Tables tables = Tables(client); +Grids grids = Grids(client); -RowList result = await tables.listRows( +RowList result = await grids.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/grids/update-row.md similarity index 84% rename from docs/examples/1.8.x/client-flutter/examples/tables/update-row.md rename to docs/examples/1.8.x/client-flutter/examples/grids/update-row.md index f43ba5e689..293f38877a 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tables/update-row.md +++ b/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md @@ -4,9 +4,9 @@ Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID -Tables tables = Tables(client); +Grids grids = Grids(client); -Row result = await tables.updateRow( +Row result = await grids.updateRow( databaseId: '', tableId: '', rowId: '', 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-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/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/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/tables/create-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md similarity index 93% rename from docs/examples/1.8.x/client-graphql/examples/tables/create-row.md rename to docs/examples/1.8.x/client-graphql/examples/grids/create-row.md index c88a7f36cf..cffb7361f2 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tables/create-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md @@ -1,5 +1,5 @@ mutation { - tablesCreateRow( + gridsCreateRow( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md similarity index 86% rename from docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md rename to docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md index f3a35c1df1..40dcbdc219 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md @@ -1,5 +1,5 @@ mutation { - tablesDeleteRow( + gridsDeleteRow( databaseId: "", tableId: "", rowId: "" diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/get-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/get-row.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/tables/get-row.md rename to docs/examples/1.8.x/client-graphql/examples/grids/get-row.md diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/list-rows.md b/docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/tables/list-rows.md rename to docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/update-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md similarity index 93% rename from docs/examples/1.8.x/client-graphql/examples/tables/update-row.md rename to docs/examples/1.8.x/client-graphql/examples/grids/update-row.md index 8449d8499b..2bb105e8c0 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tables/update-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateRow( + gridsUpdateRow( databaseId: "", tableId: "", rowId: "", 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-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-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/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-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/console-web/examples/tables/delete-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md similarity index 68% rename from docs/examples/1.8.x/console-web/examples/tables/delete-row.md rename to docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md index accbb3092a..33a5a50a69 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.deleteRow( +const result = await grids.deleteRow( '', // databaseId '', // tableId '' // rowId diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md similarity index 71% rename from docs/examples/1.8.x/console-web/examples/tables/get-row.md rename to docs/examples/1.8.x/client-react-native/examples/grids/get-row.md index f37558d4ff..7df0636b2e 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/get-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.getRow( +const result = await grids.getRow( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-rows.md b/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md similarity index 69% rename from docs/examples/1.8.x/console-web/examples/tables/list-rows.md rename to docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md index 79f5e242a5..3fd58773ef 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.listRows( +const result = await grids.listRows( '', // databaseId '', // tableId [] // queries (optional) diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md similarity index 73% rename from docs/examples/1.8.x/console-web/examples/tables/update-row.md rename to docs/examples/1.8.x/client-react-native/examples/grids/update-row.md index 0db00657c2..39b147758f 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateRow( +const result = await grids.updateRow( '', // databaseId '', // tableId '', // rowId 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-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/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/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/tables/create-row.md b/docs/examples/1.8.x/client-rest/examples/grids/create-row.md similarity index 67% rename from docs/examples/1.8.x/client-rest/examples/tables/create-row.md rename to docs/examples/1.8.x/client-rest/examples/grids/create-row.md index c4166b8b80..98b261ecba 100644 --- a/docs/examples/1.8.x/client-rest/examples/tables/create-row.md +++ b/docs/examples/1.8.x/client-rest/examples/grids/create-row.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows 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/tables/delete-row.md b/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md similarity index 55% rename from docs/examples/1.8.x/client-rest/examples/tables/delete-row.md rename to docs/examples/1.8.x/client-rest/examples/grids/delete-row.md index 954303d17a..6f702a8526 100644 --- a/docs/examples/1.8.x/client-rest/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md @@ -1,7 +1,7 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +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.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/tables/get-row.md b/docs/examples/1.8.x/client-rest/examples/grids/get-row.md similarity index 50% rename from docs/examples/1.8.x/client-rest/examples/tables/get-row.md rename to docs/examples/1.8.x/client-rest/examples/grids/get-row.md index fc09601df7..876fe0f796 100644 --- a/docs/examples/1.8.x/client-rest/examples/tables/get-row.md +++ b/docs/examples/1.8.x/client-rest/examples/grids/get-row.md @@ -1,6 +1,6 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} 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/tables/list-rows.md b/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md similarity index 51% rename from docs/examples/1.8.x/client-rest/examples/tables/list-rows.md rename to docs/examples/1.8.x/client-rest/examples/grids/list-rows.md index de214e7cea..86751cfcaf 100644 --- a/docs/examples/1.8.x/client-rest/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md @@ -1,6 +1,6 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows 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/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/tables/update-row.md b/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md similarity index 63% rename from docs/examples/1.8.x/client-rest/examples/tables/update-row.md rename to docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md index f09f639e60..7368fc436d 100644 --- a/docs/examples/1.8.x/client-rest/examples/tables/update-row.md +++ b/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +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.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/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/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-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/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/tables/delete-row.md b/docs/examples/1.8.x/client-web/examples/grids/delete-row.md similarity index 70% rename from docs/examples/1.8.x/client-web/examples/tables/delete-row.md rename to docs/examples/1.8.x/client-web/examples/grids/delete-row.md index 5c6c4b96d9..7d3fb7df7e 100644 --- a/docs/examples/1.8.x/client-web/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/client-web/examples/grids/delete-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "appwrite"; +import { Client, Grids } 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 grids = new Grids(client); -const result = await tables.deleteRow( +const result = await grids.deleteRow( '', // databaseId '', // tableId '' // rowId diff --git a/docs/examples/1.8.x/client-web/examples/tables/get-row.md b/docs/examples/1.8.x/client-web/examples/grids/get-row.md similarity index 73% rename from docs/examples/1.8.x/client-web/examples/tables/get-row.md rename to docs/examples/1.8.x/client-web/examples/grids/get-row.md index 708b3d96cc..778377b61b 100644 --- a/docs/examples/1.8.x/client-web/examples/tables/get-row.md +++ b/docs/examples/1.8.x/client-web/examples/grids/get-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "appwrite"; +import { Client, Grids } 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 grids = new Grids(client); -const result = await tables.getRow( +const result = await grids.getRow( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/client-web/examples/tables/list-rows.md b/docs/examples/1.8.x/client-web/examples/grids/list-rows.md similarity index 71% rename from docs/examples/1.8.x/client-web/examples/tables/list-rows.md rename to docs/examples/1.8.x/client-web/examples/grids/list-rows.md index f82d358f0d..07de125329 100644 --- a/docs/examples/1.8.x/client-web/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/client-web/examples/grids/list-rows.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "appwrite"; +import { Client, Grids } 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 grids = new Grids(client); -const result = await tables.listRows( +const result = await grids.listRows( '', // databaseId '', // tableId [] // queries (optional) diff --git a/docs/examples/1.8.x/client-web/examples/tables/update-row.md b/docs/examples/1.8.x/client-web/examples/grids/update-row.md similarity index 75% rename from docs/examples/1.8.x/client-web/examples/tables/update-row.md rename to docs/examples/1.8.x/client-web/examples/grids/update-row.md index 0e0c5a012e..f37659e3ca 100644 --- a/docs/examples/1.8.x/client-web/examples/tables/update-row.md +++ b/docs/examples/1.8.x/client-web/examples/grids/update-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "appwrite"; +import { Client, Grids } 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 grids = new Grids(client); -const result = await tables.updateRow( +const result = await grids.updateRow( '', // databaseId '', // tableId '', // rowId 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/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/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/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-cli/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md similarity index 75% rename from docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md index 88e6bf8853..3a26ed2935 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md @@ -1,4 +1,4 @@ -appwrite tables createBooleanColumn \ +appwrite grids createBooleanColumn \ --databaseId \ --tableId \ --key '' \ 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/tables/create-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md index 23b672e62d..f0758d2753 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md @@ -1,4 +1,4 @@ -appwrite tables createEmailColumn \ +appwrite grids createEmailColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/create-enum-column.md similarity index 81% rename from docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md index 4cd3e1d241..e6ca5fdbd6 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md @@ -1,4 +1,4 @@ -appwrite tables createEnumColumn \ +appwrite grids createEnumColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/create-float-column.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md index 9c69e29e91..a17535614d 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md @@ -1,4 +1,4 @@ -appwrite tables createFloatColumn \ +appwrite grids createFloatColumn \ --databaseId \ --tableId \ --key '' \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-index.md b/docs/examples/1.8.x/console-cli/examples/grids/create-index.md similarity index 82% rename from docs/examples/1.8.x/console-cli/examples/tables/create-index.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-index.md index 4c6d641727..9b92ecc614 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-index.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-index.md @@ -1,4 +1,4 @@ -appwrite tables createIndex \ +appwrite grids createIndex \ --databaseId \ --tableId \ --key '' \ 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/grids/create-integer-column.md similarity index 75% rename from docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md index afab48e803..0e7d408fea 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md @@ -1,4 +1,4 @@ -appwrite tables createIntegerColumn \ +appwrite grids createIntegerColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/create-ip-column.md similarity index 77% rename from docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md index 000b54b918..bc16e6b9a7 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md @@ -1,4 +1,4 @@ -appwrite tables createIpColumn \ +appwrite grids createIpColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/create-relationship-column.md similarity index 77% rename from docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md index 4ce3342768..d60fd4516a 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md @@ -1,4 +1,4 @@ -appwrite tables createRelationshipColumn \ +appwrite grids createRelationshipColumn \ --databaseId \ --tableId \ --relatedTableId \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-row.md b/docs/examples/1.8.x/console-cli/examples/grids/create-row.md similarity index 82% rename from docs/examples/1.8.x/console-cli/examples/tables/create-row.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-row.md index e446de157b..f59ac8253c 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-row.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-row.md @@ -1,4 +1,4 @@ -appwrite tables createRow \ +appwrite grids createRow \ --databaseId \ --tableId \ --rowId \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/create-rows.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-rows.md index cb7c68dd7b..8d89674dc6 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md @@ -1,4 +1,4 @@ -appwrite tables createRows \ +appwrite grids 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/grids/create-string-column.md similarity index 78% rename from docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md index 4df1792a34..658bedec06 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md @@ -1,4 +1,4 @@ -appwrite tables createStringColumn \ +appwrite grids createStringColumn \ --databaseId \ --tableId \ --key '' \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/create.md b/docs/examples/1.8.x/console-cli/examples/grids/create-table.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/create.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-table.md index 09f52f16a1..9e707fde1c 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-table.md @@ -1,4 +1,4 @@ -appwrite tables create \ +appwrite grids createTable \ --databaseId \ --tableId \ --name \ 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/grids/create-url-column.md similarity index 77% rename from docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md index fcb81491bd..88adbdbb5d 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md @@ -1,4 +1,4 @@ -appwrite tables createUrlColumn \ +appwrite grids createUrlColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/decrement-row-column.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md index 73743c21ce..f3c1a50c2d 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md @@ -1,4 +1,4 @@ -appwrite tables decrementRowColumn \ +appwrite grids decrementRowColumn \ --databaseId \ --tableId \ --rowId \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/delete-column.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md similarity index 73% rename from docs/examples/1.8.x/console-cli/examples/tables/delete-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/delete-column.md index e659af54d0..0b60af67cc 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md @@ -1,4 +1,4 @@ -appwrite tables deleteColumn \ +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/tables/delete-index.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md similarity index 73% rename from docs/examples/1.8.x/console-cli/examples/tables/delete-index.md rename to docs/examples/1.8.x/console-cli/examples/grids/delete-index.md index 0de1e417d3..0a1f6dc404 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md @@ -1,4 +1,4 @@ -appwrite tables deleteIndex \ +appwrite grids 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/grids/delete-row.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/delete-row.md rename to docs/examples/1.8.x/console-cli/examples/grids/delete-row.md index d6918be89e..b360f6919a 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md @@ -1,4 +1,4 @@ -appwrite tables deleteRow \ +appwrite grids deleteRow \ --databaseId \ --tableId \ --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md similarity index 71% rename from docs/examples/1.8.x/console-cli/examples/tables/list-logs.md rename to docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md index 08c4ff0f8d..46b768f28d 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md @@ -1,4 +1,4 @@ -appwrite tables listLogs \ +appwrite grids deleteRows \ --databaseId \ --tableId \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md similarity index 69% rename from docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md rename to docs/examples/1.8.x/console-cli/examples/grids/delete-table.md index 828caf8f10..416a07052d 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/upsert-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md @@ -1,3 +1,3 @@ -appwrite tables upsertRows \ +appwrite grids deleteTable \ --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/grids/get-column.md similarity index 75% rename from docs/examples/1.8.x/console-cli/examples/tables/get-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/get-column.md index 33a94b5ebc..f875d56d33 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-column.md @@ -1,4 +1,4 @@ -appwrite tables getColumn \ +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/tables/get-index.md b/docs/examples/1.8.x/console-cli/examples/grids/get-index.md similarity index 75% rename from docs/examples/1.8.x/console-cli/examples/tables/get-index.md rename to docs/examples/1.8.x/console-cli/examples/grids/get-index.md index e956175e09..6f88f74c23 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-index.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-index.md @@ -1,4 +1,4 @@ -appwrite tables getIndex \ +appwrite grids 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/grids/get-row.md similarity index 79% rename from docs/examples/1.8.x/console-cli/examples/tables/get-row.md rename to docs/examples/1.8.x/console-cli/examples/grids/get-row.md index 5b3b64bfbc..73cc207eec 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-row.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-row.md @@ -1,4 +1,4 @@ -appwrite tables getRow \ +appwrite grids getRow \ --databaseId \ --tableId \ --rowId \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md similarity index 69% rename from docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md rename to docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md index b5fd85b911..e4002ec61e 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md @@ -1,4 +1,4 @@ -appwrite tables listIndexes \ +appwrite grids getTableUsage \ --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/grids/get-table.md similarity index 71% rename from docs/examples/1.8.x/console-cli/examples/tables/delete.md rename to docs/examples/1.8.x/console-cli/examples/grids/get-table.md index 0f189e09f1..e44c98ad83 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-table.md @@ -1,3 +1,3 @@ -appwrite tables delete \ +appwrite grids getTable \ --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/grids/increment-row-column.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md index da73950231..b4b84b6392 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md @@ -1,4 +1,4 @@ -appwrite tables incrementRowColumn \ +appwrite grids incrementRowColumn \ --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/grids/list-columns.md similarity index 70% rename from docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md rename to docs/examples/1.8.x/console-cli/examples/grids/list-columns.md index 579586b561..968643bb6c 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md @@ -1,4 +1,4 @@ -appwrite tables deleteRows \ +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/tables/get-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md similarity index 70% rename from docs/examples/1.8.x/console-cli/examples/tables/get-usage.md rename to docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md index ca955ce6df..85df307deb 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/get-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md @@ -1,4 +1,4 @@ -appwrite tables getUsage \ +appwrite grids listIndexes \ --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/grids/list-row-logs.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md rename to docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md index e7a8c5b8ce..3a073e4708 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-row-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md @@ -1,4 +1,4 @@ -appwrite tables listRowLogs \ +appwrite grids 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/grids/list-rows.md similarity index 71% rename from docs/examples/1.8.x/console-cli/examples/tables/list-rows.md rename to docs/examples/1.8.x/console-cli/examples/grids/list-rows.md index 2a6d69d574..99bf470bfb 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md @@ -1,4 +1,4 @@ -appwrite tables listRows \ +appwrite grids listRows \ --databaseId \ --tableId \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/list-columns.md b/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md similarity index 69% rename from docs/examples/1.8.x/console-cli/examples/tables/list-columns.md rename to docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md index 0439d58127..e38af040a6 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md @@ -1,4 +1,4 @@ -appwrite tables listColumns \ +appwrite grids listTableLogs \ --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/grids/list-tables.md similarity index 58% rename from docs/examples/1.8.x/console-cli/examples/tables/list.md rename to docs/examples/1.8.x/console-cli/examples/grids/list-tables.md index 1c58d9ed03..69f464ba86 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/list.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md @@ -1,4 +1,4 @@ -appwrite tables list \ +appwrite grids listTables \ --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/grids/update-boolean-column.md similarity index 78% rename from docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md index 7d736f35e5..a980b12aa0 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md @@ -1,4 +1,4 @@ -appwrite tables updateBooleanColumn \ +appwrite grids updateBooleanColumn \ --databaseId \ --tableId \ --key '' \ 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/tables/update-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md similarity index 77% rename from docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md index 3da3e4a919..97ee021e80 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md @@ -1,4 +1,4 @@ -appwrite tables updateDatetimeColumn \ +appwrite grids updateDatetimeColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/update-email-column.md similarity index 80% rename from docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md index df718b8d9a..d8b0827d62 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md @@ -1,4 +1,4 @@ -appwrite tables updateEmailColumn \ +appwrite grids updateEmailColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/update-enum-column.md similarity index 83% rename from docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md index 55c55fc2bd..82eb62f996 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md @@ -1,4 +1,4 @@ -appwrite tables updateEnumColumn \ +appwrite grids updateEnumColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/update-float-column.md similarity index 79% rename from docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md index 99667a8447..ef3a4ad36f 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md @@ -1,4 +1,4 @@ -appwrite tables updateFloatColumn \ +appwrite grids updateFloatColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/update-integer-column.md similarity index 78% rename from docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md index 098efa0e3e..5b83ca938b 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md @@ -1,4 +1,4 @@ -appwrite tables updateIntegerColumn \ +appwrite grids updateIntegerColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/update-ip-column.md similarity index 80% rename from docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md index 50eadc3fff..b0e6b8cf3a 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md @@ -1,4 +1,4 @@ -appwrite tables updateIpColumn \ +appwrite grids updateIpColumn \ --databaseId \ --tableId \ --key '' \ 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/grids/update-relationship-column.md similarity index 67% rename from docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md index 43e0c0ae6e..00ddda788c 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md @@ -1,4 +1,4 @@ -appwrite tables updateRelationshipColumn \ +appwrite grids 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/grids/update-row.md similarity index 77% rename from docs/examples/1.8.x/console-cli/examples/tables/update-row.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-row.md index d5cd0fe4ee..b89566b570 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-row.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-row.md @@ -1,4 +1,4 @@ -appwrite tables updateRow \ +appwrite grids 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/grids/update-rows.md similarity index 70% rename from docs/examples/1.8.x/console-cli/examples/tables/update-rows.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-rows.md index 173d608d5a..72c63ddb41 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md @@ -1,4 +1,4 @@ -appwrite tables updateRows \ +appwrite grids 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/grids/update-string-column.md similarity index 79% rename from docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md index 3feaa734ec..a6b6280560 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md @@ -1,4 +1,4 @@ -appwrite tables updateStringColumn \ +appwrite grids updateStringColumn \ --databaseId \ --tableId \ --key '' \ diff --git a/docs/examples/1.8.x/console-cli/examples/tables/update.md b/docs/examples/1.8.x/console-cli/examples/grids/update-table.md similarity index 76% rename from docs/examples/1.8.x/console-cli/examples/tables/update.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-table.md index a1550287c8..66e26b1752 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-table.md @@ -1,4 +1,4 @@ -appwrite tables update \ +appwrite grids updateTable \ --databaseId \ --tableId \ --name \ 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/grids/update-url-column.md similarity index 82% rename from docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md rename to docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md index 2df1ab14d7..ad41af9fa1 100644 --- a/docs/examples/1.8.x/console-cli/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md @@ -1,4 +1,4 @@ -appwrite tables updateUrlColumn \ +appwrite grids updateUrlColumn \ --databaseId \ --tableId \ --key '' \ 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-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/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.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/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-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/console-web/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md similarity index 71% rename from docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md index bf0cca08c1..5a61510aa7 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createBooleanColumn( +const result = await grids.createBooleanColumn( '', // databaseId '', // tableId '', // key 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/tables/create-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md similarity index 71% rename from docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md index c9eb3af82c..7580178d62 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createDatetimeColumn( +const result = await grids.createDatetimeColumn( '', // databaseId '', // tableId '', // key 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/grids/create-email-column.md similarity index 73% rename from docs/examples/1.8.x/console-web/examples/tables/create-email-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-email-column.md index 3952161779..9e44cbbd66 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createEmailColumn( +const result = await grids.createEmailColumn( '', // databaseId '', // tableId '', // key 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/grids/create-enum-column.md similarity index 73% rename from docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md index 7b16da6c14..c596b1408a 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createEnumColumn( +const result = await grids.createEnumColumn( '', // databaseId '', // tableId '', // key 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/grids/create-float-column.md similarity index 75% rename from docs/examples/1.8.x/console-web/examples/tables/create-float-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-float-column.md index 6608864efe..d1b4c21898 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createFloatColumn( +const result = await grids.createFloatColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/console-web/examples/tables/create-index.md b/docs/examples/1.8.x/console-web/examples/grids/create-index.md similarity index 72% rename from docs/examples/1.8.x/console-web/examples/tables/create-index.md rename to docs/examples/1.8.x/console-web/examples/grids/create-index.md index c303dd289d..2c22cafde8 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-index.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-index.md @@ -1,12 +1,12 @@ -import { Client, Tables, IndexType } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createIndex( +const result = await grids.createIndex( '', // databaseId '', // tableId '', // key 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/grids/create-integer-column.md similarity index 74% rename from docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md index 0490b71189..709694e358 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createIntegerColumn( +const result = await grids.createIntegerColumn( '', // databaseId '', // tableId '', // key 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/grids/create-ip-column.md similarity index 72% rename from docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md index 644f520032..1691d3fc81 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createIpColumn( +const result = await grids.createIpColumn( '', // databaseId '', // tableId '', // key 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/grids/create-relationship-column.md similarity index 72% rename from docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md index 5658eec690..5536e26488 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md @@ -1,12 +1,12 @@ -import { Client, Tables, RelationshipType, RelationMutate } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createRelationshipColumn( +const result = await grids.createRelationshipColumn( '', // databaseId '', // tableId '', // relatedTableId 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/tables/create-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md similarity index 74% rename from docs/examples/1.8.x/console-web/examples/tables/create-string-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-string-column.md index 6c1fbd7c99..4032caede0 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createStringColumn( +const result = await grids.createStringColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/console-web/examples/tables/create.md b/docs/examples/1.8.x/console-web/examples/grids/create-table.md similarity index 75% rename from docs/examples/1.8.x/console-web/examples/tables/create.md rename to docs/examples/1.8.x/console-web/examples/grids/create-table.md index a7bda74508..74227efe98 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-table.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.create( +const result = await grids.createTable( '', // databaseId '', // tableId '', // name 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/grids/create-url-column.md similarity index 73% rename from docs/examples/1.8.x/console-web/examples/tables/create-url-column.md rename to docs/examples/1.8.x/console-web/examples/grids/create-url-column.md index 88e1fc584d..4991da6cd6 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.createUrlColumn( +const result = await grids.createUrlColumn( '', // databaseId '', // tableId '', // key 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/grids/decrement-row-column.md similarity index 72% rename from docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md index 35cb78686c..6e0abb0ac8 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.decrementRowColumn( +const result = await grids.decrementRowColumn( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete-column.md b/docs/examples/1.8.x/console-web/examples/grids/delete-column.md similarity index 67% rename from docs/examples/1.8.x/console-web/examples/tables/delete-column.md rename to docs/examples/1.8.x/console-web/examples/grids/delete-column.md index 642856448a..8e46121f01 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.deleteColumn( +const result = await grids.deleteColumn( '', // databaseId '', // tableId '' // key 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/tables/delete-index.md b/docs/examples/1.8.x/console-web/examples/grids/delete-index.md similarity index 67% rename from docs/examples/1.8.x/console-web/examples/tables/delete-index.md rename to docs/examples/1.8.x/console-web/examples/grids/delete-index.md index f517513909..9e405de80f 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-index.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.deleteIndex( +const result = await grids.deleteIndex( '', // databaseId '', // tableId '' // key diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md b/docs/examples/1.8.x/console-web/examples/grids/delete-row.md similarity index 68% rename from docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md rename to docs/examples/1.8.x/console-web/examples/grids/delete-row.md index 9746f85ea0..cc49130d4f 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "react-native-appwrite"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.deleteRow( +const result = await grids.deleteRow( '', // databaseId '', // tableId '' // rowId diff --git a/docs/examples/1.8.x/console-web/examples/tables/list-logs.md b/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md similarity index 69% rename from docs/examples/1.8.x/console-web/examples/tables/list-logs.md rename to docs/examples/1.8.x/console-web/examples/grids/delete-rows.md index 04d6c2300c..fdaa4278fa 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/list-logs.md +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.listLogs( +const result = await grids.deleteRows( '', // databaseId '', // tableId [] // queries (optional) diff --git a/docs/examples/1.8.x/console-web/examples/tables/delete.md b/docs/examples/1.8.x/console-web/examples/grids/delete-table.md similarity index 66% rename from docs/examples/1.8.x/console-web/examples/tables/delete.md rename to docs/examples/1.8.x/console-web/examples/grids/delete-table.md index f235d8dda0..1817122ec3 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/delete.md +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-table.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.delete( +const result = await grids.deleteTable( '', // databaseId '' // tableId ); diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-column.md b/docs/examples/1.8.x/console-web/examples/grids/get-column.md similarity index 67% rename from docs/examples/1.8.x/console-web/examples/tables/get-column.md rename to docs/examples/1.8.x/console-web/examples/grids/get-column.md index 7bd7f2db30..116cee2f24 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/get-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/get-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.getColumn( +const result = await grids.getColumn( '', // databaseId '', // tableId '' // key diff --git a/docs/examples/1.8.x/console-web/examples/tables/get-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md similarity index 61% rename from docs/examples/1.8.x/console-web/examples/tables/get-usage.md rename to docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md index 0f9d31c92d..f961dc4fdf 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/get-usage.md +++ b/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md @@ -1,14 +1,13 @@ -import { Client, Tables, DatabaseUsageRange } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.getUsage( +const result = await grids.getDatabaseUsage( '', // databaseId - '', // tableId DatabaseUsageRange.TwentyFourHours // range (optional) ); 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/tables/get-index.md b/docs/examples/1.8.x/console-web/examples/grids/get-index.md similarity index 67% rename from docs/examples/1.8.x/console-web/examples/tables/get-index.md rename to docs/examples/1.8.x/console-web/examples/grids/get-index.md index dc8c3362cf..34880a8c0e 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/get-index.md +++ b/docs/examples/1.8.x/console-web/examples/grids/get-index.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.getIndex( +const result = await grids.getIndex( '', // databaseId '', // tableId '' // key diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/get-row.md b/docs/examples/1.8.x/console-web/examples/grids/get-row.md similarity index 70% rename from docs/examples/1.8.x/client-react-native/examples/tables/get-row.md rename to docs/examples/1.8.x/console-web/examples/grids/get-row.md index b9434e3957..29b51f2225 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tables/get-row.md +++ b/docs/examples/1.8.x/console-web/examples/grids/get-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "react-native-appwrite"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.getRow( +const result = await grids.getRow( '', // databaseId '', // tableId '', // rowId 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/grids/get-table-usage.md similarity index 56% rename from docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md rename to docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md index 4e6ca3270d..5684786fb7 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/get-table-usage.md +++ b/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md @@ -1,15 +1,15 @@ -import { Client, Tables, } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.getTableUsage( +const result = await grids.getTableUsage( '', // databaseId '', // tableId - .24h // range (optional) + GridUsageRange.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/grids/get-table.md similarity index 67% rename from docs/examples/1.8.x/console-web/examples/tables/get.md rename to docs/examples/1.8.x/console-web/examples/grids/get-table.md index 2b8951582a..b98d321f28 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/get.md +++ b/docs/examples/1.8.x/console-web/examples/grids/get-table.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.get( +const result = await grids.getTable( '', // databaseId '' // tableId ); 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/grids/increment-row-column.md similarity index 72% rename from docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md index ed9710a0e3..5177cd6c08 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.incrementRowColumn( +const result = await grids.incrementRowColumn( '', // databaseId '', // tableId '', // rowId 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/tables/list-row-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md similarity index 70% rename from docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md rename to docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md index 691e589a77..0fcde33520 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/list-row-logs.md +++ b/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.listRowLogs( +const result = await grids.listRowLogs( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md b/docs/examples/1.8.x/console-web/examples/grids/list-rows.md similarity index 68% rename from docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md rename to docs/examples/1.8.x/console-web/examples/grids/list-rows.md index 75f81a1435..4eb3b71407 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/console-web/examples/grids/list-rows.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "react-native-appwrite"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.listRows( +const result = await grids.listRows( '', // databaseId '', // tableId [] // queries (optional) 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/tables/list.md b/docs/examples/1.8.x/console-web/examples/grids/list-tables.md similarity index 69% rename from docs/examples/1.8.x/console-web/examples/tables/list.md rename to docs/examples/1.8.x/console-web/examples/grids/list-tables.md index e8eb3c3dd6..9288788dfe 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/list.md +++ b/docs/examples/1.8.x/console-web/examples/grids/list-tables.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.list( +const result = await grids.listTables( '', // databaseId [], // queries (optional) '' // search (optional) 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/grids/update-boolean-column.md similarity index 71% rename from docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md index e4bb9012e6..84dd95cd41 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateBooleanColumn( +const result = await grids.updateBooleanColumn( '', // databaseId '', // tableId '', // key 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/tables/update-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md similarity index 70% rename from docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md index d24683aafb..81fa471471 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateDatetimeColumn( +const result = await grids.updateDatetimeColumn( '', // databaseId '', // tableId '', // key 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/grids/update-email-column.md similarity index 72% rename from docs/examples/1.8.x/console-web/examples/tables/update-email-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-email-column.md index b9e2483191..3a63b0d4d3 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateEmailColumn( +const result = await grids.updateEmailColumn( '', // databaseId '', // tableId '', // key 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/grids/update-enum-column.md similarity index 73% rename from docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md index bfe084212c..7c6d2e1b03 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateEnumColumn( +const result = await grids.updateEnumColumn( '', // databaseId '', // tableId '', // key 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/grids/update-float-column.md similarity index 74% rename from docs/examples/1.8.x/console-web/examples/tables/update-float-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-float-column.md index 9075e31e69..6662f4b00f 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateFloatColumn( +const result = await grids.updateFloatColumn( '', // databaseId '', // tableId '', // key 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/grids/update-integer-column.md similarity index 74% rename from docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md index c45e4735a9..95c0510a1a 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateIntegerColumn( +const result = await grids.updateIntegerColumn( '', // databaseId '', // tableId '', // key 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/grids/update-ip-column.md similarity index 71% rename from docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md index f7cdb490dc..e92db67751 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateIpColumn( +const result = await grids.updateIpColumn( '', // databaseId '', // tableId '', // key 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/grids/update-relationship-column.md similarity index 68% rename from docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md index 192eac7175..bdfd71f71c 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md @@ -1,12 +1,12 @@ -import { Client, Tables, RelationMutate } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateRelationshipColumn( +const result = await grids.updateRelationshipColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/client-react-native/examples/tables/update-row.md b/docs/examples/1.8.x/console-web/examples/grids/update-row.md similarity index 73% rename from docs/examples/1.8.x/client-react-native/examples/tables/update-row.md rename to docs/examples/1.8.x/console-web/examples/grids/update-row.md index 7bb36dd254..a86f5fd58b 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tables/update-row.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-row.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "react-native-appwrite"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateRow( +const result = await grids.updateRow( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/console-web/examples/tables/update-rows.md b/docs/examples/1.8.x/console-web/examples/grids/update-rows.md similarity index 70% rename from docs/examples/1.8.x/console-web/examples/tables/update-rows.md rename to docs/examples/1.8.x/console-web/examples/grids/update-rows.md index 72b2244f75..939615a5bd 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-rows.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateRows( +const result = await grids.updateRows( '', // databaseId '', // tableId {}, // data (optional) 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/grids/update-string-column.md similarity index 73% rename from docs/examples/1.8.x/console-web/examples/tables/update-string-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-string-column.md index 8f6b3b5dad..b0b92f041e 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateStringColumn( +const result = await grids.updateStringColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/console-web/examples/tables/update.md b/docs/examples/1.8.x/console-web/examples/grids/update-table.md similarity index 75% rename from docs/examples/1.8.x/console-web/examples/tables/update.md rename to docs/examples/1.8.x/console-web/examples/grids/update-table.md index f0552604af..8988133beb 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-table.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.update( +const result = await grids.updateTable( '', // databaseId '', // tableId '', // name 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/grids/update-url-column.md similarity index 72% rename from docs/examples/1.8.x/console-web/examples/tables/update-url-column.md rename to docs/examples/1.8.x/console-web/examples/grids/update-url-column.md index a2cb65d700..ecad0043a3 100644 --- a/docs/examples/1.8.x/console-web/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md @@ -1,12 +1,12 @@ -import { Client, Tables } from "@appwrite.io/console"; +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 tables = new Tables(client); +const grids = new Grids(client); -const result = await tables.updateUrlColumn( +const result = await grids.updateUrlColumn( '', // databaseId '', // tableId '', // key 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/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/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/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/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/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-dart/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md similarity index 82% rename from docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md index 5b3e987b9b..d462336207 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnBoolean result = await tables.createBooleanColumn( +ColumnBoolean result = await grids.createBooleanColumn( databaseId: '', tableId: '', key: '', 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md similarity index 82% rename from docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md index 1ad3fa250d..88365e0d0f 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnDatetime result = await tables.createDatetimeColumn( +ColumnDatetime result = await grids.createDatetimeColumn( databaseId: '', tableId: '', key: '', 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/grids/create-email-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md index fa7ec71410..69d6c03d8f 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnEmail result = await tables.createEmailColumn( +ColumnEmail result = await grids.createEmailColumn( databaseId: '', tableId: '', key: '', 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/grids/create-enum-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md index 5ab6bcc774..a3a1e3ff60 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnEnum result = await tables.createEnumColumn( +ColumnEnum result = await grids.createEnumColumn( databaseId: '', tableId: '', key: '', 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/grids/create-float-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md index 43331187ea..eba5e98ccc 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnFloat result = await tables.createFloatColumn( +ColumnFloat result = await grids.createFloatColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create-index.md b/docs/examples/1.8.x/server-dart/examples/grids/create-index.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-index.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-index.md index d76c46959f..4926b9ec83 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-index.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnIndex result = await tables.createIndex( +ColumnIndex result = await grids.createIndex( databaseId: '', tableId: '', key: '', 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/grids/create-integer-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md index 3304325af7..d5bfdf3144 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnInteger result = await tables.createIntegerColumn( +ColumnInteger result = await grids.createIntegerColumn( databaseId: '', tableId: '', key: '', 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/grids/create-ip-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md index 68c7abf754..91b83fde8c 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnIp result = await tables.createIpColumn( +ColumnIp result = await grids.createIpColumn( databaseId: '', tableId: '', key: '', 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/grids/create-relationship-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md index a059740bf8..99f0427a85 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnRelationship result = await tables.createRelationshipColumn( +ColumnRelationship result = await grids.createRelationshipColumn( databaseId: '', tableId: '', relatedTableId: '', 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/tables/create-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md index 17e192b27e..74b9cb7fa6 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnString result = await tables.createStringColumn( +ColumnString result = await grids.createStringColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tables/create.md b/docs/examples/1.8.x/server-dart/examples/grids/create-table.md similarity index 87% rename from docs/examples/1.8.x/server-dart/examples/tables/create.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-table.md index c3a4b2a989..1bb7afadd3 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-table.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -Table result = await tables.create( +Table result = await grids.createTable( databaseId: '', tableId: '', name: '', 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/grids/create-url-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md index d3692fc7ac..cc129fce97 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnUrl result = await tables.createUrlColumn( +ColumnUrl result = await grids.createUrlColumn( databaseId: '', tableId: '', key: '', 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/grids/decrement-row-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md index 33d296110c..ad0744dbc6 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -Row result = await tables.decrementRowColumn( +Row result = await grids.decrementRowColumn( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tables/delete-column.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md similarity index 85% rename from docs/examples/1.8.x/server-dart/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/delete-column.md index 466564f618..e326064f4f 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -await tables.deleteColumn( +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/tables/delete-index.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md similarity index 85% rename from docs/examples/1.8.x/server-dart/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-dart/examples/grids/delete-index.md index f2dfdbe74b..14dbccb979 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -await tables.deleteIndex( +await grids.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/grids/delete-row.md similarity index 86% rename from docs/examples/1.8.x/server-dart/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-dart/examples/grids/delete-row.md index b84c1b7a9f..8a37455490 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setSession(''); // The user session to authenticate with -Tables tables = Tables(client); +Grids grids = Grids(client); -await tables.deleteRow( +await grids.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/grids/delete-rows.md similarity index 86% rename from docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md index 41dc3a9520..dd2214fc68 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -await tables.deleteRows( +await grids.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/grids/delete-table.md similarity index 85% rename from docs/examples/1.8.x/server-dart/examples/tables/delete.md rename to docs/examples/1.8.x/server-dart/examples/grids/delete-table.md index 07c9815422..af29d31b87 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -await tables.delete( +await grids.deleteTable( 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/grids/get-column.md similarity index 83% rename from docs/examples/1.8.x/server-dart/examples/tables/get-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/get-column.md index 087139c87d..4040124454 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); - result = await tables.getColumn( + 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/tables/get-index.md b/docs/examples/1.8.x/server-dart/examples/grids/get-index.md similarity index 81% rename from docs/examples/1.8.x/server-dart/examples/tables/get-index.md rename to docs/examples/1.8.x/server-dart/examples/grids/get-index.md index 3f79deef2f..6e66a55b37 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-index.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnIndex result = await tables.getIndex( +ColumnIndex result = await grids.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/grids/get-row.md similarity index 85% rename from docs/examples/1.8.x/server-dart/examples/tables/get-row.md rename to docs/examples/1.8.x/server-dart/examples/grids/get-row.md index 7efd04a69d..da2a609d32 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-row.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setSession(''); // The user session to authenticate with -Tables tables = Tables(client); +Grids grids = Grids(client); -Row result = await tables.getRow( +Row result = await grids.getRow( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tables/get.md b/docs/examples/1.8.x/server-dart/examples/grids/get-table.md similarity index 83% rename from docs/examples/1.8.x/server-dart/examples/tables/get.md rename to docs/examples/1.8.x/server-dart/examples/grids/get-table.md index d02f9ff9d2..d38fca0455 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/get.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-table.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -Table result = await tables.get( +Table result = await grids.getTable( 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/grids/increment-row-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md index 188ab5d1ad..14c041404c 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -Row result = await tables.incrementRowColumn( +Row result = await grids.incrementRowColumn( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tables/list-columns.md b/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md similarity index 82% rename from docs/examples/1.8.x/server-dart/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-dart/examples/grids/list-columns.md index 7b2d479ea3..222b5ba172 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnList result = await tables.listColumns( +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/tables/list-indexes.md b/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md similarity index 81% rename from docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md index e7418de3bc..218c3e0ccc 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnIndexList result = await tables.listIndexes( +ColumnIndexList result = await grids.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/grids/list-rows.md similarity index 83% rename from docs/examples/1.8.x/server-dart/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-dart/examples/grids/list-rows.md index 05f9567ac2..49f2a7ef21 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setSession(''); // The user session to authenticate with -Tables tables = Tables(client); +Grids grids = Grids(client); -RowList result = await tables.listRows( +RowList result = await grids.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/grids/list-tables.md similarity index 83% rename from docs/examples/1.8.x/server-dart/examples/tables/list.md rename to docs/examples/1.8.x/server-dart/examples/grids/list-tables.md index 51a19c099d..4f1e08b713 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/list.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -TableList result = await tables.list( +TableList result = await grids.listTables( 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/grids/update-boolean-column.md similarity index 82% rename from docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md index c452238d7c..e9e5a1fe32 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnBoolean result = await tables.updateBooleanColumn( +ColumnBoolean result = await grids.updateBooleanColumn( databaseId: '', tableId: '', key: '', 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md similarity index 81% rename from docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md index 5b41d7e532..6eb1bb6cbf 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnDatetime result = await tables.updateDatetimeColumn( +ColumnDatetime result = await grids.updateDatetimeColumn( databaseId: '', tableId: '', key: '', 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/grids/update-email-column.md similarity index 83% rename from docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md index 444649a4fd..0fabb3e6a3 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnEmail result = await tables.updateEmailColumn( +ColumnEmail result = await grids.updateEmailColumn( databaseId: '', tableId: '', key: '', 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/grids/update-enum-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md index 2e0566418a..5aa1613b75 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnEnum result = await tables.updateEnumColumn( +ColumnEnum result = await grids.updateEnumColumn( databaseId: '', tableId: '', key: '', 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/grids/update-float-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md index 199d3840d6..0326f3c6f8 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnFloat result = await tables.updateFloatColumn( +ColumnFloat result = await grids.updateFloatColumn( databaseId: '', tableId: '', key: '', 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/grids/update-integer-column.md similarity index 83% rename from docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md index 479e63d870..3572a064b3 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnInteger result = await tables.updateIntegerColumn( +ColumnInteger result = await grids.updateIntegerColumn( databaseId: '', tableId: '', key: '', 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/grids/update-ip-column.md similarity index 83% rename from docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md index 837ae4e606..a75ff07569 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnIp result = await tables.updateIpColumn( +ColumnIp result = await grids.updateIpColumn( databaseId: '', tableId: '', key: '', 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/grids/update-relationship-column.md similarity index 81% rename from docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md index 45745627ef..4ecb479124 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnRelationship result = await tables.updateRelationshipColumn( +ColumnRelationship result = await grids.updateRelationshipColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-row.md b/docs/examples/1.8.x/server-dart/examples/grids/update-row.md similarity index 86% rename from docs/examples/1.8.x/server-dart/examples/tables/update-row.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-row.md index 436329235a..f11cf400cb 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-row.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setSession(''); // The user session to authenticate with -Tables tables = Tables(client); +Grids grids = Grids(client); -Row result = await tables.updateRow( +Row result = await grids.updateRow( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-rows.md index 3d2aaf3e28..6dd4db1d3c 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -RowList result = await tables.updateRows( +RowList result = await grids.updateRows( databaseId: '', tableId: '', data: {}, // (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/grids/update-string-column.md similarity index 83% rename from docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md index dbd569feac..2bc58912cb 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnString result = await tables.updateStringColumn( +ColumnString result = await grids.updateStringColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-dart/examples/tables/update.md b/docs/examples/1.8.x/server-dart/examples/grids/update-table.md similarity index 87% rename from docs/examples/1.8.x/server-dart/examples/tables/update.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-table.md index 28ce03cd6c..c5c497eddf 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-table.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -Table result = await tables.update( +Table result = await grids.updateTable( databaseId: '', tableId: '', name: '', 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/grids/update-url-column.md similarity index 84% rename from docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md index 8630c718b5..79359f5436 100644 --- a/docs/examples/1.8.x/server-dart/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md @@ -5,9 +5,9 @@ Client client = Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -Tables tables = Tables(client); +Grids grids = Grids(client); -ColumnUrl result = await tables.updateUrlColumn( +ColumnUrl result = await grids.updateUrlColumn( databaseId: '', tableId: '', key: '', 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-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/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/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-deno/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md similarity index 71% rename from docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md index 3f9abc8c05..7097a84ebe 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createBooleanColumn( +const response = await grids.createBooleanColumn( '', // databaseId '', // tableId '', // key 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md similarity index 71% rename from docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md index 898b67a787..f33479cd2e 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createDatetimeColumn( +const response = await grids.createDatetimeColumn( '', // databaseId '', // tableId '', // key 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/grids/create-email-column.md similarity index 72% rename from docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md index 82872e4087..eec09fb453 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createEmailColumn( +const response = await grids.createEmailColumn( '', // databaseId '', // tableId '', // key 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/grids/create-enum-column.md similarity index 73% rename from docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md index afbb8d00aa..df68204c8b 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createEnumColumn( +const response = await grids.createEnumColumn( '', // databaseId '', // tableId '', // key 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/grids/create-float-column.md similarity index 74% rename from docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md index 44658bbaa9..e7fdc524dc 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createFloatColumn( +const response = await grids.createFloatColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create-index.md b/docs/examples/1.8.x/server-deno/examples/grids/create-index.md similarity index 71% rename from docs/examples/1.8.x/server-deno/examples/tables/create-index.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-index.md index c255189881..d1442d57be 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-index.md @@ -1,13 +1,13 @@ -import { Client, Tables, IndexType } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createIndex( +const response = await grids.createIndex( '', // databaseId '', // tableId '', // key 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/grids/create-integer-column.md similarity index 73% rename from docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md index 0f1721b24a..0dc377dff2 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createIntegerColumn( +const response = await grids.createIntegerColumn( '', // databaseId '', // tableId '', // key 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/grids/create-ip-column.md similarity index 71% rename from docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md index ca96de6293..222e262042 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createIpColumn( +const response = await grids.createIpColumn( '', // databaseId '', // tableId '', // key 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/grids/create-relationship-column.md similarity index 72% rename from docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md index 8c7e26e62c..5cfc17ebbd 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md @@ -1,13 +1,13 @@ -import { Client, Tables, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createRelationshipColumn( +const response = await grids.createRelationshipColumn( '', // databaseId '', // tableId '', // relatedTableId 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/tables/create-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md similarity index 74% rename from docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md index db7ac8a760..fb73a25faa 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createStringColumn( +const response = await grids.createStringColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/server-deno/examples/tables/create.md b/docs/examples/1.8.x/server-deno/examples/grids/create-table.md similarity index 74% rename from docs/examples/1.8.x/server-deno/examples/tables/create.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-table.md index 9c75c22c3d..832b9c5218 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-table.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.create( +const response = await grids.createTable( '', // databaseId '', // tableId '', // name 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/grids/create-url-column.md similarity index 72% rename from docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md index 8d6f127c00..905d86c6cf 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.createUrlColumn( +const response = await grids.createUrlColumn( '', // databaseId '', // tableId '', // key 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/grids/decrement-row-column.md similarity index 71% rename from docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md index e561acc529..cd86f6f8f3 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.decrementRowColumn( +const response = await grids.decrementRowColumn( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/server-deno/examples/tables/delete-column.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md similarity index 66% rename from docs/examples/1.8.x/server-deno/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/delete-column.md index 89900bfbf0..d299323df6 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.deleteColumn( +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/tables/delete-index.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md similarity index 67% rename from docs/examples/1.8.x/server-deno/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-deno/examples/grids/delete-index.md index a17791cef2..2354fc2485 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.deleteIndex( +const response = await grids.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/grids/delete-row.md similarity index 68% rename from docs/examples/1.8.x/server-deno/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-deno/examples/grids/delete-row.md index 8f30eae2d2..b62fd2145f 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.deleteRow( +const response = await grids.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/grids/delete-rows.md similarity index 68% rename from docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md index c5aa88f9a2..a1c75d7fd2 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.deleteRows( +const response = await grids.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/grids/delete-table.md similarity index 66% rename from docs/examples/1.8.x/server-deno/examples/tables/delete.md rename to docs/examples/1.8.x/server-deno/examples/grids/delete-table.md index 36df1373dc..b7b09bc1ed 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.delete( +const response = await grids.deleteTable( '', // 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/grids/get-column.md similarity index 67% rename from docs/examples/1.8.x/server-deno/examples/tables/get-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/get-column.md index 8a56af67e7..cd78228565 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.getColumn( +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/tables/get-index.md b/docs/examples/1.8.x/server-deno/examples/grids/get-index.md similarity index 67% rename from docs/examples/1.8.x/server-deno/examples/tables/get-index.md rename to docs/examples/1.8.x/server-deno/examples/grids/get-index.md index 61105dc661..8f3a48aec2 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-index.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.getIndex( +const response = await grids.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/grids/get-row.md similarity index 70% rename from docs/examples/1.8.x/server-deno/examples/tables/get-row.md rename to docs/examples/1.8.x/server-deno/examples/grids/get-row.md index 674ea3e648..257b24b67e 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-row.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.getRow( +const response = await grids.getRow( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/server-deno/examples/tables/get.md b/docs/examples/1.8.x/server-deno/examples/grids/get-table.md similarity index 66% rename from docs/examples/1.8.x/server-deno/examples/tables/get.md rename to docs/examples/1.8.x/server-deno/examples/grids/get-table.md index cc1dcb8c51..5b9c36ab44 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/get.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-table.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.get( +const response = await grids.getTable( '', // 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/grids/increment-row-column.md similarity index 71% rename from docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md index 9779d8776e..d01174e938 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.incrementRowColumn( +const response = await grids.incrementRowColumn( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/server-deno/examples/tables/list-columns.md b/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md similarity index 68% rename from docs/examples/1.8.x/server-deno/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-deno/examples/grids/list-columns.md index 63ec0777bb..3e249e2782 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.listColumns( +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/tables/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md similarity index 68% rename from docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md index 587d19f362..e605c67cc6 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.listIndexes( +const response = await grids.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/grids/list-rows.md similarity index 69% rename from docs/examples/1.8.x/server-deno/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-deno/examples/grids/list-rows.md index 6db6bea439..2416578d70 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.listRows( +const response = await grids.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/grids/list-tables.md similarity index 69% rename from docs/examples/1.8.x/server-deno/examples/tables/list.md rename to docs/examples/1.8.x/server-deno/examples/grids/list-tables.md index d4da8409c9..f68d5465b5 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/list.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.list( +const response = await grids.listTables( '', // 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/grids/update-boolean-column.md similarity index 70% rename from docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md index 8710c27ede..22c0fe97f8 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateBooleanColumn( +const response = await grids.updateBooleanColumn( '', // databaseId '', // tableId '', // key 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md similarity index 70% rename from docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md index e1ca760e31..00cee55b33 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateDatetimeColumn( +const response = await grids.updateDatetimeColumn( '', // databaseId '', // tableId '', // key 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/grids/update-email-column.md similarity index 71% rename from docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md index b0e25348d4..eb263b428f 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateEmailColumn( +const response = await grids.updateEmailColumn( '', // databaseId '', // tableId '', // key 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/grids/update-enum-column.md similarity index 72% rename from docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md index 8771213a79..974dcc99cb 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateEnumColumn( +const response = await grids.updateEnumColumn( '', // databaseId '', // tableId '', // key 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/grids/update-float-column.md similarity index 73% rename from docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md index a2e6f55c1f..c1375b015f 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateFloatColumn( +const response = await grids.updateFloatColumn( '', // databaseId '', // tableId '', // key 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/grids/update-integer-column.md similarity index 73% rename from docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md index 51ea17f943..c46dbb1994 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateIntegerColumn( +const response = await grids.updateIntegerColumn( '', // databaseId '', // tableId '', // key 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/grids/update-ip-column.md similarity index 71% rename from docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md index 4a5a1d0f81..2013e16429 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateIpColumn( +const response = await grids.updateIpColumn( '', // databaseId '', // tableId '', // key 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/grids/update-relationship-column.md similarity index 68% rename from docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md index c83b82037a..5151a5c5bc 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md @@ -1,13 +1,13 @@ -import { Client, Tables, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateRelationshipColumn( +const response = await grids.updateRelationshipColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-row.md b/docs/examples/1.8.x/server-deno/examples/grids/update-row.md similarity index 72% rename from docs/examples/1.8.x/server-deno/examples/tables/update-row.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-row.md index 13da5615e7..5e37a9cb90 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-row.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateRow( +const response = await grids.updateRow( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md similarity index 70% rename from docs/examples/1.8.x/server-deno/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-rows.md index 1bc0a18b98..35dc58d22d 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateRows( +const response = await grids.updateRows( '', // databaseId '', // tableId {}, // data (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/grids/update-string-column.md similarity index 72% rename from docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md index 00dd310b1e..ff0113baeb 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateStringColumn( +const response = await grids.updateStringColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/server-deno/examples/tables/update.md b/docs/examples/1.8.x/server-deno/examples/grids/update-table.md similarity index 74% rename from docs/examples/1.8.x/server-deno/examples/tables/update.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-table.md index 43b51bd284..ce01cd0fc7 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-table.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.update( +const response = await grids.updateTable( '', // databaseId '', // tableId '', // name 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/grids/update-url-column.md similarity index 72% rename from docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md index 2ebf80a356..285f88fbfd 100644 --- a/docs/examples/1.8.x/server-deno/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md @@ -1,13 +1,13 @@ -import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts"; +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 tables = new Tables(client); +const grids = new Grids(client); -const response = await tables.updateUrlColumn( +const response = await grids.updateUrlColumn( '', // databaseId '', // tableId '', // key 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-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/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/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-dotnet/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md similarity index 82% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md index 1492487721..e173d1189b 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnBoolean result = await tables.CreateBooleanColumn( +ColumnBoolean result = await grids.CreateBooleanColumn( databaseId: "", tableId: "", key: "", 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md similarity index 82% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md index 6a1e07b907..b4e730fc6d 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnDatetime result = await tables.CreateDatetimeColumn( +ColumnDatetime result = await grids.CreateDatetimeColumn( databaseId: "", tableId: "", key: "", 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/grids/create-email-column.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md index a4740484f5..bb2cad7dbd 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnEmail result = await tables.CreateEmailColumn( +ColumnEmail result = await grids.CreateEmailColumn( databaseId: "", tableId: "", key: "", 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/grids/create-enum-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md index 9529ad1331..4ce99366ad 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnEnum result = await tables.CreateEnumColumn( +ColumnEnum result = await grids.CreateEnumColumn( databaseId: "", tableId: "", key: "", 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/grids/create-float-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md index f8146ce272..3ecd76c367 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnFloat result = await tables.CreateFloatColumn( +ColumnFloat result = await grids.CreateFloatColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md similarity index 86% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md index 4ea3817da2..854ed47e81 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md @@ -8,9 +8,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnIndex result = await tables.CreateIndex( +ColumnIndex result = await grids.CreateIndex( databaseId: "", tableId: "", key: "", 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/grids/create-integer-column.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md index 6090426792..ef13d5569c 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnInteger result = await tables.CreateIntegerColumn( +ColumnInteger result = await grids.CreateIntegerColumn( databaseId: "", tableId: "", key: "", 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/grids/create-ip-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md index b5e5067e6f..bfaa594d49 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnIp result = await tables.CreateIpColumn( +ColumnIp result = await grids.CreateIpColumn( databaseId: "", tableId: "", key: "", 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/grids/create-relationship-column.md similarity index 85% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md index 7c4cba49dd..614f5d4fec 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md @@ -8,9 +8,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnRelationship result = await tables.CreateRelationshipColumn( +ColumnRelationship result = await grids.CreateRelationshipColumn( databaseId: "", tableId: "", relatedTableId: "", 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/tables/create-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md index e623ac0789..ca00dcf32e 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnString result = await tables.CreateStringColumn( +ColumnString result = await grids.CreateStringColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/create.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md similarity index 86% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md index 694f4101a7..50fdfa878e 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -Table result = await tables.Create( +Table result = await grids.CreateTable( databaseId: "", tableId: "", name: "", 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/grids/create-url-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md index 7a0fbd0a83..8a4f69bd26 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnUrl result = await tables.CreateUrlColumn( +ColumnUrl result = await grids.CreateUrlColumn( databaseId: "", tableId: "", key: "", 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/grids/decrement-row-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md index 220fb2b18a..b17e902e45 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -Row result = await tables.DecrementRowColumn( +Row result = await grids.DecrementRowColumn( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md similarity index 85% rename from docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md index ca8987eec9..24f23546ba 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -await tables.DeleteColumn( +await grids.DeleteColumn( databaseId: "", tableId: "", key: "" 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/tables/delete-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md similarity index 85% rename from docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md index ba7a024167..5a037e2a96 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -await tables.DeleteIndex( +await grids.DeleteIndex( databaseId: "", tableId: "", key: "" diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md similarity index 86% rename from docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md index 95bae6ad6b..13972747a8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with -Tables tables = new Tables(client); +Grids grids = new Grids(client); -await tables.DeleteRow( +await grids.DeleteRow( databaseId: "", tableId: "", rowId: "" diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md similarity index 86% rename from docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md index 46a6e0ba94..4ddd11b6d1 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -await tables.DeleteRows( +await grids.DeleteRows( databaseId: "", tableId: "", queries: new List() // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/delete.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md similarity index 85% rename from docs/examples/1.8.x/server-dotnet/examples/tables/delete.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md index bcff3ea05a..9741ac2c2e 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -await tables.Delete( +await grids.DeleteTable( 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/grids/get-column.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md index 71ebb81aef..2c6d7a3944 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); - result = await tables.GetColumn( + result = await grids.GetColumn( databaseId: "", tableId: "", key: "" 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/tables/get-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md similarity index 81% rename from docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md index f5b886e3e9..ff99a21ed0 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnIndex result = await tables.GetIndex( +ColumnIndex result = await grids.GetIndex( databaseId: "", tableId: "", key: "" diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md similarity index 85% rename from docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md index 474b3342c9..c75e0e50d5 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with -Tables tables = new Tables(client); +Grids grids = new Grids(client); -Row result = await tables.GetRow( +Row result = await grids.GetRow( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/get.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/get.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md index 1e86d228a6..7fcecc6170 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/get.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -Table result = await tables.Get( +Table result = await grids.GetTable( 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/grids/increment-row-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md index e8ccd8ca78..3e6d044905 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -Row result = await tables.IncrementRowColumn( +Row result = await grids.IncrementRowColumn( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md similarity index 82% rename from docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md index fe8c739cf9..e8478c1d23 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnList result = await tables.ListColumns( +ColumnList result = await grids.ListColumns( databaseId: "", tableId: "", queries: new List() // optional 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/tables/list-indexes.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md similarity index 81% rename from docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md index 907a21048f..b6f3737b43 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnIndexList result = await tables.ListIndexes( +ColumnIndexList result = await grids.ListIndexes( databaseId: "", tableId: "", queries: new List() // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md index 474c597a1c..a1a64fe256 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with -Tables tables = new Tables(client); +Grids grids = new Grids(client); -RowList result = await tables.ListRows( +RowList result = await grids.ListRows( databaseId: "", tableId: "", queries: new List() // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/list.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/list.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md index 2871a927c4..85f431b7ef 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/list.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -TableList result = await tables.List( +TableList result = await grids.ListTables( databaseId: "", queries: new List(), // optional search: "" // optional 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/grids/update-boolean-column.md similarity index 82% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md index 5c610fbe7a..ff2376e403 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnBoolean result = await tables.UpdateBooleanColumn( +ColumnBoolean result = await grids.UpdateBooleanColumn( databaseId: "", tableId: "", key: "", 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md similarity index 81% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md index 754d0f1ae6..7b630922e8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnDatetime result = await tables.UpdateDatetimeColumn( +ColumnDatetime result = await grids.UpdateDatetimeColumn( databaseId: "", tableId: "", key: "", 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/grids/update-email-column.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md index 6000c54e8f..9ce04025ca 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnEmail result = await tables.UpdateEmailColumn( +ColumnEmail result = await grids.UpdateEmailColumn( databaseId: "", tableId: "", key: "", 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/grids/update-enum-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md index 2eaa1a51a1..b29b3615de 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnEnum result = await tables.UpdateEnumColumn( +ColumnEnum result = await grids.UpdateEnumColumn( databaseId: "", tableId: "", key: "", 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/grids/update-float-column.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md index 7d18d8e624..96db20a2c5 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnFloat result = await tables.UpdateFloatColumn( +ColumnFloat result = await grids.UpdateFloatColumn( databaseId: "", tableId: "", key: "", 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/grids/update-integer-column.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md index 0b3b85652c..87e6b0fee2 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnInteger result = await tables.UpdateIntegerColumn( +ColumnInteger result = await grids.UpdateIntegerColumn( databaseId: "", tableId: "", key: "", 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/grids/update-ip-column.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md index ccdd0d5235..789c6c98e6 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnIp result = await tables.UpdateIpColumn( +ColumnIp result = await grids.UpdateIpColumn( databaseId: "", tableId: "", key: "", 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/grids/update-relationship-column.md similarity index 81% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md index be6aa31f73..a1d30a43a2 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md @@ -8,9 +8,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnRelationship result = await tables.UpdateRelationshipColumn( +ColumnRelationship result = await grids.UpdateRelationshipColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md similarity index 86% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md index d049ccf805..2dc2b23d32 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetSession(""); // The user session to authenticate with -Tables tables = new Tables(client); +Grids grids = new Grids(client); -Row result = await tables.UpdateRow( +Row result = await grids.UpdateRow( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md similarity index 84% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md index 9d2c51c4b3..c0103c9639 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -RowList result = await tables.UpdateRows( +RowList result = await grids.UpdateRows( databaseId: "", tableId: "", data: [object], // optional 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/grids/update-string-column.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md index da280e7d8c..2277142eb8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnString result = await tables.UpdateStringColumn( +ColumnString result = await grids.UpdateStringColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-dotnet/examples/tables/update.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md similarity index 86% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md index 584c61c6bb..76362573a5 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -Table result = await tables.Update( +Table result = await grids.UpdateTable( databaseId: "", tableId: "", name: "", 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/grids/update-url-column.md similarity index 83% rename from docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md index 1ce961da2b..8054b60e3f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md @@ -7,9 +7,9 @@ Client client = new Client() .SetProject("") // Your project ID .SetKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -ColumnUrl result = await tables.UpdateUrlColumn( +ColumnUrl result = await grids.UpdateUrlColumn( databaseId: "", tableId: "", key: "", 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-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/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/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-go/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md similarity index 75% rename from docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md index 70a666257f..11d8b0ca50 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateBooleanColumn( "", "", "", false, - tables.WithCreateBooleanColumnDefault(false), - tables.WithCreateBooleanColumnArray(false), + grids.WithCreateBooleanColumnDefault(false), + grids.WithCreateBooleanColumnArray(false), ) if error != nil { 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md similarity index 75% rename from docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md index beb8bd09e6..e386f763ff 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateDatetimeColumn( "", "", "", false, - tables.WithCreateDatetimeColumnDefault(""), - tables.WithCreateDatetimeColumnArray(false), + grids.WithCreateDatetimeColumnDefault(""), + grids.WithCreateDatetimeColumnArray(false), ) if error != nil { 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/grids/create-email-column.md similarity index 74% rename from docs/examples/1.8.x/server-go/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-email-column.md index 449cc0e88a..9ecdf5cadf 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateEmailColumn( "", "", "", false, - tables.WithCreateEmailColumnDefault("email@example.com"), - tables.WithCreateEmailColumnArray(false), + grids.WithCreateEmailColumnDefault("email@example.com"), + grids.WithCreateEmailColumnArray(false), ) if error != nil { 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/grids/create-enum-column.md similarity index 75% rename from docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md index 8f3bb84bb7..35a2ed3f0f 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,15 +13,15 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateEnumColumn( "", "", "", []interface{}{}, false, - tables.WithCreateEnumColumnDefault(""), - tables.WithCreateEnumColumnArray(false), + grids.WithCreateEnumColumnDefault(""), + grids.WithCreateEnumColumnArray(false), ) if error != nil { 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/grids/create-float-column.md similarity index 67% rename from docs/examples/1.8.x/server-go/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-float-column.md index eeabd851b9..765eb58f24 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,16 +13,16 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateFloatColumn( "", "", "", false, - tables.WithCreateFloatColumnMin(0), - tables.WithCreateFloatColumnMax(0), - tables.WithCreateFloatColumnDefault(0), - tables.WithCreateFloatColumnArray(false), + grids.WithCreateFloatColumnMin(0), + grids.WithCreateFloatColumnMax(0), + grids.WithCreateFloatColumnDefault(0), + grids.WithCreateFloatColumnArray(false), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/create-index.md b/docs/examples/1.8.x/server-go/examples/grids/create-index.md similarity index 75% rename from docs/examples/1.8.x/server-go/examples/tables/create-index.md rename to docs/examples/1.8.x/server-go/examples/grids/create-index.md index 1737b29f6f..ad39cc5c83 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-index.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,15 +13,15 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateIndex( "", "", "", "key", []interface{}{}, - tables.WithCreateIndexOrders([]interface{}{}), - tables.WithCreateIndexLengths([]interface{}{}), + grids.WithCreateIndexOrders([]interface{}{}), + grids.WithCreateIndexLengths([]interface{}{}), ) if error != nil { 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/grids/create-integer-column.md similarity index 67% rename from docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md index 45a81f6415..3b67883650 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,16 +13,16 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateIntegerColumn( "", "", "", false, - tables.WithCreateIntegerColumnMin(0), - tables.WithCreateIntegerColumnMax(0), - tables.WithCreateIntegerColumnDefault(0), - tables.WithCreateIntegerColumnArray(false), + grids.WithCreateIntegerColumnMin(0), + grids.WithCreateIntegerColumnMax(0), + grids.WithCreateIntegerColumnDefault(0), + grids.WithCreateIntegerColumnArray(false), ) if error != nil { 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/grids/create-ip-column.md similarity index 76% rename from docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md index f6d203d65e..8954c91144 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateIpColumn( "", "", "", false, - tables.WithCreateIpColumnDefault(""), - tables.WithCreateIpColumnArray(false), + grids.WithCreateIpColumnDefault(""), + grids.WithCreateIpColumnArray(false), ) if error != nil { 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/grids/create-relationship-column.md similarity index 65% rename from docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md index e2e6de59de..2ce5bd2acd 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,16 +13,16 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateRelationshipColumn( "", "", "", "oneToOne", - tables.WithCreateRelationshipColumnTwoWay(false), - tables.WithCreateRelationshipColumnKey(""), - tables.WithCreateRelationshipColumnTwoWayKey(""), - tables.WithCreateRelationshipColumnOnDelete("cascade"), + grids.WithCreateRelationshipColumnTwoWay(false), + grids.WithCreateRelationshipColumnKey(""), + grids.WithCreateRelationshipColumnTwoWayKey(""), + grids.WithCreateRelationshipColumnOnDelete("cascade"), ) if error != nil { 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/tables/create-rows.md b/docs/examples/1.8.x/server-go/examples/grids/create-rows.md similarity index 77% rename from docs/examples/1.8.x/server-go/examples/tables/create-rows.md rename to docs/examples/1.8.x/server-go/examples/grids/create-rows.md index 7d32206bea..95442b0231 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-rows.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-rows.md @@ -3,17 +3,17 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) 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 ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateRows( "", "", 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/grids/create-string-column.md similarity index 70% rename from docs/examples/1.8.x/server-go/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-string-column.md index afb41e2728..0033ea1af6 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,16 +13,16 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateStringColumn( "", "", "", 1, false, - tables.WithCreateStringColumnDefault(""), - tables.WithCreateStringColumnArray(false), - tables.WithCreateStringColumnEncrypt(false), + grids.WithCreateStringColumnDefault(""), + grids.WithCreateStringColumnArray(false), + grids.WithCreateStringColumnEncrypt(false), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/create.md b/docs/examples/1.8.x/server-go/examples/grids/create-table.md similarity index 63% rename from docs/examples/1.8.x/server-go/examples/tables/create.md rename to docs/examples/1.8.x/server-go/examples/grids/create-table.md index 672824daa6..adc367db5c 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-table.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) - response, error := service.Create( + service := grids.New(client) + response, error := service.CreateTable( "", "", "", - tables.WithCreatePermissions(interface{}{"read("any")"}), - tables.WithCreateRowSecurity(false), - tables.WithCreateEnabled(false), + grids.WithCreateTablePermissions(interface{}{"read("any")"}), + grids.WithCreateTableRowSecurity(false), + grids.WithCreateTableEnabled(false), ) if error != nil { 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/grids/create-url-column.md similarity index 74% rename from docs/examples/1.8.x/server-go/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-go/examples/grids/create-url-column.md index c4e30e30cd..3e93fe1838 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.CreateUrlColumn( "", "", "", false, - tables.WithCreateUrlColumnDefault("https://example.com"), - tables.WithCreateUrlColumnArray(false), + grids.WithCreateUrlColumnDefault("https://example.com"), + grids.WithCreateUrlColumnArray(false), ) if error != nil { 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/grids/decrement-row-column.md similarity index 76% rename from docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md index 8ef1d26a59..cb36ada619 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.DecrementRowColumn( "", "", "", "", - tables.WithDecrementRowColumnValue(0), - tables.WithDecrementRowColumnMin(0), + grids.WithDecrementRowColumnValue(0), + grids.WithDecrementRowColumnMin(0), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-column.md b/docs/examples/1.8.x/server-go/examples/grids/delete-column.md similarity index 87% rename from docs/examples/1.8.x/server-go/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-go/examples/grids/delete-column.md index f66fc199c3..6b73e86c05 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,7 +13,7 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.DeleteColumn( "", "", 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/tables/delete-index.md b/docs/examples/1.8.x/server-go/examples/grids/delete-index.md similarity index 87% rename from docs/examples/1.8.x/server-go/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-go/examples/grids/delete-index.md index 1dddeef4e8..c34a2752ac 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-index.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,7 +13,7 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.DeleteIndex( "", "", diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-row.md b/docs/examples/1.8.x/server-go/examples/grids/delete-row.md similarity index 87% rename from docs/examples/1.8.x/server-go/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-go/examples/grids/delete-row.md index 9f55934e41..cb072c49bd 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-row.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,7 +13,7 @@ func main() { client.WithSession("") // The user session to authenticate with ) - service := tables.New(client) + service := grids.New(client) response, error := service.DeleteRow( "", "", diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md similarity index 79% rename from docs/examples/1.8.x/server-go/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-go/examples/grids/delete-rows.md index 3ad38f8067..0ce880f996 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,11 +13,11 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.DeleteRows( "", "", - tables.WithDeleteRowsQueries([]interface{}{}), + grids.WithDeleteRowsQueries([]interface{}{}), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/delete.md b/docs/examples/1.8.x/server-go/examples/grids/delete-table.md similarity index 80% rename from docs/examples/1.8.x/server-go/examples/tables/delete.md rename to docs/examples/1.8.x/server-go/examples/grids/delete-table.md index 9637acc51d..66e031a5ce 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-table.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,8 +13,8 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) - response, error := service.Delete( + service := grids.New(client) + response, error := service.DeleteTable( "", "", ) diff --git a/docs/examples/1.8.x/server-go/examples/tables/get-column.md b/docs/examples/1.8.x/server-go/examples/grids/get-column.md similarity index 87% rename from docs/examples/1.8.x/server-go/examples/tables/get-column.md rename to docs/examples/1.8.x/server-go/examples/grids/get-column.md index 292d22800e..bff6153550 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/get-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,7 +13,7 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.GetColumn( "", "", 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/tables/get-index.md b/docs/examples/1.8.x/server-go/examples/grids/get-index.md similarity index 87% rename from docs/examples/1.8.x/server-go/examples/tables/get-index.md rename to docs/examples/1.8.x/server-go/examples/grids/get-index.md index 077e823195..5982b49b2e 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-go/examples/grids/get-index.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,7 +13,7 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.GetIndex( "", "", diff --git a/docs/examples/1.8.x/server-go/examples/tables/get-row.md b/docs/examples/1.8.x/server-go/examples/grids/get-row.md similarity index 80% rename from docs/examples/1.8.x/server-go/examples/tables/get-row.md rename to docs/examples/1.8.x/server-go/examples/grids/get-row.md index a224c60d98..1551d4969b 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-go/examples/grids/get-row.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,12 +13,12 @@ func main() { client.WithSession("") // The user session to authenticate with ) - service := tables.New(client) + service := grids.New(client) response, error := service.GetRow( "", "", "", - tables.WithGetRowQueries([]interface{}{}), + grids.WithGetRowQueries([]interface{}{}), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/get.md b/docs/examples/1.8.x/server-go/examples/grids/get-table.md similarity index 80% rename from docs/examples/1.8.x/server-go/examples/tables/get.md rename to docs/examples/1.8.x/server-go/examples/grids/get-table.md index 60304a8fd0..1f96e8526d 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/get.md +++ b/docs/examples/1.8.x/server-go/examples/grids/get-table.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,8 +13,8 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) - response, error := service.Get( + service := grids.New(client) + response, error := service.GetTable( "", "", ) 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/grids/increment-row-column.md similarity index 76% rename from docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md index 5d8b2f5578..52f5858884 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.IncrementRowColumn( "", "", "", "", - tables.WithIncrementRowColumnValue(0), - tables.WithIncrementRowColumnMax(0), + grids.WithIncrementRowColumnValue(0), + grids.WithIncrementRowColumnMax(0), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/list-columns.md b/docs/examples/1.8.x/server-go/examples/grids/list-columns.md similarity index 79% rename from docs/examples/1.8.x/server-go/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-go/examples/grids/list-columns.md index 25712ef2a7..ae411a216c 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-go/examples/grids/list-columns.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,11 +13,11 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.ListColumns( "", "", - tables.WithListColumnsQueries([]interface{}{}), + grids.WithListColumnsQueries([]interface{}{}), ) if error != nil { 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/tables/list-indexes.md b/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md similarity index 79% rename from docs/examples/1.8.x/server-go/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-go/examples/grids/list-indexes.md index 0be8e81164..092c75301a 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,11 +13,11 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.ListIndexes( "", "", - tables.WithListIndexesQueries([]interface{}{}), + grids.WithListIndexesQueries([]interface{}{}), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/list-rows.md b/docs/examples/1.8.x/server-go/examples/grids/list-rows.md similarity index 80% rename from docs/examples/1.8.x/server-go/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-go/examples/grids/list-rows.md index aadbcf1dad..b406f106bb 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-go/examples/grids/list-rows.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,11 +13,11 @@ func main() { client.WithSession("") // The user session to authenticate with ) - service := tables.New(client) + service := grids.New(client) response, error := service.ListRows( "", "", - tables.WithListRowsQueries([]interface{}{}), + grids.WithListRowsQueries([]interface{}{}), ) if error != nil { 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/tables/update-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md similarity index 81% rename from docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md index c76c3bb1cc..5ffc910caf 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateBooleanColumn( "", "", "", false, false, - tables.WithUpdateBooleanColumnNewKey(""), + grids.WithUpdateBooleanColumnNewKey(""), ) if error != nil { 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md similarity index 81% rename from docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md index e093904ad5..5bf6440a74 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateDatetimeColumn( "", "", "", false, "", - tables.WithUpdateDatetimeColumnNewKey(""), + grids.WithUpdateDatetimeColumnNewKey(""), ) if error != nil { 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/grids/update-email-column.md similarity index 82% rename from docs/examples/1.8.x/server-go/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-email-column.md index 08845b5149..8ebbdcabc4 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateEmailColumn( "", "", "", false, "email@example.com", - tables.WithUpdateEmailColumnNewKey(""), + grids.WithUpdateEmailColumnNewKey(""), ) if error != nil { 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/grids/update-enum-column.md similarity index 82% rename from docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md index e639f850ba..edec1cbcc0 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,7 +13,7 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateEnumColumn( "", "", @@ -21,7 +21,7 @@ func main() { []interface{}{}, false, "", - tables.WithUpdateEnumColumnNewKey(""), + grids.WithUpdateEnumColumnNewKey(""), ) if error != nil { 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/grids/update-float-column.md similarity index 72% rename from docs/examples/1.8.x/server-go/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-float-column.md index 83fa3777c2..80057dab06 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,16 +13,16 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateFloatColumn( "", "", "", false, 0, - tables.WithUpdateFloatColumnMin(0), - tables.WithUpdateFloatColumnMax(0), - tables.WithUpdateFloatColumnNewKey(""), + grids.WithUpdateFloatColumnMin(0), + grids.WithUpdateFloatColumnMax(0), + grids.WithUpdateFloatColumnNewKey(""), ) if error != nil { 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/grids/update-integer-column.md similarity index 72% rename from docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md index 5bbea02709..a3b9bd316c 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,16 +13,16 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateIntegerColumn( "", "", "", false, 0, - tables.WithUpdateIntegerColumnMin(0), - tables.WithUpdateIntegerColumnMax(0), - tables.WithUpdateIntegerColumnNewKey(""), + grids.WithUpdateIntegerColumnMin(0), + grids.WithUpdateIntegerColumnMax(0), + grids.WithUpdateIntegerColumnNewKey(""), ) if error != nil { 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/grids/update-ip-column.md similarity index 82% rename from docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md index f67711aaed..888c69e9ee 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateIpColumn( "", "", "", false, "", - tables.WithUpdateIpColumnNewKey(""), + grids.WithUpdateIpColumnNewKey(""), ) if error != nil { 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/grids/update-relationship-column.md similarity index 73% rename from docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md index 1ec20edbb6..db57f41995 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,13 +13,13 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateRelationshipColumn( "", "", "", - tables.WithUpdateRelationshipColumnOnDelete("cascade"), - tables.WithUpdateRelationshipColumnNewKey(""), + grids.WithUpdateRelationshipColumnOnDelete("cascade"), + grids.WithUpdateRelationshipColumnNewKey(""), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-row.md b/docs/examples/1.8.x/server-go/examples/grids/update-row.md similarity index 72% rename from docs/examples/1.8.x/server-go/examples/tables/update-row.md rename to docs/examples/1.8.x/server-go/examples/grids/update-row.md index 8ef1189769..e1a99f289f 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-row.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,13 +13,13 @@ func main() { client.WithSession("") // The user session to authenticate with ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateRow( "", "", "", - tables.WithUpdateRowData(map[string]interface{}{}), - tables.WithUpdateRowPermissions(interface{}{"read("any")"}), + grids.WithUpdateRowData(map[string]interface{}{}), + grids.WithUpdateRowPermissions(interface{}{"read("any")"}), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/update-rows.md b/docs/examples/1.8.x/server-go/examples/grids/update-rows.md similarity index 72% rename from docs/examples/1.8.x/server-go/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-go/examples/grids/update-rows.md index 7579e32851..f2b0c0c6de 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-rows.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,12 +13,12 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateRows( "", "", - tables.WithUpdateRowsData(map[string]interface{}{}), - tables.WithUpdateRowsQueries([]interface{}{}), + grids.WithUpdateRowsData(map[string]interface{}{}), + grids.WithUpdateRowsQueries([]interface{}{}), ) if error != nil { 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/grids/update-string-column.md similarity index 76% rename from docs/examples/1.8.x/server-go/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-string-column.md index 0a21b05e19..a50fcb704c 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,15 +13,15 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateStringColumn( "", "", "", false, "", - tables.WithUpdateStringColumnSize(1), - tables.WithUpdateStringColumnNewKey(""), + grids.WithUpdateStringColumnSize(1), + grids.WithUpdateStringColumnNewKey(""), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/tables/update.md b/docs/examples/1.8.x/server-go/examples/grids/update-table.md similarity index 63% rename from docs/examples/1.8.x/server-go/examples/tables/update.md rename to docs/examples/1.8.x/server-go/examples/grids/update-table.md index 7a75c10713..cf1bef575f 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-table.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) - response, error := service.Update( + service := grids.New(client) + response, error := service.UpdateTable( "", "", "", - tables.WithUpdatePermissions(interface{}{"read("any")"}), - tables.WithUpdateRowSecurity(false), - tables.WithUpdateEnabled(false), + grids.WithUpdateTablePermissions(interface{}{"read("any")"}), + grids.WithUpdateTableRowSecurity(false), + grids.WithUpdateTableEnabled(false), ) if error != nil { 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/grids/update-url-column.md similarity index 82% rename from docs/examples/1.8.x/server-go/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-go/examples/grids/update-url-column.md index aeb0541648..0c28025e5c 100644 --- a/docs/examples/1.8.x/server-go/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/tables" + "github.com/appwrite/sdk-for-go/grids" ) func main() { @@ -13,14 +13,14 @@ func main() { client.WithKey("") // Your secret API key ) - service := tables.New(client) + service := grids.New(client) response, error := service.UpdateUrlColumn( "", "", "", false, "https://example.com", - tables.WithUpdateUrlColumnNewKey(""), + grids.WithUpdateUrlColumnNewKey(""), ) if error != nil { 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-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/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/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/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/tables/create-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md similarity index 91% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md index 564b1a964c..bd7abcb175 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateBooleanColumn( + gridsCreateBooleanColumn( databaseId: "", tableId: "", key: "", 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md similarity index 91% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md index 34055c27fa..aa14c43156 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateDatetimeColumn( + gridsCreateDatetimeColumn( databaseId: "", tableId: "", key: "", 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/grids/create-email-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md index a45001d0be..c9bc913726 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateEmailColumn( + gridsCreateEmailColumn( databaseId: "", tableId: "", key: "", 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/grids/create-enum-column.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md index 5d1c516e3a..8ace10f9ac 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateEnumColumn( + gridsCreateEnumColumn( databaseId: "", tableId: "", key: "", 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/grids/create-float-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md index 09bf481a33..92031d03ca 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateFloatColumn( + gridsCreateFloatColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md similarity index 90% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-index.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-index.md index bc47403c64..cc338ddad2 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md @@ -1,5 +1,5 @@ mutation { - tablesCreateIndex( + gridsCreateIndex( databaseId: "", tableId: "", key: "", @@ -8,6 +8,9 @@ mutation { orders: [], lengths: [] ) { + _id + _createdAt + _updatedAt key type status @@ -15,7 +18,5 @@ mutation { 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/grids/create-integer-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md index 04273b18b5..735d47c8ac 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateIntegerColumn( + gridsCreateIntegerColumn( databaseId: "", tableId: "", key: "", 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/grids/create-ip-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md index c2f07c760b..241d308f09 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateIpColumn( + gridsCreateIpColumn( databaseId: "", tableId: "", key: "", 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/grids/create-relationship-column.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md index 8e56bd3867..2c08478e09 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateRelationshipColumn( + gridsCreateRelationshipColumn( databaseId: "", tableId: "", relatedTableId: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-row.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-row.md index c88a7f36cf..cffb7361f2 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md @@ -1,5 +1,5 @@ mutation { - tablesCreateRow( + gridsCreateRow( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md similarity index 93% rename from docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md index a4ae62cfae..cd134ec201 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tables/create-rows.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md @@ -1,5 +1,5 @@ mutation { - tablesCreateRows( + gridsCreateRows( databaseId: "", tableId: "", rows: [] 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/grids/create-string-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md index b0b11c2610..57b42c6010 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateStringColumn( + gridsCreateStringColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/update.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-table.md index 4aa434c3ed..77335ad867 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md @@ -1,5 +1,5 @@ mutation { - tablesUpdate( + gridsCreateTable( databaseId: "", tableId: "", name: "", @@ -17,6 +17,9 @@ mutation { rowSecurity columns indexes { + _id + _createdAt + _updatedAt key type status @@ -24,8 +27,6 @@ mutation { columns lengths orders - _createdAt - _updatedAt } } } 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/grids/create-url-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md index 134208b432..07ca9ab869 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md @@ -1,5 +1,5 @@ mutation { - tablesCreateUrlColumn( + gridsCreateUrlColumn( databaseId: "", tableId: "", key: "", 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/grids/decrement-row-column.md similarity index 91% rename from docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md index 4ee58849ff..6b47884a92 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md @@ -1,5 +1,5 @@ mutation { - tablesDecrementRowColumn( + gridsDecrementRowColumn( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md similarity index 84% rename from docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md index 2c2ab098d6..0ad25321b5 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md @@ -1,5 +1,5 @@ mutation { - tablesDeleteColumn( + gridsDeleteColumn( databaseId: "", tableId: "", key: "" 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/tables/delete-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md similarity index 84% rename from docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md index c95db41fd6..0921aa0aef 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md @@ -1,5 +1,5 @@ mutation { - tablesDeleteIndex( + gridsDeleteIndex( databaseId: "", tableId: "", key: "" diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md similarity index 86% rename from docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md index f3a35c1df1..40dcbdc219 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md @@ -1,5 +1,5 @@ mutation { - tablesDeleteRow( + gridsDeleteRow( databaseId: "", tableId: "", rowId: "" diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md index 1ee227b7e5..69559934a4 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md @@ -1,5 +1,5 @@ mutation { - tablesDeleteRows( + gridsDeleteRows( databaseId: "", tableId: "", queries: [] diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/delete.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md similarity index 83% rename from docs/examples/1.8.x/server-graphql/examples/tables/delete.md rename to docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md index 1749422f6a..a145be50d9 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md @@ -1,5 +1,5 @@ mutation { - tablesDelete( + gridsDeleteTable( databaseId: "", tableId: "" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/tables/get-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/get-column.md diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/tables/get-index.md rename to docs/examples/1.8.x/server-graphql/examples/grids/get-database.md diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/tables/get-row.md rename to docs/examples/1.8.x/server-graphql/examples/grids/get-index.md diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/get.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/tables/get.md rename to docs/examples/1.8.x/server-graphql/examples/grids/get-row.md diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-columns.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-graphql/examples/grids/get-table.md 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/grids/increment-row-column.md similarity index 91% rename from docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md index f84f149672..709e6b2f0d 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md @@ -1,5 +1,5 @@ mutation { - tablesIncrementRowColumn( + gridsIncrementRowColumn( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-indexes.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/list.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/tables/list.md rename to docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md 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/tables/update-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md similarity index 91% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md index 541abd97cc..67c8495471 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateBooleanColumn( + gridsUpdateBooleanColumn( databaseId: "", tableId: "", key: "", 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md similarity index 91% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md index 01714377a4..5e19393c67 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateDatetimeColumn( + gridsUpdateDatetimeColumn( databaseId: "", tableId: "", key: "", 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/grids/update-email-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md index ffb3a21e66..caa6153896 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateEmailColumn( + gridsUpdateEmailColumn( databaseId: "", tableId: "", key: "", 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/grids/update-enum-column.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md index 45ddb00d6f..c3d90f4e23 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateEnumColumn( + gridsUpdateEnumColumn( databaseId: "", tableId: "", key: "", 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/grids/update-float-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md index f592a53858..a6b700ce73 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateFloatColumn( + gridsUpdateFloatColumn( databaseId: "", tableId: "", key: "", 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/grids/update-integer-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md index a51f02d4d7..fcc53102d1 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateIntegerColumn( + gridsUpdateIntegerColumn( databaseId: "", tableId: "", key: "", 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/grids/update-ip-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md index c353c79105..f867063151 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateIpColumn( + gridsUpdateIpColumn( databaseId: "", tableId: "", key: "", 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/grids/update-relationship-column.md similarity index 91% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md index e94800345b..e24311b53a 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateRelationshipColumn( + gridsUpdateRelationshipColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-row.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-row.md index 8449d8499b..2bb105e8c0 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateRow( + gridsUpdateRow( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md similarity index 94% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md index 510648f6e1..99df9b0b99 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateRows( + gridsUpdateRows( databaseId: "", tableId: "", 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/grids/update-string-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md index 0771d9a6af..c98f49a807 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateStringColumn( + gridsUpdateStringColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-graphql/examples/tables/create.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/create.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-table.md index 73af2c4a8c..cea6d5cfff 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md @@ -1,5 +1,5 @@ mutation { - tablesCreate( + gridsUpdateTable( databaseId: "", tableId: "", name: "", @@ -17,6 +17,9 @@ mutation { rowSecurity columns indexes { + _id + _createdAt + _updatedAt key type status @@ -24,8 +27,6 @@ mutation { columns lengths orders - _createdAt - _updatedAt } } } 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/grids/update-url-column.md similarity index 92% rename from docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md index a5c4a4432d..c64d93882d 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md @@ -1,5 +1,5 @@ mutation { - tablesUpdateUrlColumn( + gridsUpdateUrlColumn( databaseId: "", tableId: "", key: "", 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/tables/create-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md similarity index 93% rename from docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md rename to docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md index a4ae62cfae..d456e9883d 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tables/create-rows.md +++ b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md @@ -1,5 +1,5 @@ mutation { - tablesCreateRows( + gridsUpsertRows( databaseId: "", tableId: "", rows: [] 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-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/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/java/tables/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md index 2336ee90e0..2981fc8cf4 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createBooleanColumn( +grids.createBooleanColumn( "", // databaseId "", // tableId "", // key 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md index dd3df83dbf..7389ea9a94 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createDatetimeColumn( +grids.createDatetimeColumn( "", // databaseId "", // tableId "", // key 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/grids/create-email-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md index 3b130d1ecd..be481047e1 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createEmailColumn( +grids.createEmailColumn( "", // databaseId "", // tableId "", // key 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/grids/create-enum-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md index 73c6e1c7de..33c6b63e27 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createEnumColumn( +grids.createEnumColumn( "", // databaseId "", // tableId "", // key 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/grids/create-float-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md index dd6f207ff4..d66f1b5c60 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createFloatColumn( +grids.createFloatColumn( "", // databaseId "", // tableId "", // key diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md similarity index 88% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-index.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-index.md index 2a4df003c0..670310bb66 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-index.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md @@ -1,6 +1,6 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +import io.appwrite.services.Grids; import io.appwrite.enums.IndexType; Client client = new Client() @@ -8,9 +8,9 @@ Client client = new Client() .setProject("") // Your project ID .setKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createIndex( +grids.createIndex( "", // databaseId "", // tableId "", // key 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/grids/create-integer-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md index 3546ac8174..342654ef1a 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createIntegerColumn( +grids.createIntegerColumn( "", // databaseId "", // tableId "", // key 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/grids/create-ip-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md index 825d8b0c5c..d72e7dd59d 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createIpColumn( +grids.createIpColumn( "", // databaseId "", // tableId "", // key 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/grids/create-relationship-column.md similarity index 88% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md index 7a0b50a541..2d1c5fb22a 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md @@ -1,6 +1,6 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +import io.appwrite.services.Grids; import io.appwrite.enums.RelationshipType; Client client = new Client() @@ -8,9 +8,9 @@ Client client = new Client() .setProject("") // Your project ID .setKey(""); // Your secret API key -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createRelationshipColumn( +grids.createRelationshipColumn( "", // databaseId "", // tableId "", // relatedTableId 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/tables/create-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md index b8cb626601..b819afb4b4 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createStringColumn( +grids.createStringColumn( "", // databaseId "", // tableId "", // key diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/create.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md similarity index 88% rename from docs/examples/1.8.x/server-kotlin/java/tables/create.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-table.md index 6a9faf06dd..aa98b81de6 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.create( +grids.createTable( "", // databaseId "", // tableId "", // name 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/grids/create-url-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md index 91e90c8bc4..d8761440b3 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.createUrlColumn( +grids.createUrlColumn( "", // databaseId "", // tableId "", // key 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/grids/decrement-row-column.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md index 9e79f36e14..407ea83f81 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.decrementRowColumn( +grids.decrementRowColumn( "", // databaseId "", // tableId "", // rowId diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md similarity index 85% rename from docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md index f14390c905..cc3c40fba7 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.deleteColumn( +grids.deleteColumn( "", // databaseId "", // tableId "", // key 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/tables/delete-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md rename to docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md index 1b22eb00d8..43449e908f 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete-index.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.deleteIndex( +grids.deleteIndex( "", // databaseId "", // tableId "", // key diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md rename to docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md index a48745a225..cb812bac12 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete-row.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.deleteRow( +grids.deleteRow( "", // databaseId "", // tableId "", // rowId diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md rename to docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md index 6a86321fad..2425af9e8c 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.deleteRows( +grids.deleteRows( "", // databaseId "", // tableId listOf(), // queries (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/delete.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/delete.md rename to docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md index e777c7292e..dbbb4781ba 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/delete.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.delete( +grids.deleteTable( "", // databaseId "", // tableId new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/get-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/get-column.md index b4f7e1298f..1d630f17d7 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/get-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.getColumn( +grids.getColumn( "", // databaseId "", // tableId "", // key 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/tables/get-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/get-index.md rename to docs/examples/1.8.x/server-kotlin/java/grids/get-index.md index 5bcd59d4cd..14163c34a9 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/get-index.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.getIndex( +grids.getIndex( "", // databaseId "", // tableId "", // key diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/get-row.md rename to docs/examples/1.8.x/server-kotlin/java/grids/get-row.md index 7f72c25cd8..e9d89c92b8 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/get-row.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.getRow( +grids.getRow( "", // databaseId "", // tableId "", // rowId diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/get.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/get.md rename to docs/examples/1.8.x/server-kotlin/java/grids/get-table.md index 6f3c639450..39d090219b 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/get.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.get( +grids.getTable( "", // databaseId "", // tableId new CoroutineCallback<>((result, error) -> { 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/grids/increment-row-column.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md index f9c828398a..aaccf0a1a3 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.incrementRowColumn( +grids.incrementRowColumn( "", // databaseId "", // tableId "", // rowId diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md rename to docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md index 05e1960021..f95ca925a6 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/list-columns.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.listColumns( +grids.listColumns( "", // databaseId "", // tableId listOf(), // queries (optional) 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/tables/list-indexes.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md rename to docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md index c9bd445fe8..aa5b11a8c2 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.listIndexes( +grids.listIndexes( "", // databaseId "", // tableId listOf(), // queries (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md rename to docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md index 8cbc356556..ccf3d74a25 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/list-rows.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.listRows( +grids.listRows( "", // databaseId "", // tableId listOf(), // queries (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/list.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/list.md rename to docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md index c3e0c559aa..0a60dbeebe 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/list.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.list( +grids.listTables( "", // databaseId listOf(), // queries (optional) "", // search (optional) 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/grids/update-boolean-column.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md index 647190e7bc..e3d6b71b70 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateBooleanColumn( +grids.updateBooleanColumn( "", // databaseId "", // tableId "", // key 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md index 38e0e60da5..ede33229ad 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateDatetimeColumn( +grids.updateDatetimeColumn( "", // databaseId "", // tableId "", // key 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/grids/update-email-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md index 918884e0b3..48803eb4f4 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateEmailColumn( +grids.updateEmailColumn( "", // databaseId "", // tableId "", // key 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/grids/update-enum-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md index b1bbc83520..63dc238d2e 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateEnumColumn( +grids.updateEnumColumn( "", // databaseId "", // tableId "", // key 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/grids/update-float-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md index 977c23727c..9833f5ec8b 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateFloatColumn( +grids.updateFloatColumn( "", // databaseId "", // tableId "", // key 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/grids/update-integer-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md index d2ad81d0eb..059b1328d5 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateIntegerColumn( +grids.updateIntegerColumn( "", // databaseId "", // tableId "", // key 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/grids/update-ip-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md index cd6e67bc2c..8e31214981 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateIpColumn( +grids.updateIpColumn( "", // databaseId "", // tableId "", // key 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/grids/update-relationship-column.md similarity index 86% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md index e0dc185e0e..b90b21b164 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateRelationshipColumn( +grids.updateRelationshipColumn( "", // databaseId "", // tableId "", // key diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md similarity index 88% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-row.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-row.md index 8270c3fa9b..5f95afb5f5 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-row.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateRow( +grids.updateRow( "", // databaseId "", // tableId "", // rowId diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md index a51878508f..67c9a1be89 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-rows.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateRows( +grids.updateRows( "", // databaseId "", // tableId mapOf( "a" to "b" ), // data (optional) 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/grids/update-string-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md index 31e279d068..13e266abc0 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateStringColumn( +grids.updateStringColumn( "", // databaseId "", // tableId "", // key diff --git a/docs/examples/1.8.x/server-kotlin/java/tables/update.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md similarity index 88% rename from docs/examples/1.8.x/server-kotlin/java/tables/update.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-table.md index cf560cb461..24dfc05e49 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.update( +grids.updateTable( "", // databaseId "", // tableId "", // name 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/grids/update-url-column.md similarity index 87% rename from docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md rename to docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md index 201e578ac6..5217121225 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Tables; +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 -Tables tables = new Tables(client); +Grids grids = new Grids(client); -tables.updateUrlColumn( +grids.updateUrlColumn( "", // databaseId "", // tableId "", // key 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/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/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/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-kotlin/kotlin/tables/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md similarity index 80% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md index 68b8dc51bd..5966655e1e 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createBooleanColumn( +val response = grids.createBooleanColumn( databaseId = "", tableId = "", key = "", 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md similarity index 80% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md index 8740a71d3c..f3b11b5018 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createDatetimeColumn( +val response = grids.createDatetimeColumn( databaseId = "", tableId = "", key = "", 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/grids/create-email-column.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md index 34a6cb669f..a70dd3ac45 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createEmailColumn( +val response = grids.createEmailColumn( databaseId = "", tableId = "", key = "", 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/grids/create-enum-column.md similarity index 82% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md index d3d2fc9286..3858155479 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createEnumColumn( +val response = grids.createEnumColumn( databaseId = "", tableId = "", key = "", 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/grids/create-float-column.md similarity index 82% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md index 8540430cea..d7b4c0155d 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createFloatColumn( +val response = grids.createFloatColumn( databaseId = "", tableId = "", key = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md similarity index 84% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md index 053c88a93a..df16a35cc2 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-index.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md @@ -1,6 +1,6 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +import io.appwrite.services.Grids import io.appwrite.enums.IndexType val client = Client() @@ -8,9 +8,9 @@ val client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -val tables = Tables(client) +val grids = Grids(client) -val response = tables.createIndex( +val response = grids.createIndex( databaseId = "", tableId = "", key = "", 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/grids/create-integer-column.md similarity index 82% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md index 1222746259..db8bde2d72 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createIntegerColumn( +val response = grids.createIntegerColumn( databaseId = "", tableId = "", key = "", 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/grids/create-ip-column.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md index 277c756d24..f3ab36bd0c 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createIpColumn( +val response = grids.createIpColumn( databaseId = "", tableId = "", key = "", 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/grids/create-relationship-column.md similarity index 84% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md index aa07fac6a8..9ba4cafbb7 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md @@ -1,6 +1,6 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +import io.appwrite.services.Grids import io.appwrite.enums.RelationshipType val client = Client() @@ -8,9 +8,9 @@ val client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -val tables = Tables(client) +val grids = Grids(client) -val response = tables.createRelationshipColumn( +val response = grids.createRelationshipColumn( databaseId = "", tableId = "", relatedTableId = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md similarity index 66% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md index 5df0890f99..0c3d2531c5 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md @@ -1,16 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 - .setKey("") // Your secret API key - .setJWT("") // Your secret JSON Web Token -val tables = Tables(client) +val grids = Grids(client) -val response = tables.createRow( +val response = grids.createRow( databaseId = "", tableId = "", rowId = "", 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/tables/create-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md similarity index 82% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md index d82026c31d..f6793c817b 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createStringColumn( +val response = grids.createStringColumn( databaseId = "", tableId = "", key = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md similarity index 84% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md index 3dc1d1a37d..55de471725 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.create( +val response = grids.createTable( databaseId = "", tableId = "", name = "", 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/grids/create-url-column.md similarity index 82% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md index 42f50e9ec9..33311e29ca 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.createUrlColumn( +val response = grids.createUrlColumn( databaseId = "", tableId = "", key = "", 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/grids/decrement-row-column.md similarity index 80% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md index f78f7bbed7..9a450f66f3 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.decrementRowColumn( +val response = grids.decrementRowColumn( databaseId = "", tableId = "", rowId = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md similarity index 78% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md index d41f2ceabf..09636dae09 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.deleteColumn( +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/tables/delete-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md similarity index 78% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md index 7af6648f2f..d3037ca6b0 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-index.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.deleteIndex( +val response = grids.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/grids/delete-row.md similarity index 79% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md index d182ccff95..25b60e0e2d 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.deleteRow( +val response = grids.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/grids/delete-rows.md similarity index 79% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md index 54ff6b690c..c3aa106eac 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.deleteRows( +val response = grids.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/grids/delete-table.md similarity index 78% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md index 5cbd03226a..f0208d4345 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/delete.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.delete( +val response = grids.deleteTable( 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/grids/get-column.md similarity index 79% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md index 6f4d65b4dc..92890a7dc3 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.getColumn( +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/tables/get-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md similarity index 79% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md index 660502f228..7c0b2dc8cb 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-index.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.getIndex( +val response = grids.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/grids/get-row.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md index cbaaa6c3e9..b217814b27 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.getRow( +val response = grids.getRow( databaseId = "", tableId = "", rowId = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md similarity index 79% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md index ff6d354c15..d8a4cd243e 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/get.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.get( +val response = grids.getTable( 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/grids/increment-row-column.md similarity index 80% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md index 7917b7f939..adbe5c287e 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.incrementRowColumn( +val response = grids.incrementRowColumn( databaseId = "", tableId = "", rowId = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md similarity index 79% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md index 4c1765193d..b033eb423d 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-columns.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.listColumns( +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/tables/list-indexes.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md similarity index 79% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md index bcd1fe75ab..84bbcbd232 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.listIndexes( +val response = grids.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/grids/list-rows.md similarity index 80% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md index 38b776acb8..ea54280ff3 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list-rows.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.listRows( +val response = grids.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/grids/list-tables.md similarity index 80% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md index 37b03445da..6bb5a588b2 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/list.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.list( +val response = grids.listTables( 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/grids/update-boolean-column.md similarity index 80% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md index 10a0422d2d..b9360ec99e 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateBooleanColumn( +val response = grids.updateBooleanColumn( databaseId = "", tableId = "", key = "", 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md similarity index 80% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md index 69ccf0354e..50282217d7 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateDatetimeColumn( +val response = grids.updateDatetimeColumn( databaseId = "", tableId = "", key = "", 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/grids/update-email-column.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md index 593a89b4ce..a9c2996800 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateEmailColumn( +val response = grids.updateEmailColumn( databaseId = "", tableId = "", key = "", 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/grids/update-enum-column.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md index b672e3e155..c23eef358b 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateEnumColumn( +val response = grids.updateEnumColumn( databaseId = "", tableId = "", key = "", 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/grids/update-float-column.md similarity index 82% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md index 005c4e64a5..1054c34fbd 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateFloatColumn( +val response = grids.updateFloatColumn( databaseId = "", tableId = "", key = "", 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/grids/update-integer-column.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md index 39da19d562..288c74b4fe 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateIntegerColumn( +val response = grids.updateIntegerColumn( databaseId = "", tableId = "", key = "", 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/grids/update-ip-column.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md index 40e54bcdfd..cbc358a3b6 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateIpColumn( +val response = grids.updateIpColumn( databaseId = "", tableId = "", key = "", 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/grids/update-relationship-column.md similarity index 79% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md index d4c36e8802..99df537cfe 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateRelationshipColumn( +val response = grids.updateRelationshipColumn( databaseId = "", tableId = "", key = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md similarity index 83% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md index 6d3d9a47f7..ae18af353a 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateRow( +val response = grids.updateRow( databaseId = "", tableId = "", rowId = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md index aac87c19b0..3682cd0724 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-rows.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateRows( +val response = grids.updateRows( databaseId = "", tableId = "", data = mapOf( "a" to "b" ), // 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/grids/update-string-column.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md index bb5b1f4bcf..8f7a213260 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateStringColumn( +val response = grids.updateStringColumn( databaseId = "", tableId = "", key = "", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md similarity index 84% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md index 381532316d..99232d858f 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.update( +val response = grids.updateTable( databaseId = "", tableId = "", name = "", 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/grids/update-url-column.md similarity index 81% rename from docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md rename to docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md index 07f43e3907..65d299dba8 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md @@ -1,15 +1,15 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Tables +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 tables = Tables(client) +val grids = Grids(client) -val response = tables.updateUrlColumn( +val response = grids.updateUrlColumn( databaseId = "", tableId = "", key = "", 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-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/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/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-nodejs/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md index 64893d77a8..dae3f30840 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createBooleanColumn( +const result = await grids.createBooleanColumn( '', // databaseId '', // tableId '', // key 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md similarity index 82% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md index 0d63244727..d2b5c7e00f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createDatetimeColumn( +const result = await grids.createDatetimeColumn( '', // databaseId '', // tableId '', // key 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/grids/create-email-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md index 2257fdd7d6..ce56e96d85 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createEmailColumn( +const result = await grids.createEmailColumn( '', // databaseId '', // tableId '', // key 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/grids/create-enum-column.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md index dbc75feea5..653b1ed75c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createEnumColumn( +const result = await grids.createEnumColumn( '', // databaseId '', // tableId '', // key 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/grids/create-float-column.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md index 690b5849eb..dc6aee4805 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createFloatColumn( +const result = await grids.createFloatColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md index aef047ba5f..975fa3047e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createIndex( +const result = await grids.createIndex( '', // databaseId '', // tableId '', // key 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/grids/create-integer-column.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md index 05e66b548c..3444f82b58 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createIntegerColumn( +const result = await grids.createIntegerColumn( '', // databaseId '', // tableId '', // key 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/grids/create-ip-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md index 69b5c635d2..52a9e8fbeb 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createIpColumn( +const result = await grids.createIpColumn( '', // databaseId '', // tableId '', // key 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/grids/create-relationship-column.md similarity index 85% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md index b6e7fa517f..c0270dab85 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createRelationshipColumn( +const result = await grids.createRelationshipColumn( '', // databaseId '', // tableId '', // relatedTableId 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/tables/create-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md index 8e14cb45c9..f72d042dfb 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createStringColumn( +const result = await grids.createStringColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/create.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md similarity index 85% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md index 54d6bc61bd..d022de372f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.create( +const result = await grids.createTable( '', // databaseId '', // tableId '', // name 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/grids/create-url-column.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md index 73cdfa3710..83c6d5a01b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.createUrlColumn( +const result = await grids.createUrlColumn( '', // databaseId '', // tableId '', // key 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/grids/decrement-row-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md index 2e7df6aa92..a166a1bfc0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.decrementRowColumn( +const result = await grids.decrementRowColumn( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md similarity index 80% rename from docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md index a892c61baa..7130f48cae 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.deleteColumn( +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/tables/delete-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md similarity index 81% rename from docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md index f6bc7919db..b266062053 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.deleteIndex( +const result = await grids.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/grids/delete-row.md similarity index 82% rename from docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md index 5bc60cd6cb..cf202374a0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setSession(''); // The user session to authenticate with -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.deleteRow( +const result = await grids.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/grids/delete-rows.md similarity index 81% rename from docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md index 11b16b71ae..aa36bacbda 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.deleteRows( +const result = await grids.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/grids/delete-table.md similarity index 80% rename from docs/examples/1.8.x/server-nodejs/examples/tables/delete.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md index fed3eee5a4..d3bb221e0d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.delete( +const result = await grids.deleteTable( '', // 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/grids/get-column.md similarity index 81% rename from docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md index daa20e17e2..d3b08936d2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.getColumn( +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/tables/get-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md similarity index 81% rename from docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md index 56ba871d67..e47b942df9 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.getIndex( +const result = await grids.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/grids/get-row.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md index df952d9595..15c753000a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setSession(''); // The user session to authenticate with -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.getRow( +const result = await grids.getRow( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/get.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md similarity index 81% rename from docs/examples/1.8.x/server-nodejs/examples/tables/get.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md index b078574b5c..f7b28eb191 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/get.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.get( +const result = await grids.getTable( '', // 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/grids/increment-row-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md index bb5856c74a..ac5257f658 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.incrementRowColumn( +const result = await grids.incrementRowColumn( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md similarity index 81% rename from docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md index f9af43bea5..dbfaac0262 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.listColumns( +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/tables/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md similarity index 81% rename from docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md index 7eaf4b8710..8a102996a6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.listIndexes( +const result = await grids.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/grids/list-rows.md similarity index 82% rename from docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md index aa5b341649..9f9bb3bc33 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setSession(''); // The user session to authenticate with -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.listRows( +const result = await grids.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/grids/list-tables.md similarity index 82% rename from docs/examples/1.8.x/server-nodejs/examples/tables/list.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md index 872a98df08..e020b883e0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/list.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.list( +const result = await grids.listTables( '', // 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/grids/update-boolean-column.md similarity index 82% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md index 84ff5d2bef..b695e2d194 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateBooleanColumn( +const result = await grids.updateBooleanColumn( '', // databaseId '', // tableId '', // key 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md similarity index 82% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md index c02559a171..8ec6f1cda7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateDatetimeColumn( +const result = await grids.updateDatetimeColumn( '', // databaseId '', // tableId '', // key 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/grids/update-email-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md index 9560b60e29..f8e0918819 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateEmailColumn( +const result = await grids.updateEmailColumn( '', // databaseId '', // tableId '', // key 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/grids/update-enum-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md index 861fce6add..bda1aad53a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateEnumColumn( +const result = await grids.updateEnumColumn( '', // databaseId '', // tableId '', // key 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/grids/update-float-column.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md index 01845ca3cc..ae3d5ceb4b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateFloatColumn( +const result = await grids.updateFloatColumn( '', // databaseId '', // tableId '', // key 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/grids/update-integer-column.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md index 0b7432247f..a3e28bc406 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateIntegerColumn( +const result = await grids.updateIntegerColumn( '', // databaseId '', // tableId '', // key 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/grids/update-ip-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md index 6ba5eccf3e..ff8692f81e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateIpColumn( +const result = await grids.updateIpColumn( '', // databaseId '', // tableId '', // key 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/grids/update-relationship-column.md similarity index 82% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md index 3409b8caad..19f957f67a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateRelationshipColumn( +const result = await grids.updateRelationshipColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md similarity index 84% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md index ff8e98eb38..79c845f558 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setSession(''); // The user session to authenticate with -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateRow( +const result = await grids.updateRow( '', // databaseId '', // tableId '', // rowId diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md similarity index 82% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md index 72cef07202..65c8f63cbd 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateRows( +const result = await grids.updateRows( '', // databaseId '', // tableId {}, // data (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/grids/update-string-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md index f9445a50c1..b04f38bd5d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateStringColumn( +const result = await grids.updateStringColumn( '', // databaseId '', // tableId '', // key diff --git a/docs/examples/1.8.x/server-nodejs/examples/tables/update.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md similarity index 85% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md index 4fd981ffbf..3d80666600 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.update( +const result = await grids.updateTable( '', // databaseId '', // tableId '', // name 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/grids/update-url-column.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md index c6ffdf3044..aa368bfcc0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md @@ -5,9 +5,9 @@ const client = new sdk.Client() .setProject('') // Your project ID .setKey(''); // Your secret API key -const tables = new sdk.Tables(client); +const grids = new sdk.Grids(client); -const result = await tables.updateUrlColumn( +const result = await grids.updateUrlColumn( '', // databaseId '', // tableId '', // key 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-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/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/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-php/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md index 28339753ac..22e7cf8058 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createBooleanColumn( +$result = $grids->createBooleanColumn( databaseId: '', tableId: '', key: '', 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md similarity index 79% rename from docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md index d7f18f2ede..afb847fd30 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createDatetimeColumn( +$result = $grids->createDatetimeColumn( databaseId: '', tableId: '', key: '', 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/grids/create-email-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-email-column.md index 15ec2cf2e5..7516614820 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createEmailColumn( +$result = $grids->createEmailColumn( databaseId: '', tableId: '', key: '', 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/grids/create-enum-column.md similarity index 81% rename from docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md index aa2b6138f7..f4a9ff2e5d 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createEnumColumn( +$result = $grids->createEnumColumn( databaseId: '', tableId: '', key: '', 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/grids/create-float-column.md similarity index 82% rename from docs/examples/1.8.x/server-php/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-float-column.md index 1f620dc887..7a02a1790b 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createFloatColumn( +$result = $grids->createFloatColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-php/examples/tables/create-index.md b/docs/examples/1.8.x/server-php/examples/grids/create-index.md similarity index 82% rename from docs/examples/1.8.x/server-php/examples/tables/create-index.md rename to docs/examples/1.8.x/server-php/examples/grids/create-index.md index 9844e041d4..31bfdc2754 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-index.md @@ -1,7 +1,7 @@ setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createIndex( +$result = $grids->createIndex( databaseId: '', tableId: '', key: '', 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/grids/create-integer-column.md similarity index 81% rename from docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md index 185f12c5cb..6495fc6309 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createIntegerColumn( +$result = $grids->createIntegerColumn( databaseId: '', tableId: '', key: '', 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/grids/create-ip-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md index 1f74e4dd72..65379a2f94 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createIpColumn( +$result = $grids->createIpColumn( databaseId: '', tableId: '', key: '', 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/grids/create-relationship-column.md similarity index 84% rename from docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md index c86b4c558a..cde72569ad 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md @@ -1,7 +1,7 @@ setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createRelationshipColumn( +$result = $grids->createRelationshipColumn( databaseId: '', tableId: '', relatedTableId: '', 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/tables/create-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md similarity index 82% rename from docs/examples/1.8.x/server-php/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-string-column.md index 085aff25c8..a5acf25859 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createStringColumn( +$result = $grids->createStringColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-php/examples/tables/create.md b/docs/examples/1.8.x/server-php/examples/grids/create-table.md similarity index 83% rename from docs/examples/1.8.x/server-php/examples/tables/create.md rename to docs/examples/1.8.x/server-php/examples/grids/create-table.md index 773d7a24eb..ca6e017375 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-table.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->create( +$result = $grids->createTable( databaseId: '', tableId: '', name: '', 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/grids/create-url-column.md similarity index 81% rename from docs/examples/1.8.x/server-php/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-php/examples/grids/create-url-column.md index d0bdb55dd4..b0149f279b 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->createUrlColumn( +$result = $grids->createUrlColumn( databaseId: '', tableId: '', key: '', 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/grids/decrement-row-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md index b0c44b6d0a..d7db09ed30 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->decrementRowColumn( +$result = $grids->decrementRowColumn( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-column.md b/docs/examples/1.8.x/server-php/examples/grids/delete-column.md similarity index 77% rename from docs/examples/1.8.x/server-php/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-php/examples/grids/delete-column.md index 9bd6738cb7..3862ecbde9 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->deleteColumn( +$result = $grids->deleteColumn( databaseId: '', tableId: '', key: '' 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/tables/delete-index.md b/docs/examples/1.8.x/server-php/examples/grids/delete-index.md similarity index 77% rename from docs/examples/1.8.x/server-php/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-php/examples/grids/delete-index.md index bbd748433a..913091455b 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-index.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->deleteIndex( +$result = $grids->deleteIndex( databaseId: '', tableId: '', key: '' diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-row.md b/docs/examples/1.8.x/server-php/examples/grids/delete-row.md similarity index 78% rename from docs/examples/1.8.x/server-php/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-php/examples/grids/delete-row.md index 0c4ab6ef40..14b72e6e56 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-row.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setSession(''); // The user session to authenticate with -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->deleteRow( +$result = $grids->deleteRow( databaseId: '', tableId: '', rowId: '' diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete-rows.md b/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md similarity index 78% rename from docs/examples/1.8.x/server-php/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-php/examples/grids/delete-rows.md index b0c984cc17..567b497f04 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->deleteRows( +$result = $grids->deleteRows( databaseId: '', tableId: '', queries: [] // optional diff --git a/docs/examples/1.8.x/server-php/examples/tables/delete.md b/docs/examples/1.8.x/server-php/examples/grids/delete-table.md similarity index 77% rename from docs/examples/1.8.x/server-php/examples/tables/delete.md rename to docs/examples/1.8.x/server-php/examples/grids/delete-table.md index f145eedc91..ea0eeda80f 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-table.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->delete( +$result = $grids->deleteTable( 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/grids/get-column.md similarity index 77% rename from docs/examples/1.8.x/server-php/examples/tables/get-column.md rename to docs/examples/1.8.x/server-php/examples/grids/get-column.md index b8b676564e..ac2c9bb0c4 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/get-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->getColumn( +$result = $grids->getColumn( databaseId: '', tableId: '', key: '' 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/tables/get-index.md b/docs/examples/1.8.x/server-php/examples/grids/get-index.md similarity index 78% rename from docs/examples/1.8.x/server-php/examples/tables/get-index.md rename to docs/examples/1.8.x/server-php/examples/grids/get-index.md index 5d1139d596..2434fd933b 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-php/examples/grids/get-index.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->getIndex( +$result = $grids->getIndex( databaseId: '', tableId: '', key: '' diff --git a/docs/examples/1.8.x/server-php/examples/tables/get-row.md b/docs/examples/1.8.x/server-php/examples/grids/get-row.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/get-row.md rename to docs/examples/1.8.x/server-php/examples/grids/get-row.md index ccde387b89..e13ea67209 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-php/examples/grids/get-row.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setSession(''); // The user session to authenticate with -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->getRow( +$result = $grids->getRow( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/server-php/examples/tables/get.md b/docs/examples/1.8.x/server-php/examples/grids/get-table.md similarity index 78% rename from docs/examples/1.8.x/server-php/examples/tables/get.md rename to docs/examples/1.8.x/server-php/examples/grids/get-table.md index d07ef7338a..1c9721f1c7 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/get.md +++ b/docs/examples/1.8.x/server-php/examples/grids/get-table.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->get( +$result = $grids->getTable( 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/grids/increment-row-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md index aa5a3c0d53..fc9ee9a9eb 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->incrementRowColumn( +$result = $grids->incrementRowColumn( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/server-php/examples/tables/list-columns.md b/docs/examples/1.8.x/server-php/examples/grids/list-columns.md similarity index 78% rename from docs/examples/1.8.x/server-php/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-php/examples/grids/list-columns.md index 0338567240..7be7581a28 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-php/examples/grids/list-columns.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->listColumns( +$result = $grids->listColumns( databaseId: '', tableId: '', queries: [] // optional 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/tables/list-indexes.md b/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md similarity index 78% rename from docs/examples/1.8.x/server-php/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-php/examples/grids/list-indexes.md index df1f8c6aca..d23248e5d4 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->listIndexes( +$result = $grids->listIndexes( databaseId: '', tableId: '', queries: [] // optional diff --git a/docs/examples/1.8.x/server-php/examples/tables/list-rows.md b/docs/examples/1.8.x/server-php/examples/grids/list-rows.md similarity index 79% rename from docs/examples/1.8.x/server-php/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-php/examples/grids/list-rows.md index 2041d72b05..c8537651c6 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-php/examples/grids/list-rows.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setSession(''); // The user session to authenticate with -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->listRows( +$result = $grids->listRows( databaseId: '', tableId: '', queries: [] // optional diff --git a/docs/examples/1.8.x/server-php/examples/tables/list.md b/docs/examples/1.8.x/server-php/examples/grids/list-tables.md similarity index 79% rename from docs/examples/1.8.x/server-php/examples/tables/list.md rename to docs/examples/1.8.x/server-php/examples/grids/list-tables.md index 37df0a4baa..95f4f7b65d 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/list.md +++ b/docs/examples/1.8.x/server-php/examples/grids/list-tables.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->list( +$result = $grids->listTables( databaseId: '', queries: [], // optional search: '' // optional 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/grids/update-boolean-column.md similarity index 79% rename from docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md index 8ad80506d8..bc7405d35d 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateBooleanColumn( +$result = $grids->updateBooleanColumn( databaseId: '', tableId: '', key: '', 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md similarity index 79% rename from docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md index 5185357f17..6850a6d373 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateDatetimeColumn( +$result = $grids->updateDatetimeColumn( databaseId: '', tableId: '', key: '', 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/grids/update-email-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-email-column.md index 7acbb811eb..6fe7f82477 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateEmailColumn( +$result = $grids->updateEmailColumn( databaseId: '', tableId: '', key: '', 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/grids/update-enum-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md index 478905af67..4a18d02488 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateEnumColumn( +$result = $grids->updateEnumColumn( databaseId: '', tableId: '', key: '', 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/grids/update-float-column.md similarity index 81% rename from docs/examples/1.8.x/server-php/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-float-column.md index 1d9c5fd997..5e58f8efaf 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateFloatColumn( +$result = $grids->updateFloatColumn( databaseId: '', tableId: '', key: '', 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/grids/update-integer-column.md similarity index 81% rename from docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md index f6998db0a2..c097b7e286 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateIntegerColumn( +$result = $grids->updateIntegerColumn( databaseId: '', tableId: '', key: '', 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/grids/update-ip-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md index e7906fbd0f..9ce131b8e1 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateIpColumn( +$result = $grids->updateIpColumn( databaseId: '', tableId: '', key: '', 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/grids/update-relationship-column.md similarity index 79% rename from docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md index d6505c77f1..a0241afb06 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateRelationshipColumn( +$result = $grids->updateRelationshipColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-row.md b/docs/examples/1.8.x/server-php/examples/grids/update-row.md similarity index 81% rename from docs/examples/1.8.x/server-php/examples/tables/update-row.md rename to docs/examples/1.8.x/server-php/examples/grids/update-row.md index 921c43d935..a0aae15730 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-row.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setSession(''); // The user session to authenticate with -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateRow( +$result = $grids->updateRow( databaseId: '', tableId: '', rowId: '', diff --git a/docs/examples/1.8.x/server-php/examples/tables/update-rows.md b/docs/examples/1.8.x/server-php/examples/grids/update-rows.md similarity index 79% rename from docs/examples/1.8.x/server-php/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-php/examples/grids/update-rows.md index f61fa2b17d..270489f44e 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-rows.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateRows( +$result = $grids->updateRows( databaseId: '', tableId: '', data: [], // optional 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/grids/update-string-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-string-column.md index 8856ec19c1..6213deb7aa 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateStringColumn( +$result = $grids->updateStringColumn( databaseId: '', tableId: '', key: '', diff --git a/docs/examples/1.8.x/server-php/examples/tables/update.md b/docs/examples/1.8.x/server-php/examples/grids/update-table.md similarity index 83% rename from docs/examples/1.8.x/server-php/examples/tables/update.md rename to docs/examples/1.8.x/server-php/examples/grids/update-table.md index 39f076b8f8..1483eee2a9 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-table.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->update( +$result = $grids->updateTable( databaseId: '', tableId: '', name: '', 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/grids/update-url-column.md similarity index 80% rename from docs/examples/1.8.x/server-php/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-php/examples/grids/update-url-column.md index faa46d1806..7f7916c81a 100644 --- a/docs/examples/1.8.x/server-php/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md @@ -1,16 +1,16 @@ setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key -$tables = new Tables($client); +$grids = new Grids($client); -$result = $tables->updateUrlColumn( +$result = $grids->updateUrlColumn( databaseId: '', tableId: '', key: '', 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-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/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/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-python/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md similarity index 79% rename from docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md index cfbaa3b0ee..73d8323533 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_boolean_column( +result = grids.create_boolean_column( database_id = '', table_id = '', key = '', 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md similarity index 79% rename from docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md index a9f76b5e5f..a98024c16c 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_datetime_column( +result = grids.create_datetime_column( database_id = '', table_id = '', key = '', 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/grids/create-email-column.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-email-column.md index 73ac0faad6..372cbafce3 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_email_column( +result = grids.create_email_column( database_id = '', table_id = '', key = '', 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/grids/create-enum-column.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md index 2013c39fa0..d7b47c80cb 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_enum_column( +result = grids.create_enum_column( database_id = '', table_id = '', key = '', 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/grids/create-float-column.md similarity index 81% rename from docs/examples/1.8.x/server-python/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-float-column.md index a56a196093..5a52128ac1 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_float_column( +result = grids.create_float_column( database_id = '', table_id = '', key = '', diff --git a/docs/examples/1.8.x/server-python/examples/tables/create-index.md b/docs/examples/1.8.x/server-python/examples/grids/create-index.md similarity index 82% rename from docs/examples/1.8.x/server-python/examples/tables/create-index.md rename to docs/examples/1.8.x/server-python/examples/grids/create-index.md index 69086af0b0..1d67b8abc0 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-index.md @@ -1,5 +1,5 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +from appwrite.services.grids import Grids from appwrite.enums import IndexType client = Client() @@ -7,9 +7,9 @@ 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) +grids = Grids(client) -result = tables.create_index( +result = grids.create_index( database_id = '', table_id = '', key = '', 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/grids/create-integer-column.md similarity index 81% rename from docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md index d52b14bc5c..aed49578aa 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_integer_column( +result = grids.create_integer_column( database_id = '', table_id = '', key = '', 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/grids/create-ip-column.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md index b5c7ef56db..af873c91a1 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_ip_column( +result = grids.create_ip_column( database_id = '', table_id = '', key = '', 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/grids/create-relationship-column.md similarity index 83% rename from docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md index 187271f887..3cb858d260 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md @@ -1,5 +1,5 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +from appwrite.services.grids import Grids from appwrite.enums import RelationshipType client = Client() @@ -7,9 +7,9 @@ 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) +grids = Grids(client) -result = tables.create_relationship_column( +result = grids.create_relationship_column( database_id = '', table_id = '', related_table_id = '', 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/tables/create-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md similarity index 81% rename from docs/examples/1.8.x/server-python/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-string-column.md index 1308fea2ad..3771a070ba 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_string_column( +result = grids.create_string_column( database_id = '', table_id = '', key = '', diff --git a/docs/examples/1.8.x/server-python/examples/tables/create.md b/docs/examples/1.8.x/server-python/examples/grids/create-table.md similarity index 82% rename from docs/examples/1.8.x/server-python/examples/tables/create.md rename to docs/examples/1.8.x/server-python/examples/grids/create-table.md index 3a02843c4d..64c1b50d69 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-table.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create( +result = grids.create_table( database_id = '', table_id = '', name = '', 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/grids/create-url-column.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-python/examples/grids/create-url-column.md index f15c3e0574..45c1a2d82e 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.create_url_column( +result = grids.create_url_column( database_id = '', table_id = '', key = '', 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/grids/decrement-row-column.md similarity index 79% rename from docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md index bf027d6e76..9608337398 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.decrement_row_column( +result = grids.decrement_row_column( database_id = '', table_id = '', row_id = '', diff --git a/docs/examples/1.8.x/server-python/examples/tables/delete-column.md b/docs/examples/1.8.x/server-python/examples/grids/delete-column.md similarity index 76% rename from docs/examples/1.8.x/server-python/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-python/examples/grids/delete-column.md index cf2dd6d5e5..650a1c3578 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.delete_column( +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/tables/delete-index.md b/docs/examples/1.8.x/server-python/examples/grids/delete-index.md similarity index 77% rename from docs/examples/1.8.x/server-python/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-python/examples/grids/delete-index.md index 5f78d1ce1d..fed36f1d9c 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-index.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.delete_index( +result = grids.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/grids/delete-row.md similarity index 78% rename from docs/examples/1.8.x/server-python/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-python/examples/grids/delete-row.md index 40a8b09fcf..eb1e661738 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-row.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.delete_row( +result = grids.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/grids/delete-rows.md similarity index 78% rename from docs/examples/1.8.x/server-python/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-python/examples/grids/delete-rows.md index 236aea1c9b..31503cdee1 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.delete_rows( +result = grids.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/grids/delete-table.md similarity index 77% rename from docs/examples/1.8.x/server-python/examples/tables/delete.md rename to docs/examples/1.8.x/server-python/examples/grids/delete-table.md index de48bfc2b5..d170c31d20 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-table.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.delete( +result = grids.delete_table( 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/grids/get-column.md similarity index 77% rename from docs/examples/1.8.x/server-python/examples/tables/get-column.md rename to docs/examples/1.8.x/server-python/examples/grids/get-column.md index 4bd4617142..a724e07b0a 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/get-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.get_column( +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/tables/get-index.md b/docs/examples/1.8.x/server-python/examples/grids/get-index.md similarity index 77% rename from docs/examples/1.8.x/server-python/examples/tables/get-index.md rename to docs/examples/1.8.x/server-python/examples/grids/get-index.md index cf88017fbe..6e3753dea5 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-python/examples/grids/get-index.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.get_index( +result = grids.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/grids/get-row.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/get-row.md rename to docs/examples/1.8.x/server-python/examples/grids/get-row.md index 25fefb23fd..939a992868 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-python/examples/grids/get-row.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.get_row( +result = grids.get_row( database_id = '', table_id = '', row_id = '', diff --git a/docs/examples/1.8.x/server-python/examples/tables/get.md b/docs/examples/1.8.x/server-python/examples/grids/get-table.md similarity index 77% rename from docs/examples/1.8.x/server-python/examples/tables/get.md rename to docs/examples/1.8.x/server-python/examples/grids/get-table.md index 789410cfb7..afe24bd0f2 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/get.md +++ b/docs/examples/1.8.x/server-python/examples/grids/get-table.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.get( +result = grids.get_table( 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/grids/increment-row-column.md similarity index 79% rename from docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md index cfb923029e..598cf58874 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.increment_row_column( +result = grids.increment_row_column( database_id = '', table_id = '', row_id = '', diff --git a/docs/examples/1.8.x/server-python/examples/tables/list-columns.md b/docs/examples/1.8.x/server-python/examples/grids/list-columns.md similarity index 77% rename from docs/examples/1.8.x/server-python/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-python/examples/grids/list-columns.md index d9c5b16468..b78327182c 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-python/examples/grids/list-columns.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.list_columns( +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/tables/list-indexes.md b/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md similarity index 77% rename from docs/examples/1.8.x/server-python/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-python/examples/grids/list-indexes.md index 0b0bb585e7..a6b52416c6 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.list_indexes( +result = grids.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/grids/list-rows.md similarity index 78% rename from docs/examples/1.8.x/server-python/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-python/examples/grids/list-rows.md index 2ece6f6cf7..975f88f763 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-python/examples/grids/list-rows.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.list_rows( +result = grids.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/grids/list-tables.md similarity index 79% rename from docs/examples/1.8.x/server-python/examples/tables/list.md rename to docs/examples/1.8.x/server-python/examples/grids/list-tables.md index 55a99e996d..3e2e5508bc 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/list.md +++ b/docs/examples/1.8.x/server-python/examples/grids/list-tables.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.list( +result = grids.list_tables( 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/grids/update-boolean-column.md similarity index 78% rename from docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md index 1bc7a4afac..6bcbf27355 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_boolean_column( +result = grids.update_boolean_column( database_id = '', table_id = '', key = '', 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md similarity index 78% rename from docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md index 157ff44a7b..6ae0e4dea5 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_datetime_column( +result = grids.update_datetime_column( database_id = '', table_id = '', key = '', 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/grids/update-email-column.md similarity index 79% rename from docs/examples/1.8.x/server-python/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-email-column.md index 8b9e4cad36..c1ff1d0637 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_email_column( +result = grids.update_email_column( database_id = '', table_id = '', key = '', 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/grids/update-enum-column.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md index b46971beac..6da49cfb81 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_enum_column( +result = grids.update_enum_column( database_id = '', table_id = '', key = '', 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/grids/update-float-column.md similarity index 81% rename from docs/examples/1.8.x/server-python/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-float-column.md index 243a26f0aa..8d3d9edb5f 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_float_column( +result = grids.update_float_column( database_id = '', table_id = '', key = '', 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/grids/update-integer-column.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md index 99b55c17a7..966f7b6805 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_integer_column( +result = grids.update_integer_column( database_id = '', table_id = '', key = '', 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/grids/update-ip-column.md similarity index 79% rename from docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md index 2fb470ae6e..e5fccac320 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_ip_column( +result = grids.update_ip_column( database_id = '', table_id = '', key = '', 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/grids/update-relationship-column.md similarity index 78% rename from docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md index 35a307c7e2..fcff4591fd 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_relationship_column( +result = grids.update_relationship_column( database_id = '', table_id = '', key = '', diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-row.md b/docs/examples/1.8.x/server-python/examples/grids/update-row.md similarity index 81% rename from docs/examples/1.8.x/server-python/examples/tables/update-row.md rename to docs/examples/1.8.x/server-python/examples/grids/update-row.md index 4a71fc97f2..e379697ce4 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-row.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_row( +result = grids.update_row( database_id = '', table_id = '', row_id = '', diff --git a/docs/examples/1.8.x/server-python/examples/tables/update-rows.md b/docs/examples/1.8.x/server-python/examples/grids/update-rows.md similarity index 79% rename from docs/examples/1.8.x/server-python/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-python/examples/grids/update-rows.md index a834346678..344bb5904b 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-rows.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_rows( +result = grids.update_rows( database_id = '', table_id = '', data = {}, # 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/grids/update-string-column.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-string-column.md index 252c26433e..f303189b80 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_string_column( +result = grids.update_string_column( database_id = '', table_id = '', key = '', diff --git a/docs/examples/1.8.x/server-python/examples/tables/update.md b/docs/examples/1.8.x/server-python/examples/grids/update-table.md similarity index 82% rename from docs/examples/1.8.x/server-python/examples/tables/update.md rename to docs/examples/1.8.x/server-python/examples/grids/update-table.md index c567bd5500..cfd5b4d92e 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-table.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update( +result = grids.update_table( database_id = '', table_id = '', name = '', 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/grids/update-url-column.md similarity index 80% rename from docs/examples/1.8.x/server-python/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-python/examples/grids/update-url-column.md index 235e2f3bc4..ea6dc386ed 100644 --- a/docs/examples/1.8.x/server-python/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md @@ -1,14 +1,14 @@ from appwrite.client import Client -from appwrite.services.tables import Tables +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 -tables = Tables(client) +grids = Grids(client) -result = tables.update_url_column( +result = grids.update_url_column( database_id = '', table_id = '', key = '', 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-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/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/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/tables/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md similarity index 63% rename from docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md index 4152d8538f..d594385572 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/boolean HTTP/1.1 +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.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/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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md similarity index 62% rename from docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md index d5318d96db..88505a8a1f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/datetime HTTP/1.1 +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.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/tables/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md similarity index 65% rename from docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md index b213fa6ceb..28d733dab8 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/email HTTP/1.1 +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.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/tables/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md similarity index 66% rename from docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md index 125f617f1f..35de1b5e2f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/enum HTTP/1.1 +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.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/tables/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md similarity index 66% rename from docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md index 2e010318ff..9c9996aced 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/float HTTP/1.1 +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.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/tables/create-index.md b/docs/examples/1.8.x/server-rest/examples/grids/create-index.md similarity index 66% rename from docs/examples/1.8.x/server-rest/examples/tables/create-index.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-index.md index eaddec973a..7a7487bdae 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-index.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/indexes HTTP/1.1 +POST /v1/databases/{databaseId}/grids/tables/{tableId}/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/tables/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md similarity index 65% rename from docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md index f284dc03ef..be6eb92544 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/integer HTTP/1.1 +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.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/tables/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md similarity index 63% rename from docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md index 8def17fc27..30406d7025 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/ip HTTP/1.1 +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.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/tables/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md similarity index 68% rename from docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md index d8feb21916..75f54c9602 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/relationship HTTP/1.1 +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.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/tables/create-row.md b/docs/examples/1.8.x/server-rest/examples/grids/create-row.md similarity index 70% rename from docs/examples/1.8.x/server-rest/examples/tables/create-row.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-row.md index 075be16fa4..443b4e30c9 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-row.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-row.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows 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/tables/create-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md similarity index 64% rename from docs/examples/1.8.x/server-rest/examples/tables/create-rows.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-rows.md index ad3d6983cc..32578d87de 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-rows.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows 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/tables/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md similarity index 67% rename from docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md index e654a05e3a..2a0b0dc372 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/string HTTP/1.1 +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.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/tables/create.md b/docs/examples/1.8.x/server-rest/examples/grids/create-table.md similarity index 74% rename from docs/examples/1.8.x/server-rest/examples/tables/create.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-table.md index 14e1f6ec05..7c22e81e7c 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-table.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables HTTP/1.1 +POST /v1/databases/{databaseId}/grids/tables 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/tables/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md similarity index 66% rename from docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md index d98d77c68d..5dada907a0 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md @@ -1,7 +1,7 @@ -POST /v1/databases/{databaseId}/tables/{tableId}/columns/url HTTP/1.1 +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.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/tables/decrement-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md similarity index 54% rename from docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md index a76efb3a69..6548a58273 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement HTTP/1.1 +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.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/tables/delete-column.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md similarity index 52% rename from docs/examples/1.8.x/server-rest/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/delete-column.md index 2bda57366c..2680bcf03a 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md @@ -1,7 +1,7 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/columns/{key} HTTP/1.1 +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.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/tables/delete.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md similarity index 57% rename from docs/examples/1.8.x/server-rest/examples/tables/delete.md rename to docs/examples/1.8.x/server-rest/examples/grids/delete-database.md index 379bead1ad..85d5f7bb0e 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md @@ -1,7 +1,7 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 +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/tables/delete-index.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md similarity index 52% rename from docs/examples/1.8.x/server-rest/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-rest/examples/grids/delete-index.md index ffffc38c64..ca7d67a1b4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md @@ -1,7 +1,7 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/indexes/{key} HTTP/1.1 +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.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/tables/delete-row.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md similarity index 60% rename from docs/examples/1.8.x/server-rest/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-rest/examples/grids/delete-row.md index f10adef821..8fd3f6ee7d 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md @@ -1,7 +1,7 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +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.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/tables/delete-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md similarity index 58% rename from docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md index fcaf8fb472..af1fabdb7a 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md @@ -1,7 +1,7 @@ -DELETE /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows 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/tables/upsert-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md similarity index 55% rename from docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md rename to docs/examples/1.8.x/server-rest/examples/grids/delete-table.md index cfcb914866..e068291849 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/upsert-rows.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md @@ -1,7 +1,7 @@ -PUT /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +DELETE /v1/databases/{databaseId}/grids/tables/{tableId} 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/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/tables/list.md b/docs/examples/1.8.x/server-rest/examples/grids/get-database.md similarity index 53% rename from docs/examples/1.8.x/server-rest/examples/tables/list.md rename to docs/examples/1.8.x/server-rest/examples/grids/get-database.md index e856ef7241..644f251f56 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/list.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-database.md @@ -1,5 +1,5 @@ -GET /v1/databases/{databaseId}/tables HTTP/1.1 +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/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/tables/get-row.md b/docs/examples/1.8.x/server-rest/examples/grids/get-row.md similarity index 56% rename from docs/examples/1.8.x/server-rest/examples/tables/get-row.md rename to docs/examples/1.8.x/server-rest/examples/grids/get-row.md index 0b827f18a8..ba3b87bee0 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-row.md @@ -1,6 +1,6 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} 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/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/tables/increment-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md similarity index 54% rename from docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md index 480645c39c..4501951530 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment HTTP/1.1 +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.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/tables/get-index.md b/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md similarity index 50% rename from docs/examples/1.8.x/server-rest/examples/tables/get-index.md rename to docs/examples/1.8.x/server-rest/examples/grids/list-columns.md index 076058d7f3..82859eaabd 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md @@ -1,5 +1,5 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/indexes/{key} HTTP/1.1 +GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns 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/tables/get.md b/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md similarity index 50% rename from docs/examples/1.8.x/server-rest/examples/tables/get.md rename to docs/examples/1.8.x/server-rest/examples/grids/list-databases.md index 74877ec0c0..3b9530eec4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/get.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md @@ -1,5 +1,5 @@ -GET /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 +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/tables/get-column.md b/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md similarity index 50% rename from docs/examples/1.8.x/server-rest/examples/tables/get-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md index 31d1856539..847b2342fe 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md @@ -1,5 +1,5 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/columns/{key} HTTP/1.1 +GET /v1/databases/{databaseId}/grids/tables/{tableId}/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/tables/list-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md similarity index 58% rename from docs/examples/1.8.x/server-rest/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-rest/examples/grids/list-rows.md index 46e69ab609..d22624083f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md @@ -1,6 +1,6 @@ -GET /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows 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/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/tables/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md similarity index 60% rename from docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md index e4a1c4602a..4327743a81 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/boolean/{key} HTTP/1.1 +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.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/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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md similarity index 59% rename from docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md index 6b531dc604..bbdc0c3bc4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/datetime/{key} HTTP/1.1 +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.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/tables/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md similarity index 62% rename from docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md index 531aa7a31a..b9145a1c33 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/email/{key} HTTP/1.1 +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.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/tables/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md similarity index 63% rename from docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md index b02936fc5a..8d3d6c359f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/enum/{key} HTTP/1.1 +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.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/tables/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md similarity index 63% rename from docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md index 313acb6c20..5e1a67c6a1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/float/{key} HTTP/1.1 +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.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/tables/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md similarity index 62% rename from docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md index a2552e93ff..f45fbf278f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/integer/{key} HTTP/1.1 +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.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/tables/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md similarity index 60% rename from docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md index b3cef978e2..5080aaab25 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/ip/{key} HTTP/1.1 +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.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/tables/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md similarity index 56% rename from docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md index 19fed27fdf..d5d188ced4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/{key}/relationship HTTP/1.1 +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.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/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/tables/update-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md similarity index 60% rename from docs/examples/1.8.x/server-rest/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-rows.md index 249653070c..eb5b77bb31 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows HTTP/1.1 +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows 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/tables/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md similarity index 62% rename from docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md index 7a25ee52e8..eda416a4d9 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/string/{key} HTTP/1.1 +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.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/tables/update.md b/docs/examples/1.8.x/server-rest/examples/grids/update-table.md similarity index 70% rename from docs/examples/1.8.x/server-rest/examples/tables/update.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-table.md index 786a36cf3c..02d68944f9 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-table.md @@ -1,7 +1,7 @@ -PUT /v1/databases/{databaseId}/tables/{tableId} HTTP/1.1 +PUT /v1/databases/{databaseId}/grids/tables/{tableId} 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/tables/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md similarity index 62% rename from docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md index 2097e91d85..4e0796887a 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/columns/url/{key} HTTP/1.1 +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.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/tables/update-row.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md similarity index 67% rename from docs/examples/1.8.x/server-rest/examples/tables/update-row.md rename to docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md index 20c92d746b..c461d7c981 100644 --- a/docs/examples/1.8.x/server-rest/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md @@ -1,7 +1,7 @@ -PATCH /v1/databases/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1 +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.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/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-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/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/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/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-ruby/examples/tables/create-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md index 7df3908513..592f6028aa 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_boolean_column( +result = grids.create_boolean_column( database_id: '', table_id: '', key: '', 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md index 2d65509184..4bc97b94ae 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_datetime_column( +result = grids.create_datetime_column( database_id: '', table_id: '', key: '', 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/grids/create-email-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md index 01f7ad43b5..4a1687d405 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_email_column( +result = grids.create_email_column( database_id: '', table_id: '', key: '', 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/grids/create-enum-column.md similarity index 87% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md index 97fcb589e4..2a9b6de5de 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_enum_column( +result = grids.create_enum_column( database_id: '', table_id: '', key: '', 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/grids/create-float-column.md similarity index 87% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md index 9df32a3f5b..0cd3bee568 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_float_column( +result = grids.create_float_column( database_id: '', table_id: '', key: '', diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md similarity index 88% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-index.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-index.md index 3c8dfdfb6b..7ef4c2c790 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md @@ -8,9 +8,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_index( +result = grids.create_index( database_id: '', table_id: '', key: '', 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/grids/create-integer-column.md similarity index 87% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md index d0c5c78108..ae7c416965 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_integer_column( +result = grids.create_integer_column( database_id: '', table_id: '', key: '', 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/grids/create-ip-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md index 0c97840a27..e407abaee8 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_ip_column( +result = grids.create_ip_column( database_id: '', table_id: '', key: '', 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/grids/create-relationship-column.md similarity index 88% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md index 8f7fb841aa..3aecd5757d 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md @@ -8,9 +8,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_relationship_column( +result = grids.create_relationship_column( database_id: '', table_id: '', related_table_id: '', 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/tables/create-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md similarity index 87% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md index d47cf49e0c..7808c6cfa2 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_string_column( +result = grids.create_string_column( database_id: '', table_id: '', key: '', diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/create.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md similarity index 88% rename from docs/examples/1.8.x/server-ruby/examples/tables/create.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-table.md index 5a255fafac..ef3bc4b5cf 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create( +result = grids.create_table( database_id: '', table_id: '', name: '', 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/grids/create-url-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md index fcfebac7a8..55ff12a1c0 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.create_url_column( +result = grids.create_url_column( database_id: '', table_id: '', key: '', 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/grids/decrement-row-column.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md index e22afcb0ad..fcbc6efedc 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.decrement_row_column( +result = grids.decrement_row_column( database_id: '', table_id: '', row_id: '', diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md similarity index 84% rename from docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md index 245864053f..79cf84f3fd 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.delete_column( +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/tables/delete-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md similarity index 84% rename from docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md index 54bd5455aa..3968cfb675 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.delete_index( +result = grids.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/grids/delete-row.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md index 9841fc2d2f..183f02c5d3 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_session('') # The user session to authenticate with -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.delete_row( +result = grids.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/grids/delete-rows.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md index 7be1e4bc70..560d63b033 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.delete_rows( +result = grids.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/grids/delete-table.md similarity index 84% rename from docs/examples/1.8.x/server-ruby/examples/tables/delete.md rename to docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md index ca607f2b6b..d0c15da17c 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.delete( +result = grids.delete_table( 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/grids/get-column.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/get-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/get-column.md index 1a1469d005..6288772e65 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.get_column( +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/tables/get-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/get-index.md rename to docs/examples/1.8.x/server-ruby/examples/grids/get-index.md index 7d762ce8ae..78a923c0ff 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.get_index( +result = grids.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/grids/get-row.md similarity index 87% rename from docs/examples/1.8.x/server-ruby/examples/tables/get-row.md rename to docs/examples/1.8.x/server-ruby/examples/grids/get-row.md index 4526bb7316..e8dc2cb6b1 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_session('') # The user session to authenticate with -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.get_row( +result = grids.get_row( database_id: '', table_id: '', row_id: '', diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/get.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/get.md rename to docs/examples/1.8.x/server-ruby/examples/grids/get-table.md index 22ba02aebc..bafdfe1140 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/get.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.get( +result = grids.get_table( 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/grids/increment-row-column.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md index c0a91d4b62..d09f72080c 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.increment_row_column( +result = grids.increment_row_column( database_id: '', table_id: '', row_id: '', diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md index 7e851564c2..343775300b 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.list_columns( +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/tables/list-indexes.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md index 0789291071..2229c87249 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.list_indexes( +result = grids.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/grids/list-rows.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md index bc9a0a49f6..40b7be88a7 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_session('') # The user session to authenticate with -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.list_rows( +result = grids.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/grids/list-tables.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/list.md rename to docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md index 7cf987ebb9..69b213d3f3 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/list.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.list( +result = grids.list_tables( 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/grids/update-boolean-column.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md index a09b365cd1..78055c777f 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_boolean_column( +result = grids.update_boolean_column( database_id: '', table_id: '', key: '', 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md similarity index 85% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md index 55e0484b4c..1737c5a020 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_datetime_column( +result = grids.update_datetime_column( database_id: '', table_id: '', key: '', 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/grids/update-email-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md index 285cd6655a..bc1f4cd7b6 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_email_column( +result = grids.update_email_column( database_id: '', table_id: '', key: '', 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/grids/update-enum-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md index 90773ed9e4..5012002e29 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_enum_column( +result = grids.update_enum_column( database_id: '', table_id: '', key: '', 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/grids/update-float-column.md similarity index 87% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md index 0bb992bd3c..e05037f10c 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_float_column( +result = grids.update_float_column( database_id: '', table_id: '', key: '', 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/grids/update-integer-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md index 35f8c471a8..3ec34bd2f2 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_integer_column( +result = grids.update_integer_column( database_id: '', table_id: '', key: '', 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/grids/update-ip-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md index 2ad1840a9d..5394075ae5 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_ip_column( +result = grids.update_ip_column( database_id: '', table_id: '', key: '', 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/grids/update-relationship-column.md similarity index 84% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md index de86fd53d7..2c730048de 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_relationship_column( +result = grids.update_relationship_column( database_id: '', table_id: '', key: '', diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md similarity index 88% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-row.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-row.md index 500927dcf0..57dd5cd381 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_session('') # The user session to authenticate with -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_row( +result = grids.update_row( database_id: '', table_id: '', row_id: '', diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md index 8cee1810be..602670d67f 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_rows( +result = grids.update_rows( database_id: '', table_id: '', data: {}, # 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/grids/update-string-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md index 2240f49555..09de9ba697 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_string_column( +result = grids.update_string_column( database_id: '', table_id: '', key: '', diff --git a/docs/examples/1.8.x/server-ruby/examples/tables/update.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md similarity index 88% rename from docs/examples/1.8.x/server-ruby/examples/tables/update.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-table.md index 003d3d041c..742a0c9829 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update( +result = grids.update_table( database_id: '', table_id: '', name: '', 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/grids/update-url-column.md similarity index 86% rename from docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md index 0947a78a9e..fc3f055708 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md @@ -7,9 +7,9 @@ client = Client.new .set_project('') # Your project ID .set_key('') # Your secret API key -tables = Tables.new(client) +grids = Grids.new(client) -result = tables.update_url_column( +result = grids.update_url_column( database_id: '', table_id: '', key: '', 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-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/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/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 ) 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/grids/create-boolean-column.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md index 1b9627afac..4d0a226eb2 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-boolean-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnBoolean = try await tables.createBooleanColumn( +let columnBoolean = try await grids.createBooleanColumn( databaseId: "", tableId: "", key: "", 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/tables/create-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md index e002fb8042..8271b44c9f 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-datetime-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnDatetime = try await tables.createDatetimeColumn( +let columnDatetime = try await grids.createDatetimeColumn( databaseId: "", tableId: "", key: "", 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/grids/create-email-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md index 338493dbc5..ca99534c78 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-email-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnEmail = try await tables.createEmailColumn( +let columnEmail = try await grids.createEmailColumn( databaseId: "", tableId: "", key: "", 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/grids/create-enum-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md index a6a9fff2c4..3d52e94a96 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-enum-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnEnum = try await tables.createEnumColumn( +let columnEnum = try await grids.createEnumColumn( databaseId: "", tableId: "", key: "", 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/grids/create-float-column.md similarity index 84% rename from docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md index 12e4062454..f0abdc7b9f 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-float-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnFloat = try await tables.createFloatColumn( +let columnFloat = try await grids.createFloatColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create-index.md b/docs/examples/1.8.x/server-swift/examples/grids/create-index.md similarity index 84% rename from docs/examples/1.8.x/server-swift/examples/tables/create-index.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-index.md index 03dea1ac48..2d0c1272b2 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-index.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-index.md @@ -6,9 +6,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnIndex = try await tables.createIndex( +let columnIndex = try await grids.createIndex( databaseId: "", tableId: "", key: "", 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/grids/create-integer-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md index 6c04294025..dca7968bfb 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-integer-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnInteger = try await tables.createIntegerColumn( +let columnInteger = try await grids.createIntegerColumn( databaseId: "", tableId: "", key: "", 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/grids/create-ip-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md index 2cd0b2795f..9517ed960f 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-ip-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnIp = try await tables.createIpColumn( +let columnIp = try await grids.createIpColumn( databaseId: "", tableId: "", key: "", 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/grids/create-relationship-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md index 66b993cf9a..1ead20f97d 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-relationship-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md @@ -6,9 +6,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnRelationship = try await tables.createRelationshipColumn( +let columnRelationship = try await grids.createRelationshipColumn( databaseId: "", tableId: "", relatedTableId: "", diff --git a/docs/examples/1.8.x/client-apple/examples/tables/create-row.md b/docs/examples/1.8.x/server-swift/examples/grids/create-row.md similarity index 69% rename from docs/examples/1.8.x/client-apple/examples/tables/create-row.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-row.md index 533cf2d555..9d042b4034 100644 --- a/docs/examples/1.8.x/client-apple/examples/tables/create-row.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-row.md @@ -2,13 +2,12 @@ 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 tables = Tables(client) +let grids = Grids(client) -let row = try await tables.createRow( +let row = try await grids.createRow( databaseId: "", tableId: "", rowId: "", 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/tables/create-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md index e83ffdf367..74eea86fe4 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-string-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnString = try await tables.createStringColumn( +let columnString = try await grids.createStringColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-swift/examples/tables/create.md b/docs/examples/1.8.x/server-swift/examples/grids/create-table.md similarity index 86% rename from docs/examples/1.8.x/server-swift/examples/tables/create.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-table.md index 0843dfd242..3792c0aee4 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-table.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let table = try await tables.create( +let table = try await grids.createTable( databaseId: "", tableId: "", name: "", 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/grids/create-url-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md index 150b51309d..7ea729aa1a 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/create-url-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnUrl = try await tables.createUrlColumn( +let columnUrl = try await grids.createUrlColumn( databaseId: "", tableId: "", key: "", 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/grids/decrement-row-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md index ef24324780..9445843d71 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/decrement-row-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let row = try await tables.decrementRowColumn( +let row = try await grids.decrementRowColumn( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-swift/examples/tables/delete-column.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md similarity index 80% rename from docs/examples/1.8.x/server-swift/examples/tables/delete-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/delete-column.md index 07f825ddbe..b58a4d0890 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let result = try await tables.deleteColumn( +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/tables/delete-index.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/delete-index.md rename to docs/examples/1.8.x/server-swift/examples/grids/delete-index.md index b6d2e5bfea..d83cd551da 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete-index.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let result = try await tables.deleteIndex( +let result = try await grids.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/grids/delete-row.md similarity index 82% rename from docs/examples/1.8.x/server-swift/examples/tables/delete-row.md rename to docs/examples/1.8.x/server-swift/examples/grids/delete-row.md index 92bc38777e..d2d77234a3 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete-row.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setSession("") // The user session to authenticate with -let tables = Tables(client) +let grids = Grids(client) -let result = try await tables.deleteRow( +let result = try await grids.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/grids/delete-rows.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md rename to docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md index d27fbce85f..6a3f145526 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete-rows.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let rowList = try await tables.deleteRows( +let rowList = try await grids.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/grids/delete-table.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/delete.md rename to docs/examples/1.8.x/server-swift/examples/grids/delete-table.md index aefa1d8cda..8abdfcae2d 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/delete.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let result = try await tables.delete( +let result = try await grids.deleteTable( 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/grids/get-column.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/get-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/get-column.md index 653f79dce7..68c0d3933d 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/get-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let result = try await tables.getColumn( +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/tables/get-index.md b/docs/examples/1.8.x/server-swift/examples/grids/get-index.md similarity index 80% rename from docs/examples/1.8.x/server-swift/examples/tables/get-index.md rename to docs/examples/1.8.x/server-swift/examples/grids/get-index.md index 6835f56aa0..24c3be9e27 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/get-index.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-index.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnIndex = try await tables.getIndex( +let columnIndex = try await grids.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/grids/get-row.md similarity index 84% rename from docs/examples/1.8.x/server-swift/examples/tables/get-row.md rename to docs/examples/1.8.x/server-swift/examples/grids/get-row.md index e2ff10f09a..4d3e53cba6 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/get-row.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-row.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setSession("") // The user session to authenticate with -let tables = Tables(client) +let grids = Grids(client) -let row = try await tables.getRow( +let row = try await grids.getRow( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-swift/examples/tables/get.md b/docs/examples/1.8.x/server-swift/examples/grids/get-table.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/get.md rename to docs/examples/1.8.x/server-swift/examples/grids/get-table.md index 610bf42529..9ad5e0c202 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/get.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-table.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let table = try await tables.get( +let table = try await grids.getTable( 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/grids/increment-row-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md index 6ea883d612..00d9663c22 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/increment-row-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let row = try await tables.incrementRowColumn( +let row = try await grids.incrementRowColumn( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-swift/examples/tables/list-columns.md b/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/list-columns.md rename to docs/examples/1.8.x/server-swift/examples/grids/list-columns.md index 88c86137a4..facf87f9a3 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/list-columns.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnList = try await tables.listColumns( +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/tables/list-indexes.md b/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md similarity index 80% rename from docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md rename to docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md index 2ea8e99eca..c31f162d5d 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/list-indexes.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnIndexList = try await tables.listIndexes( +let columnIndexList = try await grids.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/grids/list-rows.md similarity index 82% rename from docs/examples/1.8.x/server-swift/examples/tables/list-rows.md rename to docs/examples/1.8.x/server-swift/examples/grids/list-rows.md index ca2e5b0d4b..01dd6637fc 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/list-rows.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setSession("") // The user session to authenticate with -let tables = Tables(client) +let grids = Grids(client) -let rowList = try await tables.listRows( +let rowList = try await grids.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/grids/list-tables.md similarity index 82% rename from docs/examples/1.8.x/server-swift/examples/tables/list.md rename to docs/examples/1.8.x/server-swift/examples/grids/list-tables.md index e135b50289..af8cdd1264 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/list.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let tableList = try await tables.list( +let tableList = try await grids.listTables( 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/grids/update-boolean-column.md similarity index 81% rename from docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md index e0d1ea2f9f..8994b79e7c 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-boolean-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnBoolean = try await tables.updateBooleanColumn( +let columnBoolean = try await grids.updateBooleanColumn( databaseId: "", tableId: "", key: "", 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/tables/update-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md similarity index 80% rename from docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md index f09e27920b..7a59cd1ef1 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-datetime-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnDatetime = try await tables.updateDatetimeColumn( +let columnDatetime = try await grids.updateDatetimeColumn( databaseId: "", tableId: "", key: "", 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/grids/update-email-column.md similarity index 82% rename from docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md index f7b8cc4ede..3704401fa5 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-email-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnEmail = try await tables.updateEmailColumn( +let columnEmail = try await grids.updateEmailColumn( databaseId: "", tableId: "", key: "", 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/grids/update-enum-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md index 776da72e59..946804a88c 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-enum-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnEnum = try await tables.updateEnumColumn( +let columnEnum = try await grids.updateEnumColumn( databaseId: "", tableId: "", key: "", 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/grids/update-float-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md index d6cd34c4b5..10f0babb2c 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-float-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnFloat = try await tables.updateFloatColumn( +let columnFloat = try await grids.updateFloatColumn( databaseId: "", tableId: "", key: "", 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/grids/update-integer-column.md similarity index 82% rename from docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md index e1265cedbf..60e145e3b0 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-integer-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnInteger = try await tables.updateIntegerColumn( +let columnInteger = try await grids.updateIntegerColumn( databaseId: "", tableId: "", key: "", 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/grids/update-ip-column.md similarity index 82% rename from docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md index 4f3538bb7a..17f490d644 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-ip-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnIp = try await tables.updateIpColumn( +let columnIp = try await grids.updateIpColumn( databaseId: "", tableId: "", key: "", 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/grids/update-relationship-column.md similarity index 80% rename from docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md index 74bfd62750..994feefa92 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-relationship-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md @@ -6,9 +6,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnRelationship = try await tables.updateRelationshipColumn( +let columnRelationship = try await grids.updateRelationshipColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-row.md b/docs/examples/1.8.x/server-swift/examples/grids/update-row.md similarity index 85% rename from docs/examples/1.8.x/server-swift/examples/tables/update-row.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-row.md index 7fa81f6b58..3e4408f700 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-row.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-row.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setSession("") // The user session to authenticate with -let tables = Tables(client) +let grids = Grids(client) -let row = try await tables.updateRow( +let row = try await grids.updateRow( databaseId: "", tableId: "", rowId: "", diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/update-rows.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-rows.md index d7cd0697da..c57463cc8a 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-rows.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let rowList = try await tables.updateRows( +let rowList = try await grids.updateRows( databaseId: "", tableId: "", data: [:], // 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/grids/update-string-column.md similarity index 82% rename from docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md index ba14d9a96a..e9e2d71c62 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-string-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnString = try await tables.updateStringColumn( +let columnString = try await grids.updateStringColumn( databaseId: "", tableId: "", key: "", diff --git a/docs/examples/1.8.x/server-swift/examples/tables/update.md b/docs/examples/1.8.x/server-swift/examples/grids/update-table.md similarity index 86% rename from docs/examples/1.8.x/server-swift/examples/tables/update.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-table.md index c9840a0a51..8b3fa5e12e 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-table.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let table = try await tables.update( +let table = try await grids.updateTable( databaseId: "", tableId: "", name: "", 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/grids/update-url-column.md similarity index 83% rename from docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md rename to docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md index 19015e4c88..b72666e240 100644 --- a/docs/examples/1.8.x/server-swift/examples/tables/update-url-column.md +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md @@ -5,9 +5,9 @@ let client = Client() .setProject("") // Your project ID .setKey("") // Your secret API key -let tables = Tables(client) +let grids = Grids(client) -let columnUrl = try await tables.updateUrlColumn( +let columnUrl = try await grids.updateUrlColumn( databaseId: "", tableId: "", key: "", 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: [] +) + 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/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/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/docs/sdks/android/CHANGELOG.md b/docs/sdks/android/CHANGELOG.md index 8406e637b0..38d0c4be2d 100644 --- a/docs/sdks/android/CHANGELOG.md +++ b/docs/sdks/android/CHANGELOG.md @@ -1,8 +1,23 @@ # Change Log +## 8.2.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `gif` support to `ImageFormat` enum +* Add `sequence` support to `Document` model + +## 8.1.0 + +* Add `devKeys` support to `Client` service +* Add `upsertDocument` support to `Databases` service + ## 8.0.0 * Add `token` param to `getFilePreview` and `getFileView` for File tokens usage * Update default `quality` for `getFilePreview` from 0 to -1 * Remove `Gif` from ImageFormat enum -* Remove `search` param from `listExecutions` method \ No newline at end of file +* Remove `search` param from `listExecutions` method + +## 7.0.1 + +* Fix requests failing by removing `Content-Type` header from `GET` and `HEAD` requests diff --git a/docs/sdks/android/GETTING_STARTED.md b/docs/sdks/android/GETTING_STARTED.md index de16f2cc57..724cfb4654 100644 --- a/docs/sdks/android/GETTING_STARTED.md +++ b/docs/sdks/android/GETTING_STARTED.md @@ -18,7 +18,7 @@ In order to capture the Appwrite OAuth callback url, the following activity need - + @@ -34,8 +34,8 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setEndpoint("https:///v1") // Your API Endpoint + .setProject("") // Your project ID .setSelfSigned(true) // Remove in production ``` @@ -66,8 +66,8 @@ import io.appwrite.services.Account import io.appwrite.ID val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setEndpoint("https:///v1") // Your API Endpoint + .setProject("") // Your project ID .setSelfSigned(true) // Remove in production val account = Account(client) @@ -79,7 +79,134 @@ val user = account.create( ) ``` +### Type Safety with Models + +The Appwrite Android SDK provides type safety when working with database documents through generic methods. Methods like `listDocuments`, `getDocument`, and others accept a `nestedType` parameter that allows you to specify your custom model type for full type safety. + +**Kotlin:** +```kotlin +data class Book( + val name: String, + val author: String, + val releaseYear: String? = null, + val category: String? = null, + val genre: List? = null, + val isCheckedOut: Boolean +) + +val databases = Databases(client) + +try { + val documents = databases.listDocuments( + databaseId = "your-database-id", + collectionId = "your-collection-id", + nestedType = Book::class.java // Pass in your custom model type + ) + + for (book in documents.documents) { + Log.d("Appwrite", "Book: ${book.name} by ${book.author}") // Now you have full type safety + } +} catch (e: AppwriteException) { + Log.e("Appwrite", e.message ?: "Unknown error") +} +``` + +**Java:** +```java +public class Book { + private String name; + private String author; + private String releaseYear; + private String category; + private List genre; + private boolean isCheckedOut; + + // Constructor + public Book(String name, String author, boolean isCheckedOut) { + this.name = name; + this.author = author; + this.isCheckedOut = isCheckedOut; + } + + // Getters and setters + public String getName() { return name; } + public void setName(String name) { this.name = name; } + + public String getAuthor() { return author; } + public void setAuthor(String author) { this.author = author; } + + public String getReleaseYear() { return releaseYear; } + public void setReleaseYear(String releaseYear) { this.releaseYear = releaseYear; } + + public String getCategory() { return category; } + public void setCategory(String category) { this.category = category; } + + public List getGenre() { return genre; } + public void setGenre(List genre) { this.genre = genre; } + + public boolean isCheckedOut() { return isCheckedOut; } + public void setCheckedOut(boolean checkedOut) { isCheckedOut = checkedOut; } +} + +Databases databases = new Databases(client); + +try { + DocumentList documents = databases.listDocuments( + "your-database-id", + "your-collection-id", + Book.class // Pass in your custom model type + ); + + for (Book book : documents.getDocuments()) { + Log.d("Appwrite", "Book: " + book.getName() + " by " + book.getAuthor()); // Now you have full type safety + } +} catch (AppwriteException e) { + Log.e("Appwrite", e.getMessage() != null ? e.getMessage() : "Unknown error"); +} +``` + +**Tip**: You can use the `appwrite types` command to automatically generate model definitions based on your Appwrite database schema. Learn more about [type generation](https://appwrite.io/docs/products/databases/type-generation). + +### Working with Model Methods + +All Appwrite models come with built-in methods for data conversion and manipulation: + +**`toMap()`** - Converts a model instance to a Map format, useful for debugging or manual data manipulation: +```kotlin +val account = Account(client) +val user = account.get() +val userMap = user.toMap() +Log.d("Appwrite", userMap.toString()) // Prints all user properties as a Map +``` + +**`from(map:, nestedType:)`** - Creates a model instance from a Map, useful when working with raw data: +```kotlin +val userData: Map = mapOf( + "\$id" to "123", + "name" to "John", + "email" to "john@example.com" +) +val user = User.from(userData, User::class.java) +``` + +**JSON Serialization** - Models can be easily converted to/from JSON using Gson (which the SDK uses internally): +```kotlin +import com.google.gson.Gson + +val account = Account(client) +val user = account.get() + +// Convert to JSON +val gson = Gson() +val jsonString = gson.toJson(user) +Log.d("Appwrite", "User JSON: $jsonString") + +// Convert from JSON +val userFromJson = gson.fromJson(jsonString, User::class.java) +``` + ### Error Handling + The Appwrite Android SDK raises an `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example. ```kotlin diff --git a/docs/sdks/apple/CHANGELOG.md b/docs/sdks/apple/CHANGELOG.md index bc30d56a4b..f62eb708f1 100644 --- a/docs/sdks/apple/CHANGELOG.md +++ b/docs/sdks/apple/CHANGELOG.md @@ -1,8 +1,36 @@ # Change Log +## 10.2.0 + +* Update sdk to use swift-native doc comments instead of jsdoc styled comments as per [Swift Documentation Comments](https://github.com/swiftlang/swift/blob/main/docs/DocumentationComments.md) +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `gif` support to `ImageFormat` enum +* Remove `Content-Type`, `Content-Length` headers and body from websocket requests + +## 10.1.1 + +* Adds warnings to bulk operation methods +* Fix select Queries by updating internal attributes like id, createdAt, updatedAt etc. to be optional in Document model. +* Fix querying datetime values by properly encoding URLs + +## 10.1.0 + +* Add `devKeys` support to `Client` service +* Add `upsertDocument` support to `Databases` service + ## 10.0.0 * Add `` to doc examples due to the new multi region endpoints * Add `token` param to `getFilePreview` and `getFileView` for File tokens usage * Remove `search` param from `listExecutions` method -* Remove `Gif` from ImageFormat enum \ No newline at end of file +* Remove `Gif` from ImageFormat enum + +## 9.0.1 + +* Fix requests failing by removing `Content-Type` header from `GET` and `HEAD` requests + +## 9.0.0 + +* Remove redundant titles from method descriptions. +* Add `codable` models +* Ensure response attribute in `AppwriteException` is always string diff --git a/docs/sdks/apple/GETTING_STARTED.md b/docs/sdks/apple/GETTING_STARTED.md index 6defbc5f00..63c216e08d 100644 --- a/docs/sdks/apple/GETTING_STARTED.md +++ b/docs/sdks/apple/GETTING_STARTED.md @@ -113,6 +113,63 @@ func main() { } ``` +### Type Safety with Models + +The Appwrite Apple SDK provides type safety when working with database documents through generic methods. Methods like `listDocuments`, `getDocument`, and others accept a `nestedType` parameter that allows you to specify your custom model type for full type safety. + +```swift +struct Book: Codable { + let name: String + let author: String + let releaseYear: String? + let category: String? + let genre: [String]? + let isCheckedOut: Bool +} + +let databases = Databases(client) + +do { + let documents = try await databases.listDocuments( + databaseId: "your-database-id", + collectionId: "your-collection-id", + nestedType: Book.self // Pass in your custom model type + ) + + for book in documents.documents { + print("Book: \(book.name) by \(book.author)") // Now you have full type safety + } +} catch { + print(error.localizedDescription) +} +``` + +**Tip**: You can use the `appwrite types` command to automatically generate model definitions based on your Appwrite database schema. Learn more about [type generation](https://appwrite.io/docs/products/databases/type-generation). + +### Working with Model Methods + +All Appwrite models come with built-in methods for data conversion and manipulation: + +**`toMap()`** - Converts a model instance to a dictionary format, useful for debugging or manual data manipulation: +```swift +let user = try await account.get() +let userMap = user.toMap() +print(userMap) // Prints all user properties as a dictionary +``` + +**`from(map:)`** - Creates a model instance from a dictionary, useful when working with raw data: +```swift +let userData: [String: Any] = ["$id": "123", "name": "John", "email": "john@example.com"] +let user = User.from(map: userData) +``` + +**`encode(to:)`** - Encodes the model to JSON format (part of Swift's Codable protocol), useful for serialization: +```swift +let user = try await account.get() +let jsonData = try JSONEncoder().encode(user) +let jsonString = String(data: jsonData, encoding: .utf8) +``` + ### Error Handling When an error occurs, the Appwrite Apple SDK throws an `AppwriteError` object with `message` and `code` properties. You can handle any errors in a catch block and present the `message` or `localizedDescription` to the user or handle it yourself based on the provided error information. Below is an example. diff --git a/docs/sdks/cli/CHANGELOG.md b/docs/sdks/cli/CHANGELOG.md index e32614cad0..8964d059a9 100644 --- a/docs/sdks/cli/CHANGELOG.md +++ b/docs/sdks/cli/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 8.3.0 + +* **Feat:** Add support for `appwrite.config.json` file + * All new projects will be initialized with this configuration file + * Resolves bundler conflicts (e.g., Vite) that incorrectly interpret `.json` files as library imports +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Type generation fixes: + * Fix relationships using the relatedCollection's id instead of name + * Update auto generated comment to show relative path instead of absolute path + +> **Note:** The existing `appwrite.json` file remains fully supported for backward compatibility + ## 8.2.2 * Fix object comparison logic when pushing settings diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index 5b77784063..1972a122e3 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 16.2.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `encrypt` support to string attribute model +* Add `sequence` support to `Document` model + ## 16.1.0 * Add `gif` support to `ImageFormat` enum diff --git a/docs/sdks/dart/EXAMPLES.md b/docs/sdks/dart/EXAMPLES.md deleted file mode 100644 index fc2c6d0996..0000000000 --- a/docs/sdks/dart/EXAMPLES.md +++ /dev/null @@ -1,62 +0,0 @@ -# Examples - -Init your Appwrite client: - -```dart -Client client = Client(); - -client - .setEndpoint('https://localhost/v1') // Your Appwrite Endpoint - .setProject('5e8cf4f46b5e8') // Your project ID - .setSelfSigned() // Remove in production -; -``` - -Create a new user: - -```dart -Users users = Users(client); - -User result = await users.create( - userId: ID.unique(), - email: "email@example.com", - phone: "+123456789", - password: "password", - name: "Walter O'Brien" -); -``` - -Fetch user profile: - -```dart -Users users = Users(client); - -User profile = await users.get( - userId: '[USER_ID]', -); -``` - -Upload File: - -```dart -Storage storage = Storage(client); - -InputFile file = InputFile(path: './path-to-file/image.jpg', filename: 'image.jpg'); - -storage.createFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID - file: file, - permissions: [ - Permission.read(Role.any()), - ], -) -.then((response) { - print(response); // File uploaded! -}) -.catchError((error) { - print(error.response); -}); -``` - -All examples and API features are available at the [official Appwrite docs](https://appwrite.io/docs) diff --git a/docs/sdks/deno/CHANGELOG.md b/docs/sdks/deno/CHANGELOG.md index e46648db82..893f49d511 100644 --- a/docs/sdks/deno/CHANGELOG.md +++ b/docs/sdks/deno/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 15.1.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `gif` support to `ImageFormat` enum +* Add `dart38` and `flutter332` support to runtime models +* Add `encrypt` support to `StringAttribute` model +* Add `sequence` support to `Document` model +* Add `upsertDocument` support to `Databases` service + ## 15.0.0 * Add `` to doc examples due to the new multi region endpoints @@ -10,4 +19,4 @@ * Updates enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329 * Add `token` param to `getFilePreview` and `getFileView` for File tokens usage * Add `queries` and `search` params to `listMemberships` method -* Removes `search` param from `listExecutions` method \ No newline at end of file +* Removes `search` param from `listExecutions` method diff --git a/docs/sdks/deno/GETTING_STARTED.md b/docs/sdks/deno/GETTING_STARTED.md index 22ea80aa84..5046d61c74 100644 --- a/docs/sdks/deno/GETTING_STARTED.md +++ b/docs/sdks/deno/GETTING_STARTED.md @@ -1,6 +1,7 @@ ## Getting Started ### Init your SDK + Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section. ```typescript @@ -26,6 +27,7 @@ console.log(user); ``` ### Full Example + ```typescript import * as sdk from "https://deno.land/x/appwrite/mod.ts"; @@ -44,6 +46,7 @@ console.log(user); ``` ### Error Handling + The Appwrite Deno SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example. ```typescript @@ -57,6 +60,7 @@ try { ``` ### Learn more + You can use the following resources to learn more and get help - 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server) - 📜 [Appwrite Docs](https://appwrite.io/docs) diff --git a/docs/sdks/dotnet/CHANGELOG.md b/docs/sdks/dotnet/CHANGELOG.md index 43c2eb6520..935bd6c8de 100644 --- a/docs/sdks/dotnet/CHANGELOG.md +++ b/docs/sdks/dotnet/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 0.14.1 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `encrypt` support to `StringAttribute` model +* Add `sequence` support to `Document` model + ## 0.14.0 * Refactor from Newtonsoft.Json to System.Text.Json for serialization/deserialization diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index e94f5d0abf..9a291e24b2 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 17.1.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `gif` support to `ImageFormat` enum +* Add `sequence` support to `Document` model + ## 17.0.2 * Add `gif` support to `ImageFormat` enum diff --git a/docs/sdks/go/CHANGELOG.md b/docs/sdks/go/CHANGELOG.md index fa4d35e687..418c7db5e5 100644 --- a/docs/sdks/go/CHANGELOG.md +++ b/docs/sdks/go/CHANGELOG.md @@ -1 +1,39 @@ -# Change Log \ No newline at end of file +# Change Log + +## 0.9.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `upsertDocument` support to `Databases` service +* Update doc examples to use correct syntax + +## 0.8.0 + +* Add `` to doc examples due to the new multi region endpoints +* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc. +* Add doc examples, class and methods for new `Sites` service +* Add doc examples, class and methods for new `Tokens` service +* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType` +* Update enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329 +* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage +* Add `queries` and `search` params to `listMemberships` method +* Remove `search` param from `listExecutions` method + +## 0.7.0 + +* Version skipped + +## 0.6.0 + +* Add bulk API methods: `createDocuments`, `deleteDocuments` etc. + +## 0.5.0 + +* Fix requests failing by removing `Content-Type` header from `GET` and `HEAD` requests + +## 0.4.0 + +* Fix pong response and chunked upload + +## 0.3.0 + +* Add new push message parameters diff --git a/docs/sdks/java/CHANGELOG.md b/docs/sdks/java/CHANGELOG.md deleted file mode 100644 index fa4d35e687..0000000000 --- a/docs/sdks/java/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Change Log \ No newline at end of file diff --git a/docs/sdks/kotlin/CHANGELOG.md b/docs/sdks/kotlin/CHANGELOG.md index fa4d35e687..c7194d5391 100644 --- a/docs/sdks/kotlin/CHANGELOG.md +++ b/docs/sdks/kotlin/CHANGELOG.md @@ -1 +1,29 @@ -# Change Log \ No newline at end of file +# Change Log + +## 9.1.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `dart38` and `flutter332` support to runtime models +* Add `gif` support to `ImageFormat` enum +* Add `encrypt` support to `StringAttribute` model +* Add `sequence` support to `Document` model + +## 9.0.0 + +* Add `` to doc examples due to the new multi region endpoints +* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc. +* Add doc examples, class and methods for new `Sites` service +* Add doc examples, class and methods for new `Tokens` service +* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType` +* Update enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329 +* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage +* Add `queries` and `search` params to `listMemberships` method +* Remove `search` param from `listExecutions` method + +## 8.0.0 + +* Fix requests failing by removing `Content-Type` header from `GET` and `HEAD` requests + +## 7.0.0 + +* Fix pong response & chunked upload diff --git a/docs/sdks/kotlin/GETTING_STARTED.md b/docs/sdks/kotlin/GETTING_STARTED.md index 5b5ee5f050..2a36a9deb7 100644 --- a/docs/sdks/kotlin/GETTING_STARTED.md +++ b/docs/sdks/kotlin/GETTING_STARTED.md @@ -57,6 +57,132 @@ suspend fun main() { } ``` +### Type Safety with Models + +The Appwrite Kotlin SDK provides type safety when working with database documents through generic methods. Methods like `listDocuments`, `getDocument`, and others accept a `nestedType` parameter that allows you to specify your custom model type for full type safety. + +**Kotlin:** +```kotlin +data class Book( + val name: String, + val author: String, + val releaseYear: String? = null, + val category: String? = null, + val genre: List? = null, + val isCheckedOut: Boolean +) + +val databases = Databases(client) + +try { + val documents = databases.listDocuments( + databaseId = "your-database-id", + collectionId = "your-collection-id", + nestedType = Book::class.java // Pass in your custom model type + ) + + for (book in documents.documents) { + Log.d("Appwrite", "Book: ${book.name} by ${book.author}") // Now you have full type safety + } +} catch (e: AppwriteException) { + Log.e("Appwrite", e.message ?: "Unknown error") +} +``` + +**Java:** +```java +public class Book { + private String name; + private String author; + private String releaseYear; + private String category; + private List genre; + private boolean isCheckedOut; + + // Constructor + public Book(String name, String author, boolean isCheckedOut) { + this.name = name; + this.author = author; + this.isCheckedOut = isCheckedOut; + } + + // Getters and setters + public String getName() { return name; } + public void setName(String name) { this.name = name; } + + public String getAuthor() { return author; } + public void setAuthor(String author) { this.author = author; } + + public String getReleaseYear() { return releaseYear; } + public void setReleaseYear(String releaseYear) { this.releaseYear = releaseYear; } + + public String getCategory() { return category; } + public void setCategory(String category) { this.category = category; } + + public List getGenre() { return genre; } + public void setGenre(List genre) { this.genre = genre; } + + public boolean isCheckedOut() { return isCheckedOut; } + public void setCheckedOut(boolean checkedOut) { isCheckedOut = checkedOut; } +} + +Databases databases = new Databases(client); + +try { + DocumentList documents = databases.listDocuments( + "your-database-id", + "your-collection-id", + Book.class // Pass in your custom model type + ); + + for (Book book : documents.getDocuments()) { + Log.d("Appwrite", "Book: " + book.getName() + " by " + book.getAuthor()); // Now you have full type safety + } +} catch (AppwriteException e) { + Log.e("Appwrite", e.getMessage() != null ? e.getMessage() : "Unknown error"); +} +``` + +**Tip**: You can use the `appwrite types` command to automatically generate model definitions based on your Appwrite database schema. Learn more about [type generation](https://appwrite.io/docs/products/databases/type-generation). + +### Working with Model Methods + +All Appwrite models come with built-in methods for data conversion and manipulation: + +**`toMap()`** - Converts a model instance to a Map format, useful for debugging or manual data manipulation: +```kotlin +val account = Account(client) +val user = account.get() +val userMap = user.toMap() +Log.d("Appwrite", userMap.toString()) // Prints all user properties as a Map +``` + +**`from(map:, nestedType:)`** - Creates a model instance from a Map, useful when working with raw data: +```kotlin +val userData: Map = mapOf( + "\$id" to "123", + "name" to "John", + "email" to "john@example.com" +) +val user = User.from(userData, User::class.java) +``` + +**JSON Serialization** - Models can be easily converted to/from JSON using Gson (which the SDK uses internally): +```kotlin +import com.google.gson.Gson + +val account = Account(client) +val user = account.get() + +// Convert to JSON +val gson = Gson() +val jsonString = gson.toJson(user) +Log.d("Appwrite", "User JSON: $jsonString") + +// Convert from JSON +val userFromJson = gson.fromJson(jsonString, User::class.java) +``` + ### Error Handling The Appwrite Kotlin SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example. diff --git a/docs/sdks/nodejs/CHANGELOG.md b/docs/sdks/nodejs/CHANGELOG.md index d7261b67d5..7d6926dd1d 100644 --- a/docs/sdks/nodejs/CHANGELOG.md +++ b/docs/sdks/nodejs/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 17.2.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Fix autocompletion not working for `Document` model even when generic is passed + ## 17.1.0 * Add `upsertDocument` method diff --git a/docs/sdks/nodejs/GETTING_STARTED.md b/docs/sdks/nodejs/GETTING_STARTED.md index e98400f846..b54f85c51d 100644 --- a/docs/sdks/nodejs/GETTING_STARTED.md +++ b/docs/sdks/nodejs/GETTING_STARTED.md @@ -1,6 +1,7 @@ ## Getting Started ### Init your SDK + Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key project API keys section. ```js @@ -17,6 +18,7 @@ client ``` ### Make Your First Request + Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section. ```js @@ -54,7 +56,70 @@ promise.then(function (response) { }); ``` +### Type Safety with Models + +The Appwrite Node SDK provides type safety when working with database documents through generic methods. Methods like `listDocuments`, `getDocument`, and others accept a generic type parameter that allows you to specify your custom model type for full type safety. + +**TypeScript:** +```typescript +interface Book { + name: string; + author: string; + releaseYear?: string; + category?: string; + genre?: string[]; + isCheckedOut: boolean; +} + +const databases = new Databases(client); + +try { + const documents = await databases.listDocuments( + 'your-database-id', + 'your-collection-id' + ); + + documents.documents.forEach(book => { + console.log(`Book: ${book.name} by ${book.author}`); // Now you have full type safety + }); +} catch (error) { + console.error('Appwrite error:', error); +} +``` + +**JavaScript (with JSDoc for type hints):** +```javascript +/** + * @typedef {Object} Book + * @property {string} name + * @property {string} author + * @property {string} [releaseYear] + * @property {string} [category] + * @property {string[]} [genre] + * @property {boolean} isCheckedOut + */ + +const databases = new Databases(client); + +try { + /** @type {Models.DocumentList} */ + const documents = await databases.listDocuments( + 'your-database-id', + 'your-collection-id' + ); + + documents.documents.forEach(book => { + console.log(`Book: ${book.name} by ${book.author}`); // Type hints available in IDE + }); +} catch (error) { + console.error('Appwrite error:', error); +} +``` + +**Tip**: You can use the `appwrite types` command to automatically generate TypeScript interfaces based on your Appwrite database schema. Learn more about [type generation](https://appwrite.io/docs/products/databases/type-generation). + ### Error Handling + The Appwrite Node SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example. ```js diff --git a/docs/sdks/php/CHANGELOG.md b/docs/sdks/php/CHANGELOG.md index fa4d35e687..d5a323c4cb 100644 --- a/docs/sdks/php/CHANGELOG.md +++ b/docs/sdks/php/CHANGELOG.md @@ -1 +1,9 @@ -# Change Log \ No newline at end of file +# Change Log + +## 15.1.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `dart38` and `flutter332` support to runtime models +* Add `gif` support to `ImageFormat` enum +* Add `upsertDocument` support to `Databases` service +* Add `sequence` support to `Document` model diff --git a/docs/sdks/python/CHANGELOG.md b/docs/sdks/python/CHANGELOG.md index fa4d35e687..ff63134a20 100644 --- a/docs/sdks/python/CHANGELOG.md +++ b/docs/sdks/python/CHANGELOG.md @@ -1 +1,28 @@ -# Change Log \ No newline at end of file +# Change Log + +## 11.1.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `dart38` and `flutter332` support to runtime models +* Add `gif` support to `ImageFormat` enum +* Add `upsertDocument` support to `Databases` service + +## 11.0.0 + +* Add `` to doc examples due to the new multi region endpoints +* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc. +* Add doc examples, class and methods for new `Sites` service +* Add doc examples, class and methods for new `Tokens` service +* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType` +* Update enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329 +* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage +* Add `queries` and `search` params to `listMemberships` method +* Remove `search` param from `listExecutions` method + +## 10.0.0 + +* Fix requests failing by removing `Content-Type` header from `GET` and `HEAD` requests + +## 9.0.3 + +* Update sdk to use Numpy-style docstrings diff --git a/docs/sdks/react-native/CHANGELOG.md b/docs/sdks/react-native/CHANGELOG.md index 6ab2975bf2..eda0bca26e 100644 --- a/docs/sdks/react-native/CHANGELOG.md +++ b/docs/sdks/react-native/CHANGELOG.md @@ -1,5 +1,11 @@ # Change log +## 0.11.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `sequence` support to `Document` model +* Fix autocompletion not working for `Document` model even when generic is passed + ## 0.10.1 * Fix URL based methods like `getFileViewURL`, `getFilePreviewURL` etc. by adding the missing `projectId` to searchParams @@ -28,4 +34,4 @@ ## 0.7.4 * Upgrade dependencies to resolve PlatformConstants error with Expo 53 -* Update doc examples to use new multi-region endpoint \ No newline at end of file +* Update doc examples to use new multi-region endpoint diff --git a/docs/sdks/react-native/GETTING_STARTED.md b/docs/sdks/react-native/GETTING_STARTED.md index 9d07eec54a..a5c6f57c46 100644 --- a/docs/sdks/react-native/GETTING_STARTED.md +++ b/docs/sdks/react-native/GETTING_STARTED.md @@ -1,12 +1,13 @@ - ## Getting Started ### Add your Platform + If this is your first time using Appwrite, create an account and create your first project. Then, under **Add a platform**, add a **Android app** or a **Apple app**. You can skip optional steps. #### iOS steps + Add your app **name** and **Bundle ID**. You can find your **Bundle Identifier** in the **General** tab for your app's primary target in XCode. For Expo projects you can set or find it on **app.json** file at your project's root directory. #### Android steps @@ -24,6 +25,7 @@ import 'react-native-url-polyfill/auto' > `cd ios && pod install && cd ..` ### Init your SDK + Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page. ```js @@ -39,6 +41,7 @@ client ``` ### Make Your First Request + Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section. ```js @@ -55,6 +58,7 @@ account.create(ID.unique(), 'me@example.com', 'password', 'Jane Doe') ``` ### Full Example + ```js import { Client, Account } from 'react-native-appwrite'; // Init your React Native SDK @@ -77,9 +81,85 @@ account.create(ID.unique(), 'me@example.com', 'password', 'Jane Doe') }); ``` +### Type Safety with Models + +The Appwrite React Native SDK provides type safety when working with database documents through generic methods. Methods like `listDocuments`, `getDocument`, and others accept a generic type parameter that allows you to specify your custom model type for full type safety. + +**TypeScript:** +```typescript +interface Book { + name: string; + author: string; + releaseYear?: string; + category?: string; + genre?: string[]; + isCheckedOut: boolean; +} + +const databases = new Databases(client); + +try { + const documents = await databases.listDocuments( + 'your-database-id', + 'your-collection-id' + ); + + documents.documents.forEach(book => { + console.log(`Book: ${book.name} by ${book.author}`); // Now you have full type safety + }); +} catch (error) { + console.error('Appwrite error:', error); +} +``` + +**JavaScript (with JSDoc for type hints):** +```javascript +/** + * @typedef {Object} Book + * @property {string} name + * @property {string} author + * @property {string} [releaseYear] + * @property {string} [category] + * @property {string[]} [genre] + * @property {boolean} isCheckedOut + */ + +const databases = new Databases(client); + +try { + /** @type {Models.DocumentList} */ + const documents = await databases.listDocuments( + 'your-database-id', + 'your-collection-id' + ); + + documents.documents.forEach(book => { + console.log(`Book: ${book.name} by ${book.author}`); // Type hints available in IDE + }); +} catch (error) { + console.error('Appwrite error:', error); +} +``` + +**Tip**: You can use the `appwrite types` command to automatically generate TypeScript interfaces based on your Appwrite database schema. Learn more about [type generation](https://appwrite.io/docs/products/databases/type-generation). + +### Error Handling + +The Appwrite React Native SDK raises an `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching the exception and present the `message` to the user or handle it yourself based on the provided error information. Below is an example. + +```javascript +try { + const user = await account.create(ID.unique(), "email@example.com", "password", "Walter O'Brien"); + console.log('User created:', user); +} catch (error) { + console.error('Appwrite error:', error.message); +} +``` + ### Learn more + You can use the following resources to learn more and get help - 🚀 [Getting Started Tutorial](https://appwrite.io/docs/quick-starts/react-native) - 📜 [Appwrite Docs](https://appwrite.io/docs) - 💬 [Discord Community](https://appwrite.io/discord) -- 🚂 [Appwrite React Native Playground](https://github.com/appwrite/playground-for-react-native) \ No newline at end of file +- 🚂 [Appwrite React Native Playground](https://github.com/appwrite/playground-for-react-native) diff --git a/docs/sdks/ruby/CHANGELOG.md b/docs/sdks/ruby/CHANGELOG.md index fa4d35e687..1f2e10beea 100644 --- a/docs/sdks/ruby/CHANGELOG.md +++ b/docs/sdks/ruby/CHANGELOG.md @@ -1 +1,30 @@ -# Change Log \ No newline at end of file +# Change Log + +## 16.1.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `dart38` and `flutter332` support to runtime models +* Add `gif` support to `ImageFormat` enum +* Add `encrypt` support to `StringAttribute` model +* Add `sequence` support to `Document` model +* Add `upsertDocument` support to `Databases` service + +## 16.0.0 + +* Add `` to doc examples due to the new multi region endpoints +* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc. +* Add doc examples, class and methods for new `Sites` service +* Add doc examples, class and methods for new `Tokens` service +* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType` +* Update enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329 +* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage +* Add `queries` and `search` params to `listMemberships` method +* Remove `search` param from `listExecutions` method + +## 15.0.0 + +* Fix requests failing by removing `Content-Type` header from `GET` and `HEAD` requests + +## 14.0.0 + +* Fix pong response & chunked upload diff --git a/docs/sdks/swift/CHANGELOG.md b/docs/sdks/swift/CHANGELOG.md index fa4d35e687..6cb1cca595 100644 --- a/docs/sdks/swift/CHANGELOG.md +++ b/docs/sdks/swift/CHANGELOG.md @@ -1 +1,45 @@ -# Change Log \ No newline at end of file +# Change Log + +## 10.2.0 + +* Update sdk to use swift-native doc comments instead of jsdoc styled comments as per [Swift Documentation Comments](https://github.com/swiftlang/swift/blob/main/docs/DocumentationComments.md) +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `gif` support to `ImageFormat` enum +* Add `sequence` support to `Document` model +* Add `dart38` and `flutter332` support to runtime models + +## 10.1.0 + +* Adds `upsertDocument` method +* Adds warnings to bulk operation methods +* Adds the new `encrypt` attribute +* Adds runtimes: `flutter332` and `dart38` +* Fix `select` Queries by updating internal attributes like `id`, `createdAt`, `updatedAt` etc. to be optional in `Document` model. +* Fix `listCollection` errors by updating `attributes` typing +* Fix querying datetime values by properly encoding URLs + +## 10.0.0 + +* Add `` to doc examples due to the new multi region endpoints +* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc. +* Add doc examples, class and methods for new `Sites` service +* Add doc examples, class and methods for new `Tokens` service +* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType` +* Update enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329 +* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage +* Add `queries` and `search` params to `listMemberships` method +* Remove `search` param from `listExecutions` method + +## 9.0.0 + +* Fix requests failing by removing `Content-Type` header from `GET` and `HEAD` requests + +## 8.0.0 + +* Remove redundant titles from method descriptions. +* Add `codable` models +* Ensure response attribute in `AppwriteException` is always string + +## 7.0.0 + +* Fix pong response & chunked upload diff --git a/docs/sdks/swift/GETTING_STARTED.md b/docs/sdks/swift/GETTING_STARTED.md index 49aa51e9b2..251ea371d2 100644 --- a/docs/sdks/swift/GETTING_STARTED.md +++ b/docs/sdks/swift/GETTING_STARTED.md @@ -66,6 +66,63 @@ func main() { } ``` +### Type Safety with Models + +The Appwrite Swift SDK provides type safety when working with database documents through generic methods. Methods like `listDocuments`, `getDocument`, and others accept a `nestedType` parameter that allows you to specify your custom model type for full type safety. + +```swift +struct Book: Codable { + let name: String + let author: String + let releaseYear: String? + let category: String? + let genre: [String]? + let isCheckedOut: Bool +} + +let databases = Databases(client) + +do { + let documents = try await databases.listDocuments( + databaseId: "your-database-id", + collectionId: "your-collection-id", + nestedType: Book.self // Pass in your custom model type + ) + + for book in documents.documents { + print("Book: \(book.name) by \(book.author)") // Now you have full type safety + } +} catch { + print(error.localizedDescription) +} +``` + +**Tip**: You can use the `appwrite types` command to automatically generate model definitions based on your Appwrite database schema. Learn more about [type generation](https://appwrite.io/docs/products/databases/type-generation). + +### Working with Model Methods + +All Appwrite models come with built-in methods for data conversion and manipulation: + +**`toMap()`** - Converts a model instance to a dictionary format, useful for debugging or manual data manipulation: +```swift +let user = try await account.get() +let userMap = user.toMap() +print(userMap) // Prints all user properties as a dictionary +``` + +**`from(map:)`** - Creates a model instance from a dictionary, useful when working with raw data: +```swift +let userData: [String: Any] = ["$id": "123", "name": "John", "email": "john@example.com"] +let user = User.from(map: userData) +``` + +**`encode(to:)`** - Encodes the model to JSON format (part of Swift's Codable protocol), useful for serialization: +```swift +let user = try await account.get() +let jsonData = try JSONEncoder().encode(user) +let jsonString = String(data: jsonData, encoding: .utf8) +``` + ### Error Handling When an error occurs, the Appwrite Swift SDK throws an `AppwriteError` object with `message` and `code` properties. You can handle any errors in a catch block and present the `message` or `localizedDescription` to the user or handle it yourself based on the provided error information. Below is an example. diff --git a/docs/sdks/typescript/CHANGELOG.md b/docs/sdks/typescript/CHANGELOG.md deleted file mode 100644 index fa4d35e687..0000000000 --- a/docs/sdks/typescript/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Change Log \ No newline at end of file diff --git a/docs/sdks/web/CHANGELOG.md b/docs/sdks/web/CHANGELOG.md index b9875998a9..328ef1d5a8 100644 --- a/docs/sdks/web/CHANGELOG.md +++ b/docs/sdks/web/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 18.2.0 + +* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service +* Add `gif` support to `ImageFormat` enum +* Fix undefined `fileParam` error in `chunkedUpload` method +* Fix autocompletion not working for `Document` model even when generic is passed + ## 18.1.1 * Fix using `devKeys` resulting in an error by conditionally removing credentials diff --git a/docs/sdks/web/GETTING_STARTED.md b/docs/sdks/web/GETTING_STARTED.md index 26aa9470bd..cc75a3d3e5 100644 --- a/docs/sdks/web/GETTING_STARTED.md +++ b/docs/sdks/web/GETTING_STARTED.md @@ -1,11 +1,13 @@ ## Getting Started ### Add your Web Platform + For you to init your SDK and interact with Appwrite services you need to add a web platform to your project. To add a new platform, go to your Appwrite console, choose the project you created in the step before and click the 'Add Platform' button. From the options, choose to add a **Web** platform and add your client app hostname. By adding your hostname to your project platform you are allowing cross-domain communication between your project and the Appwrite API. ### Init your SDK + Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page. ```js @@ -19,6 +21,7 @@ client ``` ### Make Your First Request + Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section. ```js @@ -35,6 +38,7 @@ account.create(ID.unique(), "email@example.com", "password", "Walter O'Brien") ``` ### Full Example + ```js // Init your Web SDK const client = new Client(); @@ -55,7 +59,83 @@ account.create(ID.unique(), "email@example.com", "password", "Walter O'Brien") }); ``` +### Type Safety with Models + +The Appwrite Web SDK provides type safety when working with database documents through generic methods. Methods like `listDocuments`, `getDocument`, and others accept a generic type parameter that allows you to specify your custom model type for full type safety. + +**TypeScript:** +```typescript +interface Book { + name: string; + author: string; + releaseYear?: string; + category?: string; + genre?: string[]; + isCheckedOut: boolean; +} + +const databases = new Databases(client); + +try { + const documents = await databases.listDocuments( + 'your-database-id', + 'your-collection-id' + ); + + documents.documents.forEach(book => { + console.log(`Book: ${book.name} by ${book.author}`); // Now you have full type safety + }); +} catch (error) { + console.error('Appwrite error:', error); +} +``` + +**JavaScript (with JSDoc for type hints):** +```javascript +/** + * @typedef {Object} Book + * @property {string} name + * @property {string} author + * @property {string} [releaseYear] + * @property {string} [category] + * @property {string[]} [genre] + * @property {boolean} isCheckedOut + */ + +const databases = new Databases(client); + +try { + /** @type {Models.DocumentList} */ + const documents = await databases.listDocuments( + 'your-database-id', + 'your-collection-id' + ); + + documents.documents.forEach(book => { + console.log(`Book: ${book.name} by ${book.author}`); // Type hints available in IDE + }); +} catch (error) { + console.error('Appwrite error:', error); +} +``` + +**Tip**: You can use the `appwrite types` command to automatically generate TypeScript interfaces based on your Appwrite database schema. Learn more about [type generation](https://appwrite.io/docs/products/databases/type-generation). + +### Error Handling + +The Appwrite Web SDK raises an `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching the exception and present the `message` to the user or handle it yourself based on the provided error information. Below is an example. + +```javascript +try { + const user = await account.create(ID.unique(), "email@example.com", "password", "Walter O'Brien"); + console.log('User created:', user); +} catch (error) { + console.error('Appwrite error:', error.message); +} +``` + ### Learn more + You can use the following resources to learn more and get help - 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-web) - 📜 [Appwrite Docs](https://appwrite.io/docs) diff --git a/docs/sdks/web/README.md b/docs/sdks/web/README.md deleted file mode 100644 index d1becb4c31..0000000000 --- a/docs/sdks/web/README.md +++ /dev/null @@ -1,15 +0,0 @@ -## Getting Started - -Initialise the Appwrite SDK in your code, and setup your API credentials: - -```js - -// Init your Web SDK -var appwrite = new Appwrite(); - -appwrite - .setEndpoint('http://localhost/v1') // Set only when using self-hosted solution - .setProject('455x34dfkj') // Your Appwrite Project UID -; - -``` diff --git a/src/Appwrite/Utopia/Response/Model/Document.php b/src/Appwrite/Utopia/Response/Model/Document.php index d43ab0d1e6..c36d6de12e 100644 --- a/src/Appwrite/Utopia/Response/Model/Document.php +++ b/src/Appwrite/Utopia/Response/Model/Document.php @@ -79,6 +79,7 @@ class Document extends Any { $document->removeAttribute('$collection'); $document->removeAttribute('$tenant'); + $document->setAttribute('$sequence', (int)$document->getAttribute('$sequence', 0)); foreach ($document->getAttributes() as $attribute) { if (\is_array($attribute)) { diff --git a/tests/e2e/Services/Account/AccountBase.php b/tests/e2e/Services/Account/AccountBase.php index 7c83edf3e3..8813e2784f 100644 --- a/tests/e2e/Services/Account/AccountBase.php +++ b/tests/e2e/Services/Account/AccountBase.php @@ -39,6 +39,8 @@ trait AccountBase $this->assertEquals($response['body']['labels'], []); $this->assertArrayHasKey('accessedAt', $response['body']); $this->assertNotEmpty($response['body']['accessedAt']); + $this->assertArrayHasKey('targets', $response['body']); + $this->assertEquals($email, $response['body']['targets'][0]['identifier']); /** * Test for FAILURE @@ -159,7 +161,7 @@ trait AccountBase 'email' => 'otpuser@appwrite.io' ]); - $this->assertEquals(201, $response['headers']['status-code'], ); + $this->assertEquals(201, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); $this->assertNotEmpty($response['body']['$createdAt']); $this->assertNotEmpty($response['body']['userId']); @@ -209,6 +211,8 @@ trait AccountBase $this->assertEquals($userId, $response['body']['$id']); $this->assertEquals($userId, $response['body']['$id']); $this->assertTrue($response['body']['emailVerification']); + $this->assertArrayHasKey('targets', $response['body']); + $this->assertEquals('otpuser@appwrite.io', $response['body']['targets'][0]['identifier']); $response = $this->client->call(Client::METHOD_POST, '/account/sessions/token', array_merge([ 'origin' => 'http://localhost', diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php index 6aab125478..4c5e5a4618 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php @@ -1639,6 +1639,7 @@ trait DatabasesBase $this->assertEquals($document1['body']['actors'][1], 'Samuel Jackson'); $this->assertEquals($document1['body']['birthDay'], '1975-06-12T12:12:55.000+00:00'); $this->assertTrue(array_key_exists('$sequence', $document1['body'])); + $this->assertIsInt($document1['body']['$sequence']); $this->assertEquals(201, $document2['headers']['status-code']); $this->assertEquals($data['moviesId'], $document2['body']['$collectionId']);