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/grids/delete-row.md b/docs/examples/1.8.x/client-android/java/grids/delete-row.md new file mode 100644 index 0000000000..a73c03a06e --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/delete-row.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.deleteRow( + "", // databaseId + "", // tableId + "", // rowId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/get-row.md b/docs/examples/1.8.x/client-android/java/grids/get-row.md new file mode 100644 index 0000000000..4968759d6b --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/get-row.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.getRow( + "", // databaseId + "", // tableId + "", // rowId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/list-rows.md b/docs/examples/1.8.x/client-android/java/grids/list-rows.md new file mode 100644 index 0000000000..55336dc452 --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/list-rows.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.listRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/update-row.md b/docs/examples/1.8.x/client-android/java/grids/update-row.md new file mode 100644 index 0000000000..23dc0907eb --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/update-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.updateRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/java/grids/upsert-row.md b/docs/examples/1.8.x/client-android/java/grids/upsert-row.md new file mode 100644 index 0000000000..3938fde103 --- /dev/null +++ b/docs/examples/1.8.x/client-android/java/grids/upsert-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject(""); // Your project ID + +Grids grids = new Grids(client); + +grids.upsertRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.8.x/client-android/kotlin/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/grids/create-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md new file mode 100644 index 0000000000..5b29ac0db0 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.createRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md new file mode 100644 index 0000000000..e85ff6c4ad --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.deleteRow( + databaseId = "", + tableId = "", + rowId = "", +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md new file mode 100644 index 0000000000..0b6c313645 --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.getRow( + databaseId = "", + tableId = "", + rowId = "", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md b/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md new file mode 100644 index 0000000000..153e62787f --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.listRows( + databaseId = "", + tableId = "", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md new file mode 100644 index 0000000000..8dff0b157c --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.updateRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // (optional) + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md new file mode 100644 index 0000000000..a6f5bb846e --- /dev/null +++ b/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client(context) + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +val grids = Grids(client) + +val result = grids.upsertRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // (optional) + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/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/grids/delete-row.md b/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md new file mode 100644 index 0000000000..58ae835ec5 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let result = try await grids.deleteRow( + databaseId: "", + tableId: "", + rowId: "" +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/get-row.md b/docs/examples/1.8.x/client-apple/examples/grids/get-row.md new file mode 100644 index 0000000000..fccdad1f34 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/get-row.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let row = try await grids.getRow( + databaseId: "", + tableId: "", + rowId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md b/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md new file mode 100644 index 0000000000..1b4d885a64 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let rowList = try await grids.listRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/update-row.md b/docs/examples/1.8.x/client-apple/examples/grids/update-row.md new file mode 100644 index 0000000000..95a3611a92 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/update-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let row = try await grids.updateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md new file mode 100644 index 0000000000..c5638a4881 --- /dev/null +++ b/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + +let grids = Grids(client) + +let row = try await grids.upsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/client-flutter/examples/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/grids/delete-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md new file mode 100644 index 0000000000..04f5aec544 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +await grids.deleteRow( + databaseId: '', + tableId: '', + rowId: '', +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md new file mode 100644 index 0000000000..a8a380ee7c --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +Row result = await grids.getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md b/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md new file mode 100644 index 0000000000..6654c57aaa --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +RowList result = await grids.listRows( + databaseId: '', + tableId: '', + queries: [], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md new file mode 100644 index 0000000000..293f38877a --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +Row result = await grids.updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // optional + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md new file mode 100644 index 0000000000..2cec5621b7 --- /dev/null +++ b/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +Grids grids = Grids(client); + +Row result = await grids.upsertRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // optional + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.8.x/client-graphql/examples/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/grids/create-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md new file mode 100644 index 0000000000..cffb7361f2 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md @@ -0,0 +1,18 @@ +mutation { + gridsCreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md new file mode 100644 index 0000000000..40dcbdc219 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md @@ -0,0 +1,9 @@ +mutation { + gridsDeleteRow( + databaseId: "", + tableId: "", + rowId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/get-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/get-row.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md b/docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md new file mode 100644 index 0000000000..2bb105e8c0 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md @@ -0,0 +1,18 @@ +mutation { + gridsUpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md new file mode 100644 index 0000000000..f8e0606109 --- /dev/null +++ b/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md @@ -0,0 +1,18 @@ +mutation { + gridsUpsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md b/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md index 97e2150c39..50161e433f 100644 --- a/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-graphql/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md index ec768fcfaf..1b28231ed3 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md @@ -2,9 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md index 56d3af23ae..ae423d12a7 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md @@ -2,16 +2,16 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '' // documentId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md index 72c71f7767..7d850c8103 100644 --- a/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md @@ -13,7 +13,7 @@ const result = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md new file mode 100644 index 0000000000..9fdbce2dd9 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md new file mode 100644 index 0000000000..33a5a50a69 --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md new file mode 100644 index 0000000000..7df0636b2e --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md b/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md new file mode 100644 index 0000000000..3fd58773ef --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md new file mode 100644 index 0000000000..39b147758f --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md new file mode 100644 index 0000000000..54443a6a4d --- /dev/null +++ b/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/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/grids/create-row.md b/docs/examples/1.8.x/client-rest/examples/grids/create-row.md new file mode 100644 index 0000000000..98b261ecba --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/create-row.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "rowId": "", + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md b/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md new file mode 100644 index 0000000000..6f702a8526 --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md @@ -0,0 +1,8 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + diff --git a/docs/examples/1.8.x/client-rest/examples/grids/get-row.md b/docs/examples/1.8.x/client-rest/examples/grids/get-row.md new file mode 100644 index 0000000000..876fe0f796 --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/get-row.md @@ -0,0 +1,6 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md b/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md new file mode 100644 index 0000000000..86751cfcaf --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md @@ -0,0 +1,6 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/update-row.md b/docs/examples/1.8.x/client-rest/examples/grids/update-row.md new file mode 100644 index 0000000000..bacfb5389a --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/update-row.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md new file mode 100644 index 0000000000..7368fc436d --- /dev/null +++ b/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md @@ -0,0 +1,12 @@ +PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/client-rest/examples/locale/get.md b/docs/examples/1.8.x/client-rest/examples/locale/get.md index 0d67644583..8f8a1741e6 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/get.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/get.md @@ -1,6 +1,6 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md b/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md index f362c5987e..61110f6527 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-codes.md @@ -1,6 +1,6 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md b/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md index 93db4fb302..cb96cc4e16 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-continents.md @@ -1,6 +1,6 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md index 09eba6168f..d4de74a879 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md index 94ef0bb943..0e1ed67a7d 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-phones.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md index dc8289980a..58e487a875 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-countries.md @@ -1,6 +1,6 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md b/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md index 9a3af20c94..a3a9b96c48 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-currencies.md @@ -1,6 +1,6 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md b/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md index 7d90c8b40a..8c7cbabddf 100644 --- a/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md +++ b/docs/examples/1.8.x/client-rest/examples/locale/list-languages.md @@ -1,6 +1,6 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md b/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md index 94e98c4438..708ec0782a 100644 --- a/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.8.x/client-rest/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md index e5ac0830a3..1cb9c3e516 100644 --- a/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.8.x/client-rest/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md index f044b577b2..0f83797b70 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md b/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md index 8d074341fe..e00392a525 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/delete-file.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md index 58c9c6d276..92991d0727 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-download.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md index ff24de4ec4..e84dd4dd85 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-preview.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md index 9c95a2b48f..f482706f6f 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file-view.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/get-file.md b/docs/examples/1.8.x/client-rest/examples/storage/get-file.md index ffb3703fe1..4f929caadf 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/get-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/get-file.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/list-files.md b/docs/examples/1.8.x/client-rest/examples/storage/list-files.md index d1258b97de..977bb9e713 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/list-files.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/list-files.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/storage/update-file.md b/docs/examples/1.8.x/client-rest/examples/storage/update-file.md index 210433622b..fed35bb860 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/update-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/update-file.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md index 83e4803502..f96f20c2b8 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/create-membership.md @@ -1,7 +1,7 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/create.md b/docs/examples/1.8.x/client-rest/examples/teams/create.md index c80b2bda8e..33cf95ba01 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/create.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/create.md @@ -1,7 +1,7 @@ POST /v1/teams HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md index 0fc17e11ee..8da481d5cf 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/delete.md b/docs/examples/1.8.x/client-rest/examples/teams/delete.md index ad614b17d1..d1dc59c23a 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/delete.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/delete.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md index dbe034f34b..6e7379b0d7 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get-membership.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md b/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md index ddb863181d..e541fd3fd8 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/get.md b/docs/examples/1.8.x/client-rest/examples/teams/get.md index 730d23a03b..32d9156267 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/get.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/get.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md b/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md index 82a9f82c33..4e364053b3 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/list-memberships.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/list.md b/docs/examples/1.8.x/client-rest/examples/teams/list.md index 00a419269a..e5f0439a13 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/list.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/list.md @@ -1,6 +1,6 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md b/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md index 9d828118f0..da2c9189cd 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md b/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md index 3768499d16..b1010ea460 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-membership.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-name.md b/docs/examples/1.8.x/client-rest/examples/teams/update-name.md index ec381348e8..cd92d686ce 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-name.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-name.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md b/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md index 1db6300350..e17dcdb260 100644 --- a/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-web/examples/databases/create-document.md b/docs/examples/1.8.x/client-web/examples/databases/create-document.md index 401a67488c..916cc92689 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/create-document.md @@ -2,9 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md index a581396da8..cfefe06242 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md @@ -2,16 +2,16 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setSession('') // The user session to authenticate with - .setKey('') // - .setJWT(''); // Your secret JSON Web Token + .setProject(''); // Your project ID const databases = new Databases(client); const result = await databases.upsertDocument( '', // databaseId '', // collectionId - '' // documentId + '', // documentId + {}, // data + ["read("any")"] // permissions (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/functions/create-execution.md b/docs/examples/1.8.x/client-web/examples/functions/create-execution.md index 8f07523b2b..be9bb508c0 100644 --- a/docs/examples/1.8.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-web/examples/functions/create-execution.md @@ -13,7 +13,7 @@ const result = await functions.createExecution( '', // path (optional) ExecutionMethod.GET, // method (optional) {}, // headers (optional) - '' // scheduledAt (optional) + '' // scheduledAt (optional) ); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/create-row.md b/docs/examples/1.8.x/client-web/examples/grids/create-row.md new file mode 100644 index 0000000000..9dc6de2769 --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/create-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/delete-row.md b/docs/examples/1.8.x/client-web/examples/grids/delete-row.md new file mode 100644 index 0000000000..7d3fb7df7e --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/get-row.md b/docs/examples/1.8.x/client-web/examples/grids/get-row.md new file mode 100644 index 0000000000..778377b61b --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/get-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/list-rows.md b/docs/examples/1.8.x/client-web/examples/grids/list-rows.md new file mode 100644 index 0000000000..07de125329 --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/update-row.md b/docs/examples/1.8.x/client-web/examples/grids/update-row.md new file mode 100644 index 0000000000..f37659e3ca --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/update-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md new file mode 100644 index 0000000000..8850c27ebd --- /dev/null +++ b/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "appwrite"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-cli/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..3a26ed2935 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md @@ -0,0 +1,7 @@ +appwrite grids createBooleanColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-database.md b/docs/examples/1.8.x/console-cli/examples/grids/create-database.md new file mode 100644 index 0000000000..741d5f83ee --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-database.md @@ -0,0 +1,4 @@ +appwrite grids createDatabase \ + --databaseId \ + --name \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..1efced687d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md @@ -0,0 +1,7 @@ +appwrite grids createDatetimeColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md new file mode 100644 index 0000000000..f0758d2753 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md @@ -0,0 +1,7 @@ +appwrite grids createEmailColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..e6ca5fdbd6 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md @@ -0,0 +1,8 @@ +appwrite grids createEnumColumn \ + --databaseId \ + --tableId \ + --key '' \ + --elements one two three \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md new file mode 100644 index 0000000000..a17535614d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md @@ -0,0 +1,9 @@ +appwrite grids createFloatColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-index.md b/docs/examples/1.8.x/console-cli/examples/grids/create-index.md new file mode 100644 index 0000000000..9b92ecc614 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-index.md @@ -0,0 +1,8 @@ +appwrite grids createIndex \ + --databaseId \ + --tableId \ + --key '' \ + --type key \ + --columns one two three \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..0e7d408fea --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md @@ -0,0 +1,9 @@ +appwrite grids createIntegerColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..bc16e6b9a7 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md @@ -0,0 +1,7 @@ +appwrite grids createIpColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..d60fd4516a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md @@ -0,0 +1,9 @@ +appwrite grids createRelationshipColumn \ + --databaseId \ + --tableId \ + --relatedTableId \ + --type oneToOne \ + + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-row.md b/docs/examples/1.8.x/console-cli/examples/grids/create-row.md new file mode 100644 index 0000000000..f59ac8253c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-row.md @@ -0,0 +1,6 @@ +appwrite grids createRow \ + --databaseId \ + --tableId \ + --rowId \ + --data '{ "key": "value" }' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md new file mode 100644 index 0000000000..8d89674dc6 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md @@ -0,0 +1,4 @@ +appwrite grids createRows \ + --databaseId \ + --tableId \ + --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md new file mode 100644 index 0000000000..658bedec06 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md @@ -0,0 +1,9 @@ +appwrite grids createStringColumn \ + --databaseId \ + --tableId \ + --key '' \ + --size 1 \ + --required false \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-table.md b/docs/examples/1.8.x/console-cli/examples/grids/create-table.md new file mode 100644 index 0000000000..9e707fde1c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-table.md @@ -0,0 +1,7 @@ +appwrite grids createTable \ + --databaseId \ + --tableId \ + --name \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md new file mode 100644 index 0000000000..88adbdbb5d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md @@ -0,0 +1,7 @@ +appwrite grids createUrlColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..f3c1a50c2d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md @@ -0,0 +1,7 @@ +appwrite grids decrementRowColumn \ + --databaseId \ + --tableId \ + --rowId \ + --column '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md new file mode 100644 index 0000000000..0b60af67cc --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md @@ -0,0 +1,4 @@ +appwrite grids deleteColumn \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md new file mode 100644 index 0000000000..c5e0ad3c63 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md @@ -0,0 +1,2 @@ +appwrite grids deleteDatabase \ + --databaseId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md new file mode 100644 index 0000000000..0a1f6dc404 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md @@ -0,0 +1,4 @@ +appwrite grids deleteIndex \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md new file mode 100644 index 0000000000..b360f6919a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md @@ -0,0 +1,4 @@ +appwrite grids deleteRow \ + --databaseId \ + --tableId \ + --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md new file mode 100644 index 0000000000..46b768f28d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md @@ -0,0 +1,4 @@ +appwrite grids deleteRows \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md new file mode 100644 index 0000000000..416a07052d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md @@ -0,0 +1,3 @@ +appwrite grids deleteTable \ + --databaseId \ + --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-column.md b/docs/examples/1.8.x/console-cli/examples/grids/get-column.md new file mode 100644 index 0000000000..f875d56d33 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-column.md @@ -0,0 +1,4 @@ +appwrite grids getColumn \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md new file mode 100644 index 0000000000..0c35ea978d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md @@ -0,0 +1,3 @@ +appwrite grids getDatabaseUsage \ + --databaseId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-database.md b/docs/examples/1.8.x/console-cli/examples/grids/get-database.md new file mode 100644 index 0000000000..f2232bb5c0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-database.md @@ -0,0 +1,2 @@ +appwrite grids getDatabase \ + --databaseId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-index.md b/docs/examples/1.8.x/console-cli/examples/grids/get-index.md new file mode 100644 index 0000000000..6f88f74c23 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-index.md @@ -0,0 +1,4 @@ +appwrite grids getIndex \ + --databaseId \ + --tableId \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-row.md b/docs/examples/1.8.x/console-cli/examples/grids/get-row.md new file mode 100644 index 0000000000..73cc207eec --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-row.md @@ -0,0 +1,5 @@ +appwrite grids getRow \ + --databaseId \ + --tableId \ + --rowId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md new file mode 100644 index 0000000000..e4002ec61e --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md @@ -0,0 +1,4 @@ +appwrite grids getTableUsage \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-table.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table.md new file mode 100644 index 0000000000..e44c98ad83 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/get-table.md @@ -0,0 +1,3 @@ +appwrite grids getTable \ + --databaseId \ + --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md b/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..b4b84b6392 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md @@ -0,0 +1,7 @@ +appwrite grids incrementRowColumn \ + --databaseId \ + --tableId \ + --rowId \ + --column '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md b/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md new file mode 100644 index 0000000000..968643bb6c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md @@ -0,0 +1,4 @@ +appwrite grids listColumns \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md new file mode 100644 index 0000000000..c135a2b358 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md @@ -0,0 +1,3 @@ +appwrite grids listDatabaseLogs \ + --databaseId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md new file mode 100644 index 0000000000..f13c4e4e0a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md @@ -0,0 +1,2 @@ +appwrite grids listDatabaseUsage \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md b/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md new file mode 100644 index 0000000000..11d448043a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md @@ -0,0 +1,3 @@ +appwrite grids listDatabases \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md new file mode 100644 index 0000000000..85df307deb --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md @@ -0,0 +1,4 @@ +appwrite grids listIndexes \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md new file mode 100644 index 0000000000..3a073e4708 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md @@ -0,0 +1,5 @@ +appwrite grids listRowLogs \ + --databaseId \ + --tableId \ + --rowId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md new file mode 100644 index 0000000000..99bf470bfb --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md @@ -0,0 +1,4 @@ +appwrite grids listRows \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md new file mode 100644 index 0000000000..e38af040a6 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md @@ -0,0 +1,4 @@ +appwrite grids listTableLogs \ + --databaseId \ + --tableId \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md b/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md new file mode 100644 index 0000000000..69f464ba86 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md @@ -0,0 +1,4 @@ +appwrite grids listTables \ + --databaseId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..a980b12aa0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md @@ -0,0 +1,7 @@ +appwrite grids updateBooleanColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default false \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-database.md b/docs/examples/1.8.x/console-cli/examples/grids/update-database.md new file mode 100644 index 0000000000..079e88dfd0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-database.md @@ -0,0 +1,4 @@ +appwrite grids updateDatabase \ + --databaseId \ + --name \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..97ee021e80 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md @@ -0,0 +1,7 @@ +appwrite grids updateDatetimeColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default '' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md new file mode 100644 index 0000000000..d8b0827d62 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md @@ -0,0 +1,7 @@ +appwrite grids updateEmailColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default email@example.com \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..82eb62f996 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md @@ -0,0 +1,8 @@ +appwrite grids updateEnumColumn \ + --databaseId \ + --tableId \ + --key '' \ + --elements one two three \ + --required false \ + --default \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md new file mode 100644 index 0000000000..ef3a4ad36f --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md @@ -0,0 +1,9 @@ +appwrite grids updateFloatColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default null \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..5b83ca938b --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md @@ -0,0 +1,9 @@ +appwrite grids updateIntegerColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default null \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..b0e6b8cf3a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md @@ -0,0 +1,7 @@ +appwrite grids updateIpColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default '' \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..00ddda788c --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md @@ -0,0 +1,6 @@ +appwrite grids updateRelationshipColumn \ + --databaseId \ + --tableId \ + --key '' \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-row.md b/docs/examples/1.8.x/console-cli/examples/grids/update-row.md new file mode 100644 index 0000000000..b89566b570 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-row.md @@ -0,0 +1,6 @@ +appwrite grids updateRow \ + --databaseId \ + --tableId \ + --rowId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md new file mode 100644 index 0000000000..72c63ddb41 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md @@ -0,0 +1,5 @@ +appwrite grids updateRows \ + --databaseId \ + --tableId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md new file mode 100644 index 0000000000..a6b6280560 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md @@ -0,0 +1,8 @@ +appwrite grids updateStringColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-table.md b/docs/examples/1.8.x/console-cli/examples/grids/update-table.md new file mode 100644 index 0000000000..66e26b1752 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-table.md @@ -0,0 +1,7 @@ +appwrite grids updateTable \ + --databaseId \ + --tableId \ + --name \ + + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md new file mode 100644 index 0000000000..ad41af9fa1 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md @@ -0,0 +1,7 @@ +appwrite grids updateUrlColumn \ + --databaseId \ + --tableId \ + --key '' \ + --required false \ + --default https://example.com \ + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md b/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md new file mode 100644 index 0000000000..8a356e7a1e --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md @@ -0,0 +1,6 @@ +appwrite grids upsertRow \ + --databaseId \ + --tableId \ + --rowId \ + + diff --git a/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..e4e31c1e83 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md @@ -0,0 +1,4 @@ +appwrite grids upsertRows \ + --databaseId \ + --tableId \ + --rows one two three diff --git a/docs/examples/1.8.x/console-web/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..5a61510aa7 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-database.md b/docs/examples/1.8.x/console-web/examples/grids/create-database.md new file mode 100644 index 0000000000..b7eeb33253 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-database.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..7580178d62 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md new file mode 100644 index 0000000000..9e44cbbd66 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..c596b1408a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md new file mode 100644 index 0000000000..d1b4c21898 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-index.md b/docs/examples/1.8.x/console-web/examples/grids/create-index.md new file mode 100644 index 0000000000..2c22cafde8 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-index.md @@ -0,0 +1,19 @@ +import { Client, Grids, IndexType } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createIndex( + '', // databaseId + '', // tableId + '', // key + IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..709694e358 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..1691d3fc81 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..5536e26488 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md @@ -0,0 +1,20 @@ +import { Client, Grids, RelationshipType, RelationMutate } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + RelationMutate.Cascade // onDelete (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-row.md b/docs/examples/1.8.x/console-web/examples/grids/create-row.md new file mode 100644 index 0000000000..f5259cff2d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-rows.md b/docs/examples/1.8.x/console-web/examples/grids/create-rows.md new file mode 100644 index 0000000000..ff84c045cb --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createRows( + '', // databaseId + '', // tableId + [] // rows +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md new file mode 100644 index 0000000000..4032caede0 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-table.md b/docs/examples/1.8.x/console-web/examples/grids/create-table.md new file mode 100644 index 0000000000..74227efe98 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-table.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md new file mode 100644 index 0000000000..4991da6cd6 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..6e0abb0ac8 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-column.md b/docs/examples/1.8.x/console-web/examples/grids/delete-column.md new file mode 100644 index 0000000000..8e46121f01 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-column.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-database.md b/docs/examples/1.8.x/console-web/examples/grids/delete-database.md new file mode 100644 index 0000000000..b34b4adfdb --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-database.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteDatabase( + '' // databaseId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-index.md b/docs/examples/1.8.x/console-web/examples/grids/delete-index.md new file mode 100644 index 0000000000..9e405de80f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-index.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-row.md b/docs/examples/1.8.x/console-web/examples/grids/delete-row.md new file mode 100644 index 0000000000..cc49130d4f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md b/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md new file mode 100644 index 0000000000..fdaa4278fa --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-table.md b/docs/examples/1.8.x/console-web/examples/grids/delete-table.md new file mode 100644 index 0000000000..1817122ec3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/delete-table.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.deleteTable( + '', // databaseId + '' // tableId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-column.md b/docs/examples/1.8.x/console-web/examples/grids/get-column.md new file mode 100644 index 0000000000..116cee2f24 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-column.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getColumn( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md new file mode 100644 index 0000000000..f961dc4fdf --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md @@ -0,0 +1,14 @@ +import { Client, Grids, DatabaseUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getDatabaseUsage( + '', // databaseId + DatabaseUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-database.md b/docs/examples/1.8.x/console-web/examples/grids/get-database.md new file mode 100644 index 0000000000..d41e9c2d45 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-database.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getDatabase( + '' // databaseId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-index.md b/docs/examples/1.8.x/console-web/examples/grids/get-index.md new file mode 100644 index 0000000000..34880a8c0e --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-index.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getIndex( + '', // databaseId + '', // tableId + '' // key +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-row.md b/docs/examples/1.8.x/console-web/examples/grids/get-row.md new file mode 100644 index 0000000000..29b51f2225 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md new file mode 100644 index 0000000000..5684786fb7 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md @@ -0,0 +1,15 @@ +import { Client, Grids, GridUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getTableUsage( + '', // databaseId + '', // tableId + GridUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-table.md b/docs/examples/1.8.x/console-web/examples/grids/get-table.md new file mode 100644 index 0000000000..b98d321f28 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/get-table.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.getTable( + '', // databaseId + '' // tableId +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md b/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..5177cd6c08 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-columns.md b/docs/examples/1.8.x/console-web/examples/grids/list-columns.md new file mode 100644 index 0000000000..cd72e91daf --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-columns.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md new file mode 100644 index 0000000000..cf20dc6b49 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listDatabaseLogs( + '', // databaseId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md b/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md new file mode 100644 index 0000000000..09faf5f2f5 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md @@ -0,0 +1,13 @@ +import { Client, Grids, DatabaseUsageRange } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listDatabaseUsage( + DatabaseUsageRange.TwentyFourHours // range (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-databases.md b/docs/examples/1.8.x/console-web/examples/grids/list-databases.md new file mode 100644 index 0000000000..871d29ebe8 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-databases.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listDatabases( + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md b/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md new file mode 100644 index 0000000000..b8755d0b82 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md new file mode 100644 index 0000000000..0fcde33520 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listRowLogs( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-rows.md b/docs/examples/1.8.x/console-web/examples/grids/list-rows.md new file mode 100644 index 0000000000..4eb3b71407 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md new file mode 100644 index 0000000000..e7f756886d --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listTableLogs( + '', // databaseId + '', // tableId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-tables.md b/docs/examples/1.8.x/console-web/examples/grids/list-tables.md new file mode 100644 index 0000000000..9288788dfe --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/list-tables.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.listTables( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..84dd95cd41 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-database.md b/docs/examples/1.8.x/console-web/examples/grids/update-database.md new file mode 100644 index 0000000000..abd6b285fd --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-database.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..81fa471471 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md new file mode 100644 index 0000000000..3a63b0d4d3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..7c6d2e1b03 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md new file mode 100644 index 0000000000..6662f4b00f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..95c0510a1a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md @@ -0,0 +1,20 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..e92db67751 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..bdfd71f71c --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md @@ -0,0 +1,17 @@ +import { Client, Grids, RelationMutate } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-row.md b/docs/examples/1.8.x/console-web/examples/grids/update-row.md new file mode 100644 index 0000000000..a86f5fd58b --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-rows.md b/docs/examples/1.8.x/console-web/examples/grids/update-rows.md new file mode 100644 index 0000000000..939615a5bd --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-rows.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md new file mode 100644 index 0000000000..b0b92f041e --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-table.md b/docs/examples/1.8.x/console-web/examples/grids/update-table.md new file mode 100644 index 0000000000..8988133beb --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-table.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md new file mode 100644 index 0000000000..ecad0043a3 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md b/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md new file mode 100644 index 0000000000..66764b001a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md b/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..b79a74d7e1 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const grids = new Grids(client); + +const result = await grids.upsertRows( + '', // databaseId + '', // tableId + [] // rows +); + +console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..d462336207 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnBoolean result = await grids.createBooleanColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: false, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-database.md b/docs/examples/1.8.x/server-dart/examples/grids/create-database.md new file mode 100644 index 0000000000..d77e3747c9 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-database.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Database result = await grids.createDatabase( + databaseId: '', + name: '', + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..88365e0d0f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnDatetime result = await grids.createDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md new file mode 100644 index 0000000000..69d6c03d8f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnEmail result = await grids.createEmailColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'email@example.com', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..a3a1e3ff60 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnEnum result = await grids.createEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md new file mode 100644 index 0000000000..eba5e98ccc --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnFloat result = await grids.createFloatColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + min: 0, // (optional) + max: 0, // (optional) + xdefault: 0, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-index.md b/docs/examples/1.8.x/server-dart/examples/grids/create-index.md new file mode 100644 index 0000000000..4926b9ec83 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-index.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIndex result = await grids.createIndex( + databaseId: '', + tableId: '', + key: '', + type: IndexType.key, + columns: [], + orders: [], // (optional) + lengths: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..d5bfdf3144 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnInteger result = await grids.createIntegerColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + min: 0, // (optional) + max: 0, // (optional) + xdefault: 0, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..91b83fde8c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIp result = await grids.createIpColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..99f0427a85 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnRelationship result = await grids.createRelationshipColumn( + databaseId: '', + tableId: '', + relatedTableId: '', + type: RelationshipType.oneToOne, + twoWay: false, // (optional) + key: '', // (optional) + twoWayKey: '', // (optional) + onDelete: RelationMutate.cascade, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-row.md b/docs/examples/1.8.x/server-dart/examples/grids/create-row.md new file mode 100644 index 0000000000..4db0893686 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-row.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +Row result = await grids.createRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md new file mode 100644 index 0000000000..111d061c3e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +RowList result = await grids.createRows( + databaseId: '', + tableId: '', + rows: [], +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md new file mode 100644 index 0000000000..74b9cb7fa6 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnString result = await grids.createStringColumn( + databaseId: '', + tableId: '', + key: '', + size: 1, + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) + encrypt: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-table.md b/docs/examples/1.8.x/server-dart/examples/grids/create-table.md new file mode 100644 index 0000000000..1bb7afadd3 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-table.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Table result = await grids.createTable( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // (optional) + rowSecurity: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md new file mode 100644 index 0000000000..cc129fce97 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnUrl result = await grids.createUrlColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'https://example.com', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..ad0744dbc6 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Row result = await grids.decrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: 0, // (optional) + min: 0, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md new file mode 100644 index 0000000000..e326064f4f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteColumn( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md new file mode 100644 index 0000000000..0738454382 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteDatabase( + databaseId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md new file mode 100644 index 0000000000..14dbccb979 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteIndex( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md new file mode 100644 index 0000000000..8a37455490 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +await grids.deleteRow( + databaseId: '', + tableId: '', + rowId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md new file mode 100644 index 0000000000..dd2214fc68 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteRows( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md new file mode 100644 index 0000000000..af29d31b87 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +await grids.deleteTable( + databaseId: '', + tableId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-column.md b/docs/examples/1.8.x/server-dart/examples/grids/get-column.md new file mode 100644 index 0000000000..4040124454 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-column.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + + result = await grids.getColumn( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-database.md b/docs/examples/1.8.x/server-dart/examples/grids/get-database.md new file mode 100644 index 0000000000..e8a674b1ab --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-database.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Database result = await grids.getDatabase( + databaseId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-index.md b/docs/examples/1.8.x/server-dart/examples/grids/get-index.md new file mode 100644 index 0000000000..6e66a55b37 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-index.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIndex result = await grids.getIndex( + databaseId: '', + tableId: '', + key: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-row.md b/docs/examples/1.8.x/server-dart/examples/grids/get-row.md new file mode 100644 index 0000000000..da2a609d32 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-row.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +Row result = await grids.getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-table.md b/docs/examples/1.8.x/server-dart/examples/grids/get-table.md new file mode 100644 index 0000000000..d38fca0455 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/get-table.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Table result = await grids.getTable( + databaseId: '', + tableId: '', +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..14c041404c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Row result = await grids.incrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: 0, // (optional) + max: 0, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md b/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md new file mode 100644 index 0000000000..222b5ba172 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnList result = await grids.listColumns( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md b/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md new file mode 100644 index 0000000000..14e2c78b63 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +DatabaseList result = await grids.listDatabases( + queries: [], // (optional) + search: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md new file mode 100644 index 0000000000..218c3e0ccc --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIndexList result = await grids.listIndexes( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md new file mode 100644 index 0000000000..49f2a7ef21 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +RowList result = await grids.listRows( + databaseId: '', + tableId: '', + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md b/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md new file mode 100644 index 0000000000..4f1e08b713 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +TableList result = await grids.listTables( + databaseId: '', + queries: [], // (optional) + search: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..e9e5a1fe32 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnBoolean result = await grids.updateBooleanColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: false, + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-database.md b/docs/examples/1.8.x/server-dart/examples/grids/update-database.md new file mode 100644 index 0000000000..d65a80185f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-database.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Database result = await grids.updateDatabase( + databaseId: '', + name: '', + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..6eb1bb6cbf --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnDatetime result = await grids.updateDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md new file mode 100644 index 0000000000..0fabb3e6a3 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnEmail result = await grids.updateEmailColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'email@example.com', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..5aa1613b75 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnEnum result = await grids.updateEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md new file mode 100644 index 0000000000..0326f3c6f8 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnFloat result = await grids.updateFloatColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..3572a064b3 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnInteger result = await grids.updateIntegerColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..a75ff07569 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnIp result = await grids.updateIpColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..4ecb479124 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnRelationship result = await grids.updateRelationshipColumn( + databaseId: '', + tableId: '', + key: '', + onDelete: RelationMutate.cascade, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-row.md b/docs/examples/1.8.x/server-dart/examples/grids/update-row.md new file mode 100644 index 0000000000..f11cf400cb --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-row.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +Row result = await grids.updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // (optional) + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md new file mode 100644 index 0000000000..6dd4db1d3c --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +RowList result = await grids.updateRows( + databaseId: '', + tableId: '', + data: {}, // (optional) + queries: [], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md new file mode 100644 index 0000000000..2bc58912cb --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnString result = await grids.updateStringColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: '', + size: 1, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-table.md b/docs/examples/1.8.x/server-dart/examples/grids/update-table.md new file mode 100644 index 0000000000..c5c497eddf --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-table.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +Table result = await grids.updateTable( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // (optional) + rowSecurity: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md new file mode 100644 index 0000000000..79359f5436 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +ColumnUrl result = await grids.updateUrlColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: 'https://example.com', + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md new file mode 100644 index 0000000000..e8a697664e --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +Grids grids = Grids(client); + +Row result = await grids.upsertRow( + databaseId: '', + tableId: '', + rowId: '', + data: {}, // (optional) + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..b12d6960f0 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Grids grids = Grids(client); + +RowList result = await grids.upsertRows( + databaseId: '', + tableId: '', + rows: [], +); diff --git a/docs/examples/1.8.x/server-deno/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..7097a84ebe --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-database.md b/docs/examples/1.8.x/server-deno/examples/grids/create-database.md new file mode 100644 index 0000000000..3b1a67d75a --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-database.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..f33479cd2e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md new file mode 100644 index 0000000000..eec09fb453 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..df68204c8b --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md new file mode 100644 index 0000000000..e7fdc524dc --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-index.md b/docs/examples/1.8.x/server-deno/examples/grids/create-index.md new file mode 100644 index 0000000000..d1442d57be --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-index.md @@ -0,0 +1,18 @@ +import { Client, Grids, IndexType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createIndex( + '', // databaseId + '', // tableId + '', // key + IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..0dc377dff2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..222e262042 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..5cfc17ebbd --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md @@ -0,0 +1,19 @@ +import { Client, Grids, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + RelationMutate.Cascade // onDelete (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-row.md b/docs/examples/1.8.x/server-deno/examples/grids/create-row.md new file mode 100644 index 0000000000..0bf0ec7f09 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md new file mode 100644 index 0000000000..e5d81e6f68 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md new file mode 100644 index 0000000000..fb73a25faa --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-table.md b/docs/examples/1.8.x/server-deno/examples/grids/create-table.md new file mode 100644 index 0000000000..832b9c5218 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-table.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md new file mode 100644 index 0000000000..905d86c6cf --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..cd86f6f8f3 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md new file mode 100644 index 0000000000..d299323df6 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md new file mode 100644 index 0000000000..aad02459e4 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md @@ -0,0 +1,12 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteDatabase( + '' // databaseId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md new file mode 100644 index 0000000000..2354fc2485 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md new file mode 100644 index 0000000000..b62fd2145f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md new file mode 100644 index 0000000000..a1c75d7fd2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md new file mode 100644 index 0000000000..b7b09bc1ed --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.deleteTable( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-column.md b/docs/examples/1.8.x/server-deno/examples/grids/get-column.md new file mode 100644 index 0000000000..cd78228565 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-column.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.getColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-database.md b/docs/examples/1.8.x/server-deno/examples/grids/get-database.md new file mode 100644 index 0000000000..c1fecfeff7 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-database.md @@ -0,0 +1,12 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.getDatabase( + '' // databaseId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-index.md b/docs/examples/1.8.x/server-deno/examples/grids/get-index.md new file mode 100644 index 0000000000..8f3a48aec2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-index.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.getIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-row.md b/docs/examples/1.8.x/server-deno/examples/grids/get-row.md new file mode 100644 index 0000000000..257b24b67e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-row.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-table.md b/docs/examples/1.8.x/server-deno/examples/grids/get-table.md new file mode 100644 index 0000000000..5b9c36ab44 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/get-table.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.getTable( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..d01174e938 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md b/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md new file mode 100644 index 0000000000..3e249e2782 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md b/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md new file mode 100644 index 0000000000..40ce554e50 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md @@ -0,0 +1,13 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.listDatabases( + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md new file mode 100644 index 0000000000..e605c67cc6 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md new file mode 100644 index 0000000000..2416578d70 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md b/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md new file mode 100644 index 0000000000..f68d5465b5 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.listTables( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..22c0fe97f8 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-database.md b/docs/examples/1.8.x/server-deno/examples/grids/update-database.md new file mode 100644 index 0000000000..0fc883028e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-database.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..00cee55b33 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md new file mode 100644 index 0000000000..eb263b428f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..974dcc99cb --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md new file mode 100644 index 0000000000..c1375b015f --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..c46dbb1994 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md @@ -0,0 +1,19 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..2013e16429 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..5151a5c5bc --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md @@ -0,0 +1,16 @@ +import { Client, Grids, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-row.md b/docs/examples/1.8.x/server-deno/examples/grids/update-row.md new file mode 100644 index 0000000000..5e37a9cb90 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md new file mode 100644 index 0000000000..35dc58d22d --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md @@ -0,0 +1,15 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md new file mode 100644 index 0000000000..ff0113baeb --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md @@ -0,0 +1,18 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-table.md b/docs/examples/1.8.x/server-deno/examples/grids/update-table.md new file mode 100644 index 0000000000..ce01cd0fc7 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-table.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md new file mode 100644 index 0000000000..285f88fbfd --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md @@ -0,0 +1,17 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md new file mode 100644 index 0000000000..33534265d5 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md @@ -0,0 +1,16 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new Grids(client); + +const response = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..8cd7218f17 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md @@ -0,0 +1,14 @@ +import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new Grids(client); + +const response = await grids.upsertRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-dotnet/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..e173d1189b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnBoolean result = await grids.CreateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md new file mode 100644 index 0000000000..7006f00d01 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Database result = await grids.CreateDatabase( + databaseId: "", + name: "", + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..b4e730fc6d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnDatetime result = await grids.CreateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md new file mode 100644 index 0000000000..bb2cad7dbd --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnEmail result = await grids.CreateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..4ce99366ad --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnEnum result = await grids.CreateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: new List(), + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md new file mode 100644 index 0000000000..3ecd76c367 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnFloat result = await grids.CreateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md new file mode 100644 index 0000000000..854ed47e81 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIndex result = await grids.CreateIndex( + databaseId: "", + tableId: "", + key: "", + type: IndexType.Key, + columns: new List(), + orders: new List(), // optional + lengths: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..ef13d5569c --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnInteger result = await grids.CreateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..bfaa594d49 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIp result = await grids.CreateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..614f5d4fec --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md @@ -0,0 +1,22 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnRelationship result = await grids.CreateRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: RelationshipType.OneToOne, + twoWay: false, // optional + key: "", // optional + twoWayKey: "", // optional + onDelete: RelationMutate.Cascade // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md new file mode 100644 index 0000000000..235c9b5c4e --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +Row result = await grids.CreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [object], + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md new file mode 100644 index 0000000000..42ee3ef6a2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +RowList result = await grids.CreateRows( + databaseId: "", + tableId: "", + rows: new List() +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md new file mode 100644 index 0000000000..ca00dcf32e --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnString result = await grids.CreateStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false, // optional + encrypt: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md new file mode 100644 index 0000000000..50fdfa878e --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Table result = await grids.CreateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md new file mode 100644 index 0000000000..8a4f69bd26 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnUrl result = await grids.CreateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..b17e902e45 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Row result = await grids.DecrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + min: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md new file mode 100644 index 0000000000..24f23546ba --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteColumn( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md new file mode 100644 index 0000000000..38f28a001a --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteDatabase( + databaseId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md new file mode 100644 index 0000000000..5a037e2a96 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteIndex( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md new file mode 100644 index 0000000000..13972747a8 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +await grids.DeleteRow( + databaseId: "", + tableId: "", + rowId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md new file mode 100644 index 0000000000..4ddd11b6d1 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteRows( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md new file mode 100644 index 0000000000..9741ac2c2e --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +await grids.DeleteTable( + databaseId: "", + tableId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md new file mode 100644 index 0000000000..2c6d7a3944 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + + result = await grids.GetColumn( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md new file mode 100644 index 0000000000..5aebe5104d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Database result = await grids.GetDatabase( + databaseId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md new file mode 100644 index 0000000000..ff99a21ed0 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIndex result = await grids.GetIndex( + databaseId: "", + tableId: "", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md new file mode 100644 index 0000000000..c75e0e50d5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +Row result = await grids.GetRow( + databaseId: "", + tableId: "", + rowId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md new file mode 100644 index 0000000000..7fcecc6170 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Table result = await grids.GetTable( + databaseId: "", + tableId: "" +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..3e6d044905 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Row result = await grids.IncrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + max: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md new file mode 100644 index 0000000000..e8478c1d23 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnList result = await grids.ListColumns( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md new file mode 100644 index 0000000000..f37deb8ef2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +DatabaseList result = await grids.ListDatabases( + queries: new List(), // optional + search: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md new file mode 100644 index 0000000000..b6f3737b43 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIndexList result = await grids.ListIndexes( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md new file mode 100644 index 0000000000..a1a64fe256 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +RowList result = await grids.ListRows( + databaseId: "", + tableId: "", + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md new file mode 100644 index 0000000000..85f431b7ef --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +TableList result = await grids.ListTables( + databaseId: "", + queries: new List(), // optional + search: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..ff2376e403 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnBoolean result = await grids.UpdateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md new file mode 100644 index 0000000000..cd3b0a236d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Database result = await grids.UpdateDatabase( + databaseId: "", + name: "", + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..7b630922e8 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnDatetime result = await grids.UpdateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md new file mode 100644 index 0000000000..9ce04025ca --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnEmail result = await grids.UpdateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..b29b3615de --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnEnum result = await grids.UpdateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: new List(), + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md new file mode 100644 index 0000000000..96db20a2c5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnFloat result = await grids.UpdateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..87e6b0fee2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnInteger result = await grids.UpdateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..789c6c98e6 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnIp result = await grids.UpdateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..a1d30a43a2 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnRelationship result = await grids.UpdateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: RelationMutate.Cascade, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md new file mode 100644 index 0000000000..2dc2b23d32 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +Row result = await grids.UpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [object], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md new file mode 100644 index 0000000000..c0103c9639 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +RowList result = await grids.UpdateRows( + databaseId: "", + tableId: "", + data: [object], // optional + queries: new List() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md new file mode 100644 index 0000000000..2277142eb8 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnString result = await grids.UpdateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md new file mode 100644 index 0000000000..76362573a5 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +Table result = await grids.UpdateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md new file mode 100644 index 0000000000..8054b60e3f --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +ColumnUrl result = await grids.UpdateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md new file mode 100644 index 0000000000..7f517a2f09 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +Row result = await grids.UpsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: [object], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..1cb3b54d0b --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Grids grids = new Grids(client); + +RowList result = await grids.UpsertRows( + databaseId: "", + tableId: "", + rows: new List() +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..11d8b0ca50 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateBooleanColumn( + "", + "", + "", + false, + grids.WithCreateBooleanColumnDefault(false), + grids.WithCreateBooleanColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-database.md b/docs/examples/1.8.x/server-go/examples/grids/create-database.md new file mode 100644 index 0000000000..d66dea2c03 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-database.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateDatabase( + "", + "", + grids.WithCreateDatabaseEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..e386f763ff --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateDatetimeColumn( + "", + "", + "", + false, + grids.WithCreateDatetimeColumnDefault(""), + grids.WithCreateDatetimeColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md new file mode 100644 index 0000000000..9ecdf5cadf --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateEmailColumn( + "", + "", + "", + false, + grids.WithCreateEmailColumnDefault("email@example.com"), + grids.WithCreateEmailColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..35a2ed3f0f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateEnumColumn( + "", + "", + "", + []interface{}{}, + false, + grids.WithCreateEnumColumnDefault(""), + grids.WithCreateEnumColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md new file mode 100644 index 0000000000..765eb58f24 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateFloatColumn( + "", + "", + "", + false, + grids.WithCreateFloatColumnMin(0), + grids.WithCreateFloatColumnMax(0), + grids.WithCreateFloatColumnDefault(0), + grids.WithCreateFloatColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-index.md b/docs/examples/1.8.x/server-go/examples/grids/create-index.md new file mode 100644 index 0000000000..ad39cc5c83 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-index.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateIndex( + "", + "", + "", + "key", + []interface{}{}, + grids.WithCreateIndexOrders([]interface{}{}), + grids.WithCreateIndexLengths([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..3b67883650 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateIntegerColumn( + "", + "", + "", + false, + grids.WithCreateIntegerColumnMin(0), + grids.WithCreateIntegerColumnMax(0), + grids.WithCreateIntegerColumnDefault(0), + grids.WithCreateIntegerColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..8954c91144 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateIpColumn( + "", + "", + "", + false, + grids.WithCreateIpColumnDefault(""), + grids.WithCreateIpColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..2ce5bd2acd --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateRelationshipColumn( + "", + "", + "", + "oneToOne", + grids.WithCreateRelationshipColumnTwoWay(false), + grids.WithCreateRelationshipColumnKey(""), + grids.WithCreateRelationshipColumnTwoWayKey(""), + grids.WithCreateRelationshipColumnOnDelete("cascade"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-row.md b/docs/examples/1.8.x/server-go/examples/grids/create-row.md new file mode 100644 index 0000000000..b2e8aac2a2 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-row.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.CreateRow( + "", + "", + "", + map[string]interface{}{}, + grids.WithCreateRowPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-rows.md b/docs/examples/1.8.x/server-go/examples/grids/create-rows.md new file mode 100644 index 0000000000..95442b0231 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateRows( + "", + "", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md new file mode 100644 index 0000000000..0033ea1af6 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateStringColumn( + "", + "", + "", + 1, + false, + grids.WithCreateStringColumnDefault(""), + grids.WithCreateStringColumnArray(false), + grids.WithCreateStringColumnEncrypt(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-table.md b/docs/examples/1.8.x/server-go/examples/grids/create-table.md new file mode 100644 index 0000000000..adc367db5c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-table.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateTable( + "", + "", + "", + grids.WithCreateTablePermissions(interface{}{"read("any")"}), + grids.WithCreateTableRowSecurity(false), + grids.WithCreateTableEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md new file mode 100644 index 0000000000..3e93fe1838 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.CreateUrlColumn( + "", + "", + "", + false, + grids.WithCreateUrlColumnDefault("https://example.com"), + grids.WithCreateUrlColumnArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..cb36ada619 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DecrementRowColumn( + "", + "", + "", + "", + grids.WithDecrementRowColumnValue(0), + grids.WithDecrementRowColumnMin(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-column.md b/docs/examples/1.8.x/server-go/examples/grids/delete-column.md new file mode 100644 index 0000000000..6b73e86c05 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-column.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteColumn( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-database.md b/docs/examples/1.8.x/server-go/examples/grids/delete-database.md new file mode 100644 index 0000000000..4d74f859fc --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-database.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteDatabase( + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-index.md b/docs/examples/1.8.x/server-go/examples/grids/delete-index.md new file mode 100644 index 0000000000..c34a2752ac --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteIndex( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-row.md b/docs/examples/1.8.x/server-go/examples/grids/delete-row.md new file mode 100644 index 0000000000..cb072c49bd --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-row.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.DeleteRow( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md new file mode 100644 index 0000000000..0ce880f996 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteRows( + "", + "", + grids.WithDeleteRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-table.md b/docs/examples/1.8.x/server-go/examples/grids/delete-table.md new file mode 100644 index 0000000000..66e031a5ce --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/delete-table.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.DeleteTable( + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-column.md b/docs/examples/1.8.x/server-go/examples/grids/get-column.md new file mode 100644 index 0000000000..bff6153550 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-column.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.GetColumn( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-database.md b/docs/examples/1.8.x/server-go/examples/grids/get-database.md new file mode 100644 index 0000000000..4f80bf5590 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-database.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.GetDatabase( + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-index.md b/docs/examples/1.8.x/server-go/examples/grids/get-index.md new file mode 100644 index 0000000000..5982b49b2e --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.GetIndex( + "", + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-row.md b/docs/examples/1.8.x/server-go/examples/grids/get-row.md new file mode 100644 index 0000000000..1551d4969b --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-row.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.GetRow( + "", + "", + "", + grids.WithGetRowQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-table.md b/docs/examples/1.8.x/server-go/examples/grids/get-table.md new file mode 100644 index 0000000000..1f96e8526d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/get-table.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.GetTable( + "", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..52f5858884 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.IncrementRowColumn( + "", + "", + "", + "", + grids.WithIncrementRowColumnValue(0), + grids.WithIncrementRowColumnMax(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-columns.md b/docs/examples/1.8.x/server-go/examples/grids/list-columns.md new file mode 100644 index 0000000000..ae411a216c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-columns.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.ListColumns( + "", + "", + grids.WithListColumnsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-databases.md b/docs/examples/1.8.x/server-go/examples/grids/list-databases.md new file mode 100644 index 0000000000..e43bd7d100 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-databases.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.ListDatabases( + grids.WithListDatabasesQueries([]interface{}{}), + grids.WithListDatabasesSearch(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md new file mode 100644 index 0000000000..092c75301a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.ListIndexes( + "", + "", + grids.WithListIndexesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-rows.md b/docs/examples/1.8.x/server-go/examples/grids/list-rows.md new file mode 100644 index 0000000000..b406f106bb --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.ListRows( + "", + "", + grids.WithListRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-tables.md b/docs/examples/1.8.x/server-go/examples/grids/list-tables.md new file mode 100644 index 0000000000..f38879c65b --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/list-tables.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.ListTables( + "", + grids.WithListTablesQueries([]interface{}{}), + grids.WithListTablesSearch(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..5ffc910caf --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateBooleanColumn( + "", + "", + "", + false, + false, + grids.WithUpdateBooleanColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-database.md b/docs/examples/1.8.x/server-go/examples/grids/update-database.md new file mode 100644 index 0000000000..9f9c95546a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-database.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateDatabase( + "", + "", + grids.WithUpdateDatabaseEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..5bf6440a74 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateDatetimeColumn( + "", + "", + "", + false, + "", + grids.WithUpdateDatetimeColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md new file mode 100644 index 0000000000..8ebbdcabc4 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateEmailColumn( + "", + "", + "", + false, + "email@example.com", + grids.WithUpdateEmailColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..edec1cbcc0 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateEnumColumn( + "", + "", + "", + []interface{}{}, + false, + "", + grids.WithUpdateEnumColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md new file mode 100644 index 0000000000..80057dab06 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateFloatColumn( + "", + "", + "", + false, + 0, + grids.WithUpdateFloatColumnMin(0), + grids.WithUpdateFloatColumnMax(0), + grids.WithUpdateFloatColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..a3b9bd316c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateIntegerColumn( + "", + "", + "", + false, + 0, + grids.WithUpdateIntegerColumnMin(0), + grids.WithUpdateIntegerColumnMax(0), + grids.WithUpdateIntegerColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..888c69e9ee --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateIpColumn( + "", + "", + "", + false, + "", + grids.WithUpdateIpColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..db57f41995 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateRelationshipColumn( + "", + "", + "", + grids.WithUpdateRelationshipColumnOnDelete("cascade"), + grids.WithUpdateRelationshipColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-row.md b/docs/examples/1.8.x/server-go/examples/grids/update-row.md new file mode 100644 index 0000000000..e1a99f289f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-row.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.UpdateRow( + "", + "", + "", + grids.WithUpdateRowData(map[string]interface{}{}), + grids.WithUpdateRowPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-rows.md b/docs/examples/1.8.x/server-go/examples/grids/update-rows.md new file mode 100644 index 0000000000..f2b0c0c6de --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-rows.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateRows( + "", + "", + grids.WithUpdateRowsData(map[string]interface{}{}), + grids.WithUpdateRowsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md new file mode 100644 index 0000000000..a50fcb704c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateStringColumn( + "", + "", + "", + false, + "", + grids.WithUpdateStringColumnSize(1), + grids.WithUpdateStringColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-table.md b/docs/examples/1.8.x/server-go/examples/grids/update-table.md new file mode 100644 index 0000000000..cf1bef575f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-table.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateTable( + "", + "", + "", + grids.WithUpdateTablePermissions(interface{}{"read("any")"}), + grids.WithUpdateTableRowSecurity(false), + grids.WithUpdateTableEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md new file mode 100644 index 0000000000..0c28025e5c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpdateUrlColumn( + "", + "", + "", + false, + "https://example.com", + grids.WithUpdateUrlColumnNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md new file mode 100644 index 0000000000..bc104a159a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithSession("") // The user session to authenticate with + ) + + service := grids.New(client) + response, error := service.UpsertRow( + "", + "", + "", + grids.WithUpsertRowData(map[string]interface{}{}), + grids.WithUpsertRowPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..6282f9da2e --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/grids" +) + +func main() { + client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + client.WithProject("") // Your project ID + client.WithKey("") // Your secret API key + ) + + service := grids.New(client) + response, error := service.UpsertRows( + "", + "", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.8.x/server-graphql/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..bd7abcb175 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md @@ -0,0 +1,20 @@ +mutation { + gridsCreateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md new file mode 100644 index 0000000000..41d37ebdee --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md @@ -0,0 +1,13 @@ +mutation { + gridsCreateDatabase( + databaseId: "", + name: "", + enabled: false + ) { + _id + name + _createdAt + _updatedAt + enabled + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..aa14c43156 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md @@ -0,0 +1,21 @@ +mutation { + gridsCreateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md new file mode 100644 index 0000000000..c9bc913726 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md @@ -0,0 +1,21 @@ +mutation { + gridsCreateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..8ace10f9ac --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md @@ -0,0 +1,23 @@ +mutation { + gridsCreateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + elements + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md new file mode 100644 index 0000000000..92031d03ca --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md @@ -0,0 +1,24 @@ +mutation { + gridsCreateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, + max: 0, + default: 0, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md new file mode 100644 index 0000000000..cc338ddad2 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md @@ -0,0 +1,22 @@ +mutation { + gridsCreateIndex( + databaseId: "", + tableId: "", + key: "", + type: "key", + columns: [], + orders: [], + lengths: [] + ) { + _id + _createdAt + _updatedAt + key + type + status + error + columns + lengths + orders + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..735d47c8ac --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md @@ -0,0 +1,24 @@ +mutation { + gridsCreateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, + max: 0, + default: 0, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..241d308f09 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md @@ -0,0 +1,21 @@ +mutation { + gridsCreateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..2c08478e09 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md @@ -0,0 +1,27 @@ +mutation { + gridsCreateRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: "oneToOne", + twoWay: false, + key: "", + twoWayKey: "", + onDelete: "cascade" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + relatedTable + relationType + twoWay + twoWayKey + onDelete + side + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md new file mode 100644 index 0000000000..cffb7361f2 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md @@ -0,0 +1,18 @@ +mutation { + gridsCreateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md new file mode 100644 index 0000000000..cd134ec201 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md @@ -0,0 +1,19 @@ +mutation { + gridsCreateRows( + databaseId: "", + tableId: "", + rows: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md new file mode 100644 index 0000000000..57b42c6010 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md @@ -0,0 +1,24 @@ +mutation { + gridsCreateStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", + array: false, + encrypt: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + encrypt + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md new file mode 100644 index 0000000000..77335ad867 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md @@ -0,0 +1,32 @@ +mutation { + gridsCreateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], + rowSecurity: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + _permissions + databaseId + name + enabled + rowSecurity + columns + indexes { + _id + _createdAt + _updatedAt + key + type + status + error + columns + lengths + orders + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md new file mode 100644 index 0000000000..07ca9ab869 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md @@ -0,0 +1,21 @@ +mutation { + gridsCreateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..6b47884a92 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md @@ -0,0 +1,19 @@ +mutation { + gridsDecrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, + min: 0 + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md new file mode 100644 index 0000000000..0ad25321b5 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md @@ -0,0 +1,9 @@ +mutation { + gridsDeleteColumn( + databaseId: "", + tableId: "", + key: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md new file mode 100644 index 0000000000..a3e3d1a5bf --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md @@ -0,0 +1,7 @@ +mutation { + gridsDeleteDatabase( + databaseId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md new file mode 100644 index 0000000000..0921aa0aef --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md @@ -0,0 +1,9 @@ +mutation { + gridsDeleteIndex( + databaseId: "", + tableId: "", + key: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md new file mode 100644 index 0000000000..40dcbdc219 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md @@ -0,0 +1,9 @@ +mutation { + gridsDeleteRow( + databaseId: "", + tableId: "", + rowId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md new file mode 100644 index 0000000000..69559934a4 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md @@ -0,0 +1,19 @@ +mutation { + gridsDeleteRows( + databaseId: "", + tableId: "", + queries: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md new file mode 100644 index 0000000000..a145be50d9 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md @@ -0,0 +1,8 @@ +mutation { + gridsDeleteTable( + databaseId: "", + tableId: "" + ) { + status + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..709e6b2f0d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md @@ -0,0 +1,19 @@ +mutation { + gridsIncrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, + max: 0 + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..67c8495471 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md @@ -0,0 +1,20 @@ +mutation { + gridsUpdateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md new file mode 100644 index 0000000000..02c045b9cd --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md @@ -0,0 +1,13 @@ +mutation { + gridsUpdateDatabase( + databaseId: "", + name: "", + enabled: false + ) { + _id + name + _createdAt + _updatedAt + enabled + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..5e19393c67 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md @@ -0,0 +1,21 @@ +mutation { + gridsUpdateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md new file mode 100644 index 0000000000..caa6153896 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md @@ -0,0 +1,21 @@ +mutation { + gridsUpdateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..c3d90f4e23 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md @@ -0,0 +1,23 @@ +mutation { + gridsUpdateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + elements + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md new file mode 100644 index 0000000000..a6b700ce73 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md @@ -0,0 +1,24 @@ +mutation { + gridsUpdateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, + max: 0, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..fcc53102d1 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md @@ -0,0 +1,24 @@ +mutation { + gridsUpdateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, + max: 0, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..f867063151 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md @@ -0,0 +1,21 @@ +mutation { + gridsUpdateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..e24311b53a --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md @@ -0,0 +1,24 @@ +mutation { + gridsUpdateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: "cascade", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + relatedTable + relationType + twoWay + twoWayKey + onDelete + side + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md new file mode 100644 index 0000000000..2bb105e8c0 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md @@ -0,0 +1,18 @@ +mutation { + gridsUpdateRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md new file mode 100644 index 0000000000..99df9b0b99 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md @@ -0,0 +1,20 @@ +mutation { + gridsUpdateRows( + databaseId: "", + tableId: "", + data: "{}", + queries: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md new file mode 100644 index 0000000000..c98f49a807 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md @@ -0,0 +1,23 @@ +mutation { + gridsUpdateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + encrypt + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md new file mode 100644 index 0000000000..cea6d5cfff --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md @@ -0,0 +1,32 @@ +mutation { + gridsUpdateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], + rowSecurity: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + _permissions + databaseId + name + enabled + rowSecurity + columns + indexes { + _id + _createdAt + _updatedAt + key + type + status + error + columns + lengths + orders + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md new file mode 100644 index 0000000000..c64d93882d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md @@ -0,0 +1,21 @@ +mutation { + gridsUpdateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md new file mode 100644 index 0000000000..f8e0606109 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md @@ -0,0 +1,18 @@ +mutation { + gridsUpsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..d456e9883d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md @@ -0,0 +1,19 @@ +mutation { + gridsUpsertRows( + databaseId: "", + tableId: "", + rows: [] + ) { + total + rows { + _id + _sequence + _tableId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md index 8f77dd60eb..26970a18a8 100644 --- a/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-graphql/examples/sites/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md b/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md index 5b4f9a0c22..70bf6cbb1f 100644 --- a/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-graphql/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md index 368b816219..5231be33d6 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md @@ -4,9 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT(""); // Your secret JSON Web Token + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md index 77d79812a9..0de0c276ed 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // + .setProject("") // Your project ID .setKey(""); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md index b1b4de4db4..daa44141e2 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md @@ -4,9 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setSession("") // The user session to authenticate with - .setKey("") // Your secret API key - .setJWT(""); // Your secret JSON Web Token + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); @@ -14,6 +13,8 @@ databases.upsertDocument( "", // databaseId "", // collectionId "", // documentId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md index 0bf0c1778c..95e9a33ef2 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // + .setProject("") // Your project ID .setKey(""); // Your secret API key Databases databases = new Databases(client); @@ -12,6 +12,7 @@ Databases databases = new Databases(client); databases.upsertDocuments( "", // databaseId "", // collectionId + listOf(), // documents new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md index 82d48fa55b..93efa0adf8 100644 --- a/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.8.x/server-kotlin/java/functions/create-execution.md @@ -16,7 +16,7 @@ functions.createExecution( "", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) - "", // scheduledAt (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md new file mode 100644 index 0000000000..2981fc8cf4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createBooleanColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + false, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md new file mode 100644 index 0000000000..4c6155962e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createDatabase( + "", // databaseId + "", // name + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md new file mode 100644 index 0000000000..7389ea9a94 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createDatetimeColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md new file mode 100644 index 0000000000..be481047e1 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createEmailColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "email@example.com", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md new file mode 100644 index 0000000000..33c6b63e27 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createEnumColumn( + "", // databaseId + "", // tableId + "", // key + listOf(), // elements + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md new file mode 100644 index 0000000000..d66f1b5c60 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createFloatColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // min (optional) + 0, // max (optional) + 0, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md new file mode 100644 index 0000000000..670310bb66 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; +import io.appwrite.enums.IndexType; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createIndex( + "", // databaseId + "", // tableId + "", // key + IndexType.KEY, // type + listOf(), // columns + listOf(), // orders (optional) + listOf(), // lengths (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md new file mode 100644 index 0000000000..342654ef1a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createIntegerColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // min (optional) + 0, // max (optional) + 0, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md new file mode 100644 index 0000000000..d72e7dd59d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createIpColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md new file mode 100644 index 0000000000..2d1c5fb22a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md @@ -0,0 +1,31 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; +import io.appwrite.enums.RelationshipType; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createRelationshipColumn( + "", // databaseId + "", // tableId + "", // relatedTableId + RelationshipType.ONETOONE, // type + false, // twoWay (optional) + "", // key (optional) + "", // twoWayKey (optional) + RelationMutate.CASCADE, // onDelete (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md new file mode 100644 index 0000000000..6b954814c0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.createRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md new file mode 100644 index 0000000000..a55855d8f5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createRows( + "", // databaseId + "", // tableId + listOf(), // rows + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md new file mode 100644 index 0000000000..b819afb4b4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createStringColumn( + "", // databaseId + "", // tableId + "", // key + 1, // size + false, // required + "", // default (optional) + false, // array (optional) + false, // encrypt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md new file mode 100644 index 0000000000..aa98b81de6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createTable( + "", // databaseId + "", // tableId + "", // name + listOf("read("any")"), // permissions (optional) + false, // rowSecurity (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md new file mode 100644 index 0000000000..d8761440b3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.createUrlColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "https://example.com", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md new file mode 100644 index 0000000000..407ea83f81 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.decrementRowColumn( + "", // databaseId + "", // tableId + "", // rowId + "", // column + 0, // value (optional) + 0, // min (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md new file mode 100644 index 0000000000..cc3c40fba7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteColumn( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md new file mode 100644 index 0000000000..fca41e75ea --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteDatabase( + "", // databaseId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md new file mode 100644 index 0000000000..43449e908f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteIndex( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md new file mode 100644 index 0000000000..cb812bac12 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.deleteRow( + "", // databaseId + "", // tableId + "", // rowId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md new file mode 100644 index 0000000000..2425af9e8c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md new file mode 100644 index 0000000000..dbbb4781ba --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.deleteTable( + "", // databaseId + "", // tableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md new file mode 100644 index 0000000000..1d630f17d7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.getColumn( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md new file mode 100644 index 0000000000..bc7eea4dbb --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.getDatabase( + "", // databaseId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md new file mode 100644 index 0000000000..14163c34a9 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.getIndex( + "", // databaseId + "", // tableId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md new file mode 100644 index 0000000000..e9d89c92b8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.getRow( + "", // databaseId + "", // tableId + "", // rowId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md new file mode 100644 index 0000000000..39d090219b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.getTable( + "", // databaseId + "", // tableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md new file mode 100644 index 0000000000..aaccf0a1a3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.incrementRowColumn( + "", // databaseId + "", // tableId + "", // rowId + "", // column + 0, // value (optional) + 0, // max (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md new file mode 100644 index 0000000000..f95ca925a6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.listColumns( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md new file mode 100644 index 0000000000..97f7263dd4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.listDatabases( + listOf(), // queries (optional) + "", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md new file mode 100644 index 0000000000..aa5b11a8c2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.listIndexes( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md new file mode 100644 index 0000000000..ccf3d74a25 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.listRows( + "", // databaseId + "", // tableId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md new file mode 100644 index 0000000000..0a60dbeebe --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.listTables( + "", // databaseId + listOf(), // queries (optional) + "", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md new file mode 100644 index 0000000000..e3d6b71b70 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateBooleanColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + false, // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md new file mode 100644 index 0000000000..da9bd7d04b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateDatabase( + "", // databaseId + "", // name + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md new file mode 100644 index 0000000000..ede33229ad --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateDatetimeColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md new file mode 100644 index 0000000000..48803eb4f4 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateEmailColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "email@example.com", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md new file mode 100644 index 0000000000..63dc238d2e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateEnumColumn( + "", // databaseId + "", // tableId + "", // key + listOf(), // elements + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md new file mode 100644 index 0000000000..9833f5ec8b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateFloatColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md new file mode 100644 index 0000000000..059b1328d5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateIntegerColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md new file mode 100644 index 0000000000..8e31214981 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateIpColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md new file mode 100644 index 0000000000..b90b21b164 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateRelationshipColumn( + "", // databaseId + "", // tableId + "", // key + RelationMutate.CASCADE, // onDelete (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md new file mode 100644 index 0000000000..5f95afb5f5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.updateRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md new file mode 100644 index 0000000000..67c9a1be89 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateRows( + "", // databaseId + "", // tableId + mapOf( "a" to "b" ), // data (optional) + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md new file mode 100644 index 0000000000..13e266abc0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateStringColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "", // default + 1, // size (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md new file mode 100644 index 0000000000..24dfc05e49 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateTable( + "", // databaseId + "", // tableId + "", // name + listOf("read("any")"), // permissions (optional) + false, // rowSecurity (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md new file mode 100644 index 0000000000..5217121225 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.updateUrlColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + "https://example.com", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md new file mode 100644 index 0000000000..8f1b8670df --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Grids grids = new Grids(client); + +grids.upsertRow( + "", // databaseId + "", // tableId + "", // rowId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md new file mode 100644 index 0000000000..2081f0f19f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Grids; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Grids grids = new Grids(client); + +grids.upsertRows( + "", // databaseId + "", // tableId + listOf(), // rows + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md new file mode 100644 index 0000000000..5966655e1e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createBooleanColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = false, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md new file mode 100644 index 0000000000..bc9999ff18 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createDatabase( + databaseId = "", + name = "", + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md new file mode 100644 index 0000000000..f3b11b5018 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createDatetimeColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md new file mode 100644 index 0000000000..a70dd3ac45 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createEmailColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "email@example.com", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md new file mode 100644 index 0000000000..3858155479 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createEnumColumn( + databaseId = "", + tableId = "", + key = "", + elements = listOf(), + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md new file mode 100644 index 0000000000..d7b4c0155d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createFloatColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + min = 0, // optional + max = 0, // optional + default = 0, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md new file mode 100644 index 0000000000..df16a35cc2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids +import io.appwrite.enums.IndexType + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createIndex( + databaseId = "", + tableId = "", + key = "", + type = IndexType.KEY, + columns = listOf(), + orders = listOf(), // optional + lengths = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md new file mode 100644 index 0000000000..db8bde2d72 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createIntegerColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + min = 0, // optional + max = 0, // optional + default = 0, // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md new file mode 100644 index 0000000000..f3ab36bd0c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createIpColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md new file mode 100644 index 0000000000..9ba4cafbb7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md @@ -0,0 +1,22 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids +import io.appwrite.enums.RelationshipType + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createRelationshipColumn( + databaseId = "", + tableId = "", + relatedTableId = "", + type = RelationshipType.ONETOONE, + twoWay = false, // optional + key = "", // optional + twoWayKey = "", // optional + onDelete = "cascade" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md new file mode 100644 index 0000000000..0c3d2531c5 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.createRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md new file mode 100644 index 0000000000..9c7da7c93b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createRows( + databaseId = "", + tableId = "", + rows = listOf() +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md new file mode 100644 index 0000000000..f6793c817b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createStringColumn( + databaseId = "", + tableId = "", + key = "", + size = 1, + required = false, + default = "", // optional + array = false, // optional + encrypt = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md new file mode 100644 index 0000000000..55de471725 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createTable( + databaseId = "", + tableId = "", + name = "", + permissions = listOf("read("any")"), // optional + rowSecurity = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md new file mode 100644 index 0000000000..33311e29ca --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.createUrlColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "https://example.com", // optional + array = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md new file mode 100644 index 0000000000..9a450f66f3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.decrementRowColumn( + databaseId = "", + tableId = "", + rowId = "", + column = "", + value = 0, // optional + min = 0 // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md new file mode 100644 index 0000000000..09636dae09 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteColumn( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md new file mode 100644 index 0000000000..f872453a99 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteDatabase( + databaseId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md new file mode 100644 index 0000000000..d3037ca6b0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteIndex( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md new file mode 100644 index 0000000000..25b60e0e2d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.deleteRow( + databaseId = "", + tableId = "", + rowId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md new file mode 100644 index 0000000000..c3aa106eac --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteRows( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md new file mode 100644 index 0000000000..f0208d4345 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.deleteTable( + databaseId = "", + tableId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md new file mode 100644 index 0000000000..92890a7dc3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.getColumn( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md new file mode 100644 index 0000000000..fd91ab0ad3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.getDatabase( + databaseId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md new file mode 100644 index 0000000000..7c0b2dc8cb --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.getIndex( + databaseId = "", + tableId = "", + key = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md new file mode 100644 index 0000000000..b217814b27 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.getRow( + databaseId = "", + tableId = "", + rowId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md new file mode 100644 index 0000000000..d8a4cd243e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.getTable( + databaseId = "", + tableId = "" +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md new file mode 100644 index 0000000000..adbe5c287e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.incrementRowColumn( + databaseId = "", + tableId = "", + rowId = "", + column = "", + value = 0, // optional + max = 0 // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md new file mode 100644 index 0000000000..b033eb423d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.listColumns( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md new file mode 100644 index 0000000000..c713568269 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.listDatabases( + queries = listOf(), // optional + search = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md new file mode 100644 index 0000000000..84bbcbd232 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.listIndexes( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md new file mode 100644 index 0000000000..ea54280ff3 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.listRows( + databaseId = "", + tableId = "", + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md new file mode 100644 index 0000000000..6bb5a588b2 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.listTables( + databaseId = "", + queries = listOf(), // optional + search = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md new file mode 100644 index 0000000000..b9360ec99e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateBooleanColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = false, + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md new file mode 100644 index 0000000000..ae8aacc343 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateDatabase( + databaseId = "", + name = "", + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md new file mode 100644 index 0000000000..50282217d7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateDatetimeColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md new file mode 100644 index 0000000000..a9c2996800 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateEmailColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "email@example.com", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md new file mode 100644 index 0000000000..c23eef358b --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateEnumColumn( + databaseId = "", + tableId = "", + key = "", + elements = listOf(), + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md new file mode 100644 index 0000000000..1054c34fbd --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateFloatColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md new file mode 100644 index 0000000000..288c74b4fe --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateIntegerColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md new file mode 100644 index 0000000000..cbc358a3b6 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateIpColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md new file mode 100644 index 0000000000..99df537cfe --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateRelationshipColumn( + databaseId = "", + tableId = "", + key = "", + onDelete = "cascade", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md new file mode 100644 index 0000000000..ae18af353a --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.updateRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // optional + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md new file mode 100644 index 0000000000..3682cd0724 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateRows( + databaseId = "", + tableId = "", + data = mapOf( "a" to "b" ), // optional + queries = listOf() // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md new file mode 100644 index 0000000000..8f7a213260 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateStringColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "", + size = 1, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md new file mode 100644 index 0000000000..99232d858f --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateTable( + databaseId = "", + tableId = "", + name = "", + permissions = listOf("read("any")"), // optional + rowSecurity = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md new file mode 100644 index 0000000000..65d299dba8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.updateUrlColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = "https://example.com", + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md new file mode 100644 index 0000000000..cbf0f38c8d --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val grids = Grids(client) + +val response = grids.upsertRow( + databaseId = "", + tableId = "", + rowId = "", + data = mapOf( "a" to "b" ), // optional + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md new file mode 100644 index 0000000000..c767b66803 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Grids + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val grids = Grids(client) + +val response = grids.upsertRows( + databaseId = "", + tableId = "", + rows = listOf() +) diff --git a/docs/examples/1.8.x/server-nodejs/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..dae3f30840 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md new file mode 100644 index 0000000000..720c0d6f23 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..d2b5c7e00f --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md new file mode 100644 index 0000000000..ce56e96d85 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..653b1ed75c --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md new file mode 100644 index 0000000000..dc6aee4805 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md new file mode 100644 index 0000000000..975fa3047e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createIndex( + '', // databaseId + '', // tableId + '', // key + sdk.IndexType.Key, // type + [], // columns + [], // orders (optional) + [] // lengths (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..3444f82b58 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..52a9e8fbeb --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..c0270dab85 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createRelationshipColumn( + '', // databaseId + '', // tableId + '', // relatedTableId + sdk.RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + sdk.RelationMutate.Cascade // onDelete (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md new file mode 100644 index 0000000000..a8495c4b94 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.createRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md new file mode 100644 index 0000000000..c9400a4edf --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md new file mode 100644 index 0000000000..f72d042dfb --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createStringColumn( + '', // databaseId + '', // tableId + '', // key + 1, // size + false, // required + '', // default (optional) + false, // array (optional) + false // encrypt (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md new file mode 100644 index 0000000000..d022de372f --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md new file mode 100644 index 0000000000..83c6d5a01b --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.createUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..a166a1bfc0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.decrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // min (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md new file mode 100644 index 0000000000..7130f48cae --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md new file mode 100644 index 0000000000..4a31d091b7 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteDatabase( + '' // databaseId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md new file mode 100644 index 0000000000..b266062053 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md new file mode 100644 index 0000000000..cf202374a0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.deleteRow( + '', // databaseId + '', // tableId + '' // rowId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md new file mode 100644 index 0000000000..aa36bacbda --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md new file mode 100644 index 0000000000..d3bb221e0d --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.deleteTable( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md new file mode 100644 index 0000000000..d3b08936d2 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.getColumn( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md new file mode 100644 index 0000000000..7d27bbca94 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.getDatabase( + '' // databaseId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md new file mode 100644 index 0000000000..e47b942df9 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.getIndex( + '', // databaseId + '', // tableId + '' // key +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md new file mode 100644 index 0000000000..15c753000a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.getRow( + '', // databaseId + '', // tableId + '', // rowId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md new file mode 100644 index 0000000000..f7b28eb191 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.getTable( + '', // databaseId + '' // tableId +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..ac5257f658 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.incrementRowColumn( + '', // databaseId + '', // tableId + '', // rowId + '', // column + null, // value (optional) + null // max (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md new file mode 100644 index 0000000000..dbfaac0262 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.listColumns( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md new file mode 100644 index 0000000000..8a20b2ac88 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.listDatabases( + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md new file mode 100644 index 0000000000..8a102996a6 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.listIndexes( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md new file mode 100644 index 0000000000..9f9bb3bc33 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.listRows( + '', // databaseId + '', // tableId + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md new file mode 100644 index 0000000000..e020b883e0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.listTables( + '', // databaseId + [], // queries (optional) + '' // search (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..b695e2d194 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateBooleanColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + false, // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md new file mode 100644 index 0000000000..689c38f605 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateDatabase( + '', // databaseId + '', // name + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..8ec6f1cda7 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateDatetimeColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md new file mode 100644 index 0000000000..f8e0918819 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateEmailColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..bda1aad53a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateEnumColumn( + '', // databaseId + '', // tableId + '', // key + [], // elements + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md new file mode 100644 index 0000000000..ae3d5ceb4b --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateFloatColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..a3e28bc406 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateIntegerColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..ff8692f81e --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateIpColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..19f957f67a --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateRelationshipColumn( + '', // databaseId + '', // tableId + '', // key + sdk.RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md new file mode 100644 index 0000000000..79c845f558 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.updateRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md new file mode 100644 index 0000000000..65c8f63cbd --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateRows( + '', // databaseId + '', // tableId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md new file mode 100644 index 0000000000..b04f38bd5d --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateStringColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + '', // default + 1, // size (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md new file mode 100644 index 0000000000..3d80666600 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateTable( + '', // databaseId + '', // tableId + '', // name + ["read("any")"], // permissions (optional) + false, // rowSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md new file mode 100644 index 0000000000..aa368bfcc0 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.updateUrlColumn( + '', // databaseId + '', // tableId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md new file mode 100644 index 0000000000..03476fc311 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with + +const grids = new sdk.Grids(client); + +const result = await grids.upsertRow( + '', // databaseId + '', // tableId + '', // rowId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..19f2ce1a90 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const grids = new sdk.Grids(client); + +const result = await grids.upsertRows( + '', // databaseId + '', // tableId + [] // rows +); diff --git a/docs/examples/1.8.x/server-php/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..22e7cf8058 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createBooleanColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: false, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-database.md b/docs/examples/1.8.x/server-php/examples/grids/create-database.md new file mode 100644 index 0000000000..ff7c3f73fb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-database.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createDatabase( + databaseId: '', + name: '', + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..afb847fd30 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md new file mode 100644 index 0000000000..7516614820 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createEmailColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'email@example.com', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..f4a9ff2e5d --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md new file mode 100644 index 0000000000..7a02a1790b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createFloatColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-index.md b/docs/examples/1.8.x/server-php/examples/grids/create-index.md new file mode 100644 index 0000000000..31bfdc2754 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-index.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createIndex( + databaseId: '', + tableId: '', + key: '', + type: IndexType::KEY(), + columns: [], + orders: [], // optional + lengths: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..6495fc6309 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createIntegerColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..65379a2f94 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createIpColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..cde72569ad --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md @@ -0,0 +1,23 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createRelationshipColumn( + databaseId: '', + tableId: '', + relatedTableId: '', + type: RelationshipType::ONETOONE(), + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: RelationMutate::CASCADE() // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-row.md b/docs/examples/1.8.x/server-php/examples/grids/create-row.md new file mode 100644 index 0000000000..58f678c6c3 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-row.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->createRow( + databaseId: '', + tableId: '', + rowId: '', + data: [], + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-rows.md b/docs/examples/1.8.x/server-php/examples/grids/create-rows.md new file mode 100644 index 0000000000..531ebaf846 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createRows( + databaseId: '', + tableId: '', + rows: [] +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md new file mode 100644 index 0000000000..a5acf25859 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createStringColumn( + databaseId: '', + tableId: '', + key: '', + size: 1, + required: false, + default: '', // optional + array: false, // optional + encrypt: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-table.md b/docs/examples/1.8.x/server-php/examples/grids/create-table.md new file mode 100644 index 0000000000..ca6e017375 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-table.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createTable( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md new file mode 100644 index 0000000000..b0149f279b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->createUrlColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'https://example.com', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..d7db09ed30 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->decrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: null, // optional + min: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-column.md b/docs/examples/1.8.x/server-php/examples/grids/delete-column.md new file mode 100644 index 0000000000..3862ecbde9 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-column.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteColumn( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-database.md b/docs/examples/1.8.x/server-php/examples/grids/delete-database.md new file mode 100644 index 0000000000..761406ba9b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-database.md @@ -0,0 +1,15 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteDatabase( + databaseId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-index.md b/docs/examples/1.8.x/server-php/examples/grids/delete-index.md new file mode 100644 index 0000000000..913091455b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-index.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteIndex( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-row.md b/docs/examples/1.8.x/server-php/examples/grids/delete-row.md new file mode 100644 index 0000000000..14b72e6e56 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-row.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->deleteRow( + databaseId: '', + tableId: '', + rowId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md new file mode 100644 index 0000000000..567b497f04 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteRows( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-table.md b/docs/examples/1.8.x/server-php/examples/grids/delete-table.md new file mode 100644 index 0000000000..ea0eeda80f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/delete-table.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->deleteTable( + databaseId: '', + tableId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-column.md b/docs/examples/1.8.x/server-php/examples/grids/get-column.md new file mode 100644 index 0000000000..ac2c9bb0c4 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-column.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->getColumn( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-database.md b/docs/examples/1.8.x/server-php/examples/grids/get-database.md new file mode 100644 index 0000000000..c3e9f896c2 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-database.md @@ -0,0 +1,15 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->getDatabase( + databaseId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-index.md b/docs/examples/1.8.x/server-php/examples/grids/get-index.md new file mode 100644 index 0000000000..2434fd933b --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-index.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->getIndex( + databaseId: '', + tableId: '', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-row.md b/docs/examples/1.8.x/server-php/examples/grids/get-row.md new file mode 100644 index 0000000000..e13ea67209 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-row.md @@ -0,0 +1,18 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->getRow( + databaseId: '', + tableId: '', + rowId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-table.md b/docs/examples/1.8.x/server-php/examples/grids/get-table.md new file mode 100644 index 0000000000..1c9721f1c7 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/get-table.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->getTable( + databaseId: '', + tableId: '' +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..fc9ee9a9eb --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->incrementRowColumn( + databaseId: '', + tableId: '', + rowId: '', + column: '', + value: null, // optional + max: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-columns.md b/docs/examples/1.8.x/server-php/examples/grids/list-columns.md new file mode 100644 index 0000000000..7be7581a28 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-columns.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->listColumns( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-databases.md b/docs/examples/1.8.x/server-php/examples/grids/list-databases.md new file mode 100644 index 0000000000..f5fec16a25 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-databases.md @@ -0,0 +1,16 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->listDatabases( + queries: [], // optional + search: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md new file mode 100644 index 0000000000..d23248e5d4 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->listIndexes( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-rows.md b/docs/examples/1.8.x/server-php/examples/grids/list-rows.md new file mode 100644 index 0000000000..c8537651c6 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->listRows( + databaseId: '', + tableId: '', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-tables.md b/docs/examples/1.8.x/server-php/examples/grids/list-tables.md new file mode 100644 index 0000000000..95f4f7b65d --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/list-tables.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->listTables( + databaseId: '', + queries: [], // optional + search: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..bc7405d35d --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateBooleanColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: false, + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-database.md b/docs/examples/1.8.x/server-php/examples/grids/update-database.md new file mode 100644 index 0000000000..9d71e5e043 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-database.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateDatabase( + databaseId: '', + name: '', + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..6850a6d373 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateDatetimeColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md new file mode 100644 index 0000000000..6fe7f82477 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateEmailColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'email@example.com', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..4a18d02488 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateEnumColumn( + databaseId: '', + tableId: '', + key: '', + elements: [], + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md new file mode 100644 index 0000000000..5e58f8efaf --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateFloatColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..c097b7e286 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md @@ -0,0 +1,22 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateIntegerColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..9ce131b8e1 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateIpColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..a0241afb06 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateRelationshipColumn( + databaseId: '', + tableId: '', + key: '', + onDelete: RelationMutate::CASCADE(), // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-row.md b/docs/examples/1.8.x/server-php/examples/grids/update-row.md new file mode 100644 index 0000000000..a0aae15730 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-row.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->updateRow( + databaseId: '', + tableId: '', + rowId: '', + data: [], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-rows.md b/docs/examples/1.8.x/server-php/examples/grids/update-rows.md new file mode 100644 index 0000000000..270489f44e --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-rows.md @@ -0,0 +1,18 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateRows( + databaseId: '', + tableId: '', + data: [], // optional + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md new file mode 100644 index 0000000000..6213deb7aa --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md @@ -0,0 +1,21 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateStringColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: '', + size: 1, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-table.md b/docs/examples/1.8.x/server-php/examples/grids/update-table.md new file mode 100644 index 0000000000..1483eee2a9 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-table.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateTable( + databaseId: '', + tableId: '', + name: '', + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md new file mode 100644 index 0000000000..7f7916c81a --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->updateUrlColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: 'https://example.com', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md new file mode 100644 index 0000000000..a07cbe976f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$grids = new Grids($client); + +$result = $grids->upsertRow( + databaseId: '', + tableId: '', + rowId: '', + data: [], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..5d31648e02 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md @@ -0,0 +1,17 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$grids = new Grids($client); + +$result = $grids->upsertRows( + databaseId: '', + tableId: '', + rows: [] +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..73d8323533 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_boolean_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = False, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-database.md b/docs/examples/1.8.x/server-python/examples/grids/create-database.md new file mode 100644 index 0000000000..a7749e4903 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-database.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_database( + database_id = '', + name = '', + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..a98024c16c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_datetime_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md new file mode 100644 index 0000000000..372cbafce3 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_email_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'email@example.com', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..d7b47c80cb --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_enum_column( + database_id = '', + table_id = '', + key = '', + elements = [], + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md new file mode 100644 index 0000000000..5a52128ac1 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_float_column( + database_id = '', + table_id = '', + key = '', + required = False, + min = None, # optional + max = None, # optional + default = None, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-index.md b/docs/examples/1.8.x/server-python/examples/grids/create-index.md new file mode 100644 index 0000000000..1d67b8abc0 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-index.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids +from appwrite.enums import IndexType + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_index( + database_id = '', + table_id = '', + key = '', + type = IndexType.KEY, + columns = [], + orders = [], # optional + lengths = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..aed49578aa --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_integer_column( + database_id = '', + table_id = '', + key = '', + required = False, + min = None, # optional + max = None, # optional + default = None, # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..af873c91a1 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_ip_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..3cb858d260 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md @@ -0,0 +1,21 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids +from appwrite.enums import RelationshipType + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_relationship_column( + database_id = '', + table_id = '', + related_table_id = '', + type = RelationshipType.ONETOONE, + two_way = False, # optional + key = '', # optional + two_way_key = '', # optional + on_delete = RelationMutate.CASCADE # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-row.md b/docs/examples/1.8.x/server-python/examples/grids/create-row.md new file mode 100644 index 0000000000..5645f0bd23 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-row.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.create_row( + database_id = '', + table_id = '', + row_id = '', + data = {}, + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-rows.md b/docs/examples/1.8.x/server-python/examples/grids/create-rows.md new file mode 100644 index 0000000000..3274c48a10 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_rows( + database_id = '', + table_id = '', + rows = [] +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md new file mode 100644 index 0000000000..3771a070ba --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_string_column( + database_id = '', + table_id = '', + key = '', + size = 1, + required = False, + default = '', # optional + array = False, # optional + encrypt = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-table.md b/docs/examples/1.8.x/server-python/examples/grids/create-table.md new file mode 100644 index 0000000000..64c1b50d69 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-table.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_table( + database_id = '', + table_id = '', + name = '', + permissions = ["read("any")"], # optional + row_security = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md new file mode 100644 index 0000000000..45c1a2d82e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.create_url_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'https://example.com', # optional + array = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..9608337398 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.decrement_row_column( + database_id = '', + table_id = '', + row_id = '', + column = '', + value = None, # optional + min = None # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-column.md b/docs/examples/1.8.x/server-python/examples/grids/delete-column.md new file mode 100644 index 0000000000..650a1c3578 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-column.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_column( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-database.md b/docs/examples/1.8.x/server-python/examples/grids/delete-database.md new file mode 100644 index 0000000000..9898c07bc8 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-database.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_database( + database_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-index.md b/docs/examples/1.8.x/server-python/examples/grids/delete-index.md new file mode 100644 index 0000000000..fed36f1d9c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-index.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_index( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-row.md b/docs/examples/1.8.x/server-python/examples/grids/delete-row.md new file mode 100644 index 0000000000..eb1e661738 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.delete_row( + database_id = '', + table_id = '', + row_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md new file mode 100644 index 0000000000..31503cdee1 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_rows( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-table.md b/docs/examples/1.8.x/server-python/examples/grids/delete-table.md new file mode 100644 index 0000000000..d170c31d20 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/delete-table.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.delete_table( + database_id = '', + table_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-column.md b/docs/examples/1.8.x/server-python/examples/grids/get-column.md new file mode 100644 index 0000000000..a724e07b0a --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-column.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.get_column( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-database.md b/docs/examples/1.8.x/server-python/examples/grids/get-database.md new file mode 100644 index 0000000000..e393d7587b --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-database.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.get_database( + database_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-index.md b/docs/examples/1.8.x/server-python/examples/grids/get-index.md new file mode 100644 index 0000000000..6e3753dea5 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-index.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.get_index( + database_id = '', + table_id = '', + key = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-row.md b/docs/examples/1.8.x/server-python/examples/grids/get-row.md new file mode 100644 index 0000000000..939a992868 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-row.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.get_row( + database_id = '', + table_id = '', + row_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-table.md b/docs/examples/1.8.x/server-python/examples/grids/get-table.md new file mode 100644 index 0000000000..afe24bd0f2 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/get-table.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.get_table( + database_id = '', + table_id = '' +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..598cf58874 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.increment_row_column( + database_id = '', + table_id = '', + row_id = '', + column = '', + value = None, # optional + max = None # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-columns.md b/docs/examples/1.8.x/server-python/examples/grids/list-columns.md new file mode 100644 index 0000000000..b78327182c --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-columns.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.list_columns( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-databases.md b/docs/examples/1.8.x/server-python/examples/grids/list-databases.md new file mode 100644 index 0000000000..78c5cb4bd7 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-databases.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.list_databases( + queries = [], # optional + search = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md new file mode 100644 index 0000000000..a6b52416c6 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.list_indexes( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-rows.md b/docs/examples/1.8.x/server-python/examples/grids/list-rows.md new file mode 100644 index 0000000000..975f88f763 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.list_rows( + database_id = '', + table_id = '', + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-tables.md b/docs/examples/1.8.x/server-python/examples/grids/list-tables.md new file mode 100644 index 0000000000..3e2e5508bc --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/list-tables.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.list_tables( + database_id = '', + queries = [], # optional + search = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..6bcbf27355 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_boolean_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = False, + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-database.md b/docs/examples/1.8.x/server-python/examples/grids/update-database.md new file mode 100644 index 0000000000..2df676bcbc --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-database.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_database( + database_id = '', + name = '', + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..6ae0e4dea5 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_datetime_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md new file mode 100644 index 0000000000..c1ff1d0637 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_email_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'email@example.com', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..6da49cfb81 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_enum_column( + database_id = '', + table_id = '', + key = '', + elements = [], + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md new file mode 100644 index 0000000000..8d3d9edb5f --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_float_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..966f7b6805 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_integer_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..e5fccac320 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_ip_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..fcff4591fd --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_relationship_column( + database_id = '', + table_id = '', + key = '', + on_delete = RelationMutate.CASCADE, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-row.md b/docs/examples/1.8.x/server-python/examples/grids/update-row.md new file mode 100644 index 0000000000..e379697ce4 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-row.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.update_row( + database_id = '', + table_id = '', + row_id = '', + data = {}, # optional + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-rows.md b/docs/examples/1.8.x/server-python/examples/grids/update-rows.md new file mode 100644 index 0000000000..344bb5904b --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-rows.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_rows( + database_id = '', + table_id = '', + data = {}, # optional + queries = [] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md new file mode 100644 index 0000000000..f303189b80 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_string_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = '', + size = 1, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-table.md b/docs/examples/1.8.x/server-python/examples/grids/update-table.md new file mode 100644 index 0000000000..cfd5b4d92e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-table.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_table( + database_id = '', + table_id = '', + name = '', + permissions = ["read("any")"], # optional + row_security = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md new file mode 100644 index 0000000000..ea6dc386ed --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.update_url_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = 'https://example.com', + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md new file mode 100644 index 0000000000..79528818e0 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with + +grids = Grids(client) + +result = grids.upsert_row( + database_id = '', + table_id = '', + row_id = '', + data = {}, # optional + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..b7573d4794 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.grids import Grids + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +grids = Grids(client) + +result = grids.upsert_rows( + database_id = '', + table_id = '', + rows = [] +) diff --git a/docs/examples/1.8.x/server-rest/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..d594385572 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/boolean HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": false, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-database.md b/docs/examples/1.8.x/server-rest/examples/grids/create-database.md new file mode 100644 index 0000000000..fd1ae143fa --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-database.md @@ -0,0 +1,12 @@ +POST /v1/databases HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "databaseId": "", + "name": "", + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..88505a8a1f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/datetime HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": , + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md new file mode 100644 index 0000000000..28d733dab8 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": "email@example.com", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..35de1b5e2f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/enum HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "elements": [], + "required": false, + "default": "", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md new file mode 100644 index 0000000000..9c9996aced --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/float HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "min": 0, + "max": 0, + "default": 0, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-index.md b/docs/examples/1.8.x/server-rest/examples/grids/create-index.md new file mode 100644 index 0000000000..7a7487bdae --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-index.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/indexes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "type": "key", + "columns": [], + "orders": [], + "lengths": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..be6eb92544 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/integer HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "min": 0, + "max": 0, + "default": 0, + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..30406d7025 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/ip HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": , + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..75f54c9602 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/relationship HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "relatedTableId": "", + "type": "oneToOne", + "twoWay": false, + "key": , + "twoWayKey": , + "onDelete": "cascade" +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-row.md b/docs/examples/1.8.x/server-rest/examples/grids/create-row.md new file mode 100644 index 0000000000..443b4e30c9 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-row.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "rowId": "", + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md new file mode 100644 index 0000000000..32578d87de --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "rows": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md new file mode 100644 index 0000000000..2a0b0dc372 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/string HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "size": 1, + "required": false, + "default": "", + "array": false, + "encrypt": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-table.md b/docs/examples/1.8.x/server-rest/examples/grids/create-table.md new file mode 100644 index 0000000000..7c22e81e7c --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-table.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/grids/tables HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "tableId": "", + "name": "", + "permissions": ["read(\"any\")"], + "rowSecurity": false, + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md new file mode 100644 index 0000000000..5dada907a0 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/url HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": , + "required": false, + "default": "https://example.com", + "array": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..6548a58273 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId}/{column}/decrement HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "value": 0, + "min": 0 +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md new file mode 100644 index 0000000000..2680bcf03a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md new file mode 100644 index 0000000000..85d5f7bb0e --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md new file mode 100644 index 0000000000..ca7d67a1b4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/indexes/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md new file mode 100644 index 0000000000..8fd3f6ee7d --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md @@ -0,0 +1,9 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md new file mode 100644 index 0000000000..af1fabdb7a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md @@ -0,0 +1,10 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "queries": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md new file mode 100644 index 0000000000..e068291849 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-column.md b/docs/examples/1.8.x/server-rest/examples/grids/get-column.md new file mode 100644 index 0000000000..0888fb7273 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-column.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-database.md b/docs/examples/1.8.x/server-rest/examples/grids/get-database.md new file mode 100644 index 0000000000..644f251f56 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-database.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-index.md b/docs/examples/1.8.x/server-rest/examples/grids/get-index.md new file mode 100644 index 0000000000..3a9c1ae705 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-index.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/indexes/{key} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-row.md b/docs/examples/1.8.x/server-rest/examples/grids/get-row.md new file mode 100644 index 0000000000..ba3b87bee0 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-row.md @@ -0,0 +1,7 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-table.md b/docs/examples/1.8.x/server-rest/examples/grids/get-table.md new file mode 100644 index 0000000000..e562f5c763 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/get-table.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..4501951530 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId}/{column}/increment HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "value": 0, + "max": 0 +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md b/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md new file mode 100644 index 0000000000..82859eaabd --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md b/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md new file mode 100644 index 0000000000..3b9530eec4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md @@ -0,0 +1,5 @@ +GET /v1/databases HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md new file mode 100644 index 0000000000..847b2342fe --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/indexes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md new file mode 100644 index 0000000000..d22624083f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md @@ -0,0 +1,7 @@ +GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md b/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md new file mode 100644 index 0000000000..d3a4230165 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/grids/tables HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..4327743a81 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/boolean/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": false, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-database.md b/docs/examples/1.8.x/server-rest/examples/grids/update-database.md new file mode 100644 index 0000000000..d57ad48927 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-database.md @@ -0,0 +1,11 @@ +PUT /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "name": "", + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..bbdc0c3bc4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/datetime/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": , + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md new file mode 100644 index 0000000000..b9145a1c33 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/email/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "email@example.com", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..8d3d6c359f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/enum/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "elements": [], + "required": false, + "default": "", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md new file mode 100644 index 0000000000..5e1a67c6a1 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md @@ -0,0 +1,14 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/float/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "min": 0, + "max": 0, + "default": 0, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..f45fbf278f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md @@ -0,0 +1,14 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/integer/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "min": 0, + "max": 0, + "default": 0, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..5080aaab25 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/ip/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": , + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..d5d188ced4 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key}/relationship HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "onDelete": "cascade", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-row.md b/docs/examples/1.8.x/server-rest/examples/grids/update-row.md new file mode 100644 index 0000000000..015fa8faf1 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-row.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md new file mode 100644 index 0000000000..eb5b77bb31 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "data": {}, + "queries": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md new file mode 100644 index 0000000000..eda416a4d9 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/string/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "", + "size": 1, + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-table.md b/docs/examples/1.8.x/server-rest/examples/grids/update-table.md new file mode 100644 index 0000000000..02d68944f9 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-table.md @@ -0,0 +1,13 @@ +PUT /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "name": "", + "permissions": ["read(\"any\")"], + "rowSecurity": false, + "enabled": false +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md new file mode 100644 index 0000000000..4e0796887a --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/url/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": "https://example.com", + "newKey": +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md new file mode 100644 index 0000000000..c461d7c981 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md @@ -0,0 +1,13 @@ +PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-Key: +X-Appwrite-JWT: + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..5d9446550f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md @@ -0,0 +1,10 @@ +PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "rows": [] +} diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md b/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md index 2acacb5a5f..f0e27277b1 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-antivirus.md @@ -1,5 +1,5 @@ GET /v1/health/anti-virus HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-cache.md b/docs/examples/1.8.x/server-rest/examples/health/get-cache.md index c98dcf8af1..e0628a1b8a 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-cache.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-cache.md @@ -1,5 +1,5 @@ GET /v1/health/cache HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md b/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md index 9f4f5efee4..8928e8f25a 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-certificate.md @@ -1,5 +1,5 @@ GET /v1/health/certificate HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md index 9f1efb921b..f636c9c8e7 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md @@ -1,5 +1,5 @@ GET /v1/health/db HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md b/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md index b646b7923f..b9bfab3b73 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-failed-jobs.md @@ -1,5 +1,5 @@ GET /v1/health/queue/failed/{name} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md b/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md index d28025f719..e9ab32729c 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-pub-sub.md @@ -1,5 +1,5 @@ GET /v1/health/pubsub HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md index d51b4d60b3..c3d9189a65 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-builds.md @@ -1,5 +1,5 @@ GET /v1/health/queue/builds HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md index 0f3c2f65fe..d70ee360a8 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-certificates.md @@ -1,5 +1,5 @@ GET /v1/health/queue/certificates HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md index ccc72c3404..60fc6db3b2 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-databases.md @@ -1,5 +1,5 @@ GET /v1/health/queue/databases HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md index a4c5e15586..5a9ce59da3 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-deletes.md @@ -1,5 +1,5 @@ GET /v1/health/queue/deletes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md index a28dbf921c..854100e092 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-functions.md @@ -1,5 +1,5 @@ GET /v1/health/queue/functions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md index 0c16e61757..9fa98f13f5 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-logs.md @@ -1,5 +1,5 @@ GET /v1/health/queue/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md index 82b6151af1..2bb61550bb 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-mails.md @@ -1,5 +1,5 @@ GET /v1/health/queue/mails HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md index 6082ec41bd..5fd0f35919 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-messaging.md @@ -1,5 +1,5 @@ GET /v1/health/queue/messaging HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md index c9687b3224..2832b1c980 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-migrations.md @@ -1,5 +1,5 @@ GET /v1/health/queue/migrations HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md index 90eefe75fc..6500b1f84c 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-stats-resources.md @@ -1,5 +1,5 @@ GET /v1/health/queue/stats-resources HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md index 663d39dd2f..9c4e797f32 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-usage.md @@ -1,5 +1,5 @@ GET /v1/health/queue/stats-usage HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md b/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md index 0843ad174f..4db6cf7d8c 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-queue-webhooks.md @@ -1,5 +1,5 @@ GET /v1/health/queue/webhooks HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md b/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md index 9047713439..31c9b8725f 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-storage-local.md @@ -1,5 +1,5 @@ GET /v1/health/storage/local HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-storage.md b/docs/examples/1.8.x/server-rest/examples/health/get-storage.md index 1d46ab179e..69c4ebd910 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-storage.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-storage.md @@ -1,5 +1,5 @@ GET /v1/health/storage HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-time.md b/docs/examples/1.8.x/server-rest/examples/health/get-time.md index 7661df5732..5396aac6fb 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get-time.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get-time.md @@ -1,5 +1,5 @@ GET /v1/health/time HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/health/get.md b/docs/examples/1.8.x/server-rest/examples/health/get.md index c64b480826..b37e30c4f8 100644 --- a/docs/examples/1.8.x/server-rest/examples/health/get.md +++ b/docs/examples/1.8.x/server-rest/examples/health/get.md @@ -1,5 +1,5 @@ GET /v1/health HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/get.md b/docs/examples/1.8.x/server-rest/examples/locale/get.md index 7b300acb41..6c60c076b6 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/get.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/get.md @@ -1,6 +1,6 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md b/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md index 336ac1477f..3cc2aa9939 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-codes.md @@ -1,6 +1,6 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md b/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md index d99b138653..8d2b0fa19d 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-continents.md @@ -1,6 +1,6 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md index 3c94877234..ae341f5982 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md index 09619edb36..9d59f37a19 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-phones.md @@ -1,6 +1,6 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md index 0f1be7e5df..19205d538d 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-countries.md @@ -1,6 +1,6 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md b/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md index c1e03ecae2..fbf6d63496 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-currencies.md @@ -1,6 +1,6 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md b/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md index 1e2a125985..7f1304d6ff 100644 --- a/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md +++ b/docs/examples/1.8.x/server-rest/examples/locale/list-languages.md @@ -1,6 +1,6 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md index b6860358c1..47d3b98615 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/apns HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md index efec44982c..b6c1392bb2 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md index ec885465a7..f234c80e6e 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/fcm HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md index 8d0eb33938..fd138606e2 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/mailgun HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md index 2877ff7b89..edbd690d5d 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/msg91 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md index 6210273820..08ba0357fe 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/push HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md index a9f7c933dc..3fa7ee8dd8 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/sendgrid HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md index f885563f6f..82926e2a82 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ POST /v1/messaging/messages/sms HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md index bbb8e7d212..5963ee474c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/smtp HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md index 2e61d50b5c..e22a626ac4 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md index 198ccae6f5..a474db823f 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/telesign HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md index 2f2ce558a7..caa7bcd014 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/textmagic HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md index a44af2764d..9974584212 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ POST /v1/messaging/topics HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md index 61fd63b52e..e612eed8be 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/twilio HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md index 16d1c6b594..fdd66526a9 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ POST /v1/messaging/providers/vonage HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md index e25c3dcc1c..cfd1ff3b30 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/providers/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md index b988897d60..8226237777 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md index 3c5c8a9cdb..d340209e93 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/delete.md b/docs/examples/1.8.x/server-rest/examples/messaging/delete.md index a918c2b6f8..e076c96ebf 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/delete.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/messages/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md index abe744e9c7..ef9ef2c8df 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-message.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md index 0d2ffe4eaa..361d634760 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-provider.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers/{providerId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md index a1629d4546..c01c5876ac 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-subscriber.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md index 5d7efd06de..df5256f5e3 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/get-topic.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md index 066970a9fb..d8c982e7ea 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-message-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md index 03a286c376..88964162e3 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-messages.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md index 562264f48e..46c0f76a10 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-provider-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers/{providerId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md index 43522ee34f..e454b3101b 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-providers.md @@ -1,5 +1,5 @@ GET /v1/messaging/providers HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md index f403362529..7fb1192035 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscriber-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/subscribers/{subscriberId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md index a357f9dc3d..06f67c27c1 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-subscribers.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md index 0b4f8caf6f..7c793cfae0 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-targets.md @@ -1,5 +1,5 @@ GET /v1/messaging/messages/{messageId}/targets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md index 80073b2165..e371aeb2b5 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-topic-logs.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics/{topicId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md b/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md index 2835277aeb..9f18e14b70 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/list-topics.md @@ -1,5 +1,5 @@ GET /v1/messaging/topics HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md index a398b186cb..a55c593039 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/apns/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md index 0ef5b89409..97f3911ed1 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/email/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md index 50e3a5400d..d485981c5b 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/fcm/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md index f05f0057e7..ec132692c5 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/mailgun/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md index 1c88425fc1..1013915e5d 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/msg91/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md index adf269301c..438ef373e5 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/push/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md index 28ffb526f8..fd30512320 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/sendgrid/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md index b5ad82d0f9..a917e270f7 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/messages/sms/{messageId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md index 8e69659ce1..9fc45d6726 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/smtp/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md index 548d39dc92..919e99577e 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/telesign/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md index 724b0a4afe..94f965c44a 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/textmagic/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md index add0bf8ee4..75644d9828 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md index 38730383b1..41d04c0c14 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/twilio/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md index 8c284c827f..0344691e51 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ PATCH /v1/messaging/providers/vonage/{providerId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md index 554d2a5365..669ac50a75 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: Content-Length: *Length of your entity body in bytes* diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md index 3da246715b..dbee572372 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-duplicate-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/duplicate HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md index e37819bfb2..3b21f4f754 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-template-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/template HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md index 73217d198c..c34be9d619 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-variable.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/variables HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md index 7d5fd3e92e..2e466da0f6 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-vcs-deployment.md @@ -1,7 +1,7 @@ POST /v1/sites/{siteId}/deployments/vcs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create.md b/docs/examples/1.8.x/server-rest/examples/sites/create.md index 5493e9d2b6..52b4d87219 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create.md @@ -1,7 +1,7 @@ POST /v1/sites HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md index 35bac59efc..3df6aca50f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-deployment.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md index 0bd2f661cf..af1d1c339a 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-log.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/logs/{logId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md index c3f1d2d293..008ab4b190 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete-variable.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/delete.md b/docs/examples/1.8.x/server-rest/examples/sites/delete.md index cdb4ced577..0657fff9ef 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/delete.md @@ -1,7 +1,7 @@ DELETE /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md index d81a7dfc56..3ce065f600 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment-download.md @@ -1,6 +1,6 @@ GET /v1/sites/{siteId}/deployments/{deploymentId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md index 381c20db77..2ad95813d9 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-deployment.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-log.md b/docs/examples/1.8.x/server-rest/examples/sites/get-log.md index 6b8366461e..41dd30dc8f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-log.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-log.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/logs/{logId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md index 7c9703ef88..c6d5e70211 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get-variable.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/get.md b/docs/examples/1.8.x/server-rest/examples/sites/get.md index f13b46ecab..da7b67883f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/get.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/get.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md b/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md index 22512f809d..0bc5467894 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-deployments.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/deployments HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md b/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md index 0007a7cd78..8c5f7ff318 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-frameworks.md @@ -1,5 +1,5 @@ GET /v1/sites/frameworks HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md b/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md index 7e77b7e755..57b35c4ef5 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-logs.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md b/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md index 17e8d281c6..cf31760070 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-specifications.md @@ -1,5 +1,5 @@ GET /v1/sites/specifications HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md b/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md index 4f99a74984..7e12fdfd02 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list-variables.md @@ -1,5 +1,5 @@ GET /v1/sites/{siteId}/variables HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/list.md b/docs/examples/1.8.x/server-rest/examples/sites/list.md index d1800f05e5..dc4dc3695f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/list.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/list.md @@ -1,5 +1,5 @@ GET /v1/sites HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md b/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md index 697d9ac371..d4f251c20f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-deployment-status.md @@ -1,7 +1,7 @@ PATCH /v1/sites/{siteId}/deployments/{deploymentId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md index 51d8736df5..c288b2bf00 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-site-deployment.md @@ -1,7 +1,7 @@ PATCH /v1/sites/{siteId}/deployment HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md b/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md index 61902ee02f..c7fe824ac4 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update-variable.md @@ -1,7 +1,7 @@ PUT /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update.md b/docs/examples/1.8.x/server-rest/examples/sites/update.md index ab3c4dddd1..370984721f 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update.md @@ -1,7 +1,7 @@ PUT /v1/sites/{siteId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md index 8ca9c5701b..59f1c4f403 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md index e8a54e723b..086fd6dc72 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md @@ -1,7 +1,7 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md index 3db8bfbb72..d6083186de 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md b/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md index cc8a2481f7..467fdf96d1 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/delete-file.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md index b7def1d44b..2ad1e577c5 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-bucket.md @@ -1,5 +1,5 @@ GET /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md index 4d9c691ba9..af382d3a9a 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-download.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md index e8a1bdeedf..e00f0ff76f 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-preview.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md index d41b8a3512..79f47dcabc 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file-view.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/get-file.md b/docs/examples/1.8.x/server-rest/examples/storage/get-file.md index e11aaa9f05..4a479a78fc 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/get-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/get-file.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md b/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md index 3061208d75..bd61c61082 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/list-buckets.md @@ -1,5 +1,5 @@ GET /v1/storage/buckets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/list-files.md b/docs/examples/1.8.x/server-rest/examples/storage/list-files.md index 7cf8616335..b040ad3a65 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/list-files.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/list-files.md @@ -1,6 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md b/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md index adf12647e2..0f966da0b5 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/storage/update-file.md b/docs/examples/1.8.x/server-rest/examples/storage/update-file.md index d91ab4c2d6..1b0137a7de 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/update-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/update-file.md @@ -1,7 +1,7 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md index f52f796d90..773208cb45 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/create-membership.md @@ -1,7 +1,7 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/create.md b/docs/examples/1.8.x/server-rest/examples/teams/create.md index 27e7429464..2e1881b5ff 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/create.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/create.md @@ -1,7 +1,7 @@ POST /v1/teams HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md index e897d84a12..454a3f6f4a 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/delete.md b/docs/examples/1.8.x/server-rest/examples/teams/delete.md index 213489c7fb..1bdf2a89ac 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/delete.md @@ -1,7 +1,7 @@ DELETE /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md index 1d10cfe437..8a90498292 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get-membership.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md b/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md index ddb863181d..e541fd3fd8 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get-prefs.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/get.md b/docs/examples/1.8.x/server-rest/examples/teams/get.md index 4ecf74596b..491e04dc55 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/get.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/get.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md b/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md index 38cc17b71a..9b0fa00492 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/list-memberships.md @@ -1,6 +1,6 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/list.md b/docs/examples/1.8.x/server-rest/examples/teams/list.md index c67b429008..95b6178e31 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/list.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/list.md @@ -1,6 +1,6 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md b/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md index 9d828118f0..da2c9189cd 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md b/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md index 6730d5c27c..a5b8c28723 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-membership.md @@ -1,7 +1,7 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-name.md b/docs/examples/1.8.x/server-rest/examples/teams/update-name.md index fa811a2438..1d32b77d39 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-name.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-name.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md index 1db6300350..e17dcdb260 100644 --- a/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Session: X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md index c1fbb63d2d..3d884e2c5d 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md @@ -1,7 +1,7 @@ POST /v1/tokens/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/delete.md b/docs/examples/1.8.x/server-rest/examples/tokens/delete.md index ee564b01c4..a955b4aef5 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/delete.md @@ -1,7 +1,7 @@ DELETE /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/get.md b/docs/examples/1.8.x/server-rest/examples/tokens/get.md index b39c8390e3..381945f58f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/get.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/get.md @@ -1,5 +1,5 @@ GET /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/list.md b/docs/examples/1.8.x/server-rest/examples/tokens/list.md index 8909d05572..3b0782a81a 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/list.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/list.md @@ -1,5 +1,5 @@ GET /v1/tokens/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/update.md b/docs/examples/1.8.x/server-rest/examples/tokens/update.md index 8ab9d60555..ab58a4842a 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/update.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/update.md @@ -1,7 +1,7 @@ PATCH /v1/tokens/{tokenId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md index d557cf6d5f..4985ecefd0 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ POST /v1/users/argon2 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md index cda7491160..eaf1628252 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ POST /v1/users/bcrypt HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md index 83208adadb..8342089042 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/jwts HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md index d4896133a1..6e82969f00 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ POST /v1/users/md5 HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md index 2f6524646d..bef314b585 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md index 4c10b1a82d..b75c9e23c5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ POST /v1/users/phpass HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md index 5c6467a2fe..7757b44500 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ POST /v1/users/sha HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md index 19d0650840..9fb5f8de0f 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ POST /v1/users/scrypt-modified HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md index 008eab6848..ee8828f294 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ POST /v1/users/scrypt HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-session.md b/docs/examples/1.8.x/server-rest/examples/users/create-session.md index ec71d421e0..955e253d39 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-session.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-session.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-target.md b/docs/examples/1.8.x/server-rest/examples/users/create-target.md index fced935c1b..08147220b2 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-target.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/targets HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-token.md b/docs/examples/1.8.x/server-rest/examples/users/create-token.md index 4339252660..2d3b58435a 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create-token.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create-token.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/tokens HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/create.md b/docs/examples/1.8.x/server-rest/examples/users/create.md index 67d377255b..b638e6511e 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create.md @@ -1,7 +1,7 @@ POST /v1/users HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md b/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md index c2aa5eed16..a9b2cd04f6 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/users/identities/{identityId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md index 9d9e2e950f..92d51fefb5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/mfa/authenticators/{type} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-session.md b/docs/examples/1.8.x/server-rest/examples/users/delete-session.md index be204911a2..1ae56081ab 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-session.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md b/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md index 54f3a8d4f1..f620f1addc 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-target.md b/docs/examples/1.8.x/server-rest/examples/users/delete-target.md index 77e2c23dd8..4ea75b979b 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete-target.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete.md b/docs/examples/1.8.x/server-rest/examples/users/delete.md index c31212aa71..be2533f442 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/delete.md +++ b/docs/examples/1.8.x/server-rest/examples/users/delete.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md index 58dd32d2a4..1f561f02ad 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-mfa-recovery-codes.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md b/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md index ac04cc5c44..4d55589a73 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-prefs.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/prefs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-target.md b/docs/examples/1.8.x/server-rest/examples/users/get-target.md index 2f19db7c7a..3613d7acb6 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get-target.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/get.md b/docs/examples/1.8.x/server-rest/examples/users/get.md index f654676d9b..53357720cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/get.md +++ b/docs/examples/1.8.x/server-rest/examples/users/get.md @@ -1,5 +1,5 @@ GET /v1/users/{userId} HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-identities.md b/docs/examples/1.8.x/server-rest/examples/users/list-identities.md index 180a2127a4..40eed8beec 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-identities.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-identities.md @@ -1,5 +1,5 @@ GET /v1/users/identities HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-logs.md b/docs/examples/1.8.x/server-rest/examples/users/list-logs.md index 7149f50abe..526615b80f 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-logs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-logs.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/logs HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md b/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md index 7d32f2f726..24de2cdc59 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-memberships.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/memberships HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md index a75b26e1c5..eb2d3691de 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-mfa-factors.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md b/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md index 1ef39b835b..33efecd536 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-sessions.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-targets.md b/docs/examples/1.8.x/server-rest/examples/users/list-targets.md index e9542c0da0..229559c958 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list-targets.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list-targets.md @@ -1,5 +1,5 @@ GET /v1/users/{userId}/targets HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/list.md b/docs/examples/1.8.x/server-rest/examples/users/list.md index a92f71439b..2938255449 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/list.md +++ b/docs/examples/1.8.x/server-rest/examples/users/list.md @@ -1,5 +1,5 @@ GET /v1/users HTTP/1.1 Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md b/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md index cf65c72b0c..1db5556964 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/verification HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-email.md b/docs/examples/1.8.x/server-rest/examples/users/update-email.md index 10ccafb079..48d871d8d4 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-email.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/email HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-labels.md b/docs/examples/1.8.x/server-rest/examples/users/update-labels.md index f01603f1f4..d6acca5c7a 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-labels.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-labels.md @@ -1,7 +1,7 @@ PUT /v1/users/{userId}/labels HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md index aa3bb3f6e6..91e657aec7 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PUT /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md b/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md index fce9198887..8a5d1f5052 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-mfa.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/mfa HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-name.md b/docs/examples/1.8.x/server-rest/examples/users/update-name.md index c8988dfb1d..ae1472387a 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-name.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-name.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/name HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-password.md b/docs/examples/1.8.x/server-rest/examples/users/update-password.md index fb796d5619..40220f80d5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-password.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/password HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md b/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md index ca3958605b..837874a1e2 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/verification/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-phone.md b/docs/examples/1.8.x/server-rest/examples/users/update-phone.md index 5bc196d668..a36f0cc656 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-phone.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-phone.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/phone HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md index 1db82743e8..5de942c081 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-prefs.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/prefs HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-status.md b/docs/examples/1.8.x/server-rest/examples/users/update-status.md index 6d07f2e15f..95e29fb66e 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-status.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-status.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/status HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-target.md b/docs/examples/1.8.x/server-rest/examples/users/update-target.md index 926fb166a4..c5f92f342e 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-target.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-target.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: X-Appwrite-Key: diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md index ce8dea79ef..e6831084a1 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md @@ -4,9 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID .set_session('') # The user session to authenticate with - .set_key('') # Your secret API key - .set_jwt('') # Your secret JSON Web Token databases = Databases.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md index ecccdf5b21..16abc5e465 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-documents.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_admin('') # + .set_project('') # Your project ID .set_key('') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md index d165e1e6cd..238081864f 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md @@ -4,14 +4,15 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID .set_session('') # The user session to authenticate with - .set_key('') # Your secret API key - .set_jwt('') # Your secret JSON Web Token databases = Databases.new(client) result = databases.upsert_document( database_id: '', collection_id: '', - document_id: '' + document_id: '', + data: {}, + permissions: ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md index 8e404e684e..30c42aa439 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-documents.md @@ -4,12 +4,13 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint - .set_admin('') # + .set_project('') # Your project ID .set_key('') # Your secret API key databases = Databases.new(client) result = databases.upsert_documents( database_id: '', - collection_id: '' + collection_id: '', + documents: [] ) diff --git a/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md index b64b1d5c57..666b995d77 100644 --- a/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-ruby/examples/functions/create-execution.md @@ -16,5 +16,5 @@ result = functions.create_execution( path: '', # optional method: ExecutionMethod::GET, # optional headers: {}, # optional - scheduled_at: '' # optional + scheduled_at: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..592f6028aa --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_boolean_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: false, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md new file mode 100644 index 0000000000..db94d2386e --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_database( + database_id: '', + name: '', + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..4bc97b94ae --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_datetime_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md new file mode 100644 index 0000000000..4a1687d405 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_email_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'email@example.com', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..2a9b6de5de --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_enum_column( + database_id: '', + table_id: '', + key: '', + elements: [], + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md new file mode 100644 index 0000000000..0cd3bee568 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_float_column( + database_id: '', + table_id: '', + key: '', + required: false, + min: null, # optional + max: null, # optional + default: null, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md new file mode 100644 index 0000000000..7ef4c2c790 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_index( + database_id: '', + table_id: '', + key: '', + type: IndexType::KEY, + columns: [], + orders: [], # optional + lengths: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..ae7c416965 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_integer_column( + database_id: '', + table_id: '', + key: '', + required: false, + min: null, # optional + max: null, # optional + default: null, # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..e407abaee8 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_ip_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..3aecd5757d --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md @@ -0,0 +1,22 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_relationship_column( + database_id: '', + table_id: '', + related_table_id: '', + type: RelationshipType::ONETOONE, + two_way: false, # optional + key: '', # optional + two_way_key: '', # optional + on_delete: RelationMutate::CASCADE # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md new file mode 100644 index 0000000000..4c4433bd10 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.create_row( + database_id: '', + table_id: '', + row_id: '', + data: {}, + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md new file mode 100644 index 0000000000..1e619d25ce --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_rows( + database_id: '', + table_id: '', + rows: [] +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md new file mode 100644 index 0000000000..7808c6cfa2 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_string_column( + database_id: '', + table_id: '', + key: '', + size: 1, + required: false, + default: '', # optional + array: false, # optional + encrypt: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md new file mode 100644 index 0000000000..ef3bc4b5cf --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_table( + database_id: '', + table_id: '', + name: '', + permissions: ["read("any")"], # optional + row_security: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md new file mode 100644 index 0000000000..55ff12a1c0 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.create_url_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'https://example.com', # optional + array: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..fcbc6efedc --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.decrement_row_column( + database_id: '', + table_id: '', + row_id: '', + column: '', + value: null, # optional + min: null # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md new file mode 100644 index 0000000000..79cf84f3fd --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_column( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md new file mode 100644 index 0000000000..54d3660b9f --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_database( + database_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md new file mode 100644 index 0000000000..3968cfb675 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_index( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md new file mode 100644 index 0000000000..183f02c5d3 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.delete_row( + database_id: '', + table_id: '', + row_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md new file mode 100644 index 0000000000..560d63b033 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_rows( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md new file mode 100644 index 0000000000..d0c15da17c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.delete_table( + database_id: '', + table_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md new file mode 100644 index 0000000000..6288772e65 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.get_column( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md new file mode 100644 index 0000000000..49a5cde300 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.get_database( + database_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md new file mode 100644 index 0000000000..78a923c0ff --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.get_index( + database_id: '', + table_id: '', + key: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md new file mode 100644 index 0000000000..e8dc2cb6b1 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.get_row( + database_id: '', + table_id: '', + row_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md new file mode 100644 index 0000000000..bafdfe1140 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.get_table( + database_id: '', + table_id: '' +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..d09f72080c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.increment_row_column( + database_id: '', + table_id: '', + row_id: '', + column: '', + value: null, # optional + max: null # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md new file mode 100644 index 0000000000..343775300b --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.list_columns( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md new file mode 100644 index 0000000000..21e54951ee --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.list_databases( + queries: [], # optional + search: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md new file mode 100644 index 0000000000..2229c87249 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.list_indexes( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md new file mode 100644 index 0000000000..40b7be88a7 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.list_rows( + database_id: '', + table_id: '', + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md new file mode 100644 index 0000000000..69b213d3f3 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.list_tables( + database_id: '', + queries: [], # optional + search: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..78055c777f --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_boolean_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: false, + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md new file mode 100644 index 0000000000..79216c3fd3 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_database( + database_id: '', + name: '', + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..1737c5a020 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_datetime_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md new file mode 100644 index 0000000000..bc1f4cd7b6 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_email_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'email@example.com', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..5012002e29 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_enum_column( + database_id: '', + table_id: '', + key: '', + elements: [], + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md new file mode 100644 index 0000000000..e05037f10c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_float_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..3ec34bd2f2 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_integer_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..5394075ae5 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_ip_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..2c730048de --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_relationship_column( + database_id: '', + table_id: '', + key: '', + on_delete: RelationMutate::CASCADE, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md new file mode 100644 index 0000000000..57dd5cd381 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.update_row( + database_id: '', + table_id: '', + row_id: '', + data: {}, # optional + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md new file mode 100644 index 0000000000..602670d67f --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_rows( + database_id: '', + table_id: '', + data: {}, # optional + queries: [] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md new file mode 100644 index 0000000000..09de9ba697 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_string_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: '', + size: 1, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md new file mode 100644 index 0000000000..742a0c9829 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_table( + database_id: '', + table_id: '', + name: '', + permissions: ["read("any")"], # optional + row_security: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md new file mode 100644 index 0000000000..fc3f055708 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.update_url_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: 'https://example.com', + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md new file mode 100644 index 0000000000..2cf50d92d9 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_session('') # The user session to authenticate with + +grids = Grids.new(client) + +result = grids.upsert_row( + database_id: '', + table_id: '', + row_id: '', + data: {}, # optional + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..af3a7e1dbf --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +grids = Grids.new(client) + +result = grids.upsert_rows( + database_id: '', + table_id: '', + rows: [] +) diff --git a/docs/examples/1.8.x/server-swift/examples/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/grids/create-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md new file mode 100644 index 0000000000..4d0a226eb2 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnBoolean = try await grids.createBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-database.md b/docs/examples/1.8.x/server-swift/examples/grids/create-database.md new file mode 100644 index 0000000000..75ec62df4b --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-database.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let database = try await grids.createDatabase( + databaseId: "", + name: "", + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md new file mode 100644 index 0000000000..8271b44c9f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnDatetime = try await grids.createDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md new file mode 100644 index 0000000000..ca99534c78 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnEmail = try await grids.createEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md new file mode 100644 index 0000000000..3d52e94a96 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnEnum = try await grids.createEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md new file mode 100644 index 0000000000..f0abdc7b9f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnFloat = try await grids.createFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-index.md b/docs/examples/1.8.x/server-swift/examples/grids/create-index.md new file mode 100644 index 0000000000..2d0c1272b2 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-index.md @@ -0,0 +1,20 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIndex = try await grids.createIndex( + databaseId: "", + tableId: "", + key: "", + type: .key, + columns: [], + orders: [], // optional + lengths: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md new file mode 100644 index 0000000000..dca7968bfb --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnInteger = try await grids.createIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md new file mode 100644 index 0000000000..9517ed960f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIp = try await grids.createIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md new file mode 100644 index 0000000000..1ead20f97d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md @@ -0,0 +1,21 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnRelationship = try await grids.createRelationshipColumn( + databaseId: "", + tableId: "", + relatedTableId: "", + type: .oneToOne, + twoWay: false, // optional + key: "", // optional + twoWayKey: "", // optional + onDelete: .cascade // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-row.md b/docs/examples/1.8.x/server-swift/examples/grids/create-row.md new file mode 100644 index 0000000000..9d042b4034 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-row.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let row = try await grids.createRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md new file mode 100644 index 0000000000..3e1aced6e7 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let rowList = try await grids.createRows( + databaseId: "", + tableId: "", + rows: [] +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md new file mode 100644 index 0000000000..74eea86fe4 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnString = try await grids.createStringColumn( + databaseId: "", + tableId: "", + key: "", + size: 1, + required: false, + default: "", // optional + array: false, // optional + encrypt: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-table.md b/docs/examples/1.8.x/server-swift/examples/grids/create-table.md new file mode 100644 index 0000000000..3792c0aee4 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-table.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let table = try await grids.createTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md new file mode 100644 index 0000000000..7ea729aa1a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnUrl = try await grids.createUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", // optional + array: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md new file mode 100644 index 0000000000..9445843d71 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let row = try await grids.decrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + min: 0 // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md new file mode 100644 index 0000000000..b58a4d0890 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.deleteColumn( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md new file mode 100644 index 0000000000..e7600d7726 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.deleteDatabase( + databaseId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md new file mode 100644 index 0000000000..d83cd551da --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.deleteIndex( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md new file mode 100644 index 0000000000..d2d77234a3 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let result = try await grids.deleteRow( + databaseId: "", + tableId: "", + rowId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md new file mode 100644 index 0000000000..6a3f145526 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let rowList = try await grids.deleteRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md new file mode 100644 index 0000000000..8abdfcae2d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.deleteTable( + databaseId: "", + tableId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-column.md b/docs/examples/1.8.x/server-swift/examples/grids/get-column.md new file mode 100644 index 0000000000..68c0d3933d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-column.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let result = try await grids.getColumn( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-database.md b/docs/examples/1.8.x/server-swift/examples/grids/get-database.md new file mode 100644 index 0000000000..f3936ae4ba --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-database.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let database = try await grids.getDatabase( + databaseId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-index.md b/docs/examples/1.8.x/server-swift/examples/grids/get-index.md new file mode 100644 index 0000000000..24c3be9e27 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-index.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIndex = try await grids.getIndex( + databaseId: "", + tableId: "", + key: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-row.md b/docs/examples/1.8.x/server-swift/examples/grids/get-row.md new file mode 100644 index 0000000000..4d3e53cba6 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-row.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let row = try await grids.getRow( + databaseId: "", + tableId: "", + rowId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-table.md b/docs/examples/1.8.x/server-swift/examples/grids/get-table.md new file mode 100644 index 0000000000..9ad5e0c202 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/get-table.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let table = try await grids.getTable( + databaseId: "", + tableId: "" +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md new file mode 100644 index 0000000000..00d9663c22 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let row = try await grids.incrementRowColumn( + databaseId: "", + tableId: "", + rowId: "", + column: "", + value: 0, // optional + max: 0 // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md b/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md new file mode 100644 index 0000000000..facf87f9a3 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnList = try await grids.listColumns( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md b/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md new file mode 100644 index 0000000000..26d50a24b1 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let databaseList = try await grids.listDatabases( + queries: [], // optional + search: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md new file mode 100644 index 0000000000..c31f162d5d --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIndexList = try await grids.listIndexes( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md new file mode 100644 index 0000000000..01dd6637fc --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let rowList = try await grids.listRows( + databaseId: "", + tableId: "", + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md b/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md new file mode 100644 index 0000000000..af8cdd1264 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let tableList = try await grids.listTables( + databaseId: "", + queries: [], // optional + search: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md new file mode 100644 index 0000000000..8994b79e7c --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnBoolean = try await grids.updateBooleanColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: false, + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-database.md b/docs/examples/1.8.x/server-swift/examples/grids/update-database.md new file mode 100644 index 0000000000..827245bd97 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-database.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let database = try await grids.updateDatabase( + databaseId: "", + name: "", + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md new file mode 100644 index 0000000000..7a59cd1ef1 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnDatetime = try await grids.updateDatetimeColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md new file mode 100644 index 0000000000..3704401fa5 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnEmail = try await grids.updateEmailColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "email@example.com", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md new file mode 100644 index 0000000000..946804a88c --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnEnum = try await grids.updateEnumColumn( + databaseId: "", + tableId: "", + key: "", + elements: [], + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md new file mode 100644 index 0000000000..10f0babb2c --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnFloat = try await grids.updateFloatColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md new file mode 100644 index 0000000000..60e145e3b0 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnInteger = try await grids.updateIntegerColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md new file mode 100644 index 0000000000..17f490d644 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnIp = try await grids.updateIpColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md new file mode 100644 index 0000000000..994feefa92 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md @@ -0,0 +1,18 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnRelationship = try await grids.updateRelationshipColumn( + databaseId: "", + tableId: "", + key: "", + onDelete: .cascade, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-row.md b/docs/examples/1.8.x/server-swift/examples/grids/update-row.md new file mode 100644 index 0000000000..3e4408f700 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-row.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let row = try await grids.updateRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md new file mode 100644 index 0000000000..c57463cc8a --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let rowList = try await grids.updateRows( + databaseId: "", + tableId: "", + data: [:], // optional + queries: [] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md new file mode 100644 index 0000000000..e9e2d71c62 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnString = try await grids.updateStringColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "", + size: 1, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-table.md b/docs/examples/1.8.x/server-swift/examples/grids/update-table.md new file mode 100644 index 0000000000..8b3fa5e12e --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-table.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let table = try await grids.updateTable( + databaseId: "", + tableId: "", + name: "", + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md new file mode 100644 index 0000000000..b72666e240 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let columnUrl = try await grids.updateUrlColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: "https://example.com", + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md new file mode 100644 index 0000000000..1d09e7b767 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +let grids = Grids(client) + +let row = try await grids.upsertRow( + databaseId: "", + tableId: "", + rowId: "", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md new file mode 100644 index 0000000000..84173c9c0f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let grids = Grids(client) + +let rowList = try await grids.upsertRows( + databaseId: "", + tableId: "", + rows: [] +) + 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.